🤖 AI Summary
This work addresses the inefficiency of existing safety guardrails that rely on chain-of-thought (CoT) reasoning, which incurs high computational overhead and latency, hindering deployment in low-resource, on-device scenarios. The authors propose LeanGuard, a lightweight moderation paradigm that eliminates explicit reasoning and instead performs label prediction solely through a bidirectional encoder. Through controlled ablation studies, they demonstrate for the first time that CoT does not improve accuracy in content moderation tasks. Leveraging a 395M-parameter encoder, LeanGuard processes up to 512 tokens in a single forward pass, achieving an average F1 score of 82.90±0.26 on public benchmarks—while reducing inference compute by approximately two orders of magnitude. Moreover, it exhibits greater robustness to label noise and significantly higher recall under strict false-positive constraints compared to existing CoT-based guardrails.
📝 Abstract
In order to screen a prompt or a response, the recent guardrail methods generate a chain-of-thought (CoT) before they issue a verdict. This design follows a common belief that step-by-step reasoning improves a decision. However, CoT also makes the guard heavy and slow, because the model must generate many tokens before it decides. This may not match how guardrails are actually deployed. A guardrail sometimes should not be heavy and slow, and it often runs on-device, for example on an embodied robot. In this paper, we pose a question whether a safety guardrail really needs to reason. To answer this question, we train a lightweight bidirectional encoder and a reasoning guard on the same corpus, and we then remove only the reasoning while we keep everything else fixed. With this controlled same-base comparison, we show that the chain does not improve moderation accuracy. We name the resulting guard LeanGuard. A 395M label-only encoder reaches an average F1 of 82.90 $\pm$ 0.26 over public benchmarks. It matches a reasoning guard that is built on a much larger decoder, while it uses only a single forward pass over an input of at most 512 tokens. This is about a ~100x reduction in inference compute. We further show that this label-only encoder stays robust under training-label noise and retains far more recall at a strict false-positive rate than the reasoning guard, so a heavier reasoning guard is not the more robust choice either. Our finding suggests that the current guardrail benchmarks may not be hard enough to reward reasoning, and that the necessity of CoT for moderation is still not proven. We release all source codes and models including LeanGuard at https://github.com/ndb796/LeanGuard.