Paper: 2605.13807 Authors: Ejaaz Merali, Mohamed Hibat-Allah, Mohammad Kohandel, Richard T. Scalettar, Ehsan Khatami Categories: cond-mat.str-el, cond-mat.dis-nn, cs.LG, physics.comp-ph, quant-ph

The Gap

Neural quantum states (NQS) use neural networks to represent quantum wave functions for many-body systems. Transformers dominate because they parallelize well across GPUs. Recurrent neural networks (RNNs) were dismissed as inherently sequential—you need the hidden state from position i to compute position i+1, so no parallelism, right? This created a perceived architectural ceiling: if you want to scale to large lattices (say, 50×50 spins), you need transformers with their quadratic memory cost and massive compute budgets.

The gap: RNNs have linear memory scaling and are conceptually simpler, but everyone assumed the sequential bottleneck made them impractical for large quantum systems. No one seriously tried to make RNNs competitive at scale.

Problem: Quantum many-body ground states on large lattices
   |
   v
Assumption: RNNs = sequential = slow = can't scale
   |
   v
Method: Apply parallel scan algorithms to RNN recurrence
   |
   v
Evidence: 52x52 lattices, matches QMC benchmarks, modest GPU hours
   |
   v
Conclusion: RNNs are viable for large-scale NQS with less compute

The Increment

One sentence: Before this paper, scaling neural quantum states meant using transformers with quadratic memory; after, RNNs with parallel scans achieve comparable accuracy on 2704-spin systems with linear memory and accessible compute.

Core Mechanism

The method has three layers. First, an autoregressive RNN wave function that generates spin configurations one site at a time, maintaining a hidden state that encodes the quantum correlations seen so far. Second, a parallel scan algorithm (specifically, they use associative scans over the recurrence relation) that computes all hidden states simultaneously instead of sequentially. Third, variational Monte Carlo training where you sample configurations from the RNN, compute local energies, and update parameters to minimize energy.

Data flows like this: you feed in a partial spin configuration (say, spins 1 through k). The RNN’s recurrence relation updates the hidden state at each position. Normally you’d compute h_1, then h_2, then h_3 sequentially. The parallel scan reformulates this as a tree of operations that can run in log(n) depth on parallel hardware. Once you have all hidden states, the RNN outputs probabilities for the next spin. During training, you sample full configurations, evaluate the quantum Hamiltonian, and backpropagate through the parallel scan to update weights.

Input spins:  s_1  s_2  s_3  s_4  ...  s_n
                |    |    |    |         |
                v    v    v    v         v
Parallel    [  h_1  h_2  h_3  h_4  ...  h_n  ]  <- computed in log(n) steps
Scan:          /  \  /  \  /  \            via associative tree reduction
              /    \/    \/    \
             /      \    /      \
            +--------+--+--------+
                     |
                     v
Output:         P(s_next | s_1...s_n)
                     |
                     v
Sample -> Evaluate H -> Backprop -> Update weights

Think of it like a factory assembly line that’s been redesigned. The old RNN is a single-file conveyor belt: each worker (time step) must wait for the previous worker to finish before starting. The parallel scan is like reorganizing the factory into a binary tree of workstations. Workers at the leaves start simultaneously, pass partial results up to their parents, who combine them and pass further up, until the root has the final result. The total work is the same, but the critical path (longest dependency chain) shrinks from n steps to log(n) steps. For quantum states, each “worker” is computing how quantum correlations propagate through the lattice, and the tree structure lets you compute all positions’ correlations in parallel while preserving the sequential dependencies mathematically.

