超越因果掩码:自适应序列模型中隐藏的未来令牌泄漏的审计与定位
Beyond Causal Masks: Auditing and Localizing Hidden Future-Token Leakage in Adaptive Sequence Models
AI总结:
本研究发现自适应残差路由解码器存在隐藏的未来令牌泄漏问题,通过前缀不变性审计等工具定位到故障根源,经因果修复后消除泄漏,证明教师强制低损失需结合因果检查与自由运行评估。
摘要:
隐藏的未来令牌泄漏会造成虚假的架构收益:自回归模型在教师强制评估下可能表现得明显更好,而其自由运行生成则会恶化。我们研究了自适应残差路由解码器中的这一故障,该解码器的序列级路由摘要尽管使用了正确的因果注意力掩码,仍会将前缀位置暴露给未来令牌。一个异常的24层检查点将验证损失从基线的3.5958降至1.4259,但它未通过前缀不变性审计,且在生成过程中具有明显更高的参考模型困惑度。分层诊断和实现检查将违规追溯到通过动态路由查询路径广播的全序列摘要。两个独立训练的12层因果修复消除了可检测的泄漏,并将验证损失和参考困惑度恢复到控制规模,消除了明显的巨大优势。作为诊断工具,我们使用已建立的前缀不变性契约、最大前缀输出差异(LeakScore)、互补行为指标和分层轮廓。支持实验涵盖了跨越五个模块家族的六对合成实现、干净的预训练控制、受控故障注入以及跨数值精度的缓存一致性。这些结果表明,隐藏的未来令牌访问如何产生误导性的架构进展主张,以及为何较低的教师强制损失应与全模型因果检查和自由运行评估一起解释。
英文摘要:
Hidden future-token leakage can create false architectural gains: an autoregressive model may appear substantially better under teacher-forced evaluation while its free-running generation deteriorates. We investigate this failure in an adaptive residual-routing decoder whose sequence-level routing summary exposes prefix positions to future tokens despite a correct causal attention mask. An anomalous 24-layer checkpoint reduces validation loss from the baseline's 3.5958 to 1.4259, yet it fails a prefix-invariance audit and has substantially higher reference-model perplexity during generation. Layer-wise diagnostics and implementation inspection trace the violation to a full-sequence summary broadcast through the dynamic routing-query path. Two independently trained 12-layer causal repairs eliminate detectable leakage and return validation loss and reference perplexity to the control scale, removing the large apparent advantage. As diagnostic tools, we use the established prefix-invariance contract, maximum prefix-output discrepancy (LeakScore), complementary behavioral metrics, and layer-wise profiles. Supporting experiments cover six synthetic implementation pairs spanning five module families, clean pretrained controls, controlled fault injection, and cache consistency across numerical precisions. These results illustrate how hidden future-token access can produce misleading claims of architectural progress and why lower teacher-forced loss should be interpreted together with whole-model causal checks and free-running evaluation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。