# Tree-Ising: Repairing Language Models with Bit-Level Ising Edits

DevFeed: [Tree-Ising: Repairing Language Models with Bit-Level Ising Edits](<https://devfeed.tech/articles/tree-ising-repairing-language-models-with-bit-level-ising-edits-128811.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14210>)

Author: Hadi Salloum, Ammar Ali

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Combinatorial optimization](<https://devfeed.tech/topics/combinatorial-optimization.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [all](<https://devfeed.tech/tags/all.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [bf16](<https://devfeed.tech/tags/bf16.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [greedy](<https://devfeed.tech/tags/greedy.md>), [heron](<https://devfeed.tech/tags/heron.md>), [ibm](<https://devfeed.tech/tags/ibm.md>), [ising](<https://devfeed.tech/tags/ising.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [llm](<https://devfeed.tech/tags/llm.md>), [loops](<https://devfeed.tech/tags/loops.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [qwen3-5](<https://devfeed.tech/tags/qwen3-5.md>), [repair](<https://devfeed.tech/tags/repair.md>), [weight-space-programming](<https://devfeed.tech/tags/weight-space-programming.md>)

## AI overview

Tree-Ising repairs reasoning loops by turning BF16 weight edits into sparse discrete optimization. Forward-pass statistics define an objective that weakens loop directions, strengthens concluding directions, and preserves productive outputs; admissible edits are sign flips and exponent shifts that retain shared group exponents and mantissas. The objective is decomposed into independent per-row QUBO problems, solved with GPU simulated annealing or simulated bifurcation. On Qwen3.5-0.8B, both solvers beat the reported agent edit across five math benchmarks; on MATH-500, Tree-Ising scored 54.6% versus 51.7% for the agent edit and 7.9% for the base model. The approach used fewer weight edits and 2.2-2.3 times fewer BF16 bit flips, with four forward-pass requests, zero LLM tokens, and about $0.90 GPU cost for annealing. On Qwen3.5-2B, the reported recipe raised greedy GSM8K accuracy from 21.6% to 69.4%. The abstract also reports an eight-variable QAOA proof of concept on an IBM Heron processor.

## Source excerpt

arXiv:2611.14210v1 Announce Type: new Abstract: 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.