Abstract: In this work, we present FastAV, the first token pruning framework tailored for audio-visual large language models (AV-LLMs). While token pruning has been actively explored in standard large language models (LLMs) and vision-language models (LVLMs), its application to AV-LLMs has received little attention, even though multimodal integration substantially increases their token demands. To address this gap, we introduce a pruning strategy that utilizes attention weights to identify tokens emphasized at different stages and estimates their importance. Building on this analysis, FastAV applies a two-stage pruning strategy: (1) global pruning in intermediate layers to remove broadly less influential tokens, and (2) fine pruning in later layers considering the impact on next token generation. Notably, our method does not rely on full attention maps, which makes it fully compatible with efficient attention mechanisms such as FlashAttention. Extensive experiments demonstrate that FastAV reduces FLOPs by more than 40% on two representative AV-LLMs, while preserving or even improving model performance.
Introduction
Large Language Models (LLMs) are increasingly being extended to handle multimodal inputs like video and audio. However, these "AV-LLMs" face a massive "token tax": a single video clip can generate thousands of visual and audio tokens, leading to high memory usage and slow inference. While researchers have developed pruning methods for text-only LLMs and vision-language models (LVLMs), AV-LLMs present a unique challenge. They must integrate three distinct streams (text, audio, and video), and it wasn't previously clear which tokens are truly essential for reasoning. Existing pruning methods often rely on full attention maps, which are computationally expensive and incompatible with modern, optimized kernels like FlashAttention.
The FastAV Framework
The authors introduce FastAV, which employs a two-stage pruning approach based on an analysis of how information flows through the transformer layers.
Analysis via Attention Rollout
The researchers used "attention rollout" to trace token influence across layers. They discovered that by the middle layers (e.g., layer 14 of 28), the model's attention stabilizes, focusing heavily on a small set of "anchor" tokens. A key insight of the paper is that "raw" attention weights in a single layer are a poor indicator of token importance. Cumulative "attention rollout" provides a much clearer signal for which tokens are actually driving the model's logic.
Two-Stage Pruning Strategy
- Stage 1: Global Pruning: At the middle layer ($L/2$), FastAV performs a one-time "global" prune. It identifies and removes tokens that have low cumulative influence according to the attention rollout. In practice, this often removes a large portion of later video frames and redundant audio segments.
- Stage 2: Fine Pruning: In the remaining layers, FastAV performs "fine-grained" pruning. Instead of calculating a full attention matrix, it only looks at the attention weights of the last query token (the one responsible for predicting the next word). It progressively discards the least important $P\%$ of tokens at each subsequent layer.
Crucially, because the fine pruning only requires the last query's attention vector, the method is fully compatible with FlashAttention, making it practical for real-world deployment.
Key Insights and Results
- The "Anchor" Phenomenon: Attention in AV-LLMs isn't uniform. After the middle layers, the model's focus shifts decisively toward early tokens in the sequence, which act as anchors for the rest of the generation process.
- Massive Audio Redundancy: One of the most striking findings was the redundancy in audio tokens. For VideoLLaMA2, the authors were able to prune the number of audio tokens from 1,496 down to just 10 without degrading performance.
- Pruning as a Denoiser: Interestingly, pruning didn't just maintain accuracy—it sometimes improved it. On the AVHBench "matching" task, VideoLLaMA2's accuracy jumped by over 10%. This suggests that removing uninformative tokens helps the model focus and reduces the likelihood of multimodal hallucinations.
Performance Summary
The authors evaluated FastAV on VideoLLaMA2 and video-SALMONN2 across benchmarks like AVQA, MUSIC-AVQA, and AVHBench. FastAV reduced theoretical FLOPs by over 40% across both tested models. On VideoLLaMA2, inference latency dropped from 0.43s to 0.32s per token, and GPU memory consumption was reduced from 22GB to 19GB.
Conclusion
FastAV demonstrates that intelligent token pruning can significantly accelerate AV-LLM inference without sacrificing accuracy. By leveraging attention rollout for global pruning and query-based fine pruning, it provides a robust and efficient framework for multimodal reasoning. Future work will explore dynamic thresholds and training-time integration to further optimize these models.
Summary updated