通过分层动态优化语言模型多模态适配,提升图文与语音理解性能。
LF${}^{2}$AR: Accounting for Layerwise Dynamics to Improve Multimodal Adaptation of Language Models
- 引入输入端细粒度处理与输出端粗粒度重构机制,匹配分层抽象过程。
- 在135M到2B参数模型上显著增强跨模态对齐,小规模计算下即可见效。
- 注意力残差实现可解释的深层结构利用,支持快速解码提速1.9倍。
文本预训练语言模型(LMs)蕴含丰富世界知识,但将其适配以处理音频、图像等感知模态并有效利用这些知识仍具挑战。感知模态比文本更细粒度、语义密度更低,使得文本预训练中学习的功能如何复用尚不明确。本文从Transformer LMs中观察到的分层抽象-精炼动态出发:表征先变得更具抽象性和组合性,随后被精炼为预测细粒度结构的表征。该视角表明,适配模型至细粒度模态需:(i) 在输入端增加细到粗处理,在输出端进行粗到细处理,契合晚期模态融合与我们提出的‘晚期分裂’(late fission);(ii) 使输出预测器保留对高层语义结构与低层感知细节的选择性访问,从而提出使用注意力残差。我们构建了LF²AR架构实现这一思路,并在文本转图像和语音两个可控制语义对应关系的模态上进行验证。在135M至2B参数模型上,该方法提升特征抽象能力,强化跨模态对齐,使对齐在更小计算预算下即能形成,改善文本式预测结构的保持,并在文本转图像与语音版语言理解及推理基准测试中取得更优表现。此外,注意力残差诱导稀疏、可解释的深层网络使用,支持早退出解码,生成速度提升1.9倍。
原文摘要 · Abstract (English)
Text-pretrained language models (LMs) encode rich world knowledge, but adapting them to process and generate perceptual modalities such as audio and images while effectively leveraging that knowledge remains challenging. Perceptual modalities are finer-grained and less semantically dense than text, making it unclear how functions learned during text pretraining can be reused. We study this problem through the lens of a layerwise abstraction-refinement dynamic observed in transformer LMs: representations first become more abstract and compositional, then are refined into representations predictive of fine-grained structure. This perspective suggests that adapting an LM to finer-grained modalities requires: (i) allocating additional fine-to-coarse processing at the input and coarse-to-fine processing at the output, consistent with late modality fusion and an output-side analogue we term late fission; and (ii) allowing the output predictor to preserve input-dependent selective access to both high-level semantic structure and low-level perceptual detail, motivating our use of attention residuals in fission. We instantiate this view in LF${}^{2}$AR, a simple architecture combining these mechanisms, and study it on text-as-images and speech, two modalities for which semantic correspondence to text can be controlled. Across models ranging from 135M to 2B parameters and adapted to these modalities, we find that these components increase feature abstraction, strengthen cross-modal alignment, enable such alignment to emerge at smaller compute budgets, improve preservation of text-like predictive structure, and yield better performance on text-as-images and speech versions of language understanding and reasoning benchmarks. Additionally, attention residuals induce sparse, interpretable use of deep backbone layers, enabling early-exit decoding with a 1.9$\times$ generation speedup.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。