SIEVE: Sample-Efficient Parametric Learning from Natural Language

Parth Asawa, Alexandros G. Dimakis, Matei ZahariaarXiv 2026

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:

  1. 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.
  2. 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.

Figure 1. SIEVE system overview. Given a natural language context corpus and as few as 3 seed query examples, SIEVE-GEN generates synthetic training data composed of (query, applicable context) pairs. These pairs are used for context distillation, where a student model learns to match a teacher’s distribution conditioned on applicable context, internalizing the knowledge into weights for inference without context.

The pipeline operates in four main steps:

  1. Decomposition: An instruction-tuned model breaks the large context corpus (e.g., a rulebook) into atomic, independent "context units."
  2. 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.
  3. 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.
  4. 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.

SIEVE Performance Scaling across Domains
  • 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

Abstract

Natural language context-such as instructions, knowledge, or feedback-contains rich signal for adapting language models. While in-context learning provides adaptation via the prompt, parametric learning persists into model weights and can improve performance further, though is data hungry and heavily relies on either high-quality traces or automated verifiers. We propose SIEVE, a method for sample-efficient parametric learning from natural language context that requires as few as three query examples. SIEVE uses a novel synthetic data generation pipeline, SIEVE-GEN, that leverages the insight that context is decomposable. Decomposing context allows us to generate higher quality rollouts by pairing synthetic queries with only the applicable context rather than the entirety, then using context distillation to internalize context into the model. We evaluate in reasoning settings where context is necessary, including custom domains and the RuleArena and Machine Translation from One Book tasks. Our results show that SIEVE outperforms prior context distillation methods using just three query examples, demonstrating how to achieve sample-efficient parametric learning from natural language.
BibTeX
@misc{asawa2026sieve,
  author = {Parth Asawa and Alexandros G. Dimakis and Matei Zaharia},
  title = {{SIEVE: Sample-Efficient Parametric Learning from Natural Language}},
  year = {2026},
  eprint = {2604.02339},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.02339},
}
Figure