Adaptive arbitrary-precision framework claimed to improve primality testing for cryptography
The authors assert their framework can generate, test, and prove primality of extremely large numbers with security guarantees even under biased prime distributions
AI/ML arXiv 22 Oct 2026 Method Theory
Published as “Bridging Number-Theoretic Primality Testing And Algorithmic Optimization: An Adaptive Cryptographic Framework”
Why it matters
Enables faster generation of cryptographic primes, which can improve key-generation throughput in security-critical systems.
Summary
The paper shows that its ML-driven witness selector runs in 0.000588 seconds per 1024-bit candidate, about 27.58 % of the time of a single modular exponentiation, thereby accelerating primality testing without added latency. It presents an adaptive framework that combines Montgomery and Barrett modular reduction, a cache-aware segmented sieve, and a pretrained Random Forest model to choose Miller-Rabin bases. Evidence is based on single-core Python benchmarks comparing against core Miller-Rabin and Solovay-Strassen implementations. The authors note that the ML classifier overhead must remain smaller than modular-exponentiation cost and that gradient-descent optimization fails on modular arithmetic, limiting some approaches. No explicit threat model is provided.
Caveats 3
- The paper states that the classifier overhead must remain smaller than modular exponentiation cost, implying a constraint on the speedup and a potential latency overhead.
- Gradient Descent (Adam, RMSprop) ... Fails due to barren plateaus in high-frequency modular arithmetic Takhanov et al. [2023].
- Supervised Machine Learning ... Classifier overhead must remain smaller than modular exponentiation cost.
What’s new here 3
- Integrates a lightweight Random Forest model to predict Miller-Rabin witness bases.
- Combines hardware-level Montgomery and Barrett reductions with cache-aware segmented sieving.
- Anchors candidate generation in quantum-entropy sources while allowing bounded-bias search optimizations.