Geometry-Lite: Interpretable Safety Probing via Layer-Wise Margin Geometry

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy · Depth: Expert, extended

Summary

Geometry-Lite is a novel, compact prompt-level probe designed for interpretable safety analysis in large language models, addressing how safety evidence manifests across layers and its robustness to benchmark shifts. It operates by mapping each layer's final prompt-token representation to signed margins using three geometric readouts: centroid distance, k-nearest-neighbor local structure, and a supervised linear boundary. These margin profiles are then summarized by boundary position, layer-to-layer change, and coarse shape. Evaluated across nine instruction-tuned backbones (1.2B–70B) and seven safety benchmarks, Geometry-Lite achieved a pooled AUROC of 0.955, outperforming single-layer probes by 0.013–0.014 and matching raw multi-layer score stacking. The study reveals that safety evidence primarily resides in persistent boundary-position geometry, with layer-to-layer motion offering only sparse, recall-oriented corrections at low false-positive rates. Crucially, while optimized linear boundaries are sharp in-distribution, class-conditional mean geometry proves more stable under benchmark shift.

Key takeaway

For AI Scientists and ML Engineers building LLM safety guardrails, you should adopt multi-layer safety probes like Geometry-Lite to significantly improve detection performance, especially in critical low-false-positive regimes and under benchmark shifts. When designing or selecting probes, prioritize class-conditional mean geometry readouts for enhanced stability and generalization to unseen safety distributions, even if optimized linear boundaries appear sharper in-distribution. Always evaluate your probes across diverse benchmarks and low-FPR thresholds to ensure real-world robustness.

Key insights

Geometry-Lite decomposes multi-layer safety signals into interpretable geometric margin profiles.

Principles

Method

Reduce D-dimensional hidden states to scalar margins using centroid, k-NN, and linear boundary readouts. Summarize these profiles by level, change, and shape. Classify with L2-regularized logistic regression.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.