TL;DR
SIEVE introduces a sample-efficient method to bake complex natural language context—like extensive rules or grammar books—directly into LLM weights using as few as three seed examples. By decomposing context into atomic units and pairing synthetic queries only with relevant rules, it achieves performance that matches or exceeds in-context learning without the inference-time token overhead.
What Problem Does This Paper Address?
When adapting Large Language Models (LLMs) to specific tasks, practitioners typically choose between two paradigms:
- In-Context Learning (ICL): Providing instructions and examples directly in the prompt. It is highly sample-efficient but suffers from strict context window limits, increased inference latency, and transient behavior that doesn't persist across sessions.
- Parametric Learning (Context Distillation): Fine-tuning the model's weights to internalize the context. While this eliminates prompt overhead and enables persistent improvements, it is notoriously data-hungry, requiring thousands of query examples or expensive expert-curated traces.
SIEVE bridges this gap. It answers the question: Can we achieve the persistent, zero-overhead benefits of parametric learning with the extreme sample efficiency of in-context learning?
Methods
The core innovation of SIEVE is its synthetic data generation pipeline, SIEVE-GEN, which exploits the insight that natural language context is decomposable. Instead of training a model by showing it the entire context block for every query, SIEVE breaks the context down and targets selective applicability.
The pipeline operates in four main steps:
- Decomposition: An instruction-tuned model breaks the large context corpus (e.g., a rulebook) into atomic, independent "context units."
- Backtranslation: A base language model samples a diverse subset of these units to serve as a seed. An instruction model then generates a realistic query that requires those specific units to solve. Using a base model here is crucial, as instruction-tuned models tend to repeatedly select the same narrow subsets of context.
- Verification: The pipeline filters the generated query against all context units to verify exactly which ones are truly necessary, creating clean (query, applicable context) pairs.
- Context Distillation: Finally, standard context distillation is applied. A teacher model computes the output distribution (logits) given both the query and its applicable context. A student model is trained via KL divergence loss to match this distribution given only the query, successfully internalizing the knowledge.
Datasets
The authors evaluated SIEVE across three distinct reasoning domains:
- Retail (New Benchmark): A programmatically generated synthetic domain consisting of 30 compositional discount rules. The model must calculate the exact final price of a shopping cart based on complex customer profiles and stacking rules.
- RuleArena (NBA) Level 2: A challenging instruction-following benchmark containing roughly 20,000 tokens of NBA player trade regulations used to determine the legality of complex trade sequences.
- Machine Translation from One Book (MTOB): A long-context memorization task requiring the model to translate an extremely low-resource language (Kalamang) to English using a 50,000-token grammar book.
Key Insights and Ideas
- Selective Applicability Matters More Than Query Quality: In an "Oracle Query" experiment, vanilla context distillation trained on perfect, human-distributed queries but with full context underperformed SIEVE. Flooding the teacher model with irrelevant context during rollout generation degrades data quality.
- Base Models Drive Synthetic Diversity: When generating synthetic data, instruction-tuned models suffer from mode collapse, selecting the same context rules over and over. Unaligned base models provide the stochastic diversity needed to cover the entire context space.
- Parametric Compositionality: Models trained with SIEVE don't just memorize facts; they learn to dynamically compose different pieces of internalized context at inference time to solve multi-step reasoning problems.
Key Results
Across all three domains, SIEVE demonstrated strong scaling properties, matching or outperforming ICL baselines as the synthetic dataset scaled up to 16,000 examples—all derived from just 3 initial seed queries.
- Retail: SIEVE achieved 45% accuracy at 16K rows, significantly outperforming the ICL baseline (32%) and completely crushing vanilla context distillation without synthetic data (3%).
- RuleArena: SIEVE reached 26% accuracy, surpassing the ICL baseline of 23%.
- MTOB: On this massive 50K token task, SIEVE reached a chrF score of 24.48, approaching the ICL baseline (25.9) and vastly outperforming alternative long-context parametric methods like Cartridges (19.10).
Limitations and Future Work
SIEVE's primary limitation is its dependency on the foundational capabilities of the base model. When evaluated using Llama 3.1 8B on the Retail task, the method failed because the base model itself lacked the fundamental reasoning capacity to handle the task even with the context provided in-prompt.
The authors suggest several promising avenues for future work, including exploring curriculum learning to help weaker models ingest data, developing architectural modifications like specialized memory layers, and adapting SIEVE for truly continual learning systems that iteratively improve from ongoing natural language feedback.
Summary updated