← Lab /AI/ML

LeakGauge detects context leakage with AUROC up to 0.996

LeakGauge can assess LLM leakage risk with high accuracy across diverse models and attacks

AI/ML arXiv 18 Aug 2026 Measurement Prototype evidence Threat model

Published as “The Model's Tell: Measuring Context-Leakage Attack Signals with Behavior Gauges”

Why it matters

LeakGauge enables fast, low-overhead detection of prompt and RAG leakage attacks, making it practical for real-time LLM deployments.

Summary

LeakGauge’s content-agnostic Behavior gauge attains an AUROC of at least 0.94 across eleven LLMs (8B-2.8T) even on unseen attacks and unseen protected content. It does this by appending a short natural-language suffix, reading prefill token log-probabilities, and mapping them with a tiny MLP to a risk score, requiring no access to hidden states. The approach outperforms prior input-only classifiers and activation-based detectors, achieving 0.996 AUROC and 0.983 F1 on Llama-3.1-8B-Instruct with only 10.34 ms extra latency and <0.5K parameters. The paper provides extensive cross-lingual, cross-objective, and cross-model transfer experiments to support robustness. No major limitations are reported in the provided sections.

What they found 2

  1. Behavior gauge achieves AUROC between 0.944 and 0.996 on unseen attacks.

    “LeakGauge reaches an AUROC range of 0.944-0.996 on unseen attacks.”

  2. In a cross-attack deployment on Llama-3.1-8B-Instruct, LeakGauge attains 0.996 AUROC, 0.983 F1, with only 10.34 ms latency and <0.5K extra parameters.

    “In a crossattack evaluation on Llama-3.1-8B-Instruct, LeakGauge achieves an AUROC of 0.996 and an F1 score of 0.983, while adding only 10.34 ms per request and fewer than 0.5K additional parameters.”

What’s new here 4

  • Probes leakage risk from prefill token probabilities without accessing hidden states or attention tensors.
  • Introduces a content-agnostic “Behavior” gauge that verbalizes disclosure intent, yielding more robust signals than exact content continuation.
  • Demonstrates a lightweight input-side detector that reuses KV cache, adding <0.5K parameters and ~10 ms latency.
  • Shows activation-steering links the observable risk score to an internal leakage-related direction.

Threat model stated by the source

Adversaryblack-box attacker submitting crafted queries
Capabilitycan submit queries, observe model outputs, and adapt subsequent queries based on feedback
Assumesattacker knows the application interface and protected-context type; attacker does not know the protected content or the detector design