Exact Word Evidence in a Born-Measured Attention Transformer
The point is not higher accuracy but an explanation that adds up exactly and can be checked against human highlights; the price is that the guarantee grows costly with depth.
On this page
A customer hands you a scorecard reading 76.98%, but the question he actually asks is: why should I trust it? Most people then open the table of weights inside the model, point at the brightest cell, and call that word the reason. Say you are the team that has to defend one call: the model says two sentences contradict each other, and you need more than 'probably this word'. That guess looks reasonable, and it is often wrong. Looking like a reason and deciding the answer are two different things, and the paper we are about to read builds a model where each word's share adds up exactly to the probability, with nothing left over. We will see where that claim holds, and where it does not apply.
The usual move: read the weights and call the brightest word the reason
Start with a scene anyone in a review meeting knows. You put one result on the screen, the label 'contradiction' lights up, and the client points at it and asks, which word. The usual advice is to open the table inside the model, find the darkest cell, and name that word as the reason. At first glance this looks right.
The paper turns it over: delete that darkest word and the answer often does not move [1]. That is wrong.
Two things get mixed up here, so keep them apart. One table records how much share the model gives to each other word as it reads; that share is the attention weight, and it only says where the model looked. The other thing is evidence: the account that splits an answer back into how much each word contributed, so the parts should add up to that answer [1]. The first records a route, the second answers for the output.
The paper's contrast is blunt: on e-SNLI, deleting the word the attention weight ranks first changes the Born Transformer's answer in 32% of test pairs, while deleting the word the evidence ranks first changes it in 45% [1]. e-SNLI is a natural-language-inference dataset: it asks whether one sentence follows from another, with labels entailment, contradiction and neutral, and each pair comes with the words an annotator marked as deciding the label, which makes an outside judge.
- Looks like a reason.
- Changes nothing when deleted.
- Two different properties.
- The numbers back the split.
Most explanation tools stop at an estimate, and the leftover is left to taste [1].
The paper refuses that: it reports accuracy next to how completely the word credits sum, a deletion test, and how often the top words match what people highlighted [1]. Separate the two questions first, and only then ask how exact the accounting can be.
What the paper built: a model measured at every step
The authors replace all three places where a transformer bends a number [1]. In an ordinary transformer, attention uses softmax to turn scores into probabilities, the feed-forward layer uses ReLU to cut negatives to zero, and LayerNorm pulls values back to one scale; softmax is the standard way to turn scores into a probability, and none of these three is native to light or qubits.
They keep one move, a Born measurement: take a complex amplitude, square its modulus, and read a probability, the rule Born gave in 1926. With the denominators held at their input values, the whole model becomes a polynomial in the word amplitudes: a polynomial is just sums and products, with none of those sudden cuts [1]. That single property is where the exact credit comes from.
Why does that help? With a polynomial, each word's credit comes out of integrated gradients exactly [1]. Integrated gradients means this: start from the zero baseline where no word is present, walk along one path to the real input, and integrate how the answer changes with that word's amplitude; the result is the share it deserves. Since there are no sudden cuts, a finite Gauss-Legendre quadrature rule, a fixed set of nodes, computes that integral with no quadrature error.
The degree climbs step by step: two blocks, two heads per block, the overlap taken to the fourth power, the readout squared, so the explained quantity is a degree-648 polynomial and 324 nodes integrate it exactly [1].
In double precision, over 1,000 test pairs the gap between the summed word credits and the answer has median 6×10^-13 and a maximum of 8×10^-12; the '10^-11 or better' in the abstract is this [1]. The gap is tiny. The claim is stronger: the credits add up, they are not merely close. The authors also note the bound is loose, since 81 nodes already agree with 800 nodes to 10^-13 on ten test pairs [1].
Now the training data and size [1]. The dataset is e-SNLI: 549,367 training, 9,842 dev and 9,824 test pairs, roughly a third per label; a pair has 23 tokens at the median, the vocabulary holds 22,319 words seen at least three times, and annotators mark about one word in three. The model, called the Born Transformer, has 1,530,593 parameters total but only 98,081 outside the word embedding, about 98k; it uses two blocks, two heads, and a readout camera of 256 pixels split into three class regions.
Training used the Adam optimiser at learning rate 2×10^-3, batch 64, 20 epochs, word dropout 0.1, three seeds [1]. For comparison, a softmax transformer of the same size has 1,532,803 parameters, with real d = 64 and a GELU feed-forward of width 256; Poly-sim-born is a real polynomial model with normalised attention but no constraint from measurements, at 1,530,752 parameters [1]. A bag of words with logistic regression tops out at 65.7%, and the hypothesis alone gives 64.8%, so relating the two sentences buys the rest [1].
Start with accuracy [1]. The Born Transformer reaches 76.98 ± 0.17% on the e-SNLI test set, the softmax transformer 76.62 ± 0.36%, and Poly-sim-born 78.98 ± 0.31%, about two points higher; the authors say plainly that the point is not to win but to pay no accuracy for exact evidence against a same-size softmax model.
The same weights compile to optics and to qubits: the compiled optical pass equals the trained model to at most 2×10^-15 on 512 test pairs, and an independent mesh rebuild uses 15 matrices and 130k beam splitters, the optical parts that divide one beam into two, and still gives 77.20% on 1,000 test pairs with every answer kept [1].
On IBM's ibm_kingston, with only the attention overlaps read on the device at 2,000 shots per circuit, the 256 measured overlaps of the first block correlate with the ideal ones at r = 0.992, and the device's answer probability is 0.988 against the exact 0.983 [1]. The answer survives. The evidence itself does not yet survive there, and we return to that in the last section.
Numbers you can check: accuracy, flips, and the leftover gap
'Exact' means little unless you can check it [1]. The paper judges word credits three ways: the gap, how far the credits fall from summing to the explained score; deletion, dropping the top one to five words and recording how often the answer flips; and how often the top words match what annotators highlighted, where chance sits at 0.354. Every metric uses the same 1,000 test pairs, three seeds, and the predicted class [1]. Deleting a word sets its amplitude to zero, so the word is simply not sent and no position shifts.
| Check | Born Transformer | Softmax transformer | Poly-sim-born |
|---|---|---|---|
| Test accuracy (%) | 76.98 ± 0.17 | 76.62 ± 0.36 | 78.98 ± 0.31 |
| Summed-credit gap (median / max) | 6×10^-13 / 8×10^-12 | 0.04 / 47 | 10^-14 / 5×10^-12 |
| Flip when top credit word is deleted (%) | 45 | 31 | 45 |
| Ceiling, any single word can flip (%) | 53 | 55 | 54 |
| Match with highlighted words | 0.510 ± 0.005 | 0.468 ± 0.003 | 0.527 ± 0.011 |
Two rows deserve the stare [1]. In the gap row, the Born Transformer sits at median 6×10^-13 and max 8×10^-12, so the word credits add back to the answer almost exactly; the softmax model, explained by integrated gradients with 256 nodes in units of its own logit, the raw score before it becomes a probability, shows a median gap of 0.04 and a largest of 47, which is not exact at all [1].
Push the softmax model to 4,096 nodes and its median gap only reaches 10^-7, still not zero [1].
In the flip row, deleting the top credit word changes the Born Transformer's answer in 45% of pairs against 31% for the softmax model, while a random word changes it in only 5% to 6% for both [1]. Table 2 of the paper puts that 45% at 84% of the 53% ceiling [1]. At the other end, deleting the five lowest-ranked words changes the Born model's answer in 1% of pairs, against 10% for the softmax model [1]. Both ends line up. That is what a working explanation looks like.
- Gap: do the parts add up.
- Deletion: does the answer move.
- Highlights: does it look human.
- You need all three.
Three checks you can run yourself
Turn the paper into steps and you get three; you change how you check, not the model [1].
- Step one, demand a list of what each word contributed, then ask whether those numbers add up to the score they explain. The paper's median gap is 6×10^-13 for the Born Transformer and 0.04 for the softmax model [1].
- Step two, verify by deleting, not by staring at colour: drop the top credit word and see whether the answer flips, then drop the five lowest and see whether it stays put. The paper reports 45% and 1% [1].
- Step three, compare the ranking with the words annotators marked, and remember that matching a human's reason is not the same as deciding the answer. The paper's attention-times-gradient ranking reaches a 0.55 match with the highlights but flips the answer only 40% of the time when its top word is deleted [1].
None of these three asks you to trust a claim [1]. They ask whether the explanation is pinned to the answer.
One swap in the paper makes the point: replace Poly-sim-born's bilinear feed-forward, where two linear images are multiplied element by element, with a GELU feed-forward, and accuracy still holds at 77.13 ± 1.42%, but the model stops being a polynomial, the median gap jumps to 4×10^-3, the top-word flip drops from 45% to 27%, and the match with highlights falls from 0.53 to 0.46 [1]. Change one part and the explanation comes apart. The authors conclude that the quality of the evidence goes with the whole model being one polynomial, not with any single piece [1].
Where it breaks: limits and my judgment
Pull back [1]. The exact sum only holds when the denominators are fixed at the input and the whole model is one polynomial. Go deeper and the cost climbs: the paper gives a degree bound of 2×18^B for B blocks, so two blocks need 324 nodes and four would need about 10^5, and the authors call the bound loose, since 81 nodes already match 800 nodes to 10^-13 on ten pairs, while conceding deeper models need a tighter bound, adaptive quadrature, or a lower-degree feed-forward [1].
It is validated on one dataset with human highlights, e-SNLI, and the models are far smaller and less accurate than the state of the art on SNLI [1].
The real device runs cover two sentence pairs and four deletions; the hybrid evidence does not yet survive the device and needs each row's visibility, how much of the ideal signal the device still sees, calibrated to within a few per cent; the coherent attention layer, where the whole layer is one circuit measured only at the end, needs 852 CNOTs, two-qubit gates, on 23 qubits with a pass rate of 10^-5 to 10^-4, beyond today's machines; the optics are simulated, with no crosstalk or drift, and uncorrected phase errors must stay near 0.01 rad [1].
On qubits the circuit count grows as the square of sentence length, 8(n+1)^2: about 10^6 shots for the seven-token device pairs, 9×10^6 for the 23-token median, and 7×10^7 at 64 tokens [1].
The authors claim no quantum advantage: the device computes what a classical machine does at once [1]. So the caveat is concrete: swap in an ordinary large model with softmax and LayerNorm, or move to a task with no human-highlighted words, and this exact-sum story fails when the polynomial property is gone; it does not apply, and it breaks down.
One line to screenshot: a good explanation is not the one that looks most like a human reason, but the one that adds up, moves the answer when deleted, and survives a check [1]. This framing only holds for a polynomial model with denominators fixed at the input and human highlights to compare against; move to a plain large model, a task without marked words, or sentences so long the node count explodes, and it no longer holds, and it does not cover that case [1]. That is the limit. Do not take 10^-11 as a blanket promise for every model.
