Qwen2-Audio Technical Report

Yunfei Chu, Jin Xu, Qian Yang, Haojie Wei, Xipin Wei, Zhifang Guo, Yichong Leng, Yuanjun Lv, Jinzheng He, Junyang Lin, Chang Zhou, Jingren ZhouarXiv 2024

Abstract

We introduce the latest progress of Qwen-Audio, a large-scale audio-language model called Qwen2-Audio, which is capable of accepting various audio signal inputs and performing audio analysis or direct textual responses with regard to speech instructions. In contrast to complex hierarchical tags, we have simplified the pre-training process by utilizing natural language prompts for different data and tasks, and have further expanded the data volume. We have boosted the instruction-following capability of Qwen2-Audio and implemented two distinct audio interaction modes for voice chat and audio analysis. In the voice chat mode, users can freely engage in voice interactions with Qwen2-Audio without text input. In the audio analysis mode, users could provide audio and text instructions for analysis during the interaction. Note that we do not use any system prompts to switch between voice chat and audio analysis modes. Qwen2-Audio is capable of intelligently comprehending the content within audio and following voice commands to respond appropriately. Additionally, DPO has optimized the model's performance in terms of factuality and adherence to desired behavior. According to the evaluation results from AIR-Bench, Qwen2-Audio outperformed previous SOTAs, such as Gemini-1.5-pro, in tests focused on audio-centric instruction-following capabilities. Qwen2-Audio is open-sourced with the aim of fostering the advancement of the multi-modal language community.

Introduction

While Large Language Models (LLMs) have achieved remarkable success in text processing, extending these capabilities to the audio domain presents unique challenges. Existing Large Audio-Language Models (LALMs) often rely on rigid hierarchical tagging systems to categorize speech, music, and environmental noise during pre-training. This creates a significant "gap" between pre-training objectives and real-world natural language instructions. Furthermore, many models struggle with "mixed" audio environments or require explicit system prompts to switch between conversational and analytical modes.

Qwen2-Audio addresses these limitations by scaling to 8.2 billion parameters and replacing complex tags with natural language prompts. It introduces two seamless interaction modes—Voice Chat and Audio Analysis—and demonstrates superior performance on audio-centric instruction-following benchmarks, even surpassing proprietary models like Gemini-1.5-pro.

Methodology

The development of Qwen2-Audio follows a robust three-stage training pipeline designed to bridge the gap between audio perception and language understanding.

The Qwen2-Audio training pipeline, including Multi-Task Pre-training, Supervised Fine-Tuning (SFT), and Direct Preference Optimization (DPO).

Architecture

The model architecture integrates a Whisper-large-v3 encoder with a Qwen-7B language model. To manage long audio sequences, a pooling layer reduces the audio representation length, ensuring each output frame corresponds to approximately 40ms of the original signal. The resulting model contains 8.2 billion parameters.

Simplified Pre-training and Alignment

Unlike previous iterations that used specialized tags, Qwen2-Audio utilizes natural language prompts (e.g., "Generate the caption in English") across a diverse range of tasks. This approach enhances the model's ability to generalize to novel instructions. Following pre-training, the model undergoes Supervised Fine-Tuning (SFT) on curated datasets. Finally, Direct Preference Optimization (DPO) is applied to align the model with human preferences, significantly improving factuality and formatting adherence.

Data and Evaluation

The training data for Qwen2-Audio is massive in scale, comprising 370,000 hours of speech, 140,000 hours of music, and 10,000 hours of environmental sound. Evaluation was conducted across 13 diverse datasets covering:

  • Automatic Speech Recognition (ASR): Librispeech, Aishell2, Common Voice 15, and Fleurs.
  • Speech-to-Text Translation (S2TT): CoVoST2.
  • Emotion and Sound Classification (SER/VSC): Meld and VocalSound.
  • AIR-Bench: A specialized benchmark for audio-centric instruction-following.

Results and Discussion

Qwen2-Audio achieves state-of-the-art (SOTA) performance across multiple benchmarks, demonstrating its versatility and robustness.

Radar chart comparing Qwen2-Audio against its predecessor and previous top-tier models across various audio benchmarks.

Key Performance Metrics

  • Instruction Following: On the AIR-Bench, Qwen2-Audio scored 7.18 in speech and 6.77 in mixed-audio categories, outperforming Gemini-1.5-pro (6.97 and 5.27, respectively).
  • ASR and Translation: The model achieved a Word Error Rate (WER) of 1.6% on Librispeech "test-clean" and a BLEU score of 45.2 on CoVoST2 English-to-Chinese translation, surpassing previous leaders like SALMONN.
  • Autonomous Command Discernment: A standout feature is the model's ability to distinguish voice commands from background audio data without explicit prompts. It can process an audio segment containing multi-speaker conversations and a specific command (e.g., "What is that sound?") to provide an accurate response.

The Impact of DPO

While DPO is a standard technique for text-based LLMs, its application here proves highly effective for audio. It reduces "hallucinations" in audio descriptions and ensures the model adheres more closely to user-specified formats and behaviors.

Conclusion and Future Work

Qwen2-Audio represents a significant step forward in multimodal AI, offering a unified model for both audio analysis and voice interaction. While currently limited to "audio-in, text-out" modality, its open-source release aims to foster further innovation. Future work may explore expanding the model's output to include direct speech generation and further refining safety filters to balance helpfulness with security.

Summary updated

BibTeX
@misc{chu2024qwen,
  author = {Yunfei Chu and Jin Xu and Qian Yang and Haojie Wei and Xipin Wei and Zhifang Guo and Yichong Leng and Yuanjun Lv and Jinzheng He and Junyang Lin and Chang Zhou and Jingren Zhou},
  title = {{Qwen2-Audio Technical Report}},
  year = {2024},
  eprint = {2407.10759},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.10759},
}
Figure