Fence: Specialized SLM Guardrails for LLM Applications

Kumud Lakara, Ruibo Shi, Fran Silavong
5/22/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Real-world applications that use closed-source large language models (LLMs) need advanced safety measures that go beyond the basic content filters. Content moderation filters such as toxicity and bias have relatively standard definitions where as application specific guardrails like hallucination, topic drift and behaviour deviation are more difficult to model and can vary by use case.

Show full abstract

Additionally, data scarcity and annotation costs, make the process of creating and testing specialized guardrails challenging. In this work, we propose using Small Language Models (SLMs) trained on synthetic data as specialized guardrails for LLM applications. We introduce a novel synthetic data generation method inspired by the design of Generative Adversarial Networks (GANs) to generate high quality synthetic data samples which can be used to train SLMs to encode use case specific guardrail information and hence function as specialized guardrails. Our experiments demonstrate that SLM guardrails trained on high quality synthetic data show performance gains over prompt based LLM guardrails.

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!

Similar Papers

Cite this paper

@article{lakara2026fence,
  title  = {Fence: Specialized SLM Guardrails for LLM Applications},
  author = {Kumud Lakara and Ruibo Shi and Fran Silavong},
  year   = {2026},
  eprint = {2607.18268},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.18268v1}
}

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/2607.18268.svg)](https://codeofpaper.com/paper/2607.18268)

Discussion