arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.19131cs.CLcs.LGeess.SPstat.ML
收藏

Transformer中语音处理的免训练谱指纹

Training-Free Spectral Fingerprints of Voice Processing in Transformers

Devoteam

Valentin Noël

AI总结:

本研究提出免训练谱指纹分析框架,通过图信号分析Transformer注意力图的代数连通性变化,发现不同架构在语态转换下存在语言相关的特征性谱印记,可用于揭示模型架构偏差与支持可靠性分析。

摘要:

不同的Transformer架构通过截然不同的连接模式实现相同的语言计算,产生可通过谱分析检测到的模型专属“计算指纹”。我们在注意力诱导的词元图上使用图信号处理,在预设的早期窗口(第2-5层)中追踪20种语言、三个模型系列在语态转换下的代数连通性(Fiedler值,$Δλ_2$)变化。分析揭示了清晰的架构特征:Phi-3-Mini表现出显著的英语专属早期层扰动($\bar{Δλ_2}_{[2,5]}≈-0.446$),而在其他19种语言中的影响极小,这与该模型主要面向英语使用的公开说明一致。Qwen2.5-7B呈现出小幅、分布式的偏移,在形态丰富的语言中偏移幅度最大;LLaMA-3.2-1B则表现出系统性但较微弱的响应。这些谱特征与行为差异高度相关(Phi-3:$r=-0.976$),且会受到定向注意力头消融的调控,将该效应与早期注意力结构关联起来,证实了其功能相关性。综上,这些发现与“训练侧重会留下可检测的计算印记”的观点一致:专门化的处理策略会在句法转换过程中以可测量的连接模式显现。除语态转换外,该框架还能区分推理模式,表明其可作为一种简单的免训练诊断工具,用于揭示架构偏差并支持模型可靠性分析。

英文摘要:

Different transformer architectures implement identical linguistic computations via distinct connectivity patterns, yielding model imprinted ``computational fingerprints'' detectable through spectral analysis. Using graph signal processing on attention induced token graphs, we track changes in algebraic connectivity (Fiedler value, $Δλ_2$) under voice alternation across 20 languages and three model families, with a prespecified early window (layers 2--5). Our analysis uncovers clear architectural signatures: Phi-3-Mini shows a dramatic English specific early layer disruption ($\overline{Δλ_2}_{[2,5]}\!\approx\!-0.446$) while effects in 19 other languages are minimal, consistent with public documentation that positions the model primarily for English use. Qwen2.5-7B displays small, distributed shifts that are largest for morphologically rich languages, and LLaMA-3.2-1B exhibits systematic but muted responses. These spectral signatures correlate strongly with behavioral differences (Phi-3: $r=-0.976$) and are modulated by targeted attention head ablations, linking the effect to early attention structure and confirming functional relevance. Taken together, the findings are consistent with the view that training emphasis can leave detectable computational imprints: specialized processing strategies that manifest as measurable connectivity patterns during syntactic transformations. Beyond voice alternation, the framework differentiates reasoning modes, indicating utility as a simple, training free diagnostic for revealing architectural biases and supporting model reliability analysis.

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

↑