PISCO: Pretty Simple Compression for Retrieval-Augmented Generation

Maxime Louis, Hervé Déjean, Stéphane Clinchant

TL;DR

PISCO (Pretty Simple Compression) is a new "soft" document compression method for Retrieval-Augmented Generation (RAG) that achieves a 16x compression rate with negligible accuracy loss (0-3%). By replacing expensive pretraining with sequence-level knowledge distillation from a teacher LLM, PISCO offers a highly efficient pipeline that can fine-tune a 7-10B parameter model in under 48 hours on a single GPU.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in factual, domain-specific data. However, RAG faces a major scalability wall: inference costs scale quadratically with the number of retrieved tokens. Furthermore, most LLMs have finite context windows, limiting how much information they can actually "see" at once.

To solve this, researchers use document compression. "Hard" compression (like summarization or pruning) is interpretable but limited to roughly 2x-5x reduction. "Soft" compression maps documents into dense vector embeddings, allowing for much higher compression rates. The catch? Existing soft compression methods usually suffer from significant accuracy drops (>8%) and require massive, expensive pretraining on unlabeled data. PISCO aims to provide high compression without the accuracy tax or the pretraining overhead.

Methods

PISCO adopts a standard architecture consisting of a compressor and a decoder, both utilizing LoRA (Low-Rank Adaptation) for efficiency.

The core innovation lies in the training task. Unlike previous methods that rely on large-scale auto-encoding or language modeling pretraining, PISCO uses Sequence-level Knowledge Distillation (SKD).

  1. Compression: A document is appended with $l$ "memory tokens." These are passed through the compressor (an LLM with LoRA adapters) to produce $l$ document embeddings.
  2. Distillation: Instead of training the model on ground-truth labels (which are often sparse), PISCO uses a "teacher" LLM. The teacher sees the full, uncompressed documents and generates a high-quality answer (a "silver label").
  3. Training: The "student" model (the decoder) is trained to generate the exact same answer as the teacher, but it only has access to the compressed document embeddings.

This approach ensures the compressed representations preserve the specific information the LLM needs to answer questions, rather than trying to reconstruct the entire original text perfectly.

Figure 2: Overview of PISCO training, showing distillation from a teacher model.

Datasets

The authors trained PISCO on 453k questions derived from Wikipedia-KILT, preprocessed into 128-token chunks.

For evaluation, they used a diverse battery of benchmarks:

  • General QA: Natural Questions (NQ), TriviaQA, HotpotQA, ASQA, and PopQA.
  • Robustness/Out-of-Domain: Bio-QA (PubMed), CovidQA (CORD-19), and the LoTTE dataset (Lifestyle, Writing, Science, etc.).
  • Multilingual: MKQA (French, Korean, Russian).

Key Insights and Ideas

  • Pretraining is largely unnecessary: The authors found a very weak correlation between a model's success at pretraining tasks (like auto-encoding) and its eventual QA performance. In fact, models that achieved near-perfect reconstruction scores in pretraining often failed to improve on downstream RAG tasks.
  • Distillation beats raw labels: Fine-tuning on raw, annotated labels actually hindered the model's ability to locate specific information (the "needle-in-a-haystack" test). Distilling from a teacher LLM that provides reasoning and justifications proved far more effective.
  • Teacher quality matters, but "strongest" isn't always best: Interestingly, Mistral-7B and Solar-10B were often better teachers than much larger models. The authors suggest this is because these models tend to include more helpful justifications in their generated answers.
  • Spatial Specialization: Analysis of the learned embeddings showed that each memory token naturally "specializes" in a different part of the document, effectively dividing the labor of representing the text.
Figure 4: Performances on pretraining tasks versus performance on RAG-QA. Correlations are very small, indicating that pretraining has only little benefits on the downstream QA task.

Key Results

  • SOTA Accuracy: PISCO-Mistral (at 16x compression) outperforms the previous state-of-the-art (COCOM) by 8% in accuracy and stays within 0-3% of the uncompressed backbone model.
  • Massive Speedup: PISCO-Mistral is 4x faster than the standard Mistral-7B and supports a maximum batch size four times larger. At 128x compression, it reaches a 5.7x inference speedup.
  • Efficiency: The entire pipeline is remarkably accessible, allowing a 7-10B parameter model to be trained in just one day on a single A100 GPU.
  • Robustness: PISCO generalizes well to unseen domains (like medical data) and multiple languages, proving it isn't just memorizing its training set.
Figure 1: PISCO substantially outperforms existing con- text compression methods for question answering with RAG. Shown here with Mistral-7B backbone.

Limitations and Future Work

While PISCO is highly effective, the authors note that accuracy begins to decline more sharply once compression exceeds 16x. Additionally, while the model handles multilingual data well, there is still a small performance gap compared to uncompressed backbones in non-English languages.

Future work may involve investigating how to maintain accuracy at extreme compression rates (e.g., 128x and beyond) and further refining the distillation process to close the multilingual gap. The authors also suggest that increasing the number of documents ($k$) during training could help the model handle even larger retrieval sets during inference.

Summary updated

BibTeX
@inproceedings{louis2025pisco,
  author = {Maxime Louis and Hervé Déjean and Stéphane Clinchant},
  title = {{PISCO: Pretty Simple Compression for Retrieval-Augmented Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure