Efficient Multi-modal Long Context Learning for Training-free Adaptation

Zehong Ma, Shiliang Zhang, Longhui Wei, Qi Tian
2/14/2026

No official code found. Best implementation: Zehong-Ma/EMLoC (20 stars, last commit 2025-12-27).

Abstract

Traditional approaches to adapting multi-modal large language models (MLLMs) to new tasks have relied heavily on fine-tuning. This paper introduces Efficient Multi-Modal Long Context Learning (EMLoC), a novel training-free alternative that embeds demonstration examples directly into the model input. EMLoC offers a more efficient, flexible, and scalable solution for task adaptation. Because extremely lengthy inputs introduce prohibitive computational and memory overhead, EMLoC contributes a chunk-wise compression mechanism combined with layer-wise adaptive pruning. It condenses long-context multimodal inputs into compact, task-specific memory representations. By adaptively pruning tokens at each layer under a Jensen-Shannon divergence constraint, our method achieves a dramatic reduction in inference complexity without sacrificing performance. This approach is the first to seamlessly integrate compression and pruning techniques for multi-modal long-context learning, offering a scalable and efficient solution for real-world applications. Extensive experiments on diverse vision-language benchmarks demonstrate that EMLoC achieves performance on par with or superior to naive long-context approaches. Our results highlight the potential of EMLoC as a groundbreaking framework for efficient and flexible adaptation of multi-modal models in resource-constrained environments. Codes are publicly available at https://github.com/Zehong-Ma/EMLoC.

View on arXivView PDF

Code Implementations(1)

Zehong-Ma/EMLoCCommunity59%

Official repository for Efficient Multi-modal Long Context Learning for Training-free Adaptation (ICML 2025)

200C, C++May 23, 20259 months ago

Cite this paper

@article{ma2026efficient,
  title  = {Efficient Multi-modal Long Context Learning for Training-free Adaptation},
  author = {Zehong Ma and Shiliang Zhang and Longhui Wei and Qi Tian},
  year   = {2026},
  eprint = {2505.19812},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.19812},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.19812.svg)](https://codeofpaper.com/paper/2505.19812)

Discussion