量子筛子追踪器:一种用于大语言模型分层激活追踪的混合框架
The Quantum Sieve Tracer: A Hybrid Framework for Layer-Wise Activation Tracing in Large Language Models
AI总结:
量子筛子追踪器通过混合量子-经典方法揭示大语言模型中分层激活机制的差异,发现不同模型层在事实回忆和干扰抑制中的不同作用。
摘要:
机制可解释性旨在反向工程大型语言模型(LLMs)的内部计算,但将稀疏语义信号与高维多语义噪声分离仍是一个重大挑战。本文介绍了量子筛子追踪器,一种混合量子-经典框架,旨在表征事实回忆电路。我们实现了一个模块化流程,首先使用经典因果追踪局部化关键层,然后将特定注意力头激活映射到指数级大的量子希尔伯特空间。使用开放权重模型(Meta Llama-3.2-1B和Alibaba Qwen2.5-1.5B-Instruct),我们进行了两阶段分析,揭示了基本架构分歧。虽然Qwen的第7层电路作为经典回忆枢纽,但发现Llama的第9层作为干扰抑制电路,其中剔除识别的头 paradoxically 提高了事实回忆。我们的结果表明,量子核可以区分这些构造(回忆)和还原(抑制)机制,提供一种高分辨率工具,用于分析注意力的细粒度拓扑结构。
英文摘要:
Mechanistic interpretability aims to reverse-engineer the internal computations of Large Language Models (LLMs), yet separating sparse semantic signals from high-dimensional polysemantic noise remains a significant challenge. This paper introduces the Quantum Sieve Tracer, a hybrid quantum-classical framework designed to characterize factual recall circuits. We implement a modular pipeline that first localizes critical layers using classical causal tracing, then maps specific attention head activations into an exponentially large quantum Hilbert space. Using open-weight models (Meta Llama-3.2-1B and Alibaba Qwen2.5-1.5B-Instruct), we perform a two-stage analysis that reveals a fundamental architectural divergence. While Qwen's layer 7 circuit functions as a classic Recall Hub, we discover that Llama's layer 9 acts as an Interference Suppression circuit, where ablating the identified heads paradoxically improves factual recall. Our results demonstrate that quantum kernels can distinguish between these constructive (recall) and reductive (suppression) mechanisms, offering a high-resolution tool for analyzing the fine-grained topology of attention.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。