Tight PAC-Bayes Generalisation Guarantees for Large Language Model Judges

Tom A. Lamb, Philip Torr, Tim G. J. RudnerNeurIPS 2026

TL;DR

When we use AI to police AI—deploying "judge" LLMs to catch unsafe outputs from other models—who watches the watchmen? This paper shows how to calculate strict mathematical guarantees on a safety judge's future error rate and calibration without sacrificing precious labeled data for a separate validation set. The secret lies in Occam's razor: by aggressively compressing the fine-tuning updates made to a pre-trained safety model, we can prove it will generalize reliably in the wild.

What Problem Does This Paper Address?

Human supervision doesn’t scale to billions of AI queries, so engineers rely on automated guardrail models (like Llama Guard) to block or allow outputs in real time. In safety-critical domains, "it did well on our test set" isn't enough; we want formal guarantees on how often the judge will fail in deployment, and whether its confidence scores are trustworthy (calibrated).

Typically, you get statistical guarantees by holding out a validation set. However, high-quality labeled safety data is often scarce—every sample locked in a validation vault is one the model can't learn from. Furthermore, classical generalization theory usually breaks down for massive neural networks, spitting out "vacuous" bounds (like guaranteeing an error rate below 100%, which is mathematically true and practically useless). Can we use 100% of our scarce data for both training and mathematical certification, using standard fine-tuning pipelines?

Methods

The authors turn to PAC-Bayes theory, a mathematical framework that bounds a model’s true population risk based on two things: how well it fits the training data, and how simple it is relative to a prior assumption.

Here, "simplicity" is measured literally as file size—the Minimum Description Length (in bits) needed to reconstruct the fine-tuned changes on top of a frozen base model. Because pre-trained guardrail models already understand general safety, adapting them to a new guideline only requires tiny nudges via Parameter-Efficient Fine-Tuning (PEFT).

What is standard vs. novel here:

  • Standard: The judge is trained normally using standard supervised fine-tuning on prompt-response pairs from a fixed generator, certifying both binary classification (0–1 loss) and probability calibration (Brier risk).
  • Novel Architecture (LoRA-GT): Building on ultra-compact PEFT methods like TinyLoRA (LoRA-TT), the authors noticed a hidden bottleneck. When you quantize tiny weight updates down to 2 bits, the metadata—specifically, the 16-bit scaling factors saved for every single layer—ends up taking vastly more memory than the weights themselves! LoRA-GT shares a single global quantization scale across all layers (found via a quick discrete search), slashing metadata overhead by 86%.
  • Tighter Math & Coding: Unlike prior LLM compression bounds, the authors apply a generalized Catoni bound (allowing hyperparameter optimization without data-splitting penalties), Elias $\delta$ coding, and Brotli lossless compression to squeeze every last bit out of the adapter's description length.

Datasets

No new benchmarks were introduced. The authors evaluate five existing guardrail models (Llama Guard 3 at 1B and 8B; Qwen3Guard at 0.6B, 4B, and 8B) across four established safety benchmarks spanning tiny to massive data regimes:

  • Egida ($n = 792$)
  • OpenAI Content Moderation ($n = 1,344$)
  • Aegis ($n = 28,984$)
  • BeaverTails ($n = 300,567$)

Key Insights and Ideas

  • Adaptation complexity beats backbone size: Intuitively, you might expect an 8-billion-parameter judge to have much looser generalization bounds than a 600-million-parameter one. Not here. Because the base model is frozen, the mathematical guarantee cares only about the size of the update, not the size of the Leviathan underneath. Simple updates to smart base models are highly certifiable.
  • Big data won't save bloated adapters: Even with ~300,000 samples on BeaverTails, standard LoRA descriptions take up 0.8M to 28M bits, resulting in completely vacuous bounds (1.000). What governs the bound is the ratio of adapter bits to sample size ($|h|/n$).
  • The compression sweet spot shifts with data size: Pushing quantization down to 2 bits shrinks the file size (tightening the bound) but introduces rounding errors that hurt accuracy ("functional distortion," which loosens the bound). When data is scarce ($n \approx 1,000$), 2-bit compression wins because bit-savings dominate. When data is plentiful ($n > 28,000$), the complexity penalty is already tiny, so 4-bit quantization wins by preserving accuracy.

Key Results

  • Universal Winner: LoRA-GT achieved the tightest generalization certificates in all 40 out of 40 model–dataset–loss combinations, while standard LoRA remained vacuous in every single case.
  • Metadata Diet: On Llama-Guard-3-8B (32 layers), switching from per-layer scales to LoRA-GT's global scale dropped the adapter representation from 576 bits down to just 80 bits.
  • Strong Guarantees, Slight Trade-off: On BeaverTails, LoRA-GT brought the certified 0–1 error bound down from a useless 1.000 (LoRA) to a tight 0.169–0.226, paying a modest penalty of 2.1 to 6.7 percentage points in actual test error due to the restricted parameterization.
  • Small-Data Viability: Non-vacuous, practical guarantees for both accuracy and Brier calibration were achieved with as few as 792 samples (Egida), requiring zero held-out validation data.

Limitations and Future Work

  • No Distribution Shift: The guarantees strictly assume the world stays still—meaning the monitored generator's weights, system prompt, decoding settings, and user prompt distribution remain identical between certification and deployment. Handling distribution shift remains an open problem.
  • Scale Ceiling: Experiments capped out at 8B-parameter judges (practical for cheap, real-time oversight). Future work needs to verify whether ultra-compact, globally scaled quantization still avoids severe accuracy distortion on much larger (e.g., 70B+) frontier judges.

Summary updated

BibTeX
@inproceedings{lamb2026tight,
  author = {Tom A. Lamb and Philip Torr and Tim G. J. Rudner},
  title = {{Tight PAC-Bayes Generalisation Guarantees for Large Language Model Judges}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lDwefojK2s},
}
Figure