混合语言模型中RNN与Transformer如何分工?
How Do RNNs and Transformers Divide Labor in Hybrid Language Models?
AI总结:
该研究探究混合语言模型中RNN与Transformer的分工,提出HybridGDN-FLA等方法,在保持与Qwen3.5高一致性的同时大幅降低循环状态存储。
摘要:
混合语言模型通过将线性RNN与全局注意力交错排列以减少KV缓存内存。在受控预训练和Qwen3.5检索探测实验中,上游RNN通过将局部移位(滞后1)与跨块状态传输(滞后0)相链来构成消歧键,而全局注意力则读取对应的值。简化的优化模型表明,快速循环捷径会削弱跨层电路的训练信号,并提高破坏未形成电路所需的局部移位强度。在我们的五种子比较中,带查询拆分的标量门ShortConv-2实现了最低的远距离代码困惑度,且状态探测显示较低能量的循环模式与多跳检索相关。HybridGDN-FLA结合了双边Ruiz均衡与单遍更新,在来自五个领域的固定输入上,与未压缩的Qwen3.5-4B和9B的宏顶级1下一个令牌一致性分别保持98.78%和98.80%,同时将循环状态存储从48.0 MiB减少到12.4 MiB。代码可在此URL获取。
英文摘要:
Hybrid language models interleave linear RNNs with global attention to reduce KV-cache memory. Across controlled pretraining and Qwen3.5 retrieval probes, upstream RNNs compose disambiguated keys by chaining local shifts (lag-1) with cross-chunk state transport (lag-0), and global attention reads the corresponding values. A reduced optimization model shows that a fast recurrent shortcut weakens the training signal to the cross-layer circuit and raises the local shift strength needed to destabilize the unformed circuit. Scalar-gated ShortConv-2 with query splitting achieves the lowest distant code perplexity in our five-seed comparison, and state probes associate lower-energy recurrent modes with multi-hop retrieval. HybridGDN-FLA pairs bilateral Ruiz equilibration with single-pass updates, reducing recurrent state storage from 48.0 to 12.4 MiB while retaining 98.78% and 98.80% macro top-1 next-token agreement with uncompressed Qwen3.5-4B and 9B, respectively, on fixed inputs from five domains. Code is available at this https URL
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。