arXiv:2412.01145eess.AS2024-12被引 26

用新适配器让语音模型零样本听懂指令,实现语音问答和翻译。

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

  • 设计动态窗口适配器,解决语音与文本长度不匹配问题。
  • 音频优先训练下指令遵循率接近100%,零样本任务性能大幅提升。
  • 适合做语音理解、语音交互的开发者,尤其关注零样本能力者。

将语音融入大语言模型(speech-LLM)近年来受到广泛关注。主流方法是用神经适配器连接预训练语音编码器与大语言模型,但语音与文本序列长度不匹配导致模态对齐不佳。本文提出新型适配器AlignFormer,包含CTC与动态窗口QFormer层,其中CTC提供动态窗口信息给QFormer。训练时冻结大语言模型主干以保留其文本能力,尤其是指令遵循能力。仅使用ASR数据训练时,AlignFormer使语音-LLM具备指令遵循能力,可零样本完成语音翻译(ST)和语音问答(SQA)任务。理论上,该模型可处理任何大语言模型主干能应对的文本任务的语音版本。为评估指令遵循能力,提出指令遵循率(IFR),并系统分析其评价方法。发现训练中音频位置影响指令遵循能力:音频优先训练比指令优先训练表现更优。音频优先训练下,IFR接近100%;指令优先训练在部分数据上实现从零到非零的质变提升。本研究推动了语音与文本在大模型嵌入空间中的理想模态对齐。

原文摘要 · Abstract (English)

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.

语音生成多模态指令遵循零样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。