arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.01116cs.LGcs.AIcs.CL
收藏

零门控交叉注意力

Zero-Gated Cross-Attention

HRS Group(HRS集团)

Basavaraj R M, Manav Verma

AI总结:

本文提出归纳门控交叉注意力(IGCA),将其集成到三种冻结的大语言模型中,解决非文本模态注入引发的优化不稳定问题,实验显示其可显著降低训练与评估损失。

摘要:

将非文本模态注入冻结的语言模型常引发早期优化不稳定性,难以区分架构改进与短暂训练动态。本文提出归纳门控交叉注意力(IGCA),这是一种零初始化的交叉注意力桥,在初始化时保留预训练模型行为,同时支持渐进式多模态条件调整。IGCA被集成到冻结的Falcon-40B、open_llama_30b和Bloom-7b1的6个解码器层中(训练期间使用40404961288个可训练适配器参数),在初始化时是精确的代数空操作,最大输出差异为0.00e+00。在Falcon-40B上经过59500个训练步骤后,训练损失从3.9403降至0.0007(最后10步损失为[0.0001, 0.0003, 0.0005, 0.0002, 0.0005, 0.0011, 0.0005, 0.0006, 0.0005, 0.0007])。在保留的评估中,最佳门控开启检查点的损失为2.2201,而门控关闭基线的损失为4.3469,降幅达48.9%(2.1268 nat);平均保留损失从4.3423提升至2.2498(1.9075 nat),平均门控幅度为|tanh(α)|=0.0713。

英文摘要:

Injecting non-text modalities into frozen language models often introduces early optimization instability, making it difficult to separate architectural gains from transient training dynamics. We introduce Inductively Gated Cross-Attention (IGCA), a zero-initialized cross-attention bridge that preserves pretrained model behavior at initialization while enabling gradual multimodal conditioning. Integrated across six decoder layers of frozen Falcon-40B, open_llama_30b, and Bloom-7b1 backbones (with 40,404,961,288 trainable adapter parameters used during training), IGCA acts as an exact algebraic no-op at initialization with a maximum output discrepancy of 0.00e+00. Over 59,500 training steps on Falcon-40B, the training loss decreases from 3.9403 to 0.0007 (with final ten step losses of [0.0001, 0.0003, 0.0005, 0.0002, 0.0005, 0.0011, 0.0005, 0.0006, 0.0005, 0.0007]). On held-out evaluation, the best gate-on checkpoint achieves a loss of 2.2201 compared to 4.3469 for the gate-off baseline -- a 48.9% reduction (2.1268 nats) -- while average held-out loss improves from 4.3423 to 2.2498 (1.9075 nats) with a mean gate magnitude of $\vert{}\tanh(α)\vert{} = 0.0713$.

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

↑