Reading Why: Born-Measured Attention with Exact Word Evidence on Light and Qubits

Teerawat Tongloy, Jiraporn Pongsopa, Rangsan Jomtarak

TL;DR

The authors introduce the Born Transformer, a model where every nonlinearity is replaced by a physical Born measurement—squaring the modulus of an amplitude. This design allows for mathematically exact feature attribution (word-level evidence) and enables the model to run directly on optical and quantum hardware with accuracy comparable to standard softmax-based Transformers.

What Problem Does This Paper Address?

In modern language modeling, understanding why a model gives a specific answer is usually a matter of estimation. Popular techniques like attention visualization or post-hoc gradient-based methods provide approximations that can be misleading; for instance, attention weights often fail to account for the final output.

Furthermore, standard neural network components like Softmax, LayerNorm, and ReLU are not "native" to the physics of light (optics) or qubits. This creates a gap between high-performing AI models and the emerging hardware—such as quantum computers and photonic chips—that could potentially run them more efficiently. The authors seek a model that is interpretable by design and physically realizable.

Methods

The core innovation is the replacement of all standard nonlinearities with the Born rule.

  • Born Attention: Instead of Softmax, the model uses $|\langle q|k\rangle|^4$ normalized over each row.
  • Measured MLP: The feed-forward layer replaces ReLU with a measured product of linear images.
  • Polynomial Nature: By holding denominators constant for a given input, the class probability becomes a high-degree polynomial of the word amplitudes. This allows Integrated Gradients (IG)—a method for attributing importance to input features—to be computed with zero quadrature error using a finite number of steps (Gauss-Legendre quadrature).
  • Hardware Realizations: The authors propose two versions of the architecture:
  • The Born Transformer: Designed for optics, where measurements happen inside every block.
  • Coherent Attention Layer: Designed for qubits, utilizing a single circuit that performs one measurement at the very end to maintain quantum coherence.
Figure 2: Three models step by step, bottom to top, in the box colours of the original trans- former figure: a transformer encoder [7], the Born Transformer drawn as optics (a beam through a modulator, interferometers with balanced detectors, beam splitters, a lens and a camera; the same weights run on qubits) and the coherent attention layer drawn as its circuit, wires running upwards (one circuit, one measurement). Bands hold the same stage; detector symbols mark the measurements.

Datasets

The model was evaluated on e-SNLI (extended Stanford Natural Language Inference). This dataset requires the model to determine if a "hypothesis" sentence follows from, contradicts, or is neutral toward a "premise" sentence. Crucially, e-SNLI includes human-annotated "highlights"—words that people identified as the reason for the label—providing a ground truth for evaluating the model's explanations.

Key Insights and Ideas

  • Exact Evidence (BEW): The authors introduce "Born Evidence per Word" (BEW). Unlike standard attribution methods, BEW is exact: the sum of evidence for all words equals the class probability (above a baseline) to a precision of $10^{-11}$ or better.
  • Attention $\neq$ Explanation: A striking finding is that while standard attention weights often align better with human highlights, they are worse at explaining the model's actual decision. BEW, however, is highly "faithful"—deleting the word it ranks as most important is significantly more likely to change the model's answer than deleting the word ranked first by attention.
  • Physical Compilation: The model's weights are not just abstract numbers; they compile exactly into optical components (beam splitters, modulators) and quantum circuits (CNOT gates).
Overview of the model running on simulated light and a real IBM quantum computer.

Key Results

  • Accuracy: On e-SNLI, the Born Transformer achieved 76.98% test accuracy, effectively matching a standard softmax Transformer of the same size (76.62%).
  • Faithfulness: In deletion tests, removing the top word identified by BEW changed the Born Transformer's answer in 45% of test pairs. For comparison, the softmax model's answer changed only 32% of the time when its top word was deleted.
  • Quantum Execution: The authors ran the attention overlaps on IBM’s ibm_kingston quantum processor. Despite hardware noise, the device successfully reproduced the model's answers and mirrored its behavior under word deletion.
Born Evidence per Word (BEW) visualized for four test pairs, showing how specific words pull the model toward or away from a classification.

Limitations and Future Work

  • Scale: The models tested are relatively small (~98k parameters outside the embedding), far from the scale of modern LLMs.
  • Hardware Noise: While the answers survived the quantum hardware, the exact evidence values did not yet survive the device noise, requiring better row-sum calibration in the future.
  • Computational Cost: On quantum hardware, the number of shots required grows with the square of the sentence length, posing a challenge for long-sequence scaling.
  • Simulation vs. Reality: The optical version was simulated; a physical photonic implementation remains a future milestone.

Summary updated

Abstract

When a language model answers, we can usually only estimate why. We build a transformer in which every step is a Born measurement - attention $|\langle q|k\rangle|^4$ normalised over each row, a measured product in place of the feed-forward nonlinearity, and a Born readout. With its denominators held at their values for the input, each class probability is a polynomial in the word amplitudes, so its integrated-gradient evidence is computed by a finite quadrature with no quadrature error: the words' contributions sum to the class probability above its no-information share, to $10^{-11}$ or better. On e-SNLI natural language inference, with about 98k parameters outside the embedding, the model reaches $76.98 \pm 0.17$% test accuracy, level with a softmax transformer of the same size ($76.62 \pm 0.36$%). Deleting the word its evidence ranks first changes the answer in 45% of test pairs, out of the 53% any single deletion can change, against 32% for the softmax model explained the same way and 40% by its attention x gradient. Attention can look more like the words annotators highlighted, yet accounts for the answer less well: deleting the word it ranks first changes the Born Transformer's answer in 32% of pairs. The same weights compile exactly to optoelectronic optics and to qubits, and a coherent attention layer becomes one circuit equal to the model (852 CNOTs on 23 qubits). On IBM's ibm_kingston, reading only the attention overlaps by Hadamard tests, the device gave the model's answers on two short test pairs and kept or changed them under deletion as the model does; the evidence itself did not yet survive the device, and we work out the shots and calibration that measuring it on hardware would need.
BibTeX
@misc{tongloy2026reading,
  author = {Teerawat Tongloy and Jiraporn Pongsopa and Rangsan Jomtarak},
  title = {{Reading Why: Born-Measured Attention with Exact Word Evidence on Light and Qubits}},
  year = {2026},
  eprint = {2611.05355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05355},
}
Figure