← All episodes Gist Tokens: Compressing Prompts Up to 26x

Gist Tokens: Compressing Prompts Up to 26x

Oct 25, 2026
This episode examines "Learning to Compress Prompts with Gist Tokens," which trains a language model to squeeze an instruction into a few cached gist-token activations. The trick is a modified attention mask: tokens after the gist can't see the original prompt, so its information has to pass through the gist positions. The discussion covers why the KV cache and per-task methods like prefix tuning, prompt tuning, and context distillation don't fully solve the cost of reused prompts. It frames gisting as a hypernetwork that predicts the compressed prefix in one forward pass, trained with ordinary instruction tuning and no extra objective. It also questions the headline 26x compression figure. That number is a ratio of averages from prompts of about 26 tokens, which may not support the long system-prompt use case the paper opens with. Listeners get a clear explanation of the mechanism and a skeptical look at what the evidence actually shows.
Sources:
1. Learning to Compress Prompts with Gist Tokens — Jesse Mu, Xiang Lisa Li, Noah Goodman, 2023
http://arxiv.org/abs/2304.08467
2. Learning to Compress Prompts with Gist Tokens — Jesse Mu, Xiang Lisa Li, Noah Goodman, 2023 (NeurIPS 2023; arXiv 2304.08467)
https://scholar.google.com/scholar?q=Learning+to+Compress+Prompts+with+Gist+Tokens
3. The Power of Scale for Parameter-Efficient Prompt Tuning — Brian Lester, Rami Al-Rfou, Noah Constant, 2021
https://scholar.google.com/scholar?q=The+Power+of+Scale+for+Parameter-Efficient+Prompt+Tuning
4. Prefix-Tuning: Optimizing Continuous Prompts for Generation — Xiang Lisa Li, Percy Liang, 2021
https://scholar.google.com/scholar?q=Prefix-Tuning%3A+Optimizing+Continuous+Prompts+for+Generation
5. Adapting Language Models to Compress Contexts (AutoCompressors) — Alexis Chevalier, Alexander Wettig, Anirudh Ajith, Danqi Chen, 2023
https://scholar.google.com/scholar?q=Adapting+Language+Models+to+Compress+Contexts+%28AutoCompressors%29
6. In-context Autoencoder for Context Compression in a Large Language Model (ICAE) — Tao Ge, Jing Hu, Lei Wang, Xun Wang, Si-Qing Chen, Furu Wei, 2023
https://scholar.google.com/scholar?q=In-context+Autoencoder+for+Context+Compression+in+a+Large+Language+Model+%28ICAE%29
7. Language Modeling with Learned Summary or Memory Tokens: Compressed Context Memory for Online Language Model Interaction — Jang-Hyun Kim, Junyoung Yeom, Sangdoo Yun, Hyun Oh Song, 2023
https://scholar.google.com/scholar?q=Language+Modeling+with+Learned+Summary+or+Memory+Tokens%3A+Compressed+Context+Memory+for+Online+Language+Model+Interaction
8. Efficient Streaming Language Models with Attention Sinks (StreamingLLM) — Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, Mike Lewis, 2023
https://scholar.google.com/scholar?q=Efficient+Streaming+Language+Models+with+Attention+Sinks+%28StreamingLLM%29
9. Longformer: The Long-Document Transformer — Iz Beltagy, Matthew E. Peters, Arman Cohan, 2020
https://scholar.google.com/scholar?q=Longformer%3A+The+Long-Document+Transformer
10. LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models — Huiqiang Jiang, Qianhui Wu, Chin-Yew Lin, Yuqing Yang, Lili Qiu, 2023
https://scholar.google.com/scholar?q=LLMLingua%3A+Compressing+Prompts+for+Accelerated+Inference+of+Large+Language+Models
11. Learning to Compress Contexts / Compressive Transformers for Long-Range Sequence Modelling — Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, Timothy P. Lillicrap, 2020
https://scholar.google.com/scholar?q=Learning+to+Compress+Contexts+%2F+Compressive+Transformers+for+Long-Range+Sequence+Modelling
12. Learning by Distilling Context — Charlie Snell, Dan Klein, Ruiqi Zhong, 2022
https://scholar.google.com/scholar?q=Learning+by+Distilling+Context
13. Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models — David Wingate, Mohammad Shoeybi, Taylor Sorensen, 2022
https://scholar.google.com/scholar?q=Prompt+Compression+and+Contrastive+Conditioning+for+Controllability+and+Toxicity+Reduction+in+Language+Models
14. Efficient Memory Management for Large Language Model Serving with PagedAttention (vLLM) — Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, et al., 2023
https://scholar.google.com/scholar?q=Efficient+Memory+Management+for+Large+Language+Model+Serving+with+PagedAttention+%28vLLM%29
15. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints — Joshua Ainslie, James Lee-Thorp, Michiel de Jong, et al., 2023
https://scholar.google.com/scholar?q=GQA%3A+Training+Generalized+Multi-Query+Transformer+Models+from+Multi-Head+Checkpoints
16. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena — Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, et al., 2023
https://scholar.google.com/scholar?q=Judging+LLM-as-a-Judge+with+MT-Bench+and+Chatbot+Arena
Interactive Visualization: Gist Tokens: Compressing Prompts Up to 26x