Key Concepts

  • Autoregressive wave function: In quantum mechanics, a wave function assigns an amplitude (complex number) to every possible configuration of the system. For n spins, that’s 2^n configurations—exponentially large. An autoregressive model factors this into a product: ψ(s_1, s_2, …, s_n) = P(s_1) × P(s_2|s_1) × P(s_3|s_1,s_2) × … Each factor is a conditional probability the RNN can compute. Instead of storing 2^n numbers, you store RNN weights. When you need ψ for a specific configuration, you run the RNN forward to compute the product. It’s like compressing a phone book by storing the algorithm that generates names instead of the names themselves.

  • Parallel scan (associative scan): Imagine you want to compute cumulative sums: given [a, b, c, d], output [a, a+b, a+b+c, a+b+c+d]. Sequentially, that’s 4 steps. But addition is associative: (a+b)+c = a+(b+c). So you can compute (a+b) and (c+d) in parallel, then add those results. This generalizes to any associative operation. RNN recurrence h_t = f(h_{t-1}, x_t) can be rewritten as an associative operation if f has the right structure. The parallel scan builds a binary tree: leaves compute pairwise combinations, parents combine their children’s results, and the root has the final answer. Depth is log(n) instead of n.

  • Variational Monte Carlo (VMC): You want the ground state (lowest energy configuration) of a quantum Hamiltonian H. VMC treats this as optimization: parameterize the wave function ψ(s; θ) with neural network weights θ, sample configurations s from |ψ|^2 (the probability distribution), compute the local energy E_loc(s) = (Hψ)(s)/ψ(s) for each sample, and minimize the average energy ⟨E_loc⟩ by gradient descent on θ. It’s like finding the lowest point in a landscape by randomly dropping marbles (samples) and rolling downhill (gradient descent). The RNN gives you ψ, the parallel scan makes sampling fast, and VMC ties it all together into a training loop.

Framework Shift

Before (Transformers):                After (PSR-NQS):
                                      
Spin lattice (n sites)                Spin lattice (n sites)
       |                                     |
       v                                     v
Transformer encoder                   RNN with parallel scan
  - Attention: O(n^2) memory            - Recurrence: O(n) memory
  - All-to-all interactions             - Sequential structure
  - Massive parallelism                 - Log-depth parallelism
       |                                     |
       v                                     v
Sample configurations                 Sample configurations
       |                                     |
       v                                     v
VMC training (GPU cluster)            VMC training (single GPU)

From architecture-driven scaling (throw more compute at transformers) to algorithm-driven scaling (make RNNs parallel via scan primitives), the core shift is exploiting mathematical structure instead of brute-force parallelism.

Expert Assessment

Problem choice: Real gap. The transformer monoculture in NQS is partly inertia—RNNs were written off without exploring modern recurrent architectures. The authors correctly identified that parallel scans, which have been around since the 1980s in parallel computing, were never seriously applied to quantum state representations. This sits at the intersection of two mature fields (parallel algorithms and NQS), which is often where low-hanging fruit hides.

Method maturity: Clever application of known techniques rather than fundamental innovation. Parallel scans are textbook material; the insight is recognizing that RNN recurrence fits the associative structure needed for scans. The iterative retraining scheme (train on small lattice, use as initialization for larger lattice) is standard transfer learning. Nothing here is conceptually hard, which is actually a strength—it’s engineering that should have been done years ago.

Experimental integrity: Baselines are fair. They compare against exact diagonalization (small systems), quantum Monte Carlo (gold standard for these models), and prior transformer-based NQS. The 52×52 result is impressive but comes with a caveat: they use iterative retraining, which means the model isn’t learning from scratch at that scale. The energy errors are small (within QMC error bars), but they don’t report variance or multiple runs, so it’s hard to assess stability. The compute budget comparison (single GPU vs. cluster) is compelling but lacks detail—what GPU, how many hours, what batch size?

Writing quality: The paper front-loads motivation well but buries implementation details. Section III (Methods) is too terse—the parallel scan description assumes familiarity with the algorithm and doesn’t explain how the RNN recurrence is reformulated to be associative. The results section would benefit from ablations: how much does iterative retraining contribute vs. the parallel scan itself? The related work undersells prior RNN-based NQS efforts, making the contribution seem more novel than it is.

Verdict: weak accept — Solid engineering contribution that challenges a false dichotomy (RNNs vs. transformers) in an important application domain, but the experimental evaluation could be more rigorous and the writing clearer.

Takeaways

If you’re working with autoregressive models on sequences where you need both training efficiency and inference speed, check if your recurrence is associative (or can be approximated as such). Parallel scans are underutilized outside of niche parallel computing circles. The iterative retraining trick—train small, transfer to large—is a practical way to scale when direct training is prohibitive. More broadly, when a field converges on one architecture (transformers, in this case), it’s worth revisiting dismissed alternatives with modern tools. The gap between “theoretically possible” and “actually implemented” is often just someone bothering to write the code.

