- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The main problem that this paper addresses is of training ML models on modular addition problems with large number of summands, and for a large value of the modulus. This problem is of importance for LWE attacks on post-quantum cryptography. This paper studies the pros and cons of the previous SoTA: the sparse method, and show that a good solution reduces wrap around frequency and avoids covariate shift between train and test data. The sparse method only reduces wrap around frequency, but not covariate shift. The paper proposes a method using an inflated intermediate modulus. Using this method, the authors achieve 97% -accuracy with tolerance parameter with only 100K samples, whereas the previous SoTA achieves only 9.5%. When the number of samples is bumped up to 1M samples then the previous SoTA reaches around 94% accuracy which further evidence that avoiding covariate shift is a fundamental improvement in the context of machine learning and therefore allows the new method to achieve far superior accuracy with much fewer data points.
Strengths and weaknesses
Strengths
- Avoids covariate shift unlike previous methods
- Analysis provided in propositions 1 and 2 and the detailed analysis in appendix A and C are valuable.
Weaknesses
- The evaluation metric seems very relaxed which is obvious in table 2 numbers reaching 100% making the evaluation weak. For example with = 0.05, and q = 974269, the allowed distance is roughly around 49000! Which means I can make any prediction around y-49000 and y+49000 (wrapping around the modulus q). What is the reality when the tolerance is decreased?
- Evaluation further seems unsound due to incorrectly reported training sizes, e.g. in table 2 columns vs captions.
- Evaluation seems to be point estimates.
- Although implementation details are available, a code implementation could be provided. This is important from no repetition of codes principles and ensures that everyone can get their hands on a good implementation which will definitely reproduce the numbers mentioned in the paper.
- Several readability issues (see presentation issues below)
Questions
Question
- Why is studying the problem of modular arithmetics important? Is the following scenario not better: where AI models can be supplemented with a calculator like tool which computes the modular addition in an agentic framework?
- As I understand, this method creates a model that predicts approximate modular sums. In which down-stream task is this useful?
- Is -accuracy a good metric for large values of q? For example with = 0.05, and q = 974269, the allowed distance is roughly around 49000! Which means I can make any prediction around y-49000 and y+49000 (wrapping around the modulus q).
Presentation issues
- The first sentence of the abstract is a bit ambiguous in that it is not clear which is the generalization and which is the specialization. Even if it is obvious to many, it may not be obvious to every reader. This can be improved a bit by changing the wording.
- Lines 23-24 has a repeated phrase.
- Line 98 has a spurious link to Definition 1. It goes nowhere.
- Notational consistency and introduction of notation is needed across the document. An example is the use of g and for the same object in multiple places, e.g. lines 482-483 but also in the main text. Another is the use of without any introduction.
- Line 188: what is "scholar n"?
- In table 2, it is I see two sample sizes "100K and 1M" in the caption and "1M and 10M" in the column labels.
- Appendix A and C discuss theoretical results, extend propositions 1 and 2. Sandwiched between them is appendix B which discusses empirical results. Maybe putting A and C first as the new A and B, and then placing the original B as the new C would be better. This also improves the flow of appendix B with related appendices D and E.
Suggestions
Instead of τ-accuracy, define the worst-case τ-bound as the minimum value of τ needed to achieve 100% τ-accuracy. Now extend this to α-worst-case τ-bound := minimum value of τ needed to achieve α% τ-accuracy. Now, vary the value of α and find the values of τ needed. Plot it.
Another informative plot could be the following: just vary the values of τ and get corresponding values of τ-accuracy. Plot this. Also on this, place the random-baseline τ-accuracy, i.e., the τ-accuracy that you would get from random predictions.
Of course, do these for both your proposed method and the baseline in one single plot.
Then also provide your analysis of the plot.
Openreview will not allow you to share images, but sharing links is fine I think.
Limitations
yes
Paper formatting concerns
No concerns
Final justification
The rebuttal was detailed and addressed my concerns.
We thank the reviewer for the careful and constructive feedback, especially for valuing the covariate-shift analysis (Propositions 1–2) and for concrete evaluation suggestions (accuracy–tolerance curves and α-worst-case τ-bounds). Below we follow the review structure: Weaknesses first, then Questions.
On Weaknesses
W1. τ-accuracy is too relaxed / evaluation is weak
Response. The τ settings follow Saxena et al. (ICML 2025) for fair comparison. Details are in Q3. In summary: (i) the printed τ=0.1,0.05 were erroneous—the actual evaluation used τ=0.01,0.005 (an order of magnitude stricter); (ii) under still tighter τ and relative to chance (≈2τ), the ordering Ours ≫ Sparse ≫ chance persists, so the gap is not an artifact of a lenient tolerance; (iii) moreover, Section 5.1 reports exact match accuracy as the primary metric, and we do not claim τ-accuracy as evidence of exact arithmetic at large q. Tolerance sweeps and α-worst-case τ-bounds appear as tables in Q3 (plots and external links are disallowed on OpenReview).
W2. Inconsistent training sample sizes in Table 2
Response. We agree: the caption (100K/1M) contradicts the column labels (1M/10M). The correct sizes are 1M and 10M (caption error). The principal result (Ours 97.0% vs baseline 9.5%) is for N=128, q=974269, 1M samples (true τ=0.005; see W1/Q3). The numerical values are unchanged; we will unify the caption, Abstract, and Section 5.2.
W3. Point estimates only
Response. We agree that the submission reported only single-run point estimates. We repeated the Section 5.1 exact modular addition experiments with angular embedding at 100K samples (match accuracy) for our method and the sparse method over 10 seeds (42–51), fixing our method at K=6, r=0.5 (more conservative than Table 1).
Excerpt (match accuracy %):
Across all 9 settings, Ours min > Sparse max. The Section 5.1 sample-efficiency conclusion holds under repeated runs.
W4. Code release
Response. We agree that reproducibility is important. Training, data generation, and evaluation code are ready and will be released with the camera-ready version.
W5. Presentation issues
Response. We will correct the verified issues in the final version (claims unchanged). The sample-size inconsistency in Table 2 is addressed in W2.
On Questions
Q1 & Q2. Why learn modular arithmetic, and where is approximate modular sum useful?
Response. A calculator is appropriate when the modular sum is already available as an external computation; that is not our goal. We study whether neural nets can learn modular addition, motivated by (1) learnability and (2) ML-based LWE attacks, where prior work shows approximate predictions can suffice.
Scientific understanding of learnability. Modular addition is a known hard case for deep learning (parity q=2: Shalev-Shwartz et al. 2017; Hahn & Rofin 2024). We study when and how neural nets can learn it at large N and q. Required samples grow with N and q, so a practical question is whether learning remains possible at larger scale and with fewer data.
Central to ML-based LWE attacks (Q2). LWE provides public samples (A,b) with b≈Asmodq. SALSA and follow-ups (Wenger et al. 2022; Li et al. 2023, among others) train models to predict modular linear forms from such samples and use those predictions for secret recovery; approximate predictions already suffice for distinguishers / recovery in this pipeline. For binary secrets, Asmodq reduces to modular sums of A's rows, so the hard learning subproblem is modular addition, and scaling it to large N,q is a known bottleneck (Saxena et al. 2025). Our τ-accuracy evaluation follows this LWE-motivated setting.
Our study focuses on sample-efficient learning of modular addition and does not report end-to-end LWE secret recovery; the utility of approximate prediction follows from those prior results. We will clarify this positioning in the Introduction.
Q3. Is τ-accuracy a good metric for large q? (including Suggestions; details for W1)
Correction. For q=974269, τ=0.005 allows a distance of about 4,871 (not ∼ 49,000). Re-aggregation gives Sparse τ-accuracy of 9.52% / 18.59% at τ=0.005 / 0.01, matching the paper’s “τ=0.05” / “τ=0.1” columns. We apologize for this error, which was the direct cause of the concern.
Role of the metric. We agree that a single fixed τ is insufficient to characterize learning at large q. We use τ-accuracy because (i) Saxena et al. (ICML 2025) introduced it in the LWE setting discussed in Q1–Q2, and (ii) it enables a fair comparison in Section 5.2. Our primary metric remains exact match in Section 5.1; τ is a diagnostic and comparative metric for large-scale regimes.
Response to Suggestions. We conducted the evaluations you proposed—(A) τ-accuracy versus τ with a chance baseline, and (B) α-worst-case τ-bounds—for both our method and the sparse method under the same conditions. Because OpenReview forbids file uploads and links, we report the curves as tables rather than plots.
(A) τ-accuracy vs τ (chance rate ≈2τ). Section 5.2 settings, 1M training samples, fixed K=5, r=0.4. Under circular distance, chance rate is theoretically ≈2τ (exact: 1/q). For N=128, q=974269 (%):
Analysis. (1) At τ=0.001 (allowed distance ≈974), Ours 25.83% ≫ Sparse 2.07% ≫ chance 0.20% (≈2τ). (2) Our method separates from chance already at τ=0.0001 (2.84% vs 0.02%). (3) At large q, exact match is essentially zero (Ours 0.01%). At the same τ and q=974269, for N=16,32,64,128: Ours 87.90 / 82.52 / 72.53 / 25.83% vs Sparse 39.01 / 24.11 / 12.52 / 2.07%.
(B) α-worst-case τ-bound. Minimum τ needed to reach α% τ-accuracy (recomputed from a 66-point discrete τ grid on the same run; N=128, q=974269, 1M):
Accuracy at the bound (reference): Ours 90.9% at τ≈0.0061, 95.5% at τ≈0.0079, 99.4% at τ≈0.0136; Sparse 91.4% at τ=0.35, 97.1% at τ=0.45. Our method reaches 90%/95% at approximately 50–60 × smaller τ than the sparse method, and 99% at τ≤0.0136 versus τ≤0.5 for Sparse. However, 100% still requires τ≤0.5 even for our method, which underscores the limits of approximate metrics.
We especially appreciate Q3 and the evaluation suggestions, which substantially strengthened the empirical case. We will incorporate the corrections and new results into the final version and welcome further discussion.