arXiv(opens in a new tab)quant-phNov 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2611.01993

Seeing Why: Exact Evidence Maps for Quantum and Optical Image Classifiers

Teerawat Tongloy, Rangsan Jomtarak

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Teerawat Tongloy¹ and Rangsan Jomtarak²

¹School of Integrated Innovative Technology, King Mongkut's Institute of Technology Ladkrabang, Bangkok, Thailand

²Faculty of Science and Technology, Suan Dusit University, Bangkok, Thailand

When an image classifier decides, we can usually only estimate why. For quantum and all-optical classifiers that act linearly on amplitude-encoded pictures up to the measurement, with no trained classical network before or after them, the decomposition needs no approximation: each class's probability above its no-information share splits exactly into contributions of the encoded amplitudes, shown as Born evidence maps (BEM) over the picture and measurable on the hardware that classifies. For the quadratic form behind each class probability it equals Integrated Gradients from a zero baseline, in closed form. Deleting the 5% of pixels with the highest evidence drops accuracy from 73% to 9%, as occlusion does with 1,024 extra runs per picture, whereas gradient saliency removes much less. One architecture serves both: a Fourier-plane mask followed by a brickwall circuit on qubits or by phase plates on a lens bench, read by a Born headroom readout with no trained parameter; centring each picture on its own mean lets dark features count as much as bright ones. In simulation, four phase plates at a single wavelength reach 72.3% on Caltech-10 colour photographs (96.8% on MNIST, 86.7% on Fashion-MNIST, 47.9% on colour CIFAR-10). On IBM's ibm_kingston, with the mask applied before approximate loading, 300 Caltech-10 test pictures were classified at 37.7% against 10% by chance (56.3% in exact simulation), and 2×22 \times 2 maps of ten correctly and confidently classified pictures, estimated on the chip, agreed with the exact ones (r=0.77r = 0.77). The maps also revealed a shortcut in the data.

1 Introduction

Explanations of image classifiers are usually approximations. Gradients, class activation maps [1] and their variants estimate which pixels mattered, but their maps need not add up to the decision they explain. Methods whose maps do add up, such as Integrated Gradients [2] and Shapley values [3], must in general be estimated numerically, by a path integral or by a sum over feature coalitions.

Quantum and optical classifiers inherit the problem. Quantum classifiers range from convolution-like circuits, introduced for quantum data [4], through amplitude-encoded classifiers [5], to hybrids that place a pretrained classical network in front of the circuit [6];

Teerawat Tongloy: teerawat.to@kmitl.ac.th

Rangsan Jomtarak: rangsan_jom@dusit.ac.th in a hybrid, an attribution concerns mainly the classical network. Hardware demonstrations, aimed at other questions, have typically used a few input features (e.g. [7]). Interpretability methods proposed for quantum classifiers include gradient-based saliency through a hybrid network [8], Integrated Gradients and Shapley values of the input pixels, measured on a superconducting chip for 2×22 \times 2 pictures [9], Integrated Gradients for amplitude-encoded models [10], parameter-shift saliency on tiny inputs [11], and Shapley values over gates [12]. Optical diffractive networks [13] classify pictures with light alone, in simulation and in fabricated devices; attributions for their classifications have so far been gradient-based, computed by back-propagation through the simulated propagation [14]. That map, the overlap of the forward field with the back-propagated detector field, is close in form to ours. Ours adds up exactly to each class's probability above its share, can be measured from camera intensities alone, and is tested on colour photographs; that work notes that the dark backgrounds of its pictures may favour the foreground. Separately, the layers of trained diffractive networks have been interpreted as the physical transforms they perform [15].

A classifier that is linear in its input amplitudes up to the final measurement, with no classical network before or after it, does not need approximate explanations: the contribution of every input amplitude to every class probability can be written down in closed form. We build such classifiers for two kinds of hardware, show that this decomposition is exact, check its ranking of pixels in a deletion test, and measure it on hardware (2×2(2 \times 2 blocks on a quantum chip, per pixel on a simulated lens bench). Our contributions:

  1. Born evidence maps (BEM, Section 2.5): an exact additive decomposition of each class's probability above its share over the encoded amplitudes, shown as spatial maps and, on hardware, estimated from finite measurements. The evidence equals Integrated Gradients from a zero baseline of the quadratic form behind each class probability, with the light that arrives held fixed [10]; what we add for this model class is the closed form and a measurement from class probabilities or camera frames, without gradient circuits [9, 10]. In a deletion test the maps rank pixels about as well as occlusion (seed 0, 300 pictures), at the cost of one forward and one adjoint pass, while plain gradients remove much less accuracy (Section 3.4).

  2. Maps measured on hardware (Section 2.6). On IBM's ibm_kingston, with the mask computed before loading, 2×22 \times 2 maps of ten test pictures, chosen by a stated rule among those the chip classified correctly and confidently, correlate with the exact maps at 0.77 (Section 3.7); on a simulated lens bench, per-pixel maps follow from camera intensities alone (Section 3.8).

  3. The mean plane (Section 2.1): an amplitude encoding that gives dark features the same weight as bright ones. It is the largest gain among the parts before the readout and moves the explanations onto the object, measured against human-drawn outlines (Section 3.5).

  4. One architecture for qubits and lenses (Sections 2.2–2.3): a Fourier-plane mask (a quantum Fourier transform on a chip, a 4f system on a bench) followed by a brick-wall circuit or by phase plates, trained on five datasets from handwritten digits to colour photographs (Section 3.3). The phase plates were checked end to end in an independent optics simulator, and we report the tolerances a bench must meet (Section 3.9).

  5. Born headroom (Section 2.4): a readout with no trained parameter that scores each class by how far its measured probability rises above its no-information share. On the optical model it reaches 72.3 %, against 48.6 % for the plain sums of the same outcomes and 73.8 % for a softmax with a learned temperature: BHR comes close to a learned temperature without training one, and is not more accurate (Section 3.2).

  6. Explanations in use (Section 3.6): the maps exposed a shortcut, a dark frame on one class's pictures; we removed it and confirmed the removal with the same maps.

In short, this is an optical image classifier whose class probabilities decompose exactly into contributions of the encoded amplitudes (designed and checked in simulation), and a quantum classifier with no trained classical network whose 2×22 \times 2 explanations were measured on a quantum computer. On hardware, two steps run classically before the chip: the Fourier-plane mask, which a bench does with lenses, and the fitting of a short circuit that loads each picture (Section 3.7).

a All-optical: the light, plane by plane

Figure

b Qubit chip: the same steps

Figure

Figure 1: Overview, drawn from the trained models' own data for a test picture of a ketch. (a) The all-optical classifier along its optical axis. The modulator holds the encoded field: three colour planes, each with the picture's own mean removed, and a plane of the colour means. A first lens takes each channel to its Fourier plane (its mean is the bright centre), where the learned mask multiplies it; a second lens forms the filtered field. Four phase plates (phase shown as colour) follow, and the Born headroom readout turns the light on the camera's 128 regions into class probabilities. The Born evidence map (BEM) for the answer, which a bench can measure from camera frames, lies on the dark hull. (b) The qubit classifier takes the same steps with a quantum Fourier transform, a brickwall circuit and 128 measured bit strings; on the chip of Section 3.7 the mask was applied before loading. The same picture through the trained models, plane by plane: Appendix B.

References (38)