mlsanityData to 7 Oct 2026

Divide, Reweight, and Conquer: A Logit Arithmetic Approach for In-Context Learning

arXiv 2410.10074 ↗First posted 14 Oct 2024cs.LG cs.AI cs.CLcited by 9

Not on the map. Why?

Abstract (arXiv)

In-Context Learning (ICL) emerges as a key feature for Large Language Models (LLMs), allowing them to adapt to new tasks by leveraging task-specific examples without updating model parameters. However, ICL faces challenges with increasing numbers of examples due to performance degradation and quadratic computational costs. In this paper, we propose Logit Arithmetic Reweighting Approach (LARA), a novel framework that enhances ICL by using logit-based ensembling of multiple demonstrations. Our approach divides long input demonstrations into parallelizable shorter inputs to significantly reduce memory requirements, and then effectively aggregate the information by reweighting logits of each group via a non-gradient optimization approach. We further introduce Binary LARA (B-LARA), a variant that constrains weights to binary values to simplify the search space and reduces memory usage by filtering out less informative demonstration groups. Experiments on BBH and MMLU demonstrate that LARA and B-LARA outperform all baseline methods in both accuracy and memory efficiency. We also conduct extensive analysis to show that LARA generalizes well to scenarios of varying numbers of examples from limited to many-shot demonstrations.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 33 of its 37 references that are in the map. First posted on arXiv 14 Oct 2024.

Builds on

33 of 37 references.

References · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2022Emergent Abilities of Large Language Modelscited by 2,483
  5. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  7. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  8. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
  9. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  10. 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 359
  11. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  12. 2023Fine-Tuning Language Models with Just Forward Passescited by 337
21 more
  1. 2023In-Context Learning Creates Task Vectorscited by 302
  2. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  3. 2023Function Vectors in Large Language Modelscited by 292
  4. 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
  5. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  6. 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
  7. 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
  8. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 233
  9. 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 189
  10. 2022Rationale-Augmented Ensembles in Language Modelscited by 111
  11. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 96
  12. 2024Tuning Language Models by Proxycited by 88
  13. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  14. 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
  15. 2023Controlled Text Generation via Language Model Arithmeticcited by 51
  16. 2023In-Context Learning with Many Demonstration Examplescited by 39
  17. 2024Offset Unlearning for Large Language Modelscited by 33
  18. 2023DPZero: Private Fine-Tuning of Language Models without Backpropagationcited by 26
  19. 2023FwdLLM: Efficient FedLLM using Forward Gradientcited by 25
  20. 2020Versatile Black-Box Optimizationcited by 22
  21. 2023Semantic Compression With Large Language Modelscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 3.

9 papers.