无需微调,用压缩记忆实现多模态长文本高效适配
Efficient Multi-modal Long Context Learning for Training-free Adaptation
- 将示例直接嵌入输入,通过分块压缩和逐层剪枝生成紧凑记忆
- 在多个视觉语言基准上表现媲美甚至超越传统长上下文方法
- 适合资源受限场景下的多模态模型快速适配
传统多模态大模型任务适配依赖微调。本文提出无需训练的高效多模态长上下文学习(EMLoC),将示范样本直接嵌入模型输入。针对超长输入带来的计算与内存开销,EMLoC引入分块压缩机制与逐层自适应剪枝,基于Jensen-Shannon散度约束,在不损失性能的前提下显著降低推理复杂度。该方法首次无缝融合压缩与剪枝技术于多模态长上下文学习,提供可扩展、高效的实用方案。在多个视觉-语言基准上的实验表明,EMLoC性能达到或超过朴素长上下文方法。结果验证了其在资源受限环境下多模态模型高效灵活适配的潜力。代码已公开于https://github.com/Zehong-Ma/EMLoC。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。