Tree-Ising:用比特级Ising编辑修复语言模型

·

研究论文 · 2026/11/11

Tree-Ising 将语言模型修复视为对 BF16 权重的稀疏离散优化问题,通过前向统计定义目标,在状态树表示下允许符号翻转和指数移位,并将目标精确分解为每输出行的独立 QUBO 问题,在 GPU 上用模拟退火或量子启发模拟分岔求解。在智能体选定的两层上,Tree-Ising 在 MATH-500 上达到 54.6%,优于智能体编辑的 51.7%(基模型 7.9%),模拟分岔求解器得到 55.1% 的统计不可区分修复。两种求解器在全部五个数学基准上均优于智能体编辑,在 MATH-500 和 GSM8K 上经多重比较校正后显著。该方法修改的权重少 13% 至 17%,BF16 位翻转减少 2.2 至 2.3 倍,仅需四次前向请求和零 LLM token,退火方案 GPU 时间成本约 0.90 美元。在 Qwen3.5-2B 上,仅用基模型选择层和剂量,同一方案将贪婪 GSM8K 准确率从 21.6% 提升至 69.4%。作为概念验证,在 IBM Heron 处理器上用 QAOA 执行了一个八变量修复子问题。

该方法以极低计算成本(四次前向、零 LLM token、约 0.9 美元 GPU 时间)实现优于智能体编辑的模型修复,在多个数学基准上显著提升,并展示了量子退火的实际可行性,为无需梯度的模型编辑提供了高效新途径。

Weight-space programming, introduced in recent MIT work by Takehi et al., enables a frontier LLM agent to read a network's weights and write a repair. Their GPT-6 Astra agent corrected the reasoning loops of Qwen3.5-0.8B without gradients, using 158 agent turns, 89.7 million tokens, and 50 forward-pass requests. Our method, Tree-Ising, casts this repair as a sparse discrete optimization problem over the model's own BF16 weights. Forward statistics define an objective that weakens a loop direction, strengthens a concluding direction, and preserves the layer's output on productive tokens. Within a state-tree representation, where lossless BF16 storage acts as a special case, the admissible edits are sign flips and exponent shifts that preserve all shared group exponents and mantissas. We decompose this objective exactly into independent QUBO (Ising) problems, one per output row, which we solve on a GPU using simulated annealing or quantum-inspired simulated bifurcation. On the agent's two layers, Tree-Ising achieves 54.6% on MATH-500, outperforming the agent's edit (51.7%) under the same evaluation protocol, while the base model scores 7.9% as reported. The simulated bifurcation solver yields a statistically indistinguishable repair at 55.1%. Both solvers outperform the agent edit across all five math benchmarks, with statistically significant improvements on MATH-500 and GSM8K after correcting for multiple comparisons. Our approach modifies 13% to 17% fewer weights and reduces BF16 bit flips by a factor of 2.2 to 2.3. It requires only four forward-pass requests and zero LLM tokens, with the annealing recipe costing about $0.90 in GPU time. On Qwen3.5-2B, with layers and dose selected using only the base model, the same recipe increases greedy GSM8K accuracy from 21.6% to 69.4%. As a proof of concept, we execute an eight-variable repair subproblem using QAOA on an IBM Heron processor.

阅读原文

参与讨论