TL;DR
This paper introduces Partial YaRN and Virtual Longform Audio Training (VLAT) to extend the audio context windows of Large Audio-Language Models (LALMs) without degrading their core text capabilities. By decoupling modalities and manipulating positional encodings specifically for audio tokens, the authors enable models trained on 30-second clips to effectively understand audio files up to 10 minutes long.
What Problem Does This Paper Address?
While modern Large Language Models (LLMs) boast massive text context windows (often spanning tens or hundreds of thousands of tokens), their multimodal audio counterparts—Large Audio-Language Models (LALMs)—are severely bottlenecked. Popular LALMs like SALMONN and Qwen2-Audio are typically trained on short audio segments of 30 seconds or less. Consequently, they generalize poorly to long-form audio.
Standard context-extension techniques designed for text (like YaRN or Position Interpolation) alter the positional encodings across the entire sequence. When applied to LALMs, this uniform modification shifts the positional information of text tokens, risking the degradation of the base LLM's hard-won language capabilities. The authors tackle this by asking: Can we extend an LALM's audio context window by modifying only the audio tokens' positional encodings?
Methods
The paper proposes two core methodologies:
- Partial YaRN: A training-free, modality-decoupled context extension method. Built upon Rotary Positional Encodings (RoPE), Partial YaRN targets only the positional range of the audio tokens, leaving text token positions completely unaltered. Unlike the original YaRN framework which splits RoPE dimensions into three frequency groups, Partial YaRN simplifies this into a two-group partition (low frequencies are purely interpolated/stretched, while high frequencies are extrapolated). This ensures positional consistency across the audio stream and simplifies hyperparameter tuning.
- Virtual Longform Audio Training (VLAT): A fine-tuning strategy that repurposes Partial YaRN as a training-time positional augmentation. During training, VLAT randomly samples a "virtual" source length factor (up to 25x) and uses Partial YaRN to compress or stretch the positional window of a standard training sample. This exposes the model to a dense, continuous space of diverse audio lengths, teaching it to generalize far beyond its actual training data limits.
Datasets
Because long-form audio datasets with targeted evaluation metrics are scarce, the authors constructed a custom benchmark:
- YODAS2-MCQA: Sourced from the English subset of the YODAS2 corpus, audio samples were segmented into non-overlapping chunks of 1, 2, 5, and 10 minutes. Gemini 2.0 Flash was then used to generate 5 unique multiple-choice question-answering (MCQA) pairs per segment, ensuring questions collectively covered the entire duration of the audio.
Key Insights and Ideas
- The "Innate Context" Anchor: The authors discovered that both SALMONN and Qwen2-Audio inherently maintain stable performance for audio up to 2 minutes long, despite being trained on 30-second chunks. Crucially, anchoring the positional interpolation from this observed 2-minute context rather than the theoretical 30-second limit yielded massive performance gains for longer audio.
- Modality Decoupling Works: Preserving the exact positional encodings of text tokens prevents the language backbone from entering out-of-distribution states, allowing it to retain its native reasoning capabilities during multimodal tasks.
- Two Groups Are Better Than Three: For audio-specific token streams, the original YaRN's "in-between" frequency group introduces dimensional inconsistency, effectively stretching only parts of the audio clip. A clean binary split (pure interpolation vs. pure extrapolation) resolves this distortion.
Key Results
The proposed methods demonstrate substantial improvements in long-form audio comprehension across both training-free and fine-tuned settings:
- Training-Free Extension: When stretching from the observed 2-minute context window, Partial YaRN boosted Qwen2-Audio's accuracy on 10-minute audio from a vanilla baseline of 22.00% up to 48.00%.
- Fine-Tuning with VLAT: Qwen2-Audio models fine-tuned on 2-minute data using VLAT showed dramatic zero-shot generalization to unseen lengths. On 10-minute audio, VLAT improved vanilla inference accuracy from 32.76% to 75.11%. When combined with Partial PI at inference time, it achieved the highest overall performance of 81.73%.
Limitations and Future Work
- Evaluation Scope: The study relies exclusively on multiple-choice question answering (MCQA) to ensure clean, unambiguous evaluation metrics. Consequently, the impact of Partial YaRN on open-ended text generation and nuanced language modeling remains untested.
- Hyperparameter Tuning: Unlike standard YaRN, which uses closed-form formulas for temperature scaling, Partial YaRN currently requires a grid search over its two primary hyperparameters (cutoff dimension and attention temperature), adding computational overhead.
- Future Directions: The authors suggest that the principles of modality-decoupled positional manipulation could easily extend to video-language models (LVLMs) to handle high-dimensional, long-form video contexts.
Summary updated