Paper Review: Audio Flamingo 2: An Audio-Language Model with Long-Audio Understanding and Expert Reasoning Abilities

Paper Review: Audio Flamingo 2: An Audio-Language Model with Long-Audio Understanding and Expert Reasoning Abilities

Paper Review: Audio Flamingo 2: An Audio-Language Model with Long-Audio Understanding and Expert Reasoning Abilities

Paper

Code

Project

Main image

Audio Flamingo 2 is an Audio-Language Model with superior audio understanding and reasoning capabilities. AF2 achieves state-of-the-art efficiency with a compact 3B parameter mannequin, surpassing bigger open-source and proprietary fashions throughout 20+ benchmarks. Key elements embody a customized CLAP mannequin, artificial Audio QA knowledge, and a multi-stage curriculum studying technique. AF2 extends audio understanding to lengthy segments (30 secs to five minutes) and introduces LongAudio, a dataset for lengthy audio captioning and question-answering, as ell as LongAudioBench, an expert-annotated benchmark for long-audio understanding.

The structure

The architecture

AF-CLAP is an improved model of the CLAP audio encoder, designed to reinforce linguistic robustness and compositional reasoning in Audio-Language Models. Standard CLAP fashions battle with restricted high-quality coaching knowledge and inconsistencies in linguistic variations and sound relationships. AF-CLAP addresses these points via:

Compositional Reasoning

  • Expanded Training Dataset: over 8M high-quality audio-caption pairs collected from open-source long-video datasets and brief audios. Automated captioning with GPT-4o generates 5.5M new pairs, making certain better range and area protection.
  • Enhanced Training Objective – improves linguistic invariance by producing a number of semantically equivalent captions and enhances compositional reasoning utilizing composition-aware negatives to seize relationships between sound occasions.
  • Contrastive Learning with Hard Negatives – incorporates M optimistic and M x N unfavourable samples in every batch to enhance alignment between textual content and audio embeddings.

Training process

AF2 extracts dense audio options from the penultimate layer of AF-CLAP, producing higher-quality representations in comparison with imply pooling. For longer audio, a non-overlapping sliding window strategy is used, with RoPE encoding to encode temporal data.

To improve mannequin capability, AF2 applies three self-attention layers. Gated cross-attention layers situation audio representations on the LLM, decreasing quadratic consideration complexity to linear complexity.

AF2 makes use of Qwen2.5-3B as a base mannequin.

Training knowledge

AudioSkills

AudioAbilities is an artificial audio reasoning dataset designed to reinforce problem-solving and reasoning skills past fundamental acoustic occasion classification. It consists of ~4.2M QA pairs generated from open-source sound and music datasets, artificial audio, and GPT-4o-generated metadata.

The dataset covers seven key reasoning expertise:

  • Temporal Reasoning: understanding occasion order, attribute adjustments, and temporal grounding in audio.
  • Attribute Identification: recognizing sound traits, similar to depth or speaker gender.
  • Counting: figuring out the variety of sound occurrences throughout three problem ranges.
  • Contextual Sound Event Reasoning: figuring out the aim of sounds primarily based on their context.
  • Contextual Speech Event Reasoning: understanding spoken utterances in relation to surrounding sounds.
  • Information Extraction: analyzing detailed content material and exterior world information in audio.
  • General Reasoning: addressing advanced eventualities requiring a number of reasoning expertise.

LongAudio

LongAudio is the primary large-scale lengthy audio understanding dataset, it has 80K+ distinctive audios and 263K AQA pairs. To guarantee range, movies are clustered and selectively sampled, with captions generated utilizing Qwen2-VL-2B-Instruct and Qwen2-Audio, whereas GPT-4o creates reasoning-based questions.

LongAudioBench is a high-quality benchmark subset, it consists of 2429 human-verified cases sampled from LongAudio. GPT-4o is used as a decide for analysis, scoring responses from 1 to 10 primarily based on correctness.

Training technique

AF2 is educated utilizing a 3-stage curriculum studying technique, progressively rising audio context size and knowledge high quality:

  1. Pre-training aligns audio representations with the LLM utilizing large-scale, noisy classification and captioning datasets with some high-quality QA knowledge. CLAP and LLM layers are frozen, solely audio illustration transformation and gated cross-attention layers are educated. Audio context is 30 seconds.
  2. Fine-tuning (instruction-tuning) enhances audio understanding and reasoning utilizing high-quality short-audio classification, captioning, and QA datasets. LLM layers are frozen, however CLAP, audio illustration transformation, and gated cross-attention layers are educated. Audio context is 1.5 minutes.
  3. Long Fine-tuning extends context size and trains long-audio reasoning expertise utilizing LongAudio dataset. Only audio transformation and gated cross-attention layers are trainable. Audio context is 5 minutes.

Experiments

The mannequin is educated utilizing 128 NVIDIA A100 80GB GPUs.

Results

AF2 outperforms bigger fashions regardless of having a smaller 3B LLM, excelling in each foundational audio understanding and expert-level reasoning throughout customary benchmarks.

Results2

HI-FI News

by way of artgor https://ift.tt/FYEWC6u

March 17, 2025 at 05:54AM