Q-Interference: Memory-Efficient Phase-Aware Quantum-Inspired Attention
Summary
This paper proposes Q-Interference, a memory-efficient quantum-inspired attention mechanism for GPT models that uses phase-aware scoring and an exact trigonometric factorization to improve token interaction without increasing memory overhead.
View Cached Full Text
Cached at: 08/19/26, 09:54 AM
# Q-Interference: Memory-Efficient Phase-Aware Quantum-Inspired Attention
Source: [https://arxiv.org/html/2608.17288](https://arxiv.org/html/2608.17288)
Emama NahidAffiliation:Kennesaw State UniversityAffiliation:Marietta, GA, USAEmail:[enahid@students\.kennesaw\.edu](mailto:)Tahmid Imtiaz ImuAffiliation:Kennesaw State UniversityAffiliation:Marietta, GA, USAEmail:[timu1@students\.kennesaw\.edu](mailto:)Huayue GuLiran MaAffiliation:Miami UniversityAffiliation:Oxford, OH, USAEmail:[mal18@MiamiOH\.edu](mailto:)Zhipeng CaiAffiliation:Georgia State UniversityAffiliation:Atlanta, GA, USAEmail:[zcai@gsu\.edu](mailto:)Honghui XuAffiliation:Kennesaw State UniversityAffiliation:Marietta, GA, USAEmail:[hxu10@kennesaw\.edu](mailto:)
###### Abstract
GPT attention measures token compatibility through dot\-product similarity\. This mechanism is simple, effective, and memory\-efficient\. But it does not explicitly model whether strong token features should reinforce or suppress one another\. We introduce Q\-Interference, a fully classical quantum\-inspired attention mechanism for autoregressive language modeling that augments each query and key feature with an amplitude and a learned phase\. The resulting attention score is phase\-aware which aligned phases contribute constructively while conflicting phases contribute destructively\. Although Q\-Interference yields a richer interaction rule than similarity alone, a naive implementation of Q\-Interference requires a large token\-pair\-feature interaction tensor, making it memory\-intensive and often impractical\. To address this limitation, we propose an exact trigonometric factorization that computes the same score using two standard matrix multiplications avoiding materialization of the large intermediate tensor\. Q\-Interference fits directly into a Transformer block in GPT and leaves the remainder of the model architecture and next\-token prediction objective unchanged\. Experiments on public benchmark datasets and baseline models show that the proposed reformulation trains stably in a controlled GPT\-style setting and provides a consistent memory advantage over naive phase\-aware interference attention\. These results support the specific contribution of this work: an exact memory\-efficient reformulation that makes phase\-aware interference attention practical within a standard GPT pipeline\. Our code is available at[https://anonymous\.4open\.science/r/Q\-Interference\-Memory\-Efficient\-Quantum\-Inspired\-Attention\-BDF9](https://anonymous.4open.science/r/Q-Interference-Memory-Efficient-Quantum-Inspired-Attention-BDF9)\.
## 1Introduction
Transformer based GPT models have become a foundation of modern language processing because they can represent context across token sequences[26](https://arxiv.org/html/2608.17288#bib.bib1);[9](https://arxiv.org/html/2608.17288#bib.bib18)\. A token is a basic text unit\. Self attention is the mechanism that lets each token compare itself with other tokens in the same sequence\. GPT style autoregressive models use causal self attention where each position attends only to previous positions to predict the next token[3](https://arxiv.org/html/2608.17288#bib.bib19)\. However, standard attention usually measures token compatibility through a dot product which mainly reflects feature similarity\. This view may miss cases where strong features should support or suppress each other depending on context\.
This challenge becomes more important in long context language modeling[7](https://arxiv.org/html/2608.17288#bib.bib24)\. Practical systems such as document question answering, scientific text modeling and retrieval augmented generation often depend on information spread across many tokens[1](https://arxiv.org/html/2608.17288#bib.bib20);[15](https://arxiv.org/html/2608.17288#bib.bib21)\. These settings require a model to connect nearby words with distant evidence\. Standard dense attention lets each token compare with many earlier tokens\. So its memory cost grows with sequence length[8](https://arxiv.org/html/2608.17288#bib.bib2);[1](https://arxiv.org/html/2608.17288#bib.bib20)\. During autoregressive inference, the key value cache stores past keys and values and also grows as more tokens are generated[11](https://arxiv.org/html/2608.17288#bib.bib8);[14](https://arxiv.org/html/2608.17288#bib.bib27)\. Consequently, memory efficiency is not only a systems concern but also a condition for making richer attention rules practical at scale\.
Prior research has improved attention and language model efficiency through better memory use, cheaper sequence computation and richer interaction structure[25](https://arxiv.org/html/2608.17288#bib.bib26)\. On the efficiency side, standard attention has been accelerated or approximated through memory aware exact computation, low rank structure, random feature estimation, structural routing and sparse access patterns[8](https://arxiv.org/html/2608.17288#bib.bib2);[27](https://arxiv.org/html/2608.17288#bib.bib3);[6](https://arxiv.org/html/2608.17288#bib.bib4);[24](https://arxiv.org/html/2608.17288#bib.bib13);[28](https://arxiv.org/html/2608.17288#bib.bib25)\. These advances make long sequence modeling more practical, but they largely keep token compatibility tied to the standard query key similarity view\. On the modeling side, quantum and quantum inspired attention has introduced richer ways to represent token relationships through state based interaction, circuit motivated computation and quantum style similarity[16](https://arxiv.org/html/2608.17288#bib.bib5);[4](https://arxiv.org/html/2608.17288#bib.bib6);[12](https://arxiv.org/html/2608.17288#bib.bib11);[13](https://arxiv.org/html/2608.17288#bib.bib12)\. Quantum inspired efficiency has also been used to reduce fine tuning cost and key value cache storage, but these contributions operate outside the internal score computation that creates the phase aware interaction tensor[5](https://arxiv.org/html/2608.17288#bib.bib7);[11](https://arxiv.org/html/2608.17288#bib.bib8)\. Together, these studies suggest that attention can be made both more efficient and more expressive\. However, they do not address the specific memory overhead created when phase aware pairwise feature interactions are implemented directly inside GPT style autoregressive language modeling\. This leaves a gap for an exact tensor memory\-efficient reformulation that preserves constructive and destructive phase interactions while avoiding the large intermediate interaction tensor\.
We introduce Q\-Interference to address this gap\. It is a fully classical quantum inspired attention mechanism for autoregressive language modeling\. The method augments each query and key feature with an amplitude and a learned phase\. The amplitude controls the strength of a feature, while the phase controls how that feature interacts with another token\. Aligned phases create constructive interaction, whereas conflicting phases create destructive interaction\. A direct implementation of this idea requires a large token pair feature tensor\. So we derive an exact factorization that computes the same score using two standard matrix multiplications\. This makes the phase\-aware computation memory efficient with respect to its additional interaction cost, while preserving the GPT backbone and the next token prediction objective\. Our contributions are as follows\.
- •We introduce Q\-Interference, a phase aware quantum inspired attention mechanism for GPT style language modeling\. It uses amplitude and learned phase to model constructive and destructive token interactions\.
- •An exact memory efficient reformulation is derived for phase aware interference attention\. The reformulation computes the same attention score with two standard matrix multiplications\.
- •Q\-Interference is evaluated in a controlled GPT style setup\. The backbone and next token objective remain unchanged so that the effect of the attention rule can be isolated\.
Figure 1:Q\-Interference methodology flowchart\.
## 2Q\-Interference
We introduce Q\-Interference, a quantum\-inspired variant of GPT in which the standard dot\-product attention score is replaced by a phase\-aware interference score\. The model remains entirely classical and is trained on standard GPU hardware\. The aim is not to claim quantum advantage, but to incorporate a useful structural idea from wave\-like interactions into autoregressive language modeling\. Notation and proof assumptions are collected in Appendix[B\.1](https://arxiv.org/html/2608.17288#A2.SS1)\. The design is intentionally minimal\. We preserve the standard GPT backbone, including token and positional embeddings, residual connections, layer normalization, feed\-forward blocks, and the next\-token prediction objective\. As shown in Fig\.[1](https://arxiv.org/html/2608.17288#S1.F1), the only modification lies in the attention scoring rule\. This keeps the comparison against a standard GPT baseline controlled and makes the source of improvement easier to interpret \. LetX∈ℝT×dX\\in\\mathbb\{R\}^\{T\\times d\}denote the hidden sequence representation at a given layer, whereTTis the sequence length andddis the model dimension\. Standard self\-attention computes the query, key, and value projections asQ=XWQQ=XW\_\{Q\},K=XWKK=XW\_\{K\}, andV=XWVV=XW\_\{V\}\. whereWQ,WK,WV∈ℝd×dhW\_\{Q\},W\_\{K\},W\_\{V\}\\in\\mathbb\{R\}^\{d\\times d\_\{h\}\}are learned projections for a head of dimensiondhd\_\{h\}\. The conventional attention score between tokensiiandjjissijstd=qi⊤kjdhs\_\{ij\}^\{\\mathrm\{std\}\}=\\frac\{q\_\{i\}^\{\\top\}k\_\{j\}\}\{\\sqrt\{d\_\{h\}\}\}\. After applying the causal maskMM, the normalized attention weights are
αij=exp\(sijstd\+Mij\)∑m≤iexp\(simstd\+Mim\)\\alpha\_\{ij\}=\\frac\{\\exp\\\!\\left\(s\_\{ij\}^\{\\mathrm\{std\}\}\+M\_\{ij\}\\right\)\}\{\\sum\_\{m\\leq i\}\\exp\\\!\\left\(s\_\{im\}^\{\\mathrm\{std\}\}\+M\_\{im\}\\right\)\}\(1\)and the output at positioniiisoi=∑j≤iαijvjo\_\{i\}=\\sum\_\{j\\leq i\}\\alpha\_\{ij\}v\_\{j\}\.
This reformulation is effective, but it assumes that token compatibility is sufficiently captured by magnitude\-based similarity\. Our method relaxes that assumption by introducing an explicit phase component into token interaction\.
Phase\-Aware Interference Attention:Standard self\-attention measures token compatibility through the query\-key dot product\. Although effective, this score is mainly magnitude\-driven and treats strong feature alignment as supportive interaction\. In language, however, token relationships can be either reinforcing or suppressive depending on context\. To model this more explicitly, we introduce a quantum\-inspired attention mechanism that combines feature strength with relative phase alignment\.
Our goal is not to claim quantum advantage, but to use a simple wave\-inspired principle: aligned signals interact constructively, while misaligned signals interact destructively\. This gives the attention score a more expressive way to capture both supportive and conflicting token relationships\.
Instead of using real\-valued query and key vectors alone, we represent each projected feature using an amplitude\-phase decomposition:
qi→\(aiq,ϕiq\),kj→\(ajk,ϕjk\),q\_\{i\}\\rightarrow\\left\(a\_\{i\}^\{q\},\\phi\_\{i\}^\{q\}\\right\),k\_\{j\}\\rightarrow\\left\(a\_\{j\}^\{k\},\\phi\_\{j\}^\{k\}\\right\),\(2\)whereaiq,ajk∈ℝ\+dha\_\{i\}^\{q\},a\_\{j\}^\{k\}\\in\\mathbb\{R\}\_\{\+\}^\{d\_\{h\}\}are nonnegative amplitudes andϕiq,ϕjk∈ℝdh\\phi\_\{i\}^\{q\},\\phi\_\{j\}^\{k\}\\in\\mathbb\{R\}^\{d\_\{h\}\}are learned phases\. In practice, amplitudes are produced through a nonnegative activation, while phases are constrained to a bounded interval such as\[−π,π\]\[\-\\pi,\\pi\]for numerical stability\. This decomposition gives a simple interpretation\. The amplitude controls how strongly a feature participates in attention, while the phase controls how that feature interacts with another one\. Two features with aligned phase reinforce each other, whereas two features with conflicting phase suppress one another\. In this way, token interaction is no longer determined only by feature strength, but also by relative phase alignment\. Given a query tokeniiand a key tokenjj, we define the interference\-based attention score as
sijint=1dh∑r=1dhai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)s\_\{ij\}^\{\\mathrm\{int\}\}=\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\sum\_\{r=1\}^\{d\_\{h\}\}a\_\{i,r\}^\{q\}\\,a\_\{j,r\}^\{k\}\\cos\\\!\\left\(\\phi\_\{i,r\}^\{q\}\-\\phi\_\{j,r\}^\{k\}\\right\)\(3\)
This is the main departure from standard attention\. Each feature contributes not only according to its amplitude, but also according to the cosine of its phase difference\. When the phases are close, the cosine term is positive and the interaction is strengthened\. When the phases disagree, the cosine term decreases or becomes negative, suppressing the interaction\. As a result, the model can distinguish constructive and destructive relationships between tokens rather than treating all large\-magnitude alignments as equally supportive\. An algebraic derivation of the phase\-aware interference score is provided in Appendix[B\.2](https://arxiv.org/html/2608.17288#A2.SS2)\.
The trade\-off is that this richer interaction rule is more expensive than classical dot\-product attention when implemented naively\. In particular, directly computing phase\-aware pairwise interactions introduces an additional intermediate structure over token pairs and feature dimensions, which significantly increases memory usage\. This makes the method more expressive, but also potentially less practical at scale\. To address this issue, we later introduce a memory\-efficient factorization that preserves the same interference score while avoiding the explicit construction of the large intermediate tensor\. Once the score is computed, the rest of the attention pipeline remains unchanged:αij=exp\(sijint\+Mij\)∑m≤iexp\(simint\+Mim\)\\alpha\_\{ij\}=\\frac\{\\exp\\\!\\left\(s\_\{ij\}^\{\\mathrm\{int\}\}\+M\_\{ij\}\\right\)\}\{\\sum\_\{m\\leq i\}\\exp\\\!\\left\(s\_\{im\}^\{\\mathrm\{int\}\}\+M\_\{im\}\\right\)\},oi=∑j≤iαijvjo\_\{i\}=\\sum\_\{j\\leq i\}\\alpha\_\{ij\}v\_\{j\}\. Thus, the proposal changes only the compatibility function inside self\-attention, while preserving the standard GPT transformer workflow\.
Memory\-Efficient Reformulation:The phase\-aware attention defined above gives a richer compatibility score than standard dot\-product attention by allowing token interactions to be reinforced or weakened through relative phase alignment\. The drawback is that a direct implementation requires pairwise phase interactions across all token pairs and feature dimensions, which introduces a large intermediate tensor and high memory cost\. Our method addresses this issue by retaining the phase\-aware score while avoiding the main memory bottleneck of the naive computation\. A direct implementation of the interference score is computationally impractical\. The naive formulation constructs an interaction tensor over token pairs and feature dimensions:𝒯ijr=ai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)\\mathcal\{T\}\_\{ijr\}=a\_\{i,r\}^\{q\}\\,a\_\{j,r\}^\{k\}\\cos\\\!\\left\(\\phi\_\{i,r\}^\{q\}\-\\phi\_\{j,r\}^\{k\}\\right\)\. The final score is then obtained by summing over the feature indexrr:sijint=1dh∑r=1dh𝒯ijrs\_\{ij\}^\{\\mathrm\{int\}\}=\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\sum\_\{r=1\}^\{d\_\{h\}\}\\mathcal\{T\}\_\{ijr\}\.
However,𝒯∈ℝT×T×dh\\mathcal\{T\}\\in\\mathbb\{R\}^\{T\\times T\\times d\_\{h\}\}introduces a large intermediate tensor that quickly becomes the dominant memory bottleneck\. This is exactly the inefficiency we aim to remove\. Our key technical contribution is an exact trigonometric factorization of the interference score\. Using the identity:cos\(α−β\)=cosαcosβ\+sinαsinβ\\cos\(\\alpha\-\\beta\)=\\cos\\alpha\\cos\\beta\+\\sin\\alpha\\sin\\beta, we rewrite the score as
sijint=1dh∑r=1dh\(ai,rqcosϕi,rq\)\(aj,rkcosϕj,rk\)\+1dh∑r=1dh\(ai,rqsinϕi,rq\)\(aj,rksinϕj,rk\)\.s\_\{ij\}^\{\\mathrm\{int\}\}=\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\sum\_\{r=1\}^\{d\_\{h\}\}\\left\(a\_\{i,r\}^\{q\}\\cos\\phi\_\{i,r\}^\{q\}\\right\)\\left\(a\_\{j,r\}^\{k\}\\cos\\phi\_\{j,r\}^\{k\}\\right\)\+\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\sum\_\{r=1\}^\{d\_\{h\}\}\\left\(a\_\{i,r\}^\{q\}\\sin\\phi\_\{i,r\}^\{q\}\\right\)\\left\(a\_\{j,r\}^\{k\}\\sin\\phi\_\{j,r\}^\{k\}\\right\)\.\(4\)
Then, we can define transformed query and key components:
q~i,r\(c\)=ai,rqcosϕi,rq,q~i,r\(s\)=ai,rqsinϕi,rq,\\tilde\{q\}\_\{i,r\}^\{\(c\)\}=a\_\{i,r\}^\{q\}\\cos\\phi\_\{i,r\}^\{q\},\\qquad\\tilde\{q\}\_\{i,r\}^\{\(s\)\}=a\_\{i,r\}^\{q\}\\sin\\phi\_\{i,r\}^\{q\},k~j,r\(c\)=aj,rkcosϕj,rk,k~j,r\(s\)=aj,rksinϕj,rk\.\\tilde\{k\}\_\{j,r\}^\{\(c\)\}=a\_\{j,r\}^\{k\}\\cos\\phi\_\{j,r\}^\{k\},\\qquad\\tilde\{k\}\_\{j,r\}^\{\(s\)\}=a\_\{j,r\}^\{k\}\\sin\\phi\_\{j,r\}^\{k\}\.
Substituting these definitions yieldssijint=1dh\(q~i\(c\)⊤k~j\(c\)\+q~i\(s\)⊤k~j\(s\)\)\.s\_\{ij\}^\{\\mathrm\{int\}\}=\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\left\(\\tilde\{q\}\_\{i\}^\{\(c\)\\top\}\\tilde\{k\}\_\{j\}^\{\(c\)\}\+\\tilde\{q\}\_\{i\}^\{\(s\)\\top\}\\tilde\{k\}\_\{j\}^\{\(s\)\}\\right\)\.Finally, the full score matrix becomes
Sint=Q~\(c\)K~\(c\)⊤\+Q~\(s\)K~\(s\)⊤dh\.S^\{\\mathrm\{int\}\}=\\frac\{\\tilde\{Q\}^\{\(c\)\}\\tilde\{K\}^\{\(c\)\\top\}\+\\tilde\{Q\}^\{\(s\)\}\\tilde\{K\}^\{\(s\)\\top\}\}\{\\sqrt\{d\_\{h\}\}\}\.\(5\)This reformulation is exact and introduces no approximation\. It avoids explicitly forming theT×T×dhT\\times T\\times d\_\{h\}interaction tensor by rewriting the phase\-aware score as two standard matrix multiplications and an addition\. Consequently, the extra memory cost drops from𝒪\(T2dh\)\\mathcal\{O\}\(T^\{2\}d\_\{h\}\)in the naive form to𝒪\(Tdh\)\\mathcal\{O\}\(Td\_\{h\}\)in the factorized form\. The final score matrix remains standard attention\-sized, so our claim is not to eliminate all quadratic costs of dense attention, but to remove the additional memory overhead introduced by naive phase\-aware interaction\. Formal proofs of exact score equivalence and phase\-specific memory accounting are provided in Appendices[B\.3](https://arxiv.org/html/2608.17288#A2.SS3)and[B\.4](https://arxiv.org/html/2608.17288#A2.SS4)\.
Integration and Training:The proposed score is inserted into a standard GPT block without changing the rest of the model architecture\. LetH\(ℓ\)H^\{\(\\ell\)\}denote the hidden representation at layerℓ\\ell\. The layer update follows the usual residual form:
H^\(ℓ\)=H\(ℓ\)\+MHAint\(LN\(H\(ℓ\)\)\),\\hat\{H\}^\{\(\\ell\)\}=H^\{\(\\ell\)\}\+\\mathrm\{MHA\}\_\{\\mathrm\{int\}\}\\\!\\left\(\\mathrm\{LN\}\\\!\\left\(H^\{\(\\ell\)\}\\right\)\\right\),\(6\)H\(ℓ\+1\)=H^\(ℓ\)\+MLP\(LN\(H^\(ℓ\)\)\)\.H^\{\(\\ell\+1\)\}=\\hat\{H\}^\{\(\\ell\)\}\+\\mathrm\{MLP\}\\\!\\left\(\\mathrm\{LN\}\\\!\\left\(\\hat\{H\}^\{\(\\ell\)\}\\right\)\\right\)\.\(7\)
Here,MHAint\\mathrm\{MHA\}\_\{\\mathrm\{int\}\}denotes multi\-head attention using the proposed interference score\. All remaining components are inherited directly from the baseline GPT architecture\. This keeps the architectural intervention narrow and makes the comparison with the original model more reliable\. A proof of compatibility with the standard causal GPT attention interface is provided in Appendix[B\.5](https://arxiv.org/html/2608.17288#A2.SS5)\.
Training is performed with the standard autoregressive language modeling objective\. Given a token sequence\(x1,x2,…,xT\)\(x\_\{1\},x\_\{2\},\\ldots,x\_\{T\}\), we minimize
ℒLM=−∑t=1T−1logpθ\(xt\+1∣x≤t\)\.\\mathcal\{L\}\_\{\\mathrm\{LM\}\}=\-\\sum\_\{t=1\}^\{T\-1\}\\log p\_\{\\theta\}\(x\_\{t\+1\}\\mid x\_\{\\leq t\}\)\.\(8\)No auxiliary objective is introduced\. This keeps the setup identical to standard autoregressive GPT training and isolates the effect of the proposed attention mechanism\.
## 3Experiment and Evaluation
We evaluate Q\-Interference in a controlled GPT\-style autoregressive language modeling setting, where the standard scaled dot\-product attention score is replaced by the proposed phase\-aware interference score while the rest of the GPT transformer backbone is kept unchanged\. This design keeps token embeddings, positional embeddings, residual connections, layer normalization, feed\-forward blocks, and the next\-token prediction objective fixed, so that observed differences can be attributed primarily to the attention mechanism itself\. Our experiments are designed to answer three questions\.RQ1:whether Q\-Interference can be trained successfully inside a standard GPT pipeline?RQ2:whether the exact factorization removes the extra memory overhead introduced by naive phase\-aware interaction?RQ3:how the resulting model compares with standard and pre\-trained GPT transformer baselines in terms of language\-modeling quality and efficiency?
### 3\.1Experiment Setup
Dataset and Preprocessing:We use four language modeling datasets: WikiText\-103[20](https://arxiv.org/html/2608.17288#bib.bib15), TinyStories[17](https://arxiv.org/html/2608.17288#bib.bib14), pile\-10k[10](https://arxiv.org/html/2608.17288#bib.bib16), and small\-C4[21](https://arxiv.org/html/2608.17288#bib.bib17)\. WikiText\-103 serves as the main controlled benchmark, while the other three datasets are used to evaluate cross\-dataset behavior under different data regimes\. We use the GPT\-2 tokenizer and segment each corpus into fixed\-length sequences with context length 512\.
Baselines:We compare six models\. We first consider two baselines: a standard GPT baseline with conventional causal self\-attention and a Q\-GPT: quantum inspired baseline adopted from a previously published quantum\-inspired GPT study[18](https://arxiv.org/html/2608.17288#bib.bib9), which serves as a reference model architectural comparison and is not our contribution\. We then include two widely used pre\-trained decoder\-only reference models, GPT\-Neo\-125M[2](https://arxiv.org/html/2608.17288#bib.bib23)and OPT\-125M[29](https://arxiv.org/html/2608.17288#bib.bib22)\. To clarify the evaluation design, Table[1](https://arxiv.org/html/2608.17288#S3.T1)summarizes the role of each baseline and why the selected set is sufficient for the scope of this study\.
Table 1:Baseline selection rationale\.Training Configurations:Finally, we evaluate two versions of our phase\-aware model family: a naive interference model that directly computes the phase\-aware interaction tensor, and the proposed Q\-Interference model, which uses the exact memory\-efficient reformulation\. The naive model is used primarily for profiling and ablation because it is substantially more memory\-intensive\. For the main controlled comparison, the standard GPT baseline has approximately 124\.0M parameters, while the matched Q\-Interference model has approximately 123\.7M parameters, using 12 layers, 12 heads, and model dimension 720\. Unless otherwise stated, all models are trained with the standard autoregressive objective on NVIDIA Tesla V100\-SXM2\-32GB GPUs using mixed precision\.
Evaluation Metrics:We report validation loss, test loss, and test perplexity as the primary language\-modeling metrics\. To evaluate practicality, we also report peak GPU memory usage, elapsed execution time, and sequence\-length scaling behavior\. Peak GPU memory was measured under fixed batch size, context length, numerical precision, and hardware; therefore, the reported peak memory values mainly reflect the computational behavior of the model architecture rather than the identity of the dataset itself\. This is why peak memory can remain nearly constant across datasets for a given model\. Our goal is not to eliminate the standard quadratic attention matrix, but to remove the additional memory cost introduced by naive phase\-aware interaction while preserving the same interference\-based scoring idea\. Definitions of the reported metrics and model categories are summarized in Appendix[C\.1](https://arxiv.org/html/2608.17288#A3.SS1)\.
### 3\.2Comparison Evaluation with Baselines
In this section, Q\-Interference is evaluated from two comparison perspectives\. First, the proposed model is compared with the baselines across the evaluated datasets and it is compared against 125M pre\-trained reference models\.
Comparison across datasets:We evaluate the standard GPT baseline, the proposed Q\-Interference model, and the Q\-GPT baseline across four datasets: WikiText\-103, TinyStories, pile\-10k, and small\-C4\. WikiText\-103 serves as the main benchmark, while the remaining datasets are used to examine whether the observed behavior transfers across different language\-modeling regimes\. In all cases, the comparison is performed under the same overall GPT\-style training pipeline so that the effect of the proposed phase\-aware hybrid attention can be isolated while keeping the backbone architecture and next\-token prediction objective unchanged\. Table[2](https://arxiv.org/html/2608.17288#S3.T2)shows a consistent practical advantage for Q\-Interference together with mixed but competitive quality behavior\. On the main benchmark, WikiText\-103, Q\-Interference is the strongest internal model, improving validation loss, test loss, and test perplexity over the standard GPT baseline while also reducing peak training GPU memory from 8055\.76 MB to 4227\.14 MB\. A visual summary of the WikiText\-103 comparison is provided in Appendix[C\.2](https://arxiv.org/html/2608.17288#A3.SS2)\. On TinyStories, it remains very close to the standard GPT baseline in test loss and perplexity while preserving the same memory advantage\. On pile\-10k and small\-C4, the standard GPT baseline remains stronger in final test quality, but Q\-Interference is still substantially more memory\-efficient and remains clearly stronger than the Q\-GPT baseline\. Figure[2](https://arxiv.org/html/2608.17288#S3.F2)shows the relationship between test perplexity and peak GPU memory across datasets, highlighting that Q\-Interference achieves the most favorable practical trade\-off within the phase\-aware model family\. Overall, these results suggest that the proposed method is best understood not as a universal replacement for standard GPT, but as the strongest practical model within the phase\-aware family, offering the most favorable quality\-efficiency trade\-off across the evaluated datasets\. A supplementary visualization of memory behavior under the fixed profiling setup is provided in Appendix[C\.3](https://arxiv.org/html/2608.17288#A3.SS3)\.
Figure 2:Quality\-memory trade\-off for the main model comparison\.Table 2:Baselines vs Q\-Interference comparison over benchmark datasetComparison with pre\-trained reference models:To further contextualize our results, we compare Q\-Interference with two widely used pretrained decoder\-only reference models, GPT\-Neo\-125M and OPT\-125M\. Since these are not parameter\-matched internal baselines, we treat them as pre\-trained reference points rather than direct apples\-to\-apples competitors\. As shown in Table[3](https://arxiv.org/html/2608.17288#S3.T3), GPT\-Neo\-125M and OPT\-125M achieve stronger final language\-modeling quality than Q\-Interference on all four datasets, with the gap being especially large on pile\-10k and small\-C4\. At the same time, Q\-Interference remains more memory\-efficient on TinyStories, pile\-10k, and small\-C4, and is competitive with these models on WikiText\-103 in terms of training memory\. Thus, the results position Q\-Interference not as a universal replacement for strong pretrained GPT transformers, but as the strongest practical phase\-aware model in our experiments with a favorable efficiency profile\. A supplementary visual comparison to the reference models is provided in Appendix[C\.4](https://arxiv.org/html/2608.17288#A3.SS4)\.
Table 3:Comparison to pre\-trained reference models\.Overall, the results show that Q\-Interference is the strongest practical model within the proposed phase\-aware family\. It achieves the best internal matched result on WikiText\-103 and offers the most favorable quality\-memory trade\-off across the custom models we study\. While the gains are not universal across all datasets, the proposed design consistently remains more practical than the Q\-GPT baseline\.
### 3\.3Ablation Study
We design the ablation study to isolate the two main claims of this work\. First, we test whether the memory\-efficient reformulation is necessary for making phase\-aware attention practical\. Second, we test whether the phase component itself contributes to language\-modeling quality inside the final hybrid design\. Unlike the main results section, which emphasizes overall model comparison, the goal here is to separate the systems contribution from the modeling contribution\.
Naive phase\-aware attention versus memory\-reduced Q\-Interference:The first ablation compares the naive phase\-aware implementation directly with the final Q\-Interference model across the evaluated datasets\. The naive model uses the same interference\-based scoring idea, but computes it without the memory\-efficient reformulation, and therefore serves as the most direct control for testing whether the proposed reformulation is necessary in practice\. As shown in Table[4](https://arxiv.org/html/2608.17288#S3.T4), the systems motivation of the paper is directly supported\. On WikiText\-103, the full matched naive run is impractical and reaches out\-of\-memory at context length 512, whereas Q\-Interference remains fully trainable\. On TinyStories, pile\-10k, and small\-C4, peak training memory is reduced from 12138\.34 MB to 4227\.14 MB, corresponding to a reduction of about 65%\. At the same time, stronger final test quality is achieved on the completed datasets\. Although the naive model attains a slightly lower validation loss on pile\-10k, it performs worse in final test loss and perplexity\. Overall, these results indicate that the efficient reformulation is not a minor implementation detail but the key step that makes phase\-aware attention practical\.
Table 4:Naive phase\-aware attention versus Q\-Interference\.Effect of the phase component:The second ablation is designed to evaluate whether the phase term contributes meaningfully within the final hybrid design\. For this purpose, the full Q\-Interference model is compared with a phase\-disabled control in which the same hybrid architecture and training setup are retained, but the learned phase contribution is removed\. The corresponding results are reported in Table[5](https://arxiv.org/html/2608.17288#S3.T5)\. Overall, a small but consistent improvement in final test quality is observed when the phase term is retained\. Across all four datasets, slightly better test loss and perplexity are achieved by the full model than by the phase\-disabled variant, while only a modest difference in memory is observed\. These results suggest that the main practical benefit of the method is provided by the memory\-efficient reformulation, whereas an additional but smaller modeling gain is supplied by the phase term within the final hybrid design\.
Taken together, a two\-part conclusion is supported by the ablations\. First, the exact memory\-efficient reformulation is shown to be necessary for practicality, since naive phase\-aware attention is either highly memory\-intensive or impractical under the full matched setting\. Second, a consistent but modest improvement in final test quality is provided by the phase term across datasets\. Thus, the primary systems contribution of this work is established as the step that makes phase\-aware attention usable in practice, while an additional modeling benefit is contributed by the phase component within the final hybrid design\.
Table 5:Phase ablation for the final Q\-Interference model\.
## 4Related Work
Quantum and quantum\-inspired attention for language modelingRecent work has begun to explore whether ideas from quantum computation can enrich GPT\-style attention\. Early studies such as[16](https://arxiv.org/html/2608.17288#bib.bib5)and[4](https://arxiv.org/html/2608.17288#bib.bib6)introduced quantum self\-attention mechanisms for NLP by representing token interactions through quantum\-inspired or quantum\-state\-based formulations\. These works showed that quantum\-style attention can improve representation quality, but they were evaluated mainly on text classification tasks rather than autoregressive language modeling\. As a result, they do not directly address the requirements of GPT\-style next\-token prediction, where attention must operate efficiently over long causal contexts\. More recent work moves closer to generative GPT transformer settings\.[23](https://arxiv.org/html/2608.17288#bib.bib10)introduces a hybrid quantum\-classical self\-attention module in a decoder for sequence generation, and[12](https://arxiv.org/html/2608.17288#bib.bib11)extends hybrid quantum\-classical transformers to natural language generation\. Most relevant to our setting,[13](https://arxiv.org/html/2608.17288#bib.bib12)incorporates a classical quantum\-inspired self\-attention mechanism into the autoregressive GPT\-1 pipeline\. Together, these studies demonstrate that quantum or quantum\-inspired attention can be used in generative transformer models\. However, they mainly emphasize feasibility and architectural design, rather than the memory overhead introduced by richer attention interactions\. This limitation is especially important for quantum\-inspired attention designs that introduce additional structure beyond standard dot\-product similarity\. Although such mechanisms can model richer token relationships, prior work has not directly addressed the specific memory overhead caused by explicitly computing phase\-aware pairwise interactions\. Our work focuses on this issue by reformulating the computation to avoid constructing the large intermediate interaction tensor\.
Memory optimization in quantum\-inspired LLM researchA separate line of research uses quantum or quantum\-inspired ideas for memory\-efficient adaptation of large language models\.[5](https://arxiv.org/html/2608.17288#bib.bib7),[19](https://arxiv.org/html/2608.17288#bib.bib28), and[22](https://arxiv.org/html/2608.17288#bib.bib29)all aim to reduce the cost of fine\-tuning by introducing parameter\-efficient adaptation schemes motivated by quantum circuits or quantum parameter generation\. These methods are valuable for reducing the trainable footprint of LLM adaptation, but they operate at the level of fine\-tuning parameters or adapters, not at the level of attention\-score computation itself\. Therefore, they do not address the memory cost that arises when a richer attention rule introduces an explicit token\-pair\-feature interaction tensor\.
More recently,[11](https://arxiv.org/html/2608.17288#bib.bib8)studies memory reduction during inference by compressing the KV cache with a quantum\-inspired probabilistic representation\. This is closely related to the broader goal of efficient long\-context language modeling, but it addresses a different source of memory cost\. Specifically, KV\-cache compression reduces the storage required for past keys and values during decoding, whereas our method targets the additional intermediate memory introduced by a naive implementation of phase\-aware interference attention\. In this sense, prior quantum\-inspired memory\-efficiency work has focused on cache compression, while our contribution lies in an exact reformulation that avoids explicitly constructing the internal interaction tensor\.
Taken together, these prior studies show that quantum\-inspired attention can enrich token interaction and that memory optimization has also been explored in adjacent parts of LLM systems\. Our method is positioned differently: it begins from a more expressive phase\-aware attention score and then derives an exact trigonometric factorization that avoids materializing theT×T×dhT\\times T\\times d\_\{h\}interaction tensor\. We do not claim to remove the quadratic cost of dense attention altogether; rather, we specifically reduce the additional phase\-specific memory overhead introduced by naive interference computation while preserving the same score exactly\. To the best of our knowledge, such an exact memory\-efficient factorization for phase\-aware quantum\-inspired attention in a GPT\-style model has not been previously reported\. A compact summary of representative prior work relative to Q\-Interference is provided in the appendix[A](https://arxiv.org/html/2608.17288#A1)\.
## 5Conclusion
Q\-Interference was introduced as a fully classical quantum\-inspired attention mechanism for autoregressive language modeling, where token interactions are modeled through amplitude and learned phase\. It is considered quantum\-inspired because it draws on a wave\-interference principle: aligned phases contribute constructively, while conflicting phases contribute destructively\. This is important because standard attention mainly measures similarity, whereas phase\-aware interaction provides a richer way to capture both supportive and suppressive relationships between tokens\. Since a naive implementation is highly memory\-intensive, an exact trigonometric factorization was derived to make the same interaction practical within a standard GPT pipeline\. Across controlled experiments on benchmark datasets, Q\-Interference was found to be the strongest practical model within the proposed phase\-aware family, providing a favorable balance between language modeling quality and memory efficiency\. The results further showed that the exact memory\-efficient reformulation is essential for practicality, while the phase component contributes a small but consistent modeling benefit within the final hybrid design\. Overall, these findings suggest that quantum\-inspired phase interactions offer a meaningful extension of standard attention, but their usefulness depends on an exact reformulation that makes them practical at scale\.
## Acknowledgments and Disclosure of Funding
Use unnumbered first level headings for the acknowledgments\. All acknowledgments go at the end of the paper before the list of references\. Moreover, you are required to declare funding \(financial activities supporting the submitted work\) and competing interests \(related financial activities outside the submitted work\)\. More information about this disclosure can be found at:[https://neurips\.cc/Conferences/2026/PaperInformation/FundingDisclosure](https://neurips.cc/Conferences/2026/PaperInformation/FundingDisclosure)\.
Donotinclude this section in the anonymized submission, only in the final paper\. You can use theackenvironment provided in the style file to automatically hide this section in the anonymized submission\.
## References
- Beltagyet al\.\(2020\)I\. Beltagy, M\. E\. Peters, and A\. CohanLongformer: the long\-document transformer\.ArXivabs/2004\.05150\.External Links:[Link](https://api.semanticscholar.org/CorpusID:215737171)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p2.1)\.
- Blacket al\.\(2021\)GPT\-Neo: Large scale autoregressive language modeling with meshtensorflowExternal Links:[Document](https://dx.doi.org/10.5281/zenodo.5297714)Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p2.1)\.
- Brownet al\.\(2020\)T\. B\. Brown, B\. Mann, N\. Ryder, M\. Subbiah, J\. Kaplan, P\. Dhariwal, A\. Neelakantan, P\. Shyam, G\. Sastry, A\. Askell, S\. Agarwal, A\. Herbert\-Voss, G\. Krueger, T\. Henighan, R\. Child, A\. Ramesh, D\. M\. Ziegler, J\. Wu, C\. Winter, C\. Hesse, M\. Chen, E\. Sigler, M\. Litwin, S\. Gray, B\. Chess, J\. Clark, C\. Berner, S\. McCandlish, A\. Radford, I\. Sutskever, and D\. AmodeiLanguage models are few\-shot learners\.InProceedings of the 34th International Conference on Neural Information Processing Systems,NIPS ’20,Red Hook, NY, USA\.External Links:ISBN 9781713829546Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p1.1)\.
- Chenet al\.\(2025\)F\. Chen, Q\. Zhao, L\. Feng, C\. Chen, Y\. Lin, and J\. LinQuantum mixed\-state self\-attention network\.Neural Networks185,pp\. 107123\.External Links:[Document](https://dx.doi.org/10.1016/j.neunet.2025.107123)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1),[§4](https://arxiv.org/html/2608.17288#S4.p1.1)\.
- Chenet al\.\(2024\)Z\. Chen, R\. Dangovski, C\. Loh, O\. Dugan, D\. Luo, and M\. SoljačićQuanTA: efficient high\-rank fine\-tuning of llms with quantum\-informed tensor adaptation\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1),[§4](https://arxiv.org/html/2608.17288#S4.p2.1)\.
- Choromanskiet al\.\(2020\)K\. Choromanski, V\. Likhosherstov, D\. Dohan, X\. Song, A\. Gane, T\. Sarlos, P\. Hawkins, J\. Davis, A\. Mohiuddin, L\. Kaiser, D\. Belanger, L\. Colwell, and A\. WellerRethinking attention with performers\.External Links:2009\.14794Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1)\.
- Daiet al\.\(2019\)Z\. Dai, Z\. Yang, Y\. Yang, J\. G\. Carbonell, Q\. V\. Le, and R\. SalakhutdinovTransformer\-xl: attentive language models beyond a fixed\-length context\.ArXivabs/1901\.02860\.External Links:[Link](https://api.semanticscholar.org/CorpusID:57759363)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p2.1)\.
- Daoet al\.\(2022\)T\. Dao, D\. Y\. Fu, S\. Ermon, A\. Rudra, and C\. RéFlashAttention: fast and memory\-efficient exact attention with io\-awareness\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p2.1),[§1](https://arxiv.org/html/2608.17288#S1.p3.1)\.
- Devlinet al\.\(2019\)J\. Devlin, M\. Chang, K\. Lee, and K\. ToutanovaBERT: pre\-training of deep bidirectional transformers for language understanding\.InNorth American Chapter of the Association for Computational Linguistics,External Links:[Link](https://api.semanticscholar.org/CorpusID:52967399)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p1.1)\.
- Gaoet al\.\(2020\)L\. Gao, S\. Biderman, S\. Black, L\. Golding, T\. Hoppe, C\. Foster, J\. Phang, H\. He, A\. Thite, N\. Nabeshima, S\. Presser, and C\. LeahyThe pile: an 800gb dataset of diverse text for language modeling\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2101.00027)Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p1.1)\.
- Kanget al\.\(2026\)J\. Kang, J\. Choi, W\. Noh, and J\. SimQubitCache: quantum\-inspired probabilistic attention preservation for kv\-cache compression\.IEEE Access14,pp\. 1–1\.External Links:[Document](https://dx.doi.org/10.1109/ACCESS.2026.3680126)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p2.1),[§1](https://arxiv.org/html/2608.17288#S1.p3.1),[§4](https://arxiv.org/html/2608.17288#S4.p3.1)\.
- Konget al\.\(2025\)D\. Kong, X\. Cui, J\. Jin, J\. Xu, and D\. WangHybrid quantum transformer for language generation\.External Links:2511\.10653,[Link](https://arxiv.org/abs/2511.10653)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1),[§4](https://arxiv.org/html/2608.17288#S4.p1.1)\.
- Kuznetsovet al\.\(2026\)N\. Kuznetsov, N\. Ismagilov, and E\. CamposQuantum\-inspired self\-attention in a large language model\.External Links:2603\.03318,[Link](https://arxiv.org/abs/2603.03318)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1),[§4](https://arxiv.org/html/2608.17288#S4.p1.1)\.
- Kwonet al\.\(2023\)W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. Gonzalez, H\. Zhang, and I\. StoicaEfficient memory management for large language model serving with pagedattention\.InProceedings of the 29th Symposium on Operating Systems Principles,SOSP ’23,New York, NY, USA,pp\. 611–626\.External Links:ISBN 9798400702297,[Link](https://doi.org/10.1145/3600006.3613165),[Document](https://dx.doi.org/10.1145/3600006.3613165)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p2.1)\.
- Lewiset al\.\(2020\)P\. Lewis, E\. Perez, A\. Piktus, F\. Petroni, V\. Karpukhin, N\. Goyal, H\. Küttler, M\. Lewis, W\. Yih, T\. Rocktäschel, S\. Riedel, and D\. KielaRetrieval\-augmented generation for knowledge\-intensive nlp tasks\.InProceedings of the 34th International Conference on Neural Information Processing Systems,NIPS ’20,Red Hook, NY, USA\.External Links:ISBN 9781713829546Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p2.1)\.
- Liet al\.\(2024\)G\. Li, X\. Zhao, and X\. WangQuantum self\-attention neural networks for text classification\.Science China Information Sciences67,pp\. 1–13\.External Links:[Document](https://dx.doi.org/10.1007/s11432-023-3879-7)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1),[§4](https://arxiv.org/html/2608.17288#S4.p1.1)\.
- Li and Eldan \(2024\)Y\. Li and R\. EldanTinyStories: how small can language models be and still speak coherent english\.External Links:[Link](https://openreview.net/forum?id=yiPtWSrBrN)Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p1.1)\.
- Liao and Ferrie \(2024\)Y\. Liao and C\. FerrieGPT on a quantum computer\.External Links:2403\.09418,[Link](https://arxiv.org/abs/2403.09418)Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p2.1)\.
- Liuet al\.\(2025\)C\. Liu, C\. H\. Yang, H\. Goan, and M\. HsiehA quantum circuit\-based compression perspective for parameter\-efficient learning\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=bB0OKNpznp)Cited by:[§4](https://arxiv.org/html/2608.17288#S4.p2.1)\.
- Merityet al\.\(2017\)S\. Merity, C\. Xiong, J\. Bradbury, and R\. SocherPointer sentinel mixture models\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=Byj72udxe)Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p1.1)\.
- Raffelet al\.\(2020\)C\. Raffel, N\. Shazeer, A\. Roberts, K\. Lee, S\. Narang, M\. Matena, Y\. Zhou, W\. Li, and P\. J\. LiuExploring the limits of transfer learning with a unified text\-to\-text transformer\.J\. Mach\. Learn\. Res\.21\(1\)\.External Links:ISSN 1532\-4435Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p1.1)\.
- Raj and Coyle \(2026\)S\. Raj and B\. CoyleQuIC: quantum\-inspired compound adapters for parameter efficient fine\-tuning\.External Links:[Link](https://openreview.net/forum?id=OJ3tzHSIis)Cited by:[§4](https://arxiv.org/html/2608.17288#S4.p2.1)\.
- Smaldoneet al\.\(2025\)A\. M\. Smaldone, Y\. Shee, G\. W\. Kyro, M\. H\. Farag, Z\. Chandani, E\. Kyoseva, and V\. S\. BatistaA Hybrid Transformer Architecture with a Quantized Self\-Attention Mechanism Applied to Molecular Generation\.Journal of Chemical Theory and Computation21\(10\),pp\. 5143–5154\.External Links:[Document](https://dx.doi.org/10.1021/acs.jctc.5c00331)Cited by:[§4](https://arxiv.org/html/2608.17288#S4.p1.1)\.
- Suet al\.\(2024\)J\. Su, M\. Ahmed, Y\. Lu, S\. Pan, W\. Bo, and Y\. LiuRoFormer: enhanced transformer with rotary position embedding\.Neurocomput\.568\(C\)\.External Links:ISSN 0925\-2312,[Link](https://doi.org/10.1016/j.neucom.2023.127063),[Document](https://dx.doi.org/10.1016/j.neucom.2023.127063)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1)\.
- Tayet al\.\(2022\)Y\. Tay, M\. Dehghani, D\. Bahri, and D\. MetzlerEfficient transformers: a survey\.ACM Comput\. Surv\.55\(6\)\.External Links:ISSN 0360\-0300,[Link](https://doi.org/10.1145/3530811),[Document](https://dx.doi.org/10.1145/3530811)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1)\.
- Vaswaniet al\.\(2017\)A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, Ł\. Kaiser, and I\. PolosukhinAttention is all you need\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p1.1)\.
- Wanget al\.\(2020\)S\. Wang, B\. Z\. Li, M\. Khabsa, H\. Fang, and H\. MaLinformer: self\-attention with linear complexity\.ArXivabs/2006\.04768\.External Links:[Link](https://api.semanticscholar.org/CorpusID:219530577)Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1)\.
- Zaheeret al\.\(2020\)M\. Zaheer, G\. Guruganesh, A\. Dubey, J\. Ainslie, C\. Alberti, S\. Ontanon, P\. Pham, A\. Ravula, Q\. Wang, L\. Yang, and A\. AhmedBig bird: transformers for longer sequences\.InProceedings of the 34th International Conference on Neural Information Processing Systems,NIPS ’20,Red Hook, NY, USA\.External Links:ISBN 9781713829546Cited by:[§1](https://arxiv.org/html/2608.17288#S1.p3.1)\.
- Zhanget al\.\(2022\)S\. Zhang, S\. Roller, N\. Goyal, M\. Artetxe, M\. Chen, S\. Chen, C\. Dewan, M\. T\. Diab, X\. Li, X\. V\. Lin, T\. Mihaylov, M\. Ott, S\. Shleifer, K\. Shuster, D\. Simig, P\. S\. Koura, A\. Sridhar, T\. Wang, and L\. ZettlemoyerOPT: open pre\-trained transformer language models\.ArXivabs/2205\.01068\.External Links:[Link](https://api.semanticscholar.org/CorpusID:248496292)Cited by:[§3\.1](https://arxiv.org/html/2608.17288#S3.SS1.p2.1)\.
## Appendix AAdditional Related Work Summary
Table[6](https://arxiv.org/html/2608.17288#A1.T6)provides a compact summary of representative prior work relative to Q\-Interference\. This table is intended as a supplementary overview of the related work discussion in the main paper, highlighting differences in GPT\-style applicability, quantum\-inspired design, phase\-aware interaction, memory\-awareness, and exact memory\-efficient reformulation\.
Table 6:Compact comparison of representative prior work and Q\-Interference\.
## Appendix BProofs and Derivations for Q\-Interference
### B\.1Notation and Assumptions
This appendix gives the algebraic details behind the Q\-Interference attention reformulation\. All derivations are written for a single attention head, since multi\-head attention applies the same computation independently to each head\. LetTTdenote the sequence length and letdhd\_\{h\}denote the dimension of one attention head\. For tokeniiand tokenjj, we denote the nonnegative query and key amplitude vectors byaiq,ajk∈ℝ\+dha\_\{i\}^\{q\},a\_\{j\}^\{k\}\\in\\mathbb\{R\}\_\{\+\}^\{d\_\{h\}\}, and the corresponding phase vectors byϕiq,ϕjk∈ℝdh\\phi\_\{i\}^\{q\},\\phi\_\{j\}^\{k\}\\in\\mathbb\{R\}^\{d\_\{h\}\}\. The proofs below concern exact algebraic equivalence and memory accounting, not generalization performance\. The factorized computation still produces a standardT×TT\\times Tattention score matrix; it only avoids the additionalT×T×dhT\\times T\\times d\_\{h\}token\-pair\-feature tensor used by the naive phase\-aware implementation\.
Table 7:Notation used in the proof appendix\.
### B\.2Derivation of the Phase\-Aware Interference Score
We first show where the phase\-aware interference score comes from\. For each feature dimensionrr, we represent the query and key features as complex amplitude\-phase terms:
zi,rq=ai,rqeiϕi,rq,zj,rk=aj,rkeiϕj,rk,z^\{q\}\_\{i,r\}=a^\{q\}\_\{i,r\}e^\{\\mathrm\{i\}\\phi^\{q\}\_\{i,r\}\},\\qquad z^\{k\}\_\{j,r\}=a^\{k\}\_\{j,r\}e^\{\\mathrm\{i\}\\phi^\{k\}\_\{j,r\}\},\(9\)wherei\\mathrm\{i\}is the imaginary unit andzj,rk¯\\overline\{z^\{k\}\_\{j,r\}\}denotes the complex conjugate ofzj,rkz^\{k\}\_\{j,r\}\.
###### Proposition 1\.
The phase\-aware interference score is the scaled real part of an amplitude\-phase inner product\.
###### Proof\.
For a query featurezi,rqz^\{q\}\_\{i,r\}and a key featurezj,rkz^\{k\}\_\{j,r\}, their conjugate product is
zi,rqzj,rk¯=ai,rqaj,rkei\(ϕi,rq−ϕj,rk\)\.z^\{q\}\_\{i,r\}\\overline\{z^\{k\}\_\{j,r\}\}=a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}e^\{\\mathrm\{i\}\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\)\}\.\(10\)Using Euler’s identity, the real part of this product is
Re\(zi,rqzj,rk¯\)=ai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)\.\\mathrm\{Re\}\\left\(z^\{q\}\_\{i,r\}\\overline\{z^\{k\}\_\{j,r\}\}\\right\)=a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\)\.\(11\)Summing this real\-valued interaction over all feature dimensions gives
Re\(∑r=1dhzi,rqzj,rk¯\)=∑r=1dhai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)\.\\mathrm\{Re\}\\left\(\\sum\_\{r=1\}^\{d\_\{h\}\}z^\{q\}\_\{i,r\}\\overline\{z^\{k\}\_\{j,r\}\}\\right\)=\\sum\_\{r=1\}^\{d\_\{h\}\}a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\)\.\(12\)After applying the standard attention scaling factor, the phase\-aware interference score becomes
sijint=1dh∑r=1dhai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)\.s^\{\\mathrm\{int\}\}\_\{ij\}=\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\sum\_\{r=1\}^\{d\_\{h\}\}a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\)\.\(13\)Therefore, the proposed score is exactly the scaled real part of the amplitude\-phase inner product\. ∎
This derivation also explains the constructive and destructive behavior of the score\. When the phase differenceϕi,rq−ϕj,rk\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}is close to zero, the cosine term is positive and the feature interaction is reinforced\. When the phase difference is large, the cosine term decreases and can become negative, which suppresses the feature interaction\.
### B\.3Exact Factorization of Phase\-Aware Attention
We now show that the memory\-efficient reformulation computes exactly the same score as the naive phase\-aware interference score\. The result follows from a direct trigonometric factorization and does not introduce any approximation\.
###### Theorem 1\.
For any query and key amplitude\-phase representations, the factorized score matrix is exactly equal to the naive phase\-aware interference score matrix\.
###### Proof\.
For a query tokenii, key tokenjj, and feature dimensionrr, the naive phase\-aware interaction is
ai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)\.a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\)\.\(14\)Using the identity
cos\(α−β\)=cosαcosβ\+sinαsinβ,\\cos\(\\alpha\-\\beta\)=\\cos\\alpha\\cos\\beta\+\\sin\\alpha\\sin\\beta,\(15\)we can rewrite this interaction as
ai,rqaj,rkcos\(ϕi,rq−ϕj,rk\)=ai,rqaj,rkcosϕi,rqcosϕj,rk\+ai,rqaj,rksinϕi,rqsinϕj,rk\.a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\)=a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\\phi^\{q\}\_\{i,r\}\\cos\\phi^\{k\}\_\{j,r\}\+a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\sin\\phi^\{q\}\_\{i,r\}\\sin\\phi^\{k\}\_\{j,r\}\.\(16\)Define the transformed query and key components as
q~\(c\)i,r=aqi,rcosϕqi,r,q~\(s\)i,r=aqi,rsinϕqi,r,\\widetilde\{q\}^\{\(c\)\}\_\{i,r\}=a^\{q\}\_\{i,r\}\\cos\\phi^\{q\}\_\{i,r\},\\qquad\\widetilde\{q\}^\{\(s\)\}\_\{i,r\}=a^\{q\}\_\{i,r\}\\sin\\phi^\{q\}\_\{i,r\},\(17\)and
k~\(c\)j,r=akj,rcosϕkj,r,k~\(s\)j,r=akj,rsinϕkj,r\.\\widetilde\{k\}^\{\(c\)\}\_\{j,r\}=a^\{k\}\_\{j,r\}\\cos\\phi^\{k\}\_\{j,r\},\\qquad\\widetilde\{k\}^\{\(s\)\}\_\{j,r\}=a^\{k\}\_\{j,r\}\\sin\\phi^\{k\}\_\{j,r\}\.\(18\)Substituting these definitions into the interference score gives
sijint=1dh∑r=1dh\(q~i,r\(c\)k~j,r\(c\)\+q~i,r\(s\)k~j,r\(s\)\)\.s^\{\\mathrm\{int\}\}\_\{ij\}=\\frac\{1\}\{\\sqrt\{d\_\{h\}\}\}\\sum\_\{r=1\}^\{d\_\{h\}\}\\left\(\\widetilde\{q\}^\{\(c\)\}\_\{i,r\}\\widetilde\{k\}^\{\(c\)\}\_\{j,r\}\+\\widetilde\{q\}^\{\(s\)\}\_\{i,r\}\\widetilde\{k\}^\{\(s\)\}\_\{j,r\}\\right\)\.\(19\)This can be written as the sum of two inner products:
sijint=q~i\(c\)⊤k~j\(c\)\+q~i\(s\)⊤k~j\(s\)dh\.s^\{\\mathrm\{int\}\}\_\{ij\}=\\frac\{\\widetilde\{q\}^\{\(c\)\\top\}\_\{i\}\\widetilde\{k\}^\{\(c\)\}\_\{j\}\+\\widetilde\{q\}^\{\(s\)\\top\}\_\{i\}\\widetilde\{k\}^\{\(s\)\}\_\{j\}\}\{\\sqrt\{d\_\{h\}\}\}\.\(20\)Stacking all query and key vectors across theTTtokens gives
Sint=Q~\(c\)K~\(c\)⊤\+Q~\(s\)K~\(s\)⊤dh\.S^\{\\mathrm\{int\}\}=\\frac\{\\widetilde\{Q\}^\{\(c\)\}\\widetilde\{K\}^\{\(c\)\\top\}\+\\widetilde\{Q\}^\{\(s\)\}\\widetilde\{K\}^\{\(s\)\\top\}\}\{\\sqrt\{d\_\{h\}\}\}\.\(21\)Thus, every entry of the factorized score matrix equals the corresponding naive phase\-aware interference score\. The reformulation is therefore exact and introduces no approximation\. ∎
This factorization avoids explicitly constructing the additional token\-pair\-feature tensor required by the naive implementation\. It does not remove the standardT×TT\\times Tattention score matrix\.
### B\.4Memory Cost of Naive and Factorized Computation
We now compare the additional phase\-specific intermediate storage required by the naive and factorized implementations\. This analysis excludes the standard dense attention score matrixSint∈ℝT×TS^\{\\mathrm\{int\}\}\\in\\mathbb\{R\}^\{T\\times T\}, which is still produced in both cases\.
###### Proposition 2\.
The naive phase\-aware implementation requires additional intermediate storage of orderT2dhT^\{2\}d\_\{h\}, while the factorized implementation requires additional phase\-specific storage of orderTdhTd\_\{h\}, excluding the standard attention score matrix\.
###### Proof\.
In the naive implementation, the phase\-aware interaction is materialized for every query tokenii, key tokenjj, and feature dimensionrr\. This gives the intermediate tensor
𝒯ijr=ai,rqaj,rkcos\(ϕi,rq−ϕj,rk\),𝒯∈ℝT×T×dh\.\\mathcal\{T\}\_\{ijr\}=a^\{q\}\_\{i,r\}a^\{k\}\_\{j,r\}\\cos\(\\phi^\{q\}\_\{i,r\}\-\\phi^\{k\}\_\{j,r\}\),\\qquad\\mathcal\{T\}\\in\\mathbb\{R\}^\{T\\times T\\times d\_\{h\}\}\.\(22\)Therefore, the naive implementation requires storingT2dhT^\{2\}d\_\{h\}additional interaction entries before summing over the feature dimension\. Its additional phase\-specific intermediate storage is therefore
Θ\(T2dh\)\.\\Theta\(T^\{2\}d\_\{h\}\)\.\(23\)
In the factorized implementation, the computation uses the transformed matrices
Q~\(c\),Q~\(s\),K~\(c\),K~\(s\)∈ℝT×dh\.\\widetilde\{Q\}^\{\(c\)\},\\widetilde\{Q\}^\{\(s\)\},\\widetilde\{K\}^\{\(c\)\},\\widetilde\{K\}^\{\(s\)\}\\in\\mathbb\{R\}^\{T\\times d\_\{h\}\}\.\(24\)These four matrices require4Tdh4Td\_\{h\}entries in total\. Ignoring constant factors, the additional phase\-specific storage is therefore
Θ\(4Tdh\)=Θ\(Tdh\)\.\\Theta\(4Td\_\{h\}\)=\\Theta\(Td\_\{h\}\)\.\(25\)The factorized computation still forms the standard attention score matrix
Sint=Q~\(c\)K~\(c\)⊤\+Q~\(s\)K~\(s\)⊤dh∈ℝT×T\.S^\{\\mathrm\{int\}\}=\\frac\{\\widetilde\{Q\}^\{\(c\)\}\\widetilde\{K\}^\{\(c\)\\top\}\+\\widetilde\{Q\}^\{\(s\)\}\\widetilde\{K\}^\{\(s\)\\top\}\}\{\\sqrt\{d\_\{h\}\}\}\\in\\mathbb\{R\}^\{T\\times T\}\.\(26\)Thus, the factorization does not remove the standard dense attention matrix\. It removes the additionalT×T×dhT\\times T\\times d\_\{h\}token\-pair\-feature tensor required by the naive phase\-aware implementation\. ∎
### B\.5Compatibility with Causal GPT Attention
We finally show that Q\-Interference preserves the causal self\-attention interface used in GPT\-style models\. The proposed method changes only the score function and leaves masking, normalization, value aggregation, and the remaining GPT transformer block unchanged\.
###### Lemma 1\.
Replacing the standard dot\-product score withSintS^\{\\mathrm\{int\}\}preserves the causal attention interface\.
###### Proof\.
For a sequence of lengthTT, the factorized interference computation produces a score matrix
Sint∈ℝT×T\.S^\{\\mathrm\{int\}\}\\in\\mathbb\{R\}^\{T\\times T\}\.\(27\)This has the same shape as the standard dot\-product attention score matrix\. LetM∈ℝT×TM\\in\\mathbb\{R\}^\{T\\times T\}denote the causal mask, where entries above the causal boundary are assigned large negative values before softmax\. LetV∈ℝT×dhV\\in\\mathbb\{R\}^\{T\\times d\_\{h\}\}denote the value matrix for one attention head\. The masked attention weights are computed as
A=softmax\(Sint\+M\),A∈ℝT×T,A=\\mathrm\{softmax\}\(S^\{\\mathrm\{int\}\}\+M\),\\qquad A\\in\\mathbb\{R\}^\{T\\times T\},\(28\)where the softmax is applied row\-wise\. The attention output is then
O=AV,O∈ℝT×dh\.O=AV,\\qquad O\\in\\mathbb\{R\}^\{T\\times d\_\{h\}\}\.\(29\)Thus, the output of the proposed attention head has the same shape as the output of a standard causal attention head\. Therefore, residual connections, layer normalization, feed\-forward blocks, and the next\-token prediction objective can be used without modification\. ∎
## Appendix CAdditional Main Result Analysis
### C\.1Metric and Model Definitions
Table[8](https://arxiv.org/html/2608.17288#A3.T8)defines the main terms used in the appendix figures\. All quality metrics are computed for autoregressive next\-token prediction\. Peak GPU memory is reported under the fixed training setup used in the main experiments\. These definitions clarify how to read the quality and efficiency comparisons in the following subsections\.
Table 8:Definitions of metrics and model terms used in the appendix result analysis\.
### C\.2Controlled WikiText\-103 Result
WikiText\-103 is the main controlled dataset in our experiments\. Figure[3](https://arxiv.org/html/2608.17288#A3.F3)summarizes the internal comparison using two metric rulers\. The top ruler reports test perplexity and the bottom ruler reports peak training GPU memory\. Lower values are better for both metrics\. Q\-Interference obtains the lowest test perplexity among the internal models on WikiText\-103\. It also reduces peak GPU memory from 8055\.76 MB for the standard GPT baseline to 4227\.14 MB, which corresponds to an approximate 47\.5% reduction while preserving the same GPT\-style training objective\.
Figure 3:Controlled comparison on the WikiText\-103 dataset\. The top ruler reports test perplexity and the bottom ruler reports peak training GPU memory\. Each marker represents one internal model, and each label reports the exact value\. Q\-Interference achieves the best internal test perplexity and the lowest peak GPU memory in this controlled setting\.
### C\.3Cross\-Dataset Memory Behavior
Figure[4](https://arxiv.org/html/2608.17288#A3.F4)shows the peak training GPU memory of the custom model family on TinyStories, pile\-10k, and small\-C4\. The naive interference model uses the largest memory because it directly materializes the phase\-aware token\-pair\-feature interaction tensor\. In contrast, Q\-Interference avoids this tensor through the exact factorized computation\. As a result, Q\-Interference has the lowest peak memory among the custom models in all three cross\-dataset settings\. The repeated memory values across datasets reflect the fixed profiling setup, including batch size, context length, numerical precision, and hardware\.
Figure 4:Peak GPU memory across the custom model family\. Q\-Interference consistently uses less memory than the standard GPT baseline, naive interference, and the Q\-GPT baseline under the reported setting\. The naive interference model highlights the cost of materializing the phase\-aware interaction tensor\.
### C\.4Pretrained 125M Models
Figure[5](https://arxiv.org/html/2608.17288#A3.F5)compares Q\-Interference with GPT\-Neo\-125M and OPT\-125M\. These two models are pretrained decoder\-only language models, while Q\-Interference is trained from scratch in our controlled experimental setup\. Therefore, this comparison should be read as contextual evidence rather than as a parameter\-matched baseline comparison\. The pretrained models achieve stronger final test perplexity, which is expected because they benefit from large\-scale pretraining\. However, Q\-Interference remains competitive in training memory and uses lower peak GPU memory than both pretrained references on TinyStories, pile\-10k, and small\-C4\. This result suggests that the proposed phase\-aware attention design can be implemented practically, even when compared against strong pretrained 125M\-scale reference models\.
Figure 5:Pretrained 125M model comparison\. GPT\-Neo\-125M and OPT\-125M are pretrained decoder\-only models, while Q\-Interference is trained from scratch in the controlled setup used in this work\. The pretrained references obtain stronger final language\-modeling quality, but Q\-Interference shows a favorable memory profile and uses lower peak GPU memory on three of the four datasets\. The comparison is intended to contextualize Q\-Interference rather than to serve as a parameter\-matched baseline\.
## Appendix DLimitations and Discussion
The results support Q\-Interference as a practical and well\-motivated phase\-aware attention design\. The strongest evidence in this work is that the proposed exact reformulation makes richer interference\-based attention trainable in a standard GPT pipeline while substantially reducing the additional memory cost of naive phase\-aware computation\. The ablations further show that the phase term contributes a small but consistent modeling benefit on top of this practical design\.
At the same time, the method should be interpreted with appropriate scope\. Q\-Interference is not intended as a full replacement for all strong pretrained GPT transformer baselines, and the current study focuses on controlled GPT\-style language modeling rather than large\-scale pretraining or downstream transfer\. Even so, the results suggest that phase\-aware quantum\-inspired interactions are worth studying as a richer attention family, especially when paired with an exact memory\-efficient reformulation that makes them practical\.
## NeurIPS Paper Checklist
1. 1\.Claims
2. Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
3. Answer:\[Yes\]
4. Justification: The main claims are stated in the abstract and Introduction\.
5. Guidelines: - •The answer\[N/A\]means that the abstract and introduction do not include the claims made in the paper\. - •The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations\. A\[No\]or\[N/A\]answer to this question will not be perceived well by the reviewers\. - •The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings\. - •It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper\.
6. 2\.Limitations
7. Question: Does the paper discuss the limitations of the work performed by the authors?
8. Answer:\[Yes\]
9. Justification: Limitations are discussed in the Appendix D at page 17\.
10. Guidelines: - •The answer\[N/A\]means that the paper has no limitation while the answer\[No\]means that the paper has limitations, but those are not discussed in the paper\. - •The authors are encouraged to create a separate “Limitations” section in their paper\. - •The paper should point out any strong assumptions and how robust the results are to violations of these assumptions \(e\.g\., independence assumptions, noiseless settings, model well\-specification, asymptotic approximations only holding locally\)\. The authors should reflect on how these assumptions might be violated in practice and what the implications would be\. - •The authors should reflect on the scope of the claims made, e\.g\., if the approach was only tested on a few datasets or with a few runs\. In general, empirical results often depend on implicit assumptions, which should be articulated\. - •The authors should reflect on the factors that influence the performance of the approach\. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting\. Or a speech\-to\-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon\. - •The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size\. - •If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness\. - •While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper\. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community\. Reviewers will be specifically instructed to not penalize honesty concerning limitations\.
11. 3\.Theory assumptions and proofs
12. Question: For each theoretical result, does the paper provide the full set of assumptions and a complete \(and correct\) proof?
13. Answer:\[Yes\]
14. Justification: The assumptions and derivations are provided in Appendix A\. The appendix proves the phase\-aware score, exact factorization, memory accounting and compatibility with causal GPT attention\.
15. Guidelines: - •The answer\[N/A\]means that the paper does not include theoretical results\. - •All the theorems, formulas, and proofs in the paper should be numbered and cross\-referenced\. - •All assumptions should be clearly stated or referenced in the statement of any theorems\. - •The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition\. - •Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material\. - •Theorems and Lemmas that the proof relies upon should be properly referenced\.
16. 4\.Experimental result reproducibility
17. Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper \(regardless of whether the code and data are provided or not\)?
18. Answer:\[Yes\]
19. Justification: The current submission describes the experimental setup\.
20. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •If the paper includes experiments, a\[No\]answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not\. - •If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable\. - •Depending on the contribution, reproducibility can be accomplished in various ways\. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model\. In general\. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model \(e\.g\., in the case of a large language model\), releasing of a model checkpoint, or other means that are appropriate to the research performed\. - •While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution\. For example 1. \(a\)If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm\. 2. \(b\)If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully\. 3. \(c\)If the contribution is a new model \(e\.g\., a large language model\), then there should either be a way to access this model for reproducing the results or a way to reproduce the model \(e\.g\., with an open\-source dataset or instructions for how to construct the dataset\)\. 4. \(d\)We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility\. In the case of closed\-source models, it may be that access to the model is limited in some way \(e\.g\., to registered users\), but it should be possible for other researchers to have some path to reproducing or verifying the results\.
21. 5\.Open access to data and code
22. Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
23. Answer:\[Yes\]
24. Justification: All dataset are public\. We have provided our project git link in the abstract\.
25. Guidelines: - •The answer\[N/A\]means that paper does not include experiments requiring code\. - • - •While we encourage the release of code and data, we understand that this might not be possible, so\[No\]is an acceptable answer\. Papers cannot be rejected simply for not including code, unless this is central to the contribution \(e\.g\., for a new open\-source benchmark\)\. - •The instructions should contain the exact command and environment needed to run to reproduce the results\. See the NeurIPS code and data submission guidelines \([https://neurips\.cc/public/guides/CodeSubmissionPolicy](https://neurips.cc/public/guides/CodeSubmissionPolicy)\) for more details\. - •The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc\. - •The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines\. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why\. - •At submission time, to preserve anonymity, the authors should release anonymized versions \(if applicable\)\. - •Providing as much information as possible in supplemental material \(appended to the paper\) is recommended, but including URLs to data and code is permitted\.
26. 6\.Experimental setting/details
27. Question: Does the paper specify all the training and test details \(e\.g\., data splits, hyperparameters, how they were chosen, type of optimizer\) necessary to understand the results?
28. Answer:\[No\]
29. Justification: The paper reports the datasets, model families, context length, hardware, precision, and evaluation metrics in Section 3\. However, it does not explicitly specify all training details such as optimizer type, learning rate, batch size, number of epochs, seed choice, and hyperparameter selection procedure\.
30. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them\. - •The full details can be provided either with the code, in appendix, or as supplemental material\.
31. 7\.Experiment statistical significance
32. Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
33. Answer:\[No\]
34. Justification: The paper reports single\-run values for validation loss, test loss, test perplexity, and peak GPU memory, but it does not report error bars, confidence intervals, statistical significance tests, or multi\-seed mean ± standard deviation for the main experimental results\.
35. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •The authors should answer\[Yes\]if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper\. - •The factors of variability that the error bars are capturing should be clearly stated \(for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions\)\. - •The method for calculating the error bars should be explained \(closed form formula, call to a library function, bootstrap, etc\.\) - •The assumptions made should be given \(e\.g\., Normally distributed errors\)\. - •It should be clear whether the error bar is the standard deviation or the standard error of the mean\. - •It is OK to report 1\-sigma error bars, but one should state it\. The authors should preferably report a 2\-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified\. - •For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range \(e\.g\., negative error rates\)\. - •If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text\.
36. 8\.Experiments compute resources
37. Question: For each experiment, does the paper provide sufficient information on the computer resources \(type of compute workers, memory, time of execution\) needed to reproduce the experiments?
38. Answer:\[Yes\]
39. Justification: We provide all key information in our submission\.
40. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage\. - •The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute\. - •The paper should disclose whether the full research project required more compute than the experiments reported in the paper \(e\.g\., preliminary or failed experiments that didn’t make it into the paper\)\.
41. 9\.Code of ethics
43. Answer:\[Yes\]
44. Justification: Yes, we maintain all the ethics related to code\.
45. Guidelines: - •The answer\[N/A\]means that the authors have not reviewed the NeurIPS Code of Ethics\. - •If the authors answer\[No\], they should explain the special circumstances that require a deviation from the Code of Ethics\. - •The authors should make sure to preserve anonymity \(e\.g\., if there is a special consideration due to laws or regulations in their jurisdiction\)\.
46. 10\.Broader impacts
47. Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
48. Answer:\[N/A\]
49. Justification: There is no ethical consideration right now\.
50. Guidelines: - •The answer\[N/A\]means that there is no societal impact of the work performed\. - •If the authors answer\[N/A\]or\[No\], they should explain why their work has no societal impact or why the paper does not address societal impact\. - •Examples of negative societal impacts include potential malicious or unintended uses \(e\.g\., disinformation, generating fake profiles, surveillance\), fairness considerations \(e\.g\., deployment of technologies that could make decisions that unfairly impact specific groups\), privacy considerations, and security considerations\. - •The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments\. However, if there is a direct path to any negative applications, the authors should point it out\. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation\. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster\. - •The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from \(intentional or unintentional\) misuse of the technology\. - •If there are negative societal impacts, the authors could also discuss possible mitigation strategies \(e\.g\., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML\)\.
51. 11\.Safeguards
52. Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse \(e\.g\., pre\-trained language models, image generators, or scraped datasets\)?
53. Answer:\[N/A\]
54. Justification: This paper does not contain such resources\.
55. Guidelines: - •The answer\[N/A\]means that the paper poses no such risks\. - •Released models that have a high risk for misuse or dual\-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters\. - •Datasets that have been scraped from the Internet could pose safety risks\. The authors should describe how they avoided releasing unsafe images\. - •We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort\.
56. 12\.Licenses for existing assets
57. Question: Are the creators or original owners of assets \(e\.g\., code, data, models\), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
58. Answer:\[Yes\]
59. Justification: Yes, we have cited properly\.
60. Guidelines: - •The answer\[N/A\]means that the paper does not use existing assets\. - •The authors should cite the original paper that produced the code package or dataset\. - •The authors should state which version of the asset is used and, if possible, include a URL\. - •The name of the license \(e\.g\., CC\-BY 4\.0\) should be included for each asset\. - •For scraped data from a particular source \(e\.g\., website\), the copyright and terms of service of that source should be provided\. - •If assets are released, the license, copyright information, and terms of use in the package should be provided\. For popular datasets,[paperswithcode\.com/datasets](https://paperswithcode.com/datasets)has curated licenses for some datasets\. Their licensing guide can help determine the license of a dataset\. - •For existing datasets that are re\-packaged, both the original license and the license of the derived asset \(if it has changed\) should be provided\. - •If this information is not available online, the authors are encouraged to reach out to the asset’s creators\.
61. 13\.New assets
62. Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
63. Answer:\[N/A\]
64. Justification: There is no new asset\.
65. Guidelines: - •The answer\[N/A\]means that the paper does not release new assets\. - •Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates\. This includes details about training, license, limitations, etc\. - •The paper should discuss whether and how consent was obtained from people whose asset is used\. - •At submission time, remember to anonymize your assets \(if applicable\)\. You can either create an anonymized URL or include an anonymized zip file\.
66. 14\.Crowdsourcing and research with human subjects
67. Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation \(if any\)?
68. Answer:\[N/A\]
69. Justification: No crowdsourcing is in here\.
70. Guidelines: - •The answer\[N/A\]means that the paper does not involve crowdsourcing nor research with human subjects\. - •Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper\. - •According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector\.
71. 15\.Institutional review board \(IRB\) approvals or equivalent for research with human subjects
72. Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board \(IRB\) approvals \(or an equivalent approval/review based on the requirements of your country or institution\) were obtained?
73. Answer:\[N/A\]
74. Justification: This paper doesn’t include human subjects\.
75. Guidelines: - •The answer\[N/A\]means that the paper does not involve crowdsourcing nor research with human subjects\. - •Depending on the country in which research is conducted, IRB approval \(or equivalent\) may be required for any human subjects research\. If you obtained IRB approval, you should clearly state this in the paper\. - •We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution\. - •For initial submissions, do not include any information that would break anonymity \(if applicable\), such as the institution conducting the review\.
76. 16\.Declaration of LLM usage
77. Question: Does the paper describe the usage of LLMs if it is an important, original, or non\-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does*not*impact the core methodology, scientific rigor, or originality of the research, declaration is not required\.
78. Answer:\[N/A\]
79. Justification: We used LLM for editing, grammar checking and word choice\.
80. Guidelines: - •The answer\[N/A\]means that the core method development in this research does not involve LLMs as any important, original, or non\-standard components\. - •Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described\.Similar Articles
Subquadratic AI introduces SubQ-1.1-Small, a new model using Smart Sparse Attention
Subquadratic AI introduces SubQ-1.1-Small, a model leveraging Smart Sparse Attention to achieve near-perfect long-context retrieval up to 12M tokens with up to 1,000x attention compute reduction. It balances long-context optimization with strong general reasoning, outperforming baselines on benchmarks like NIAH and RULER.
I built a new attention mechanism (wave field) — runs 128K context where standard attention OOMs, 80+ tok/s on laptop CPU
A solo researcher introduces Wave Field attention, replacing standard O(N²) dot-product attention with FFT wave convolution, achieving O(N log N) training and O(1) inference per token. Claimed 80+ tok/s on CPU with 128K context and better zero-shot performance than GPT-2 124M.
The Query Knows What to Forget: A Second Erase Direction for Linear Attention
Introduces a Query-derived Erase Direction (QED) for linear attention models to improve retrieval and about double the usable context length, as demonstrated on the S-NIAH-1 benchmark.
Gated QKAN-FWP: Scalable Quantum-inspired Sequence Learning
# Paper page - Gated QKAN-FWP: Scalable Quantum-inspired Sequence Learning Source: [https://huggingface.co/papers/2605.06734](https://huggingface.co/papers/2605.06734) Authors: , , , , , , , , , , , , , , , , , ## Abstract Quantum\-inspired fast\-weight programming framework using single\-qubit circuits achieves superior forecasting performance with reduced parameters compared to classical recurrent models while maintaining NISQ device compatibility\. [Fast Weight Programmers](https://huggingfac
FourierQK: Spectral Preprocessing of Query-Key Projections Improves Transformer Attention
This paper introduces FourierQK, a method that applies FFT-based frequency-domain preprocessing to learned query and key projections in transformer attention, achieving significant validation loss reductions on character-level language modelling. The approach preserves the full attention score structure and demonstrates reproducible gains over standard dot-product attention.