arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.15391cs.AI
收藏

通过混合回避与自适应检测提升大语言模型可靠性

Improving LLM Reliability through Hybrid Abstention and Adaptive Detection

Ankit Sharma, Nachiket Tapas, Jyotiprakash Patra

AI总结:

本文提出一种基于上下文感知的自适应回避框架,通过动态调整安全阈值和级联检测机制,提升大语言模型在安全与效用之间的平衡能力。

摘要:

大型语言模型(LLMs)在生产环境中面临安全性和效用之间的根本性权衡:严格过滤机制可以防止有害输出,但往往会阻止良性查询;而宽松的控制则可能增加不安全内容生成的风险。基于静态规则或固定置信度阈值的传统防护措施通常缺乏上下文敏感性且计算成本高,导致延迟高和用户体验下降。为了解决这些限制,我们引入了一个自适应回避系统,该系统根据实时的上下文信号(如领域和用户历史)动态调整安全阈值。所提出的框架集成了一个多维检测架构,由五个并行检测器组成,通过分层级联机制结合,以优化速度和精度。级联设计通过逐步过滤查询减少了不必要的计算,相比非级联模型和外部防护系统实现了显著的延迟改进。在混合和领域特定的工作负载上的广泛评估显示,在敏感领域如医疗建议和创意写作中,假阳性显著减少。系统在严格操作模式下保持高安全精度和接近完美的召回率。总体而言,我们的上下文感知回避框架在平衡安全与效用的同时保持了性能,提供了一种可扩展的可靠LLM部署解决方案。

英文摘要:

Large Language Models (LLMs) deployed in production environments face a fundamental safety-utility trade-off either a strict filtering mechanisms prevent harmful outputs but often block benign queries or a relaxed controls risk unsafe content generation. Conventional guardrails based on static rules or fixed confidence thresholds are typically context-insensitive and computationally expensive, resulting in high latency and degraded user experience. To address these limitations, we introduce an adaptive abstention system that dynamically adjusts safety thresholds based on real-time contextual signals such as domain and user history. The proposed framework integrates a multi-dimensional detection architecture composed of five parallel detectors, combined through a hierarchical cascade mechanism to optimize both speed and precision. The cascade design reduces unnecessary computation by progressively filtering queries, achieving substantial latency improvements compared to non-cascaded models and external guardrail systems. Extensive evaluation on mixed and domain-specific workloads demonstrates significant reductions in false positives, particularly in sensitive domains such as medical advice and creative writing. The system maintains high safety precision and near-perfect recall under strict operating modes. Overall, our context-aware abstention framework effectively balances safety and utility while preserving performance, offering a scalable solution for reliable LLM deployment.

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

↑