Semantic Compression With Large Language Models
Not on the map. Why?
Abstract (arXiv)
The rise of large language models (LLMs) is revolutionizing information retrieval, question answering, summarization, and code generation tasks. However, in addition to confidently presenting factually inaccurate information at times (known as "hallucinations"), LLMs are also inherently limited by the number of input and output tokens that can be processed at once, making them potentially less effective on tasks that require processing a large set or continuous stream of information. A common approach to reducing the size of data is through lossless or lossy compression. Yet, in some cases it may not be strictly necessary to perfectly recover every detail from the original data, as long as a requisite level of semantic precision or intent is conveyed. This paper presents three contributions to research on LLMs. First, we present the results from experiments exploring the viability of approximate compression using LLMs, focusing specifically on GPT-3.5 and GPT-4 via ChatGPT interfaces. Second, we investigate and quantify the capability of LLMs to compress text and code, as well as to recall and manipulate compressed representations of prompts. Third, we present two novel metrics -- Exact Reconstructive Effectiveness (ERE) and Semantic Reconstruction Effectiveness (SRE) -- that quantify the level of preserved intent between text compressed and decompressed by the LLMs we studied. Our initial results indicate that GPT-4 can effectively compress and reconstruct text while preserving the semantic essence of the original text, providing a path to leverage ~5× more tokens than present limits allow.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 17 of its 40 references that are in the map. First posted on arXiv 25 Apr 2023.
Builds on
17 of 40 references.
References · 17
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 894
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
- 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 91
- 2022An Introduction to Neural Data Compressioncited by 79
5 more
- 2021Language Model Evaluation Beyond Perplexitycited by 78
- 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 67
- 2023Conversational Automated Program Repaircited by 41
- 2021DECORE: Deep Compression with Reinforcement Learningcited by 29
- 2019Evaluating Computational Language Models with Scaling Properties of Natural Languagecited by 22
Built on by
Citing papers per year: 2023: 6; 2024: 8; 2025: 0; 2026: 3.
17 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Modelscited by 58
- 2023Large Generative AI Models for Telecom: The Next Big Thing?cited by 52
- 2023LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMscited by 40
- 2024At the Dawn of Generative AI Era: A Tutorial-cum-Survey on New Frontiers in 6G Wireless Intelligencecited by 25
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approachcited by 24
- 2024GenAINet: Enabling Wireless Collective Intelligence via Knowledge Transfer and Reasoningcited by 13
- 2024Divide, Reweight, and Conquer: A Logit Arithmetic Approach for In-Context Learningcited by 9
- 2024Parse Trees Guided LLM Prompt Compressioncited by 6
- 2023Steering Language Generation: Harnessing Contrastive Expert Guidance and Negative Prompting for Coherent and Diverse Synthetic Data Generationcited by 2
- 2024Exploring the Limits of Semantic Image Compression at Micro-bits per Pixelcited by 2
5 more
- 2024From Generalist to Specialist: Improving Large Language Models for Medical Physics Using ARCoTcited by 1
- 2024SMIC: Semantic Multi-Item Compression based on CLIP dictionarycited by 0
- 2026SemanticZip: A Pilot Framework for Lossy Text Compression with LLMs as Semantic Decompressorscited by 0
- 2026An Exploratory Evaluation of LLM-Assisted Rewriting of Moderate-Complexity Financial Sentences for DisCoCat-Based Sentiment Analysiscited by 0
- 2026Investigating the Influence of Prompt and Response Languages on LLM Content Generationcited by 0
- 2026Investigating the Influence of Prompt and Response Languages on LLM Content Generation22 Aug 2026
- 2026An Exploratory Evaluation of LLM-Assisted Rewriting of Moderate-Complexity Financial Sentences for DisCoCat-Based Sentiment Analysis7 Aug 2026
- 2026SemanticZip: A Pilot Framework for Lossy Text Compression with LLMs as Semantic Decompressors23 May 2026
- 2024SMIC: Semantic Multi-Item Compression based on CLIP dictionary6 Dec 2024
- 2024Divide, Reweight, and Conquer: A Logit Arithmetic Approach for In-Context Learning14 Oct 2024
- 2024Parse Trees Guided LLM Prompt Compression23 Sep 2024
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach24 Jun 2024
- 2024From Generalist to Specialist: Improving Large Language Models for Medical Physics Using ARCoT17 May 2024
- 2024GenAINet: Enabling Wireless Collective Intelligence via Knowledge Transfer and Reasoning26 Feb 2024
- 2024Exploring the Limits of Semantic Image Compression at Micro-bits per Pixel21 Feb 2024
- 2024At the Dawn of Generative AI Era: A Tutorial-cum-Survey on New Frontiers in 6G Wireless Intelligence2 Feb 2024
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models9 Oct 2023
5 more
- 2023LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMs2 Sep 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Steering Language Generation: Harnessing Contrastive Expert Guidance and Negative Prompting for Coherent and Diverse Synthetic Data Generation15 Aug 2023
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Models20 Jun 2023
- 2023Large Generative AI Models for Telecom: The Next Big Thing?17 Jun 2023
- 2024Parse Trees Guided LLM Prompt Compressioncited by 6
- 2024Parse Trees Guided LLM Prompt Compression23 Sep 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Modelscited by 58
- 2023Large Generative AI Models for Telecom: The Next Big Thing?cited by 52
- 2023LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMscited by 40
- 2024At the Dawn of Generative AI Era: A Tutorial-cum-Survey on New Frontiers in 6G Wireless Intelligencecited by 25
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approachcited by 24
- 2024Divide, Reweight, and Conquer: A Logit Arithmetic Approach for In-Context Learningcited by 9
- 2024Exploring the Limits of Semantic Image Compression at Micro-bits per Pixelcited by 2
- 2024From Generalist to Specialist: Improving Large Language Models for Medical Physics Using ARCoTcited by 1
- 2024SMIC: Semantic Multi-Item Compression based on CLIP dictionarycited by 0
- 2026SemanticZip: A Pilot Framework for Lossy Text Compression with LLMs as Semantic Decompressorscited by 0
12 most cited of 14 All 14 (JSON)
- 2026Investigating the Influence of Prompt and Response Languages on LLM Content Generation22 Aug 2026
- 2026An Exploratory Evaluation of LLM-Assisted Rewriting of Moderate-Complexity Financial Sentences for DisCoCat-Based Sentiment Analysis7 Aug 2026
- 2026SemanticZip: A Pilot Framework for Lossy Text Compression with LLMs as Semantic Decompressors23 May 2026
- 2024SMIC: Semantic Multi-Item Compression based on CLIP dictionary6 Dec 2024
- 2024Divide, Reweight, and Conquer: A Logit Arithmetic Approach for In-Context Learning14 Oct 2024
- 2024Automatically Generating UI Code from Screenshot: A Divide-and-Conquer-Based Approach24 Jun 2024
- 2024From Generalist to Specialist: Improving Large Language Models for Medical Physics Using ARCoT17 May 2024
- 2024Exploring the Limits of Semantic Image Compression at Micro-bits per Pixel21 Feb 2024
- 2024At the Dawn of Generative AI Era: A Tutorial-cum-Survey on New Frontiers in 6G Wireless Intelligence2 Feb 2024
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models9 Oct 2023
- 2023LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMs2 Sep 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
12 newest of 14 All 14 (JSON)