GateWatch:基于布尔电路的低开销大语言模型监控 GateWatch: Low-Overhead LLM Monitoring with Boolean Circuits 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-18
👁️ 预览文献
💡 AI 中文简介
大语言模型部署后需要监控其行为是否安全。现有激活探针方法在准确性、可解释性和计算开销之间难以平衡。本研究提出GateWatch,将分类器的决策规则表达为基于少量二值化稀疏自编码器特征的显式布尔逻辑电路。在Gemma-2-9B模型的24个任务上,GateWatch平均仅用3.8个特征和3.5个逻辑门就达到80.49%的准确率,比全特征方法低1.17个百分点,但内存降低99.98%,且在vLLM中千个并发分类器仍保持97-98%的吞吐量。
领域大语言模型安全与可解释性
适合谁读需要一定专业背景(了解LLM内部激活和稀疏自编码器)
核心贡献1. 提出将分类器决策规则显式表达为布尔逻辑电路,兼具高可解释性与低开销;2. 设计GateWatchServe系统,通过仅计算选定特征、流式二值化和并行查表评估,实现高效部署。
关键数据在Gemma-2-9B的24个任务上平均测试准确率80.49%,仅用3.8个SAE特征和3.5个逻辑门,比全16K特征SAE探针低1.17个百分点,内存减少99.98%;在vLLM中1000个并发分类器保持97-98%吞吐量和99.8% KV缓存容量。
推荐理由如果你关心大模型安全监控又不想被高开销拖累,这篇工作用极简布尔电路实现了近乎无损的准确率和惊人的效率提升,值得一读。
关键词["大语言模型监控", "激活探针", "布尔电路", "稀疏自编码器", "可解释性", "低开销推理"]

原文摘要

查看英文原文摘要

As large language models (LLMs) and LLM-based agents are increasingly deployed, monitoring their behavior becomes important for detecting unsafe or unintended actions. Activation probes offer an efficient approach, but existing methods face trade-offs between accuracy, interpretability, and computational overhead. Probes on raw activations lack interpretable inputs, whereas sparse autoencoder (SAE) probes use interpretable features but often rely on additive classifiers and large SAE encoders, limiting interpretability and increasing memory overhead. We introduce GateWatch, a compact, interpretable classifier that expresses its entire decision rule as an explicit Boolean logic over a small number of binarized SAE features. We explore three approaches to constructing these circuits under a specified gate budget. For efficient deployment, GateWatchServe computes only selected SAE features, enables streaming of their binary values across layers during inference, and evaluates multiple GateWatch classifiers in parallel using compact lookup tables. Across 24 tasks on Gemma-2-9B, GateWatch achieves 80.49% mean test accuracy using only 3.8 SAE features and 3.5 logic gates per probe on average, just 1.17 percentage points below full 16K-feature SAE probes, while matching or outperforming them on 10 tasks and reducing probe memory by 99.98%. Inside vLLM, 1,000 concurrent multi-layer, multi-token GateWatch classifiers retain 97-98% of baseline throughput and 99.8% of KV-cache capacity.