PAIR: Memory-Efficient and Fast Inference with Reading--Reasoning Fusion
cs.CL
Submitted: 2026-10-12
Updated: 2026-10-12
Comments: 34 pages, 8 figures
License: http://creativecommons.org/licenses/by/4.0/
The gist: For context-based question answering, using one large model for both evidence extraction and answer reasoning requires substantial memory and computation.
Abstract
For context-based question answering, using one large model for both evidence extraction and answer reasoning requires substantial memory and computation. Existing approaches trade accuracy for efficiency within a single model only. We propose a multi-model approach for efficient inference: our method, PAIR, employs two differently sized models for evidence extraction and answer reasoning, respectively. A smaller Reader model processes and retains the full context, while a larger Reasoner model sees only the question and generated sequence without directly attending to the context. These capabilities are fused at the logit level: at each token, both Reader and Reasoner produce a prediction, and their logits are combined into one, behaving as a single next-token-prediction model. Fine-tuning further boosts their performance. On HotpotQA, PAIR with a 32B Reasoner retains 96% of that same 32B model's full-context accuracy while using roughly one quarter of its KV memory. At 45.7K-token contexts, PAIR achieves up to 3.2 times higher end-to-end throughput than the full-context 32B model on the same GPU. PAIR also improves the accuracy-memory and accuracy-throughput trade-offs over evaluated token-reduction baselines. Its accuracy-preserving behavior generalizes across Qwen2.5, OLMo-3, and Gemma-3 model families.
Sources
- PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling
- Accelerating Large Language Model Decoding with Speculative Sampling
- Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution
- Efficient Iterative Retrieval with Heterogeneous Batching
- SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcri
- LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering