像物理學家一樣剪枝大型語言模型:將區塊移除視為伊辛最佳化問題
Back to Articles Pruning LLMs Like a Physicist: Block Removal as an Ising Optimization Problem Team Article Published September 21, 2026 Upvote 4 Antonio Tiene AntonioTN Follow MultiverseComputingCAI Ali Hashemi ali-hashemi Follow MultiverseComputingCAI David Jansen Jansenhbar Follow MultiverseComputingCAI Roman Rausch spinflip Follow MultiverseComputingCAI One of the cheapest ways to make a large language model faster is also one of the bluntest: delete whole transformer blocks.
Because the model literally gets shorter, block removal (also called depth pruning) buys predictable inference speedups on top of the memory savings, and it stacks cleanly with quantization, low-rank compression, and other techniques.The hard part is deciding which blocks to cut.
Remove the wrong ones and the model collapses; and the effect of removing any one block depends on which others you remove alongside it, so the choices interact.
That makes it a combinatorial problem, not a ranking problem, and combinatorial problems with interacting binary variables are exactly what the physics of spin systems was built to describe.
Our latest paper, LLM Compression by Block Removal with Constrained Binary Optimization, takes that correspondence literally.
We reformulate block selection as a constrained binary optimization (CBO) problem that maps directly onto an Ising glass, a disordered spin system with all-to-all interactions and a fixed number of "up" spins.
The energy of that spin system turns out to be a strong, cheap proxy for how well the pruned model will actually score on benchmarks, which means we can rank a huge number of candidate configurations without benchmarking any of them, and hand the hard instances to the same classical and quantum-inspired solvers we use elsewhere at Multiverse.
The payoff in the deep-compression regime is large: at 50% compression of Llama-3.3-70B-Instruct, we gain almost 23 percentage points on MMLU over the best competing block-removal method.
Why picking blocks is a many-body problem Most existing block-removal methods score each block on its own, then remove the ones that look least important, using magnitude, sensitivity, or "block influence" heuristics.
In physics terms these are mean-field methods: they treat each block as if its contribution were independent of the others, the way mean-field theory replaces a spin's neighbors with a single averaged field.
A related shortcut is to only ever remove a single consecutive run of blocks, which keeps the problem small but throws away most of the search space.The trouble is that blocks are not independent, any more than spins in a real magnet are.
Whether removing block 20 hurts the model depends on whether you also removed block 19 or block 24, an interaction, or coupling, between the two decisions.
As models get deeper and more heterogeneous, ignoring those couplings leaves quality on the table, especially when you want to remove a lot of blocks at once.
What you really want is to search over combinations of blocks while accounting for how they interact, but the number of combinations grows exponentially, so brute force looks hopeless.
This is precisely the regime, exponentially large configuration spaces with pairwise couplings, where the tools of statistical physics earn their keep.
The idea: turn block selection into an energy-minimization problem We attach a binary variable to each transformer block: 0 means keep it, 1 means remove it, just like a spin that can point down or up.
Then we do a second-order Taylor expansion of the model's loss with respect to those variables, which produces an (approximate) Hessian matrix.
The diagonal of that Hessian is how much each block matters on its own; the off-diagonal entries are exactly the pairwise couplings between blocks, the many-body physics that mean-field methods throw away.That reformulation turns "which blocks should I remove?
" into a clean optimization: find the set of M blocks whose removal minimizes the energy xᵀH⁰x, subject to removing exactly M of the N blocks.
Mathematically this is a constrained binary optimization problem; physically it is an Ising glass, an all-to-all coupled spin system with conserved magnetization (the fixed number of removed blocks plays the role of a fixed total spin).
The key property we establish is that this energy is a strong proxy for downstream quality: low-energy states of the spin system correspond to high-performing pruned models.Minimizing energy and maximizing benchmark score become the same search.
Block selection becomes a constrained binary optimization problem, equivalent to finding low-energy states of an Ising glass; each solution says which M of N blocks to delete.Right: the coupling variable α we insert into each block's residual path to build the Hessian.Source: paper Figure 1.
The reason this is practical is cost.The Hessian, i.e.the full set of couplings, is computed just once, from forward and backward passes on a small calibration dataset.
After that, evaluating any candidate configuration is a single cheap energy calculation, no need to run the actual model, let alone benchmark it.And because the couplings don't depend on the compression target, the same Hessian can be reused to solve for many different values of M.
Solving it: exact when you can, quantum or quantum-inspired when you can't For most models the configuration space is large but still checkable.Because computing one energy is so cheap, we brute-force it on a single GPU, checking up to tens of billions of spin configurations.
A few million take seconds; the hardest tractable case here, removing 8 of Llama-3.3-70B's 80 blocks (about 29 billion configurations), took roughly two days.Beyond that the exact approach breaks down, and this is where casting the problem as an Ising glass pays off a second time.
In its equivalent QUBO form (the constraint absorbed into a penalty term), the exact same task can be handed to the highly optimized classical, quantum, and quantum-inspired solvers built for this class of Hamiltonian, the machinery of quantum annealing, QAOA, tabu search, and specialized branch-and-bound.
We find that an open-source tabu solver reliably reaches the lowest-energy states in seconds, even on the hardest cases we can verify against brute force.So the method scales to models where enumerating configurations is out of the question, using solvers that are squarely in Multiverse's domain.
There's a subtle but important point here, and it runs against the usual grain of optimization.Normally a CBO or annealing solver is judged by whether it finds the true ground state.We don't actually need the ground state.
What we need is a fast way to generate a handful of good low-energy states, and that is a far easier bar, which is why lightweight solvers work so well for us and why we can afford to run several of them.
Why the whole low-energy spectrum matters The energy is a strong proxy for quality, but not a perfect one, so the single lowest-energy state isn't always the best model.
This turns out to be a feature, not a bug: once the Hamiltonian is set up, reading off the ground state and the low-lying excited states is essentially free, giving a spectrum of high-quality candidate prunings to try rather than one fragile answer.
Exploring excited states, not just the ground state, is itself an area of active physics research, and it maps neatly onto what practitioners actually need here.A concrete example: for Llama-3.
1-8B-Instruct at 16/32 blocks removed, most of the top states cut blocks toward the end of the model, as prior work would expect.
But the 17th excited state is the first to propose removing a block near the beginning of the model, and after light retraining that configuration outperforms the ground state across several benchmarks.
That directly disproves the common assumption that the best pruning is one consecutive chunk of middle-or-late blocks, and it shows why respecting the full many-body structure of the problem pays off.Left: which blocks each of the 20 lowest-energy states removes (red = removed).
Right: the 17th excited state, which removes an early block, beats the ground state on several benchmarks after retraining.The best model is an excited state, not the ground state.Source: paper Figure 2.Results Across Llama-3.1-8B-Instruct, Qwen3-14B, and Llama-3.
3-70B-Instruct, our method (CBO) is on par with or better than state-of-the-art block-removal baselines, and the gap widens as compression gets more aggressive.The clearest win is deep compression of Llama-3.3-70B-Instruct, evaluated without retraining.
Up to 24 of 80 blocks removed, CBO is roughly on par with block influence.But at 32/80 and 40/80, it pulls decisively ahead, with an almost 23-point MMLU advantage at the deepest setting, where it beats the baseline on every benchmark we tested.
For Qwen3-14B at 12/40 removed, CBO leads MMLU by about 10 points.At lighter compression the methods are comparable, which is expected: the couplings matter most when you're cutting deep.Llama-3.3-70B-Instruct, no retraining Blocks removed MMLU Original 0 82.2 CBO (ours) 32 / 80 76.
6 Block influence 32 / 80 59.3 CBO (ours) 40 / 80 76.9 Block influence 40 / 80 54.0 At 40/80 (50% depth), CBO holds MMLU near 77 while the strongest baseline falls to the mid-50s.Source: paper Table 2.
It generalizes beyond dense transformers Block removal gets much harder on modern heterogeneous architectures, where different block types are interleaved, and the Ising formulation doesn't care: a coupling is a coupling regardless of what kind of block sits at each site.
To stress-test that, we applied the method to NVIDIA-Nemotron-3-Nano-30B-A3B-FP8, a hybrid model that interleaves Mamba2, attention, and mixture-of-experts (MoE) layers in a non-uniform pattern, without any retraining.
Nothing about our formulation assumes a homogeneous stack, so it transfers directly.Removing 2–3 MoE layers or 2 attention layers, CBO finds configurations that beat block influence on AIME25 and GPQA.
The results also confirm that redundancy in these hybrid models is real but unevenly distributed: some expert layers are far more disposable than others, and the method's ability to search the coupled configuration space is what locates the good cuts.
Even here, the pattern from the dense models holds, the best configuration is often an excited state rather than the ground state.
Why this fits Multiverse Computing Reframing a messy machine-learning problem as an Ising Hamiltonian, then solving it with the classical and quantum-inspired optimization machinery built for physics, is squarely in Multiverse's wheelhouse, it's the same instinct that runs through our compression stack.
And block removal composes with the rest of that stack, quantization, low-rank/SVD compression, width pruning, and knowledge-distillation-based healing, so it slots into a larger pipeline rather than competing with it.
Want the full technical details, including the Taylor-expansion derivation, the QUBO mapping, the solver benchmarks, the calibration-dataset ablations, and the complete results tables?Read the full paper on Hugging Face, or get in touch with our team to talk about applying this to your own models.
The code is open-sourced at github.com/CompactifAI/Blockremovalthroughconstrainedbinary_optimization.Papers mentioned in this article 1 More from this author Safety for Whom?
Refusing the Right Subset of a Topic, Not the Whole Topic 30 September 8, 2026 Quantization-Aware Healing: a compressed, 4-bit model that outperforms its full-precision original 68 August 25, 2026 Community EditPreview Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.
Tap or paste here to upload images Comment · Sign up or log in to comment Upvote 4 Papers mentioned in this article 1
Related
相關文章

人格幾何與對齊:讓模型的內部結構與人類認知結構對齊的可能性
當我們看到模型內部的人格結構與人類高度一致時,一個自然的問題是,為什麼這種結構會在模型中出現。研究團隊給出了一個非常有說服力的解釋。語言中的人格詞彙結構高度穩定,人類在長期的社會互動中形成了共同的隱性人格結構,而語言模型從海量文本中學習語言時,自然繼承了這種結構。

微軟及 OpenAI 內部文件曝光:高管曾警告 AI 可能對新聞機構產生“毀滅性影響”
微軟與 OpenAI 的內部文件近日曝光,揭露高層曾對 AI 技術可能對新聞產業帶來的衝擊提出嚴厲警告。根據文件內容,微軟應用科學部門主管 Brent Hecht 直言,將新聞內容用於 AI 模型訓練的行為,等同於「前所未有的大規模盜竊」。這份內部記錄還顯示,微軟掌握的數據指出,部分正在對 AI 公司提起版權訴訟的新聞機構,其網站點擊率已大幅下滑超過 80%。 這些內部文件進一步凸顯了 AI 訓練過程中使用新聞素材所引發的法律與道德爭議。

開發者藉助 OpenAI GPT-6 Astra,破譯 83 年前德軍無線電密文
彭博社開發人員 Carter Leffen 藉助 GPT-6 Astra,將 1941 年德國士兵的 82 字符電報碼還原為連貫德語文本。一個已知地名和恩尼格瑪的加密弱點成為關鍵突破口。##GPT-6##恩尼格瑪##AI破解密碼#

被英偉達點名的杭州團隊,補上了AI for Science的「最後一公里」
一家來自杭州的團隊,近期獲得英偉達的公開關注,其技術被認為補齊了AI for Science(科學智慧)領域中「最後一公里」的關鍵環節。該團隊開發的系統,能讓科學研究者直接透過對話式互動,從最初的研究想法快速產出具體結果,大幅縮短了過去需要大量編碼與繁複流程的轉化路徑。 這項技術的核心在於將自然語言理解與科學運算流程深度整合。

CVPR 2026 | EmoThinker:讓 AI 學會"察言觀色"——會推理的情感分析新範式
這篇 CVPR 2026 論文EmoThinker的目標是讓模型像人類一樣"先觀察、再推理、後下結論"——先從視覺和聲學模態中分別提取情感證據,再顯式分析模態間的一致與衝突,最終給出情感判斷以及完整的推理過程,即基於大型視覺-語言模型(LVLM)的細粒度、可解釋情感推理。

為什麼基礎RAG在多跳推理中表現不佳(以及GraphRAG如何解決它)
當前的AI工程設計中,LLM(大語言模型)的構建方法過於簡單化了。按照迴音室效應的觀點,解決LLM幻覺問題很簡單:只需設計一個標準的檢索增強生成(RAG)系統,將PDF文檔拆分為1,000個token的塊,對其進行嵌入(Embedding),存入向量數據庫,然後執行餘弦相似度搜索即可。