arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2612.00974cs.LG
收藏

NNbench:白盒可解释性系统基准测试

NNbench: Benchmarking White-Box Interpretability Systems

Northeastern University(东北大学);Parallax

Zikai Wang, Jaden Fried Fiotto-Kaufman, Adam Belfki, Gabriele Sarti, Emma Bortz, Cheng Tan, David Bau

AI总结:

该研究提出首个白盒可解释性基准NNbench,评估6个系统在4B-72B参数模型上的表现,发现现有系统存在工作负载支持不全等问题,优化钩子可大幅降低延迟。

摘要:

白盒可解释性方法会检查和修改大语言模型(LLM)的内部激活,以定位计算、监控安全性并引导生成。受社区强烈需求驱动,目前已有多个此类可解释性系统被应用于生产推理引擎。然而,我们对156项2017-2026年的可解释性研究及12个现有可解释性系统的调查显示,当前系统能力与工作负载需求之间存在差距。为表征该差距,我们提出NNbench——首个白盒可解释性基准,通过四种基础操作(读出、编辑、梯度、记录)和四种到达模式,系统捕获了调查中识别的工作负载。我们使用NNbench在参数规模为4B至72B的模型上评估了6个可解释性系统,评估得出三个发现:(1)所有被评估的推理系统均不支持全部工作负载:引擎优化会丢弃反向梯度和注意力矩阵,受限接口限制了对模型组件和生成步骤的访问,分布式分片和引擎状态约定可能会破坏或静默损坏干预操作;(2)在单GPU离线批量作业中,标准PyTorch比预注册推理快3.7倍(37倍对比每请求包装),而在并发在线生成下,推理引擎快71-154倍,在单请求多GPU模型(14B-72B)上快2.7-7.2倍;(3)朴素钩子会通过干扰编译后的GPU执行、在CPU上重建词汇表logits以及通过IPC复制大输出,使推理速度变慢;提前注册钩子并在GPU上投影或缩减隐藏状态,可将原生API的延迟降低1.6-3.3倍(消除主机logit重建时可降低19倍),接近未修改的推理速度。

英文摘要:

White-box interpretability methods inspect and modify the internal activations of large language models (LLMs) to localize computations, monitor safety, and steer generation. Driven by strong community demand, several systems now bring such interpretability to production inference engines. However, our survey of 156 interpretability works (2017-2026) and 12 existing interpretability systems reveals a gap between today's system capabilities and workload requirements. To characterize this gap, we present NNbench, the first white-box interpretability benchmark to systematically capture the workloads identified in our survey through four primitive operations (readout, edit, gradient, and record) and four arrival patterns. We evaluate six interpretability systems using NNbench on models ranging from 4B to 72B parameters. Our evaluation yields three findings. (1) No evaluated serving system supports all workloads: engine optimizations discard backward gradients and attention matrices, restrictive interfaces limit access to model components and generation steps, and distributed sharding and engine state conventions can break or silently corrupt interventions. (2) Standard PyTorch is up to 3.7x faster than pre-registered serving (37x vs. per-request wrappers) on single-GPU offline batch jobs, whereas serving engines are 71-154x faster under concurrent online generation and 2.7-7.2x faster on single-request multi-GPU models (14B-72B). (3) Naive hooks slow serving by disrupting compiled GPU execution, reconstructing vocabulary logits on the CPU, and copying large outputs over IPC; registering hooks in advance and projecting or reducing hidden states on the GPU reduces latency by 1.6-3.3x in native APIs (and 19x when eliminating host logit reconstruction), approaching unmodified serving speed.

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

↑