Compile the Table: Query-Calibrated Operator Compression for Tabular In-Context Learning
We propose QCOC (Query-Calibrated Operator Compression), which exploits the exchangeability and repeated use of in-context examples by compiling their full KV cache once into compact memory shared across subsequent queries.
ProofPaper ↗
Key points
- Tabular in-context learning (ICL) has emerged as a training-free and accurate paradigm for tabular prediction, but current approaches to compressing its in-context examples face an accuracy-throughput tradeoff: fixed subsets can sacrifice accuracy, while query-specific retrieval limits cache reuse and batching across queries, reducing throughput.
- Instead of retaining raw examples, QCOC clusters their states into joint-KV prototypes, preserves per-cluster multiplicities and the original example count, and calibrates prototype values against attention query vectors produced by the in-context examples through an anchored closed-form solution.
- Compressing 8,192 in-context examples to 512 memory slots yields a 10.5x cache compression ratio; excluding one-time compilation, in a single-core CPU online-serving comparison over 1,000 queries, QCOC is up to 508x faster than dynamic retrieval baselines and 1.98x faster than full-context inference.
- These results show that QCOC enables compact-memory reuse and efficient inference across queries while retaining accuracy close to full context.
Sources (1)
- [1]Compile the Table: Query-Calibrated Operator Compression for Tabular In-Context LearningarXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 8, 12:00 PM
We propose QCOC (Query-Calibrated Operator Compression), which exploits the exchangeability and repeated use of in-context examples by compiling their full KV cache once into compact memory shared across subsequent queries.
Tabular in-context learning (ICL) has emerged as a training-free and accurate paradigm for tabular prediction, but current approaches to compressing its in-context examples face an accuracy-throughput tradeoff: fixed subsets can sacrifice accuracy, while query-specific retrieval limits cache reuse and batching across queries, reducing throughput.
Extractive summary: sentences quoted from the sources.
Before this
- Oct 8, 2026Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight Migration
- Oct 8, 2026One Model to Loop Them All: Elastic Latent Recurrence for Language Models
- Oct 7, 2026ResidualQuant: KV Cache Quantization for Looped Transformers with 2-Bit Residuals
- Oct 7, 2026Dual-QK: Sharp Queries and Flat Keys for Prunable 2-bit KV Caches
- Oct 7, 2026Leaner Transformers Can Easily Learn to Cluster
- Oct 6, 2026Spatial Induction Heads: In-Context Learning of Multidimensional Cellular Automata