paper-with-me

Papers

Compressing Many-Shots in In-Context Learning

2025-10-17 · Devvrit Khatri, Pranamya Kulkarni, Nilesh Gupta, Yerram Varun, Liqian Peng, Jay Yagnik, Praneeth Netrapalli, Cho-Jui Hsieh, Alec Go, Inderjit S Dhillon, Aditya Kusupati, Prateek Jain arxiv

Large Language Models (LLMs) have been shown to be able to learn different tasks without explicit finetuning when given many input-output examples / demonstrations through In-Context Learning (ICL). Increasing the number of examples, called ``shots'', improves downstream task performance but incurs higher memory and computational costs. In this work, we study an approach to improve the memory and computational efficiency of ICL inference by compressing the many-shot prompts. Given many shots comprising t tokens, our goal is to generate a m soft-token summary, where m < t. We first show that existing prompt compression methods are ineffective for many-shot compression, and simply using fewer shots as a baseline is surprisingly strong. To achieve effective compression, we find that: (a) a stronger compressor model with more trainable parameters is necessary, and (b) compressing many-shot representations at each transformer layer enables more fine-grained compression by providing each layer with its own compressed representation. Based on these insights, we propose MemCom, a layer-wise compression method. We systematically evaluate various compressor models and training approaches across different model sizes (2B and 7B), architectures (Gemma and Mistral), many-shot sequence lengths (3k-6k tokens), and compression ratios (3x to 8x). MemCom outperforms strong baselines across all compression ratios on multiple classification tasks with large label sets. Notably, while baseline performance degrades sharply at higher compression ratios, often by over 20-30%, MemCom maintains high accuracy with minimal degradation, typically dropping by less than 10%.

📄 PDF Abstract BibTeX arXiv:2510.16092

Code (0)

등록된 구현이 없습니다.

Tasks

Computational Efficiency

Similar Papers 제목 키워드 기반

RIDDLE: Lidar Data Compression with Range Image Deep Delta Encoding

2022-06-02 · CVPR 2022 1 · Xuanyu Zhou, Charles R. Qi, Yin Zhou, Dragomir Anguelov

Lidars are depth measuring sensors widely used in autonomous driving and augmented reality. However, the large volume of data produced by lidars can lead to high costs in data storage and transmission. While lidar data c…

Autonomous DrivingData CompressionImage Compression

Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning

2024-06-21 · Brandon Huang, Chancharik Mitra, Assaf Arbelle, Leonid Karlinsky 외

The recent success of interleaved Large Multimodal Models (LMMs) in few-shot learning suggests that in-context learning (ICL) with many examples can be promising for learning new tasks. However, this many-shot multimodal…

Few-Shot LearningIn-Context Learning

Rethinking Token Pruning for Historical Screenshots in GUI Visual Agents: Semantic, Spatial, and Temporal Perspectives

2026-03-27 · Daiqiang Li, Zihao Pan, Zeyu Zhang, Ronghao Chen 외 arxiv

In recent years, GUI visual agents built upon Multimodal Large Language Models (MLLMs) have demonstrated strong potential in navigation tasks. However, high-resolution GUI screenshots produce a large number of visual tok…

AdapShot: Adaptive Many-Shot In-Context Learning with Semantic-Aware KV Cache Reuse

2026-05-05 · Jie Ou, Jinyu Guo, Shiyao Guo, Yuang Li 외 arxiv

Many-Shot In-Context Learning (ICL) has emerged as a promising paradigm, leveraging extensive examples to unlock the reasoning potential of Large Language Models (LLMs). However, existing methods typically rely on a pred…

CAPED: Context-Aware Privacy Exposure Defense for Mobile GUI Agents

2026-06-10 · Siyu Shen, Fenghao Xu, Wenrui Diao, Kehuan Zhang arxiv

Screenshot-based mobile GUI agents can operate ordinary smartphone apps through the same visual interface as a human user, but this capability also turns every screen observation into a privacy boundary. During normal ta…