WHEN ATTENTION FAILS ON FINITE FIELDS: GALOIS ALGEBRAIC REASONING NETWORKS WITH HARD COSET EXECUTION
Anonymous authors
ICLR 2027
Abstract. Exact algebraic relations need not align with similarity in a learned embedding space. We study this mismatch through a controlled coset-classification task over AES : labels depend on multiplicative ratios, while both classes have identical single-byte marginals. We introduce GARN, a Galois Algebraic Reasoning Network that separates learned interaction weights from exact field execution. Attention proposes interactions, fixed inverse and multiplication tables compute ratios, and learnable membership masks provide evidence for prediction and state updates. Across five seeds, GARN reaches 99.5% test accuracy with 256 labeled examples, whereas the tested Transformers, MLPs, and discrete relaxations remain near chance through 1,024 examples. With shuffled partners, GARN reaches 79.9%, compared with 67.0% for a fixed-adjacency probe. Template-free masks, alternative byte encodings, and corrupted-operator controls isolate the role of exact execution. These results identify operator access as a decisive source of sample efficiency and establish a practical interface between continuous interaction learning and discrete finite-field computation.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:34 UTC.
- Rating
- 2/4(+1)
- Confidence
- 2/4(−1)
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 1/3
Read review
Summary
This paper studies a synthetic classification task over the AES field GF(2^8). Each input is a sequence of byte pairs, and the label is whether every pair's ratio lies in a fixed subgroup . Single-byte frequencies are the same in both classes, so the label depends only on relations between bytes. The proposed model, GARN, uses attention to propose byte pairs, computes their ratios exactly with fixed multiplication and inverse tables, and learns which ratios belong to . With adjacent pairs, GARN reaches 99.5% accuracy from 256 examples, while Transformers, MLPs, and discrete relaxations stay near 50% up to 1,024 examples. With shuffled positions, GARN reaches 79.9%, compared with 67.0% for a fixed-adjacency probe.
Strengths
The experiments are carefully controlled. The matched-marginal design makes single-byte frequencies the same in both classes, so the label depends only on relations between bytes. Replacing the exact tables with random ones drops GARN to chance, and template-free masks show that the gain does not rely only on supplying the target subgroup.
Weaknesses
Limited insight. The main finding follows naturally from the task design. The label is whether lies in , and GARN is given exact tables that compute . Once the ratio is computed, the remaining problem is to learn which of 255 values belong to . This is far easier than learning GF() multiplication from ≤1024 sequences. The default template bank also contains the target subgroup itself, so HardProbe with templates already reaches 100% at . Given this setup, it is not surprising that access to the exact operator is what drives sample efficiency. The learned pairing is the only part of GARN that goes beyond the task definition, and the paper has little evidence that it helps. On shuffled data at , pooling exact memberships over all pairs gets 96.9%, while GARN gets 79.9%.
Questions for the authors
In the current task, the exact tables directly compute the quantity that defines the label. Can the authors show a task where the tables help but do not directly give the answer, for example a label that depends on a multi-step relation, or a real task
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper asks whether neural models can learn a finite-field relation from few labels. The proposed GARN uses attention to weight token pairs and computes all pairwise ratios exactly with fixed field tables. It scores the ratios with learnable membership masks and writes this evidence back into the token states. It shows superior results on synthetic coset classification compared to soft baselines without exact field arithmetic.
Strengths
-
The benchmark is carefully designed to isolate the effect of the design choices which make the results reliable. Matching single-byte distributions removes frequency shortcuts. The adjacent, shuffled, and density-matched variants separate partner information from aggregate cues. Corrupting the field tables drops GARN to chance.
-
The method shows superior results on synthetic coset classification compared to soft baselines without exact field arithmetic.
Weaknesses
- The architecture largely reproduces relation aware attention [1]. Thus a natural baseline is a standard Transformer whose attention scores include a learned bias for each exact ratio, as in T5's relative-position bias. RatioFeatTransformer adds the ratios as extra tokens, so it does not answer this question. Even so, it already nearly matches GARN on adjacent data (96.4% vs. 99.5% at n = 256) and beats it on shuffled data (85.2% vs. 79.9% at n = 1,024). [1] Peter Shaw, Jakob Uszkoreit, Ashish Vaswani. Self-Attention with Relative Position Representations
- The evidence does not isolate exact execution as a decisive source of sample efficiency. The baselines without exact field arithmetic also lack any relational inductive bias and get fewer optimizer updates at small training sizes (25 at n = 32 vs. 400 at n = 1,024), so their failure might not be attributed to the missing operator.
Questions for the authors
- Could you compare GARN with a standard Transformer whose attention scores include the exact ratio as in T5's relative-position bias, optionally with Shaw et al.'s value-side ratio embeddings? This model receives exactly GARN's information through the standard mechanism. It can isolate whether the architecture adds beyond exact relative features.
5 comments
2. Response to W2: Isolating Exact Execution vs. Optimizer Update Counts
The reviewer astutely notes that with fixed 25 epochs, smaller datasets receive fewer optimizer steps ( at , at , vs. at ). We clarify why the soft-versus-hard gap reflects sample complexity rather than undertraining:
- Transformer–SoftGF Stays Near Chance at 400 Updates: As shown in our new table above, at (where all models receive 400 updates), Transformer–SoftGF still achieves only . If lack of updates was the primary barrier, 400 steps would yield non-trivial progress.
- Extended Capacity and Training Controls (Appendix E.4): At , scaling Transformers to 6 layers, width 256, with prolonged cosine learning-rate schedules still leaves soft models at (chance), whereas template-free GARN achieves .
- Sample-Complexity Barrier (Appendix E.10): Soft Transformers do eventually solve the task, but require scaling the training budget to (reaching ). Because matched-marginal sampling removes single-byte label information, discovering discrete finite-field multiplication circuits from continuous gradients requires vastly more supervision under scarce data.
Conclusion & Revisions
We sincerely thank you for prompting this comparison. These empirical findings provide a more nuanced understanding of exact-ratio interfaces: scalar relative attention biases are insufficient, value-side relation embeddings are strong all-pair aggregators in permuted sequences, while GARN's gated write-back interface achieves superior sample efficiency when structured interactions must be resolved. We are incorporating these new baselines and the full 5-seed comparison table into Section 5 and Appendix E of the revised manuscript.
Thank you for the new baselines. They address some of my concerns. Could you clarify:
- Were the RatioFeatTransformer results obtained with the same splits, inputs, and training schedule as the models in your new table?
- Is there a result in the paper or rebuttal where template-free GARN clearly outperforms RatioFeatTransformer? In Table 4, the gaps at are below one point, with both models near 100%.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 1/3
- Informativeness
- 2/3
Read review
Summary
The task is to label a sequence of numbers based on ratios between pairs. The authors generate positive examples from ratios in a chosen set and negative examples from ratios outside it. The arithmetic takes place in a finite field, a fixed set of values with its own addition and multiplication rules. GARN uses lookup tables to calculate the ratios exactly. It learns how much weight to give each possible pair and combines the results over several rounds before predicting the class. Models given the arithmetic learn from fewer training examples. Some simpler models given the same arithmetic perform as well as GARN or better.
Strengths
-
The experiments show a clear benefit from giving models exact arithmetic. The authors compare several models using the same data and repeat the experiments with different random seeds.
-
GARN loses its advantage when the authors replace the correct arithmetic tables with random ones. This helps show that the supplied arithmetic contributes to the results.
Weaknesses
-
Some simpler models given the same arithmetic perform as well as GARN or better. I am still unclear about what GARN's extra complexity adds. I would like the authors to show when it offers a clear advantage over these models.
-
The authors highlight a result with 256 training examples, but they also use 1000 labelled examples to choose the final model. I would like the claim about needing few examples to account for both sets. I also want to know whether the other models improve if they train for longer.
Questions for the authors
-
When does GARN perform better than simpler models given the same arithmetic?
-
Do the results still hold with fewer labelled examples used to choose the final model? Do the comparison models improve with longer training?
Comments on the paper
1 comment
General Response
Dear Area Chair JSYV and Reviewers (Sy8N, HJAx, and 7b7S),
We sincerely thank the Area Chair for facilitating the discussion and the reviewers for their engagement. During the rebuttal period, we ran 80 new controlled experiments (5 seeds each) to evaluate relation-aware attention baselines and clarify our architectural boundaries. Below, we summarize our new findings and planned updates for the final version.
1. New Controlled Experiments: Relation-Aware Attention
Following Reviewer Sy8N’s suggestion, we evaluated Transformers with T5-style scalar ratio biases (RatioBiasTF) and Shaw-style value-side ratio embeddings (RatioBiasValueTF) under strictly aligned SoftGF inputs, self-pair masking, data splits, and training schedules (25 epochs, AdamW, no templates):
| Model | Subgroup Prior | Adjacent () | Adjacent () | Shuffled () | Density-Matched () |
|---|---|---|---|---|---|
| Transformer–SoftGF (concurrent control) | None | ||||
| RatioBiasTF (T5-style scalar bias) | None | ||||
| RatioBiasValueTF (Shaw-style bias + value) | None | ||||
| GARN–Free, no fold (Ours, template-free) | None | ||||
| GARN (+ templates, reference) | Order-17 |
Key Takeaways:
- Scalar Logits Biases Fail:
RatioBiasTFstays near chance (), showing that scalar attention reweighting alone cannot extract discrete field membership without modifying value representations. - Value Embeddings vs. Gated Write-Back:
RatioBiasValueTFexcels at sequence-level pooling on unconstrained shuffled data (), whereasGARN–Freeretains a strong advantage on structured adjacent data ( vs. at ). - Density-Matched Sanity Check: All models drop to chance () under density matching, confirming that unconstrained shuffled accuracy relies on aggregate edge-density cues (Lemma C.3).
2. Resolution of Key Reviewer Concerns & Scope
- Scope vs.
RatioFeatTransformer(Reviewer Sy8N): Template-free GARN andRatioFeatTransformerachieve comparable accuracy on adjacent data for ( vs. at ; vs. at ), whileRatioFeatTransformerleads on unconstrained shuffled data ( vs. ). GARN’s distinct properties are: (i) maintaining a fixed length- sequence without expanding ratios into tokens, (ii) outperforming length- ratio-biased attention (RatioBiasTF/RatioBiasValueTF) on adjacent tasks, and (iii) exposing explicit masks for optional subgroup template injection ( at ). - Gain Over Fixed Probes & Sample Complexity (Reviewer HJAx): Without templates (
Free masks, Table 3), GARN outperforms fixedHardProbeby on adjacent data ( vs. ) and on shuffled data ( vs. , Table 2). Extended capacity/schedule controls (Appendix E.4) and scaling curves (Appendix E.10, requiring for soft Transformers) confirm a genuine sample-complexity barrier rather than undertraining. - Diagnostic Framing & Shortcut Controls (Reviewer 7b7S): We thank Reviewer 7b7S for accepting our diagnostic framing and raising their score. Matched-marginal sampling, density controls (Table 5), corrupted tables (Table 6), and mixed-fraction tasks (Appendix E.10) systematically isolate algebraic execution from statistical shortcuts.
3. Planned Updates for the Final Version
As no revised PDF was uploaded during the discussion period, we commit to incorporating the following into the camera-ready version if accepted:
- New Section 5 Subsection: Adding
Transformer–SoftGF,RatioBiasTF, andRatioBiasValueTFalongsideGARN–Free(5-seed table and full hyperparameters). - Explicit Scope & Budget Clarity: Stating the exact comparison among fixed-length GARN, ratio-biased attention, and -token
RatioFeatTransformer, and clearly reporting both training (n) and validation (1000) sample counts. - Surfacing Appendix Controls: Highlighting extended training controls (Appendix E.4), scaling (Appendix E.10), and mixed-fraction tasks in the main text.
Thank you again for your time, feedback, and fair evaluation.
Best regards,
The Authors of Submission 40143
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you for the insightful and constructive review, and for recognizing the rigor of our benchmark controls (matched marginals, adjacent/shuffled variants, density checks, and corrupted tables). Below, we directly address your two primary concerns, including new empirical results evaluating relation-aware attention baselines.
1. Response to W1 & Q1: Relation to Relative Position Bias (Shaw et al. / T5) and New Empirical Baselines
Following Reviewer Sy8N’s suggestion, we implemented and evaluated Transformers using exact-ratio attention biases under our standardized benchmark.
Experimental Setup
To ensure a strictly controlled, apple-to-apple comparison:
Empirical Results (5 seeds, mean ± std)
(Note: In the main text, GARN with order-17 templates reaches 99.5% at n=256; the template-free variant is compared here to strictly isolate architectural interfaces without subgroup priors).
Findings & Architectural Takeaways