arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.18304cs.AI
收藏

通过潜在双假设推理与按需轨迹重建实现高效安全护栏

Efficient Safety Guardrails through Latent Dual-Hypothesis Reasoning with On-Demand Trace Reconstruction

University of Arizona(亚利桑那大学)

Md Asiful Islam, Fahmida Alam, Mihai Surdeanu

AI总结:

本文提出LR-Guard,通过将教师模型的推理提炼为紧凑潜在表示并按需重建,在保证安全分类与解释性能优于教师模型的同时,实现19.4倍推理加速,提升了安全护栏的效率与可解释性。

摘要:

依赖基于推理的大语言模型(LLM)的安全护栏方法可提升安全决策,但因显式推理会带来显著推理开销。本文提出LR-Guard(潜在推理安全护栏),这是一种高效且可解释的安全护栏,可联合学习结构化潜在推理与按需推理重建。该方法将冻结教师模型对安全与不安全提示解释及其比较的分析提炼为紧凑潜在表示,联合训练针对安全预测和教师显式推理轨迹的重建优化这些表示,无需为每个决策生成中间文本即可实现人类可读的解释。实验表明,LR-Guard在安全分类和解释提取的多数域内及域外设置中优于其显式推理教师模型,且在批量大小为1时实现19.4倍的推理加速;此外,从潜在信息重建的推理轨迹与教师的显式推理具有高语义相似性。

英文摘要:

Guardrail approaches that rely on reasoning-based large language models (LLM) improve safety decisions, but come with substantial inference overhead due to the explicit reasoning. We introduce LR-Guard (Latent Reasoning Guardrail), an efficient and explainable guardrail that jointly learns structured latent reasoning and on-demand reasoning reconstruction. Our method distills a frozen teacher's analysis of safe and unsafe prompt interpretations and their comparison into compact latent representations. Joint training optimizes these representations for both safety prediction and reconstruction of the teacher's explicit reasoning traces, enabling human-readable explanations without requiring intermediate text generation for every decision. Experiments show that LR-Guard outperforms its explicit-reasoning teacher in most in-domain and out-of-domain settings on safety classification and explanation extraction, while achieving a 19.4x inference speedup at batch size one. Further, reconstructed reasoning traces from the latent information exhibit high semantic similarity to the teacher's explicit reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