Reproduce “Inf-MLLM: Efficient Streaming Inference of Multimodal Large Language Models on a Single GPU” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zhenyu Ning, Jieru Zhao, Qihao Jin, Wenchao Ding, Minyi Guo

This research from Shanghai Jiao Tong University and Fudan University introduces Inf-MLLM, a framework that enables efficient streaming inference of Multimodal Large Language Models on a single GPU by dynamically managing the Key-Value cache. The system allows models to extend context length to millions of tokens for text and over an hour for videos, overcoming Out-of-Memory issues and maintaining high reasoning quality.

Key insights

  • Attention patterns in MLLMs exhibit "attention saddles" (recent, video, and scattered high-attention tokens) and a forward-shifting attention focus over multi-round inference.
  • Dynamically identifying and retaining these high-attention tokens (attention saddles) along with recent tokens is crucial for efficient KV cache management in streaming MLLMs.
  • An attention bias, which gives older tokens a negative weight, helps counteract score degradation and enables better retention of long-term dependencies in continuous streams.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.