论文: 2605.13807 作者: Ejaaz Merali, Mohamed Hibat-Allah, Mohammad Kohandel, Richard T. Scalettar, Ehsan Khatami 分类: cond-mat.str-el, cond-mat.dis-nn, cs.LG, physics.comp-ph, quant-ph

缺口

神经量子态(NQS)用神经网络表示多体系统的量子波函数。

Transformer占主导地位,因为它们在GPU上并行化效果好。

循环神经网络(RNN)被认为本质上是串行的——你需要位置i的隐藏状态才能计算位置i+1,所以没有并行性,对吧?

这造成了一个架构天花板:如果你想扩展到大晶格(比如50×50自旋),就需要transformer及其二次方内存开销和巨大的计算预算。

缺口在于:RNN有线性内存扩展且概念上更简单,但所有人都假设串行瓶颈使它们在大型量子系统上不切实际。

没人认真尝试让RNN在规模上具有竞争力。

问题:大晶格上的量子多体基态
   |
   v
假设:RNN = 串行 = 慢 = 无法扩展
   |
   v
方法:对RNN递归应用并行扫描算法
   |
   v
证据:52x52晶格,匹配QMC基准,适度GPU时长
   |
   v
结论:RNN在大规模NQS上可行,计算量更少

增量

一句话:这篇论文之前,扩展神经量子态意味着使用二次方内存的transformer;

之后,带并行扫描的RNN在2704自旋系统上达到可比精度,内存线性且计算可及。

核心机制

方法有三层。

首先,自回归RNN波函数,一次生成一个格点的自旋配置,维护一个隐藏状态来编码迄今为止看到的量子关联。

其次,并行扫描算法(具体来说,他们对递归关系使用结合性扫描),同时计算所有隐藏状态而非串行计算。

第三,变分蒙特卡洛训练,从RNN采样配置,计算局部能量,更新参数以最小化能量。

数据流是这样的:你输入一个部分自旋配置(比如自旋1到k)。

RNN的递归关系在每个位置更新隐藏状态。

通常你会串行计算h_1,然后h_2,然后h_3。

并行扫描将其重新表述为可以在并行硬件上以log(n)深度运行的操作树。

一旦你有了所有隐藏状态,RNN输出下一个自旋的概率。

训练期间,你采样完整配置,评估量子哈密顿量,通过并行扫描反向传播来更新权重。

输入自旋:  s_1  s_2  s_3  s_4  ...  s_n
             |    |    |    |         |
             v    v    v    v         v
并行      [  h_1  h_2  h_3  h_4  ...  h_n  ]  <- 通过结合性树归约
扫描:       /  \  /  \  /  \            在log(n)步内计算
           /    \/    \/    \
          /      \    /      \
         +--------+--+--------+
                  |
                  v
输出:        P(s_next | s_1...s_n)
                  |
                  v
采样 -> 评估H -> 反向传播 -> 更新权重

把它想象成重新设计的工厂流水线。

旧RNN是单列传送带:每个工人(时间步)必须等前一个工人完成才能开始。

并行扫描像是把工厂重组成二叉树工作站。

叶子节点的工人同时开始,将部分结果传给父节点,父节点组合它们并继续向上传,直到根节点得到最终结果。

总工作量相同,但关键路径(最长依赖链)从n步缩短到log(n)步。

对于量子态,每个”工人”在计算量子关联如何在晶格中传播,树结构让你并行计算所有位置的关联,同时在数学上保留串行依赖。

关键概念

  • 自回归波函数:在量子力学中,波函数给系统的每个可能配置分配一个振幅(复数)。

对于n个自旋,有2^n个配置——指数级大。

自回归模型将其分解为乘积:ψ(s_1, s_2, …, s_n) = P(s_1) × P(s_2|s_1) × P(s_3|s_1,s_2) × … 每个因子是RNN可以计算的条件概率。

你不存储2^n个数字,而是存储RNN权重。

当你需要特定配置的ψ时,向前运行RNN计算乘积。

这就像通过存储生成名字的算法而非名字本身来压缩电话簿。

  • 并行扫描(结合性扫描):想象你要计算累积和:给定[a, b, c, d],输出[a, a+b, a+b+c, a+b+c+d]。

串行需要4步。

但加法满足结合律:(a+b)+c = a+(b+c)。

所以你可以并行计算(a+b)和(c+d),然后相加这些结果。

这推广到任何结合性操作。

如果f有正确的结构,RNN递归h_t = f(h_{t-1}, x_t)可以重写为结合性操作。

并行扫描构建二叉树:叶子计算成对组合,父节点组合子节点结果,根节点得到最终答案。

深度是log(n)而非n。

  • 变分蒙特卡洛(VMC):你想要量子哈密顿量H的基态(最低能量配置)。

VMC将其视为优化:用神经网络权重θ参数化波函数ψ(s; θ),从|ψ|^2(概率分布)采样配置s,计算每个样本的局部能量E_loc(s) = (Hψ)(s)/ψ(s),通过对θ的梯度下降最小化平均能量⟨E_loc⟩。

这就像通过随机投放弹珠(样本)并向下滚动(梯度下降)来找到景观中的最低点。

RNN给你ψ,并行扫描使采样快速,VMC将所有这些整合成训练循环。

框架转变

之前(Transformer):                之后(PSR-NQS):
                                      
自旋晶格(n个格点)                  自旋晶格(n个格点)
       |                                     |
       v                                     v
Transformer编码器                     带并行扫描的RNN
  - 注意力:O(n^2)内存                  - 递归:O(n)内存
  - 全对全交互                          - 串行结构
  - 大规模并行                          - 对数深度并行
       |                                     |
       v                                     v
采样配置                              采样配置
       |                                     |
       v                                     v
VMC训练(GPU集群)                    VMC训练(单GPU)

从架构驱动的扩展(向transformer投入更多计算)到算法驱动的扩展(通过扫描原语使RNN并行),核心转变是利用数学结构而非暴力并行

专家评审

选题眼光:真实缺口。

NQS中的transformer单一文化部分是惯性——RNN在没有探索现代循环架构的情况下被否定了。

作者正确识别出并行扫描(自1980年代以来在并行计算中存在)从未被认真应用于量子态表示。

这处于两个成熟领域(并行算法和NQS)的交叉点,这往往是低垂果实藏身之处。

方法成熟度:已知技术的巧妙应用而非根本创新。

并行扫描是教科书材料;

洞见在于认识到RNN递归符合扫描所需的结合性结构。

迭代再训练方案(在小晶格上训练,用作大晶格的初始化)是标准迁移学习。

这里没有概念上困难的东西,这实际上是优势——这是多年前就该做的工程。

实验诚意:基线公平。

他们与精确对角化(小系统)、量子蒙特卡洛(这些模型的金标准)和先前基于transformer的NQS进行比较。

52×52结果令人印象深刻,但有个警告:他们使用迭代再训练,这意味着模型不是在该规模上从头学习。

能量误差小(在QMC误差范围内),但他们没有报告方差或多次运行,所以难以评估稳定性。

计算预算比较(单GPU vs.集群)令人信服但缺乏细节——什么GPU,多少小时,什么批量大小?

写作功力:论文前置动机做得好,但埋没了实现细节。

第三节(方法)过于简洁——并行扫描描述假设读者熟悉该算法,没有解释RNN递归如何重新表述为结合性的。

结果部分会受益于消融研究:迭代再训练贡献了多少vs.并行扫描本身?

相关工作低估了先前基于RNN的NQS努力,使贡献看起来比实际更新颖。

判决弱接收 — 在重要应用领域挑战错误二分法(RNN vs. transformer)的扎实工程贡献,但实验评估可以更严格,写作可以更清晰。

要点总结

如果你在处理序列上的自回归模型,需要训练效率和推理速度,检查你的递归是否满足结合律(或可以近似为满足)。

并行扫描在小众并行计算圈子之外利用不足。

迭代再训练技巧——小规模训练,迁移到大规模——是直接训练不可行时扩展的实用方法。

更广泛地说,当一个领域收敛到一种架构(本例中是transformer)时,值得用现代工具重新审视被否定的替代方案。

“理论上可能”和”实际实现”之间的差距往往只是有人愿意写代码。