UniICL: An Efficient ICL Framework Unifying Compression, Selection, and Generation

In-context learning (ICL) enhances the reasoning abilities of Large Language Models (LLMs) by prepending a few demonstrations.It motivates researchers to introduce more examples to provide additional contextual information for the generation.However, existing methods show a significant limitation due to the problem of excessive growth in context length, which causes a large hardware burden.In addition, shallow-relevant examples selected by off-the-shelf tools hinder LLMs from capturing useful contextual information for generation.In this paper, we propose UniICL, a novel Unified ICL framework that unifies demonstration compression, demonstration selection, and final response generation.Furthermore, to boost inference efficiency, we design a tailored compression strategy that allows UniICL to cache compression results into Demonstration Bank (DB), which avoids repeated compression of the same demonstration.Extensive outof-domain evaluations prove the advantages of UniICL in both effectiveness and efficiency.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.24
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

UniICL: An Efficient ICL Framework Unifying Compression, Selection, and Generation

Tsung-Ching Wu, Wenjie Li, Zili Wang, Jun Gao et al.
Algorithms and Data Compression
article

UniICL: An Efficient ICL Framework Unifying Compression, Selection, and Generation

Tsung-Ching Wu, Wenjie Li, Zili Wang, Jun Gao, Ziqiang Cao, Qi Lv
article en

Abstract

In-context learning (ICL) enhances the reasoning abilities of Large Language Models (LLMs) by prepending a few demonstrations.It motivates researchers to introduce more examples to provide additional contextual information for the generation.However, existing methods show a significant limitation due to the problem of excessive growth in context length, which causes a large hardware burden.In addition, shallow-relevant examples selected by off-the-shelf tools hinder LLMs from capturing useful contextual information for generation.In this paper, we propose UniICL, a novel Unified ICL framework that unifies demonstration compression, demonstration selection, and final response generation.Furthermore, to boost inference efficiency, we design a tailored compression strategy that allows UniICL to cache compression results into Demonstration Bank (DB), which avoids repeated compression of the same demonstration.Extensive outof-domain evaluations prove the advantages of UniICL in both effectiveness and efficiency.

Openalex Percentile: Top 90%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.