Rebalancing Translation Derivations to Keep Quantum Language Circuits Trainable

Quantum language models that build a circuit from a sentence's grammatical structure often stop learning on longer sentences. Their gradients become so small that no feasible number of measurements can detect them. This proposal argues that the cause is not sentence length itself but the shape of the tree the circuit is built from, and that translation grammars offer a free way to reshape it. A hierarchical translation grammar is a set of rules that translates phrases containing gaps and either keeps or swaps the order of sub-phrases. In such a grammar, many different trees yield exactly the same translation. A long chain of "keep the order" steps can be regrouped into a shallow, balanced tree without changing the output. Balanced, tree-shaped quantum circuits are known to train well, while long chain-shaped ones are not. Choosing the most balanced equivalent derivation should therefore keep the gradients alive. What decides trainability is then only the irreducible part of the tree, the places where word-order swaps alternate with order-preserving steps.

The opportunity is narrow, and we state it honestly. We do not claim a quantum advantage for translation; trainable tree circuits of this kind are classically simulable, and classical grammar transducers already solve the toy tasks we use. The claim is about a design rule and a predictor. A sentence's rebalanced derivation depth should predict whether a grammar-structured quantum circuit will train, and rebalancing should rescue the cases that stall. The intended audience is anyone building circuits from linguistic structure, a community that currently hits this wall without a diagnosis.

Core Claim

The barren plateau is the phenomenon that the variance of gradients in a randomly initialized variational quantum circuit shrinks exponentially with system size. Analyzing the barren plateau phenomenon in training quantum neural networks with the ZX-calculus uses a graphical tensor calculus to prove which circuit topologies have it. Circuits shaped like a chain of tensors (matrix-product-state ansätze) have it. Circuits shaped like a balanced tree (tree tensor networks) and quantum convolutional networks do not; their gradient variance decays only polynomially.

A synchronous grammar derivation is literally a tree, but not necessarily a balanced one. In Chiang's hierarchical model, A Hierarchical Phrase-Based Model for Statistical Machine Translation, "glue rules" concatenate phrases left to right and produce left-branching combs whose depth grows linearly with sentence length. A circuit built on such a comb is topologically the chain case.

Our central observation concerns the simplest such grammar, the bracketing transduction grammar (BTG), which has only "straight" (keep order) and "inverted" (swap order) binary nodes. Runs of consecutive straight nodes are associative, and so are runs of consecutive inverted nodes: inverting A against an inverted (B, C) produces C B A either way. Every derivation can therefore be rotated into a canonical form whose depth is set only by how often straight and inverted nodes alternate along a path. We call this the irreducible alternation depth $h^\ast$.

We conjecture, by extending the per-level argument behind the tree-network result, that for a parameter $\theta$ sitting $h$ merge levels below the measured qubit,

$$\operatorname{Var}[\partial_\theta C] \;\gtrsim\; \kappa^{\,h} \cdot \frac{1}{\operatorname{poly}(n)},$$

where $C$ is the training loss, $n$ is the number of qubits, and $\kappa<1$ is a per-merge contraction factor fixed by the node unitary and how many qubits each merge discards. Rebalancing replaces $h$ by roughly $\log_2$ of the run length inside each same-orientation block, so the bound depends on $h^\ast$ rather than on sentence length. The testable consequence is that the stalls reported by Applying QNLP to Sentiment Analysis in Finance should track derivation shape rather than word count. That study found its quantum LSTM needed 100 epochs just to start learning on 18.4-word sentences, and its grammar-native model barely beat chance even on short ones.

Research Program

We will build a small quantum transducer whose circuit is the BTG derivation tree. Each source word is loaded into a register of $k$ qubits ($k=1$ or $2$). Each internal node applies a parameterized two-register unitary to its children's registers, with a fixed SWAP of the registers at inverted nodes so the reordering is structural. The node then passes one register upward and discards the other, as in a tree tensor network. At every internal node a single-qubit measurement gives the probability that the node is inverted, and a final measurement at the root gives a sentence-level label. The loss is cross-entropy on node orientations, plus the root label when one exists. The target string is read off deterministically from the orientations and a lexical table. This keeps the observables local, which matters because Analysis of Hessian Scaling for Local and Global Costs in Variational Quantum Algorithm shows global observables induce plateaus even at shallow depth. Gradients then reach deep parameters only through the ancestor merges, which is exactly the depth dependence we want to measure.

The program has three parts. The first is analytic: prove the bound above for our node family, adapting the tree-network calculation, and characterize $h^\ast$ combinatorially. The second is a rebalancing procedure. It is linear time for BTG; for Hiero-style rules with lexical items inside the gaps, a rule is rotatable only when its non-terminals are adjacent and same-oriented, and we will quantify what fraction of real derivations admit rotation. The third is an empirical study, using exact classical simulation, that crosses tree shape (comb, as-induced, rebalanced, generic balanced) with initialization scheme and sentence length.

Does provable absence of barren plateaus imply classical simulability? argues that plateau-free models like these live in classically simulable subspaces. We treat this as a constraint we accept, not one we dispute. It is also what makes 32-word, 64-qubit tree circuits tractable to study exactly.

The dynamic-circuit route of Dynamic parameterized quantum circuits: expressive and barren-plateau free uses mid-circuit measurements to keep information from scrambling. Our discard-and-pass-up merges resemble those measurement points. A stretch question is whether placing a measurement and feedforward at the points of irreducible alternation keeps the effective distance $f$ constant even when $h^\ast$ grows, but we do not depend on it.

Baselines

The naive reference point is a hardware-efficient layered circuit over the same qubits with uniform random angles and the same local readouts and parameter count. Letcher's geometric argument, Barren Plateaus in Variational Quantum Optimization, predicts it should flatten, and it shows what happens with no structural choice at all.

The second baseline is the grammar circuit built on the as-induced derivation without rebalancing, including glue-rule combs. This is what a careful practitioner porting Hiero or DisCoCat-style structure would build by default, so beating it is the core result. It counts as beaten if the rebalanced circuit's measured gradient variance at the deepest parameters is fit significantly better by a polynomial than by an exponential in length, while the as-induced circuit's is not. It must also reach the same orientation accuracy with fewer total measurement shots.

The strongest trainability competitors are initialization schemes applied to the unrebalanced comb. One is the Gaussian initialization of Escaping from the Barren Plateau via Gaussian Initializations in Deep Variational Quantum Circuits, with angle variance scaled as $1/L$. That paper reports LiH precision error of $10^{-4}$ versus $10^{-1}$ for uniform initialization; we found no reported result on Lacuna for it on any language task. The other is the identity-block initialization of An initialization strategy for addressing barren plateaus in parametrized quantum circuits, which trained a 132-layer, 10-qubit classifier. Both get the same optimizer, learning-rate sweep, seed count, and shot budget as our method. We also run each combined with rebalancing, because the two interventions might stack.

The key-ingredient ablation is a generic balanced tree tensor network of matched depth that ignores the grammar. It isolates whether the derivation matters, or whether any balanced tree gives the trainability benefit.

The strongest task-level system is the classical BTG transducer of Hierarchical Phrase-Based Sequence-to-Sequence Learning, which reports 100% accuracy on the synthetic SVO-SOV task versus 22% for standard seq2seq. We do not expect to beat it. It defines the accuracy ceiling the quantum circuit must approach once trainable.

Why not just…?

Why not just use a classical neural grammar? For translation quality this is the right answer, and we say so. Sequence-to-Sequence Learning with Latent Neural Grammars reaches 95.7–98.7% on hard SCAN splits and 100% on the daxy split with no quantum component. Our question is different: when someone does build circuits from linguistic trees, which trees train? The classical systems are reported as ceilings, not competitors.

Why not just initialize the comb circuit well? This is the real threat. Gaussian initialization turns exponential decay into polynomial decay when the gradient at zero is nonzero. If it makes comb circuits train as well as rebalanced ones at 32 words, rebalancing is redundant, and the full initialization-by-shape cross will show this. One structural reason it may fall short is specific to our circuits. At $\theta=0$ the node unitaries are identities, and orientation readouts on symmetric inputs may give zero gradient there. That is exactly the failure case Zhang et al. flag. We will measure the gradient at the origin directly rather than assume.

Why not just use a generic balanced tree or convolutional circuit and ignore the grammar? Zhao and Gao's result already guarantees trainability for such circuits. If the grammar-agnostic tree matches our model on both gradient variance and SVO-SOV accuracy, the grammar contributes nothing. We expect a split outcome: equal trainability but lower accuracy on reordering, because a generic tree cannot place the swap at the right constituent. The ablation measures both separately.

Why not just simulate it classically? We do, throughout. The Cerezo et al. argument makes this unavoidable for plateau-free trees. The contribution is a design rule and a stall predictor for structure-built circuits, not a speedup.

Proposed Experiments

The first decisive check uses synthetic BTG data with controlled length (8, 16, 24, 32 words) and controlled alternation depth $h^\ast$, holding one fixed while varying the other. If trainability depends on derivation shape, gradient variance at the deepest parameter, estimated over 200 random initializations, should vary strongly with $h^\ast$ and weakly with length. If it varies with length at fixed $h^\ast$, the core claim fails.

The second check is the SVO-SOV reordering task from Kim et al. We report node-orientation accuracy, exact-match target order, and shots-to-threshold for every baseline above, with noiseless and depolarizing-noise variants. The noise variant checks whether noise-induced plateaus, which structural fixes do not address according to Zhao and Gao, swamp the shape effect.

The third check reuses the low (4.9-word) and moderate (18.4-word) complexity financial sentiment sets of Stein et al. with binary parses. We compare comb, as-parsed, and rebalanced circuits on validation accuracy and epochs-to-first-improvement against the 100-epoch stall they report.

As a scope test, we extract Hiero derivations from small aligned subsets of the IWSLT 2014 German-English low-resource split. We measure the distribution of $h^\ast$ before and after rebalancing, which shows how much of real translation structure is rotatable. Training on this data is out of reach for quantum simulation, and we will not claim BLEU results.