arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16003cs.CL
收藏

PAIR:基于阅读-推理融合的内存高效快速推理方法

PAIR: Memory-Efficient and Fast Inference with Reading--Reasoning Fusion

Siebel School of Computing and Data Science(西贝尔计算与数据科学学院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Sejun Park, Haocheng Xia, Yongjoo Park

AI总结:

PAIR是一种多模型推理方法,通过Reader与Reasoner模型在logit层面融合,在HotpotQA等数据集上以约四分之一的KV内存保留32B模型96%精度,吞吐量提升3.2倍,优化了精度与效率的权衡。

摘要:

针对基于上下文的问答任务,使用单个大型模型同时进行证据提取和答案推理需要大量内存与计算资源,现有方法仅在单个模型内以牺牲精度为代价换取效率。本文提出一种用于高效推理的多模型方法PAIR:该方法分别采用两个不同规模的模型,一个较小的Reader模型处理并保留完整上下文,一个较大的Reasoner模型仅接收问题和生成序列,不直接关注上下文;二者在logit层面融合能力,每个token时,Reader和Reasoner分别生成预测,将其logit合并为一个,表现为单个下一个token预测模型,微调可进一步提升性能。在HotpotQA数据集上,采用32B规模Reasoner的PAIR保留了该32B模型全上下文精度的96%,同时仅使用其约四分之一的KV内存;在45700 token的上下文下,PAIR在相同GPU上实现了比全上下文32B模型高最多3.2倍的端到端吞吐量,且相比所评估的token缩减基线方法,PAIR优化了精度-内存和精度-吞吐量的权衡,其精度保持特性可在Qwen2.5、OLMo-3和Gemma-3模型家族间通用。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