arXiv:2609.08608math.NTSep 2026

Manuscript Offprint

arXiv:2609.08608

Reduction Modulo Binary Polynomials with Logarithmic Feedback Depth

Junyu Zhou, Kaiyi Zhang

JUNYU ZHOU AND KAIYI ZHANG

ABSTRACT. Polynomial modular reduction is central to binary finite-field arithmetic and repeated Frobenius powering. Sparse top-down folding uses few shift/XOR operations, but a tap near the leading term creates a long feedback chain. We formulate this recurrence as inversion of a nilpotent shift operator and factor its inverse by characteristic-two Frobenius powers. The resulting Frobenius-factorized reduction (FFR) applies to every monic binary modulus without materializing a reciprocal or dense reduction matrix, and its shifts can be generated online without a persistent modulus-specific schedule. For degree mm, nonleading support size ss, and nearest-tap distance Δmin⁡\Delta_{\min}, FFR has exact feedback depth ⌈log⁡2(m/Δmin⁡)⌉\lceil \log_2(m/\Delta_{\min}) \rceil and scheduled work O(ms(1+log⁡(m/s)))O(ms(1 + \log(m/s))). A portable-C evaluation on 1,096 supports through degree 131072 identifies distinct FFR, López-Dahab, and gf2x-backed Barrett regions. On four certified irreducible moduli, FFR makes complete Rabin irreducibility testing 1.35–8.04 times faster than NTL and 1.60–6.81 times faster than the matched Barrett implementation.

1. INTRODUCTION

Arithmetic in a polynomial-basis representation of a binary extension field reduces products and squares modulo a monic polynomial. The same operation appears in polynomial factorization, irreducibility testing, and searches for sparse irreducible or primitive polynomials. In these settings the modulus is public and often fixed for many reductions, but the useful degree, support, and setup-amortization regimes vary substantially.

In the regime studied here, three modulus parameters provide the principal coordinates for reduction time:

(1) the degree mm, which fixes the operand length and hence the amount of word-level data processed;

(2) the Hamming weight hh, including the leading term, which determines the number of nonleading taps available to sparse shift/XOR methods; and

(3) the nearest-tap distance Δmin⁡\Delta_{\min}, namely the gap from degree mm to the highest positive nonleading tap, when one exists, which controls how far feedback can propagate before leaving the degree-mm state; without such a tap there is no feedback chain.

Observed runtime also depends on complete tap placement, word alignment, setup, and the multiplication backend. The three parameters above separate the main

2020 Mathematics Subject Classification. Primary 11T06; Secondary 12Y05, 68W10, 68W40. Key words and phrases. binary polynomials, modular reduction, finite fields, sparse polynomials, Frobenius map, parallel algorithms.

size, sparsity, and feedback effects and therefore define the axes and slices used in our evaluation.

When the nonleading part is sparse, top-down folding uses little setup and can be extremely effective. Its work and latency, however, are controlled by different geometric features. Hamming weight controls how many shifts and XORs one fold introduces, whereas the distance from the leading term to the nearest internal tap controls how far feedback can propagate. Equal-degree, equal-weight moduli may therefore induce very different dependency chains.

Barrett and Montgomery reduction avoid this particular serial recurrence, but introduce multiplication kernels, modulus-dependent constants, and different setup costs. Reciprocal methods and dense linear maps expose additional parallelism, but do not automatically preserve sparse support. We ask whether the sparse feedback chain can be shortened without first materializing a dense reciprocal or reduction matrix.

We answer this question with Frobenius-factorized reduction (FFR). It requires no materialized reciprocal, dense reduction matrix, or persistent modulus-specific shift schedule: the doubled shifts may be derived online from the original taps or retained in a lightweight reusable plan. Online execution uses an mm-bit state and tap-sized descriptor scratch; “no persistent schedule” refers specifically to precomputed reduction data. For an input of degree below twice the modulus degree, reduction gives a finite forced recurrence. We write it as (I+U)Y=H(I+U)Y = H for a truncated shift operator UU. When U≠0U \neq 0, characteristic two gives

(1)

(I+U)−1=∏k=0r−1(I+U2k),r=⌈log⁡2mΔmin⁡⌉,(I+U)^{-1}=\prod_{k=0}^{r-1}(I+U^{2^{k}}),\qquad r=\left\lceil\log_{2}\frac{m}{\Delta_{\min}}\right\rceil,

and U2r=0U^{2^{r}}=0; when U=0U=0, no feedback stage is needed. Each Frobenius power doubles the original tap distances. Mixed feedback paths arise through composition across stages rather than by expanding a dense reciprocal inside one stage.

This construction generalizes our earlier Suwako reducer for trinomials xm+xt+1x^{m}+x^{t}+1 [1]. That work established the logarithmic-depth, precomputation-free trinomial case through two specialized doubling folds. The present contribution begins with the arbitrary multi-tap feedback formulation and includes the resulting all-tap geometry, packed-word analysis, planned and online implementations, and comparative evaluation.

Our contributions are threefold.

(1) We derive a nilpotent-feedback formulation and sparse characteristic-two factorization that give a correct FFR algorithm for any monic binary modulus.

(2) We give exact tap-geometry analyses of coefficient work, packed-word work, feedback depth, schedule size, and workspace, together with planned and schedule-free online realizations.

(3) We provide a reproducible portable-C evaluation that maps winning and losing regions against serial folding, López-Dahab, and gf2x-backed Barrett reduction, and test the reduction advantage inside a complete Rabin irreducibility test with an optimized NTL baseline.

Correctness holds for every monic binary modulus, while sparsity governs the performance regime. Our depth results use the synchronous feedback-stage and bounded-fan-in models defined below; complete-workload effects are evaluated separately through Rabin irreducibility testing.

Sections 2–3 fix the problem and comparison models. Sections 4–6 develop the method and analysis. Section 7 states the prior-art boundary. Section 8 contains the implementation and application evidence, and Section 9 concludes.

References (15)