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

大语言模型的分布式可解释性与控制

Distributed Interpretability and Control for Large Language Models

Dev Arpan Desai, Shaoyi Huang, Zining Zhu

AI总结:

本文提出了一种适用于多GPU大语言模型的激活层可解释性和控制方法,通过减少激活内存和提升吞吐量,实现了对模型输出的可控调整,无需微调。

摘要:

需要多个GPU卡才能运行的大语言模型通常是最强大的模型。理解并引导这些模型是必要的,但当前技术无法在多GPU和单GPU设置中支持这些模型的可解释性和控制。我们提出了一种实用的激活层可解释性(logit lens)和控制(steering vector)实现,能够扩展到多GPU语言模型。我们的系统实现了减少激活内存高达7倍,以及在相同硬件上提升吞吐量高达41倍的设计选择。我们展示了该方法在LLaMA-3.1(8B,70B)和Qwen-3(4B,14B,32B)上的应用,持续20-100 tokens/s的同时收集完整层激活轨迹。使用在LayerNorm后注入的标签位置控制向量,我们展示了模型输出的可控单调位移,平均控制斜率为0.702,无需微调或额外前向传递。我们发布了详细的基准测试、消融实验和可复现的仪器化配方,以在https://github.com/Devdesai1901/LogitLense上实现前沿LLM的实用可解释性和实时行为控制。

英文摘要:

Large language models that require multiple GPU cards to host are usually the most capable models. It is necessary to understand and steer these models, but the current technologies do not support the interpretability and steering of these models in the multi-GPU setting as well as the single-GPU setting. We present a practical implementation of activation-level interpretability (logit lens) and steering (steering vector) that scales up to multi-GPU language models. Our system implements design choices that reduce the activation memory by up to 7x and increase the throughput by up to 41x compared to a baseline on identical hardware. We demonstrate the method across LLaMA-3.1 (8B, 70B) and Qwen-3 (4B, 14B, 32B), sustaining 20-100 tokens/s while collecting full layer-wise activation trajectories for sequences of 1,500 tokens. Using label-position steering vectors injected post-LayerNorm, we show controllable, monotonic shifts in model outputs with a mean steerability slope of 0.702 across evaluated datasets, without fine-tuning or additional forward passes. We release detailed benchmarks, ablations, and a reproducible instrumentation recipe to enable practical interpretability and real-time behavioral control for frontier LLMs at https://github.com/Devdesai1901/LogitLense.

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

↑