Semiprime Factorization with Discrete Diffusion and Beam Search: Scaling Laws
On the map: Diffusion models → Diffusion foundations and sampling also fits: Flow matching, time series and science
Abstract (arXiv)
We demonstrate that transformer architectures trained with discrete denoising diffusion and decoded via guided test-time beam search can learn to recover the prime factors of semiprime integers directly from data. Our approach establishes a new frontier for learning-based semiprime factorization, successfully factoring 68-bit integers-a substantial advance over the prior 56-bit state of the art. While computationally less efficient than classical factoring algorithms, our model requires no domain-specific number-theoretic priors and learns purely from training examples. In practice, the diffusion model acts as a generative prior, identifying promising factor candidates where exact verification or lattice-based post-processing can complete the factorization. Furthermore, we derive empirical scaling laws relating approximation quality to training data volume, model size, and test-time computation. In contrast to language, problem size is the key driver of scaling behavior. Achieving a fixed accuracy on a held-out test set requires compute that scales exponentially with bit length. Consequently, our findings pose no threat to security, as the projected compute cost required to factorize cryptographically relevant integers remains prohibitive.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 22 of its 48 references that are in the map. Submitted 6 Nov 2026.
Builds on
22 of 48 references.
Closest ancestors · 7
Same direction, newest first
- 2023Discrete Denoising Diffusion Approach to Integer Factorization11 Sep
- 2022Efficient Diffusion Models for Vision: A Survey7 Oct
- 2022Diffusion Models in Vision: A Survey10 Sep
- 2022A Survey on Generative Diffusion Model6 Sep
- 2022Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning8 Aug
- 2021Structured Denoising Diffusion Models in Discrete State-Spaces7 Jul
- 2020Denoising Diffusion Probabilistic Models19 Jun
Other references · 15
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,208
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 2,138
- 2017Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithmcited by 772
- 2021Argmax Flows and Multinomial Diffusion: Learning Categorical Distributionscited by 603
- 2022DiGress: Discrete Denoising diffusion for graph generationcited by 550
- 2019Neural Execution of Graph Algorithmscited by 124
- 2023Efficient and Degree-Guided Graph Generation via Discrete Diffusion Modelingcited by 85
- 2022Diffusion Models for Graphs Benefit From Discrete State Spacescited by 75
- 2021Computing on Functions Using Randomized Vector Representationscited by 43
- 2024Provable Scaling Laws for the Test-Time Compute of Large Language Modelscited by 29
- 2022Neuromorphic Visual Scene Understanding with Resonator Networkscited by 19
- 2023SaGess: Sampling Graph Denoising Diffusion Model for Scalable Graph Generationcited by 15
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Factorization-Error-Free Discrete Diffusion Language Model via Speculative Decoding
- 2025Error Bounds and Optimal Schedules for Masked Diffusions with Factorized Approximations
- 2026Alpha Diffusion Language Models: Factorization Alone Is Not the Problem
- 2026DynaDFlash: Dynamic Feature Projection for Block Diffusion Speculators
- 2026The data geometry of masking diffusion: Certified-optimal schedules via unmasking growth complexity
- 2026Transformer-Based Masked Diffusion Models Provably Learn Distributions with Latent Structure
- 2026Generation Order and Parallel Decoding in Masked Diffusion Models: An Information-Theoretic Perspective
- 2026Factorization-Guided Training and Inference for Diffusion-Drafted Speculative Decoding