跳到正文
arXiv (Optics + Display + Materials)· Teerawat Tongloy, Jiraporn Pongsopa, Rangsan Jomtarak·· 14 天前AI 评分18

基于Born概率与二次检测的Transformer注意力机制:在e-SNLI上实现精确词级证据归因并编译至光电子与量子比特

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

AI 导读

研究者构建了一种Transformer,将每个非线性环节替换为二次检测(干涉、平衡读取或相机),输出为按行归一化的Born概率形式注意力,前馈非线性采用测量乘积与Born读出。

正文 · 原文

arXiv:2611.05355v4 Announce Type: replace-cross Abstract: When a language model answers, we can usually only estimate why. We build a transformer in which every nonlinearity is a quadratic detection - an interference, a balanced reading or a camera - and the output is a Born probability: attention ||^2, the form of the Born rule, normalised per row, a measured product for the feed-forward nonlinearity, and a Born readout; between detections, classical control rescales and re-encodes. With its denominators held at 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^-13. On e-SNLI natural language inference it reaches 77.45 +- 0.91 % accuracy, level with a same-size softmax transformer (76.62 +- 0.36 %) and an order-free bag of embeddings (77.79 %). Exactness buys the sum, not the best ranking. Deleting the word its evidence ranks first changes the answer in 44 % of pairs, of the 53 % some deletion changes, against 31-32 % for the softmax model's integrated gradients; the model's own gradient x input does as well (43 %), as does a bag of embeddings' (43 %, seed 0), and leave-one-out does better. Holding the denominators helps the low end: the five words ranked last change the answer in 1 %, against 6 % free. The same weights compile exactly to simulated optoelectronics, and their attention to qubits. On ibm_kingston, reading only the attention, the device gave the model's answers in all three Hadamard-test runs (the two shortest pairs and one without its deciding word) and both compute-uncompute runs (one circuit per overlap); uniform attention answers otherwise on two of the three inputs. With the device's row sums the evidence correlated with the exact one at 0.997 and 0.962 by Hadamard tests; with compute-uncompute, 0.971 and 0.48.

来源:arXiv (Optics + Display + Materials) · arxiv.org