Omni-modal Compression can be Surprisingly Simple

Omni-modal large models convert a segment of audio and video into thousands of tokens, resulting in high inference overhead. Through controlled experiments, the authors found that handcrafted metrics such as keyframe selection and cross-modal pairing are not more effective than the model's own attention saliency. Consequently, they proposed SOC, a training-free method that allocates token budgets uniformly over time, retains salient and diverse tokens within each frame, and refines visual context in intermediate layers using attention from question tokens. The implementation utilizes custom Triton kernels and is integrated with vLLM.

Original Title: Omni-modal Compression can be Surprisingly Simple

Omni-modal large models convert a segment of audio and video into thousands of tokens, resulting in high inference overhead. Through controlled experiments, the authors found that handcrafted metrics such as keyframe selection and cross-modal pairing are not more effective than the model's own attention saliency. Consequently, they proposed SOC, a training-free method that allocates token budgets uniformly over time, retains salient and diverse tokens within each frame, and refines visual context in intermediate layers using attention from question tokens. The implementation utilizes custom Triton kernels and is integrated with vLLM.

Why It Matters Many compression methods calculate additional scores, which actually slows down inference. The authors claim that their approach converts reduced computation into real speedups, whereas complex methods can sometimes be slower than no compression at all.

Likes 4 · Code Stars 3

Reasons

  • The paper claims that for audio-visual question answering, long-text generation, and multi-turn dialogue, retaining 15% to 45% tokens matches or exceeds six existing compression methods, with the advantage becoming more pronounced as compression becomes more aggressive.
  • The paper claims that on LongShOT, using a 30B-A3B model and retaining 35% tokens results in a 1.66x inference speedup, while some more complex methods are slower than no compression.
  • The code is licensed under Apache-2.0. The unified entry point includes six comparison methods such as FastV, SparseVLM, and DyCoke, along with a profiling.py script for measuring latency, FLOPs, and memory usage. The code has 3 stars, which only indicates attention level.

Usage

  • VENV_DIR="$PWD/.venv" bash scripts/setup_env.sh to create the environment (defaulting to Python 3.13, PyTorch 2.11, and CUDA 13)
  • python download.py --repo-name Qwen/Qwen2.5-Omni-3B --local-dir <model_directory> to download the model, and python download.py --repo-name liarliar/Daily-Omni to download the benchmark
  • python run_SOC.py --dataset daily-omni --method soc --ratio 0.35 --model <model_directory> --data_root <data_directory> --limit 10; replace --method with fastv, etc., for comparisons

Risks

  • Currently, this is an evaluation framework. The README lists only Qwen2.5-Omni-3B / 7B and Qwen3-Omni-30B-A3B models, with no instructions for online service deployment.
  • The OmniPack comparison results were reproduced by the authors based on the paper. The README states that official code will be added once available.
  • Speedup figures are provided only for the 30B-A3B model on LongShOT. For other models and hardware, you must measure performance yourself using profiling.py.

Open · Code · Paper Page

Hugging Face Daily Papers

Explore the latest AI Radar updates