HyperThink:用于高效推理的文本到参数超网络
研究论文 · 2026/10/14
长链思维轨迹能显著提升大语言模型(LLM)的多步推理性能,但会带来高推理开销,延迟主要受限于顺序解码。我们提出 HyperThink,一种文本到参数的方法,将推理计算摊销为一次查询条件参数更新:一个轻量级超网络读取问题并预测对基础 LLM 一小部分参数的更新,同时一个向量量化解码器将这些更新约束到有限的可复用模式集合,以提高鲁棒性和迁移性。HyperThink 在基础模型自身输出上端到端训练,测试时消除了长思维轨迹:在一次超网络前向传播后,适配后的模型生成简洁的分步解答和最终答案,无需中间轨迹,使用远少的 token 同时保持强推理性能。实验表明,HyperThink 在数学和通用推理任务上改善了准确率-延迟权衡中的低延迟区域,在接近非思考模式下增益最强。
该工作通过超网络和向量量化将长链思维推理压缩为参数更新,在保持推理性能的同时显著降低推理延迟,为高效推理提供了新思路。
Long-form thinking traces can substantially improve the multi-step reasoning performance of large language models (LLMs), but they introduce high inference-time overhead, with latency dominated by sequential decoding. We propose HyperThink, a text-to-parameter approach that amortizes this reasoning computation into a single query-conditioned parameter update: a lightweight hypernetwork reads the question and predicts updates to a small subset of the base LLM's parameters, while a vector-quantized decoder constrains them to a finite set of reusable patterns to improve robustness and transfer. Trained end-to-end on outputs from the base model itself, HyperThink eliminates long thinking traces at test time: after one hypernetwork forward pass, the adapted model generates a concise step-by-step solution and final answer without an intermediate trace, using far fewer tokens while retaining strong reasoning performance. Empirically, HyperThink improves the low-latency region of the accuracy-latency trade-off on mathematical and general reasoning tasks, with its strongest gains in the near-non-thinking regime.