UniAudio 1.5: Large Language Model-driven Audio Codec is A Few-shot Audio Task Learner
Dongchao Yang, Haohan Guo, Yuanyuan Wang, Rongjie Huang, Xiang Li, Xu Tan, Xixin Wu, Helen Meng
TL;DR
The paper introduces LLM-Codec, a three-layer residual vector quantization codec that compresses audio into the token space of a frozen large language model (LLM), enabling cross-modal in-context learning for unseen audio tasks without parameter updates. By mapping audio to a lexical token sequence (approximately 57 tokens per second) and aligning the first layer semantically, the approach allows LLAMA-2 based prompts to perform both audio understanding and generation tasks in a few-shot setting. Key contributions include the semantic-guided RVQ design, fixed codebooks initialized from the LLM vocabulary, and semantic/consistency losses that stabilize training, along with an open-source release of LLM-Codec. Overall, UniAudio 1.5 demonstrates feasible few-shot cross-modal capabilities across topics like speech emotion classification, sound event detection, and simple text-to-speech, highlighting a path toward universal audio foundation models with minimal fine-tuning.
Abstract
The Large Language models (LLMs) have demonstrated supreme capabilities in text understanding and generation, but cannot be directly applied to cross-modal tasks without fine-tuning. This paper proposes a cross-modal in-context learning approach, empowering the frozen LLMs to achieve multiple audio tasks in a few-shot style without any parameter update. Specifically, we propose a novel and LLMs-driven audio codec model, LLM-Codec, to transfer the audio modality into the textual space, \textit{i.e.} representing audio tokens with words or sub-words in the vocabulary of LLMs, while keeping high audio reconstruction quality. The key idea is to reduce the modality heterogeneity between text and audio by compressing the audio modality into a well-trained LLMs token space. Thus, the audio representation can be viewed as a new \textit{foreign language}, and LLMs can learn the new \textit{foreign language} with several demonstrations. In experiments, we investigate the performance of the proposed approach across multiple audio understanding and generation tasks, \textit{e.g.} speech emotion classification, audio classification, text-to-speech generation, speech enhancement, etc. The experimental results demonstrate that the LLMs equipped with the proposed LLM-Codec, named as UniAudio 1.5, prompted by only a few examples, can achieve the expected functions in simple scenarios. It validates the feasibility and effectiveness of the proposed cross-modal in-context learning approach. To facilitate research on few-shot audio task learning and multi-modal LLMs, we have open-sourced the LLM-Codec model.
