arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.01145eess.AS
收藏

AlignFormer:模态匹配可实现更优的零样本指令遵循语音大语言模型

AlignFormer: Modality Matching Can Achieve Better Zero-shot Instruction-Following Speech-LLM

Ruchao Fan, Bo Ren, Yuxuan Hu, Rui Zhao, Shujie Liu, Jinyu Li

AI总结:

本文提出神经适配器 AlignFormer,通过 CTC 与动态窗口 QFormer 缩小语音和文本长度差距,仅用 ASR 数据训练即可解锁语音大语言模型的零样本指令遵循能力,并引入指令遵循率(IFR)评估方法。

摘要:

将语音集成到大语言模型(speech-LLM)近来受到越来越多的关注。主流方案是通过神经适配器连接训练良好的语音编码器与大语言模型。然而,语音序列与文本序列之间的长度不匹配问题尚未得到很好处理,导致语音与文本之间的模态匹配不够理想。在本工作中,我们提出一种新型神经适配器 AlignFormer,以缩小两种模态之间的长度差距。AlignFormer 由 CTC 层和动态窗口 QFormer 层组成,其中 CTC 对齐为 QFormer 提供动态窗口信息。大语言模型主干在训练过程中保持冻结,以保留其文本能力,尤其是指令遵循能力。仅使用 ASR 数据进行训练时,所提出的 AlignFormer 即可解锁语音大语言模型的指令遵循能力,使模型能够执行零样本语音翻译(ST)和语音问答(SQA)任务。事实上,配备 AlignFormer 的语音大语言模型理论上可以执行大语言模型主干能够处理的任何任务的语音版本。为评估具备指令遵循能力的语音大语言模型的有效性,我们提出使用指令遵循率(IFR),并为 IFR 评估提供系统性视角。此外,我们发现训练中音频的位置会影响语音大语言模型的指令遵循能力,并对此进行了深入研究。我们的研究结果表明,音频优先训练比指令优先训练获得更高的 IFR。AlignFormer 在音频优先训练下可实现接近 100% 的 IFR,而在指令优先训练下,部分评估数据上的 IFR 实现了从零到非零的颠覆性提升。我们相信,这项研究是朝着在大语言模型嵌入空间中实现语音与文本模态完美匹配迈出的重要一步。

英文摘要:

Integrating speech into LLM (speech-LLM) has gaining increased attention recently. The mainstream solution is to connect a well-trained speech encoder and LLM with a neural adapter. However, the length mismatch between the speech and text sequences are not well handled, leading to imperfect modality matching between the speech and text. In this work, we propose a novel neural adapter, AlignFormer, to reduce the length gap between the two modalities. AlignFormer consists of CTC and dynamic-window QFormer layers, where the CTC alignment provides the dynamic window information for QFormer. The LLM backbone is frozen in training to preserve its text capability, especially the instruction following capability. When training with ASR data only, the proposed AlignFormer unlocks the instruction following capability for speech-LLM and the model can perform zero-shot speech translation (ST) and speech question answering (SQA) tasks. In fact, speech-LLM with AlignFormer can theoretically perform any tasks that the LLM backbone can deal with in the speech version. To evaluate the effectiveness of the instruction-following speech-LLM, we propose to use instruction following rate (IFR) and offer a systematic perspective for the IFR evaluation. In addition, we find that the audio position in training would affect the instruction following capability of speech-LLM and conduct an in-depth study on it. Our findings show that audio-first training achieves higher IFR than instruction-first training. The AlignFormer can achieve a near 100% IFR with audio-first training and game-changing improvements from zero to non-zero IFR on some evaluation data with instruction-first training. We believe that this study is a big step towards the perfect speech and text modality matching in the LLM embedding space.

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

↑