PAIR:基于阅读-推理融合的内存高效快速推理 PAIR: Memory-Efficient and Fast Inference with Reading--Reasoning Fusion 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-12
👁️ 预览文献
💡 AI 中文简介
针对基于上下文问答中单一大型模型同时做证据抽取和答案推理导致内存与计算开销大的问题,提出多模型方案PAIR:小模型Reader保留完整上下文,大模型Reasoner只看问题和已生成内容,二者在每个token处融合预测结果,等效于单一模型。在HotpotQA上,32B推理器保留96%全上下文准确率,KV内存仅约四分之一;45.7K长上下文下吞吐量提升至3.2倍,并在多个模型家族中验证有效。
领域自然语言处理/高效大模型推理
适合谁读需要一定大模型与推理优化专业背景的读者
核心贡献1. 提出Reader与Reasoner双模型在logit层面融合的推理框架,小模型读全文、大模型专注推理,显著降低KV内存;2. 在保持接近全上下文准确率的同时大幅提升长上下文吞吐量,并验证跨模型家族泛化性。
关键数据HotpotQA上32B Reasoner保留96%全上下文准确率,KV内存约为原来的1/4;45.7K token上下文下端到端吞吐量最高提升3.2倍;在Qwen2.5、OLMo-3、Gemma-3上均有效。
推荐理由想用大模型做长文档问答又嫌显存和速度吃不消?这篇用“小模型读、大模型想”的巧思,几乎不掉点还把内存砍到四分之一、速度翻三倍,值得一读。
关键词["高效推理", "多模型融合", "长上下文问答", "KV缓存优化", "证据抽取", "阅读-推理融合"]

原文摘要

查看英文原文摘要

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.