Shh, don't say that! Domain Certification in LLMs

Cornelius Emde, Alasdair Paren, Preetham Arvind, Maxime Kayser, Tom Rainforth +4 more
2/26/2025
cs.CLcs.AIcs.CR

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) are often deployed to perform constrained tasks, with narrow domains. For example, customer support bots can be built on top of LLMs, relying on their broad language understanding and capabilities to enhance performance. However, these LLMs are adversarially susceptible, potentially generating outputs outside the intended domain. To formalize, assess, and mitigate this risk, we introduce domain certification; a guarantee that accurately characterizes the out-of-domain behavior of language models. We then propose a simple yet effective approach, which we call VALID that provides adversarial bounds as a certificate. Finally, we evaluate our method across a diverse set of datasets, demonstrating that it yields meaningful certificates, which bound the probability of out-of-domain samples tightly with minimum penalty to refusal behavior.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{emde2025shh,
  title  = {Shh, don't say that! Domain Certification in LLMs},
  author = {Cornelius Emde and Alasdair Paren and Preetham Arvind and Maxime Kayser and Tom Rainforth and Thomas Lukasiewicz and Bernard Ghanem and Philip H. S. Torr and Adel Bibi},
  year   = {2025},
  eprint = {2502.19320},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.19320v2},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19320.svg)](https://codeofpaper.com/paper/2502.19320)

Discussion