# Semiprime Factorization with Discrete Diffusion and Beam Search: Scaling Laws

DevFeed: [Semiprime Factorization with Discrete Diffusion and Beam Search: Scaling Laws](<https://devfeed.tech/articles/semiprime-factorization-with-discrete-diffusion-and-beam-search-scaling-laws-125145.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10202>)

Author: Brendan O Donoghue, Nenad Tomasev, Volodymyr Mnih, Timothy Nguyen, Dalin Guo, Arun Nair, Kenneth Yang, Alexandre Frechette, Jasper Xian, Jean Tarbouriech, Pavel Tyletski, Ingrid von Glehn, Johannes Ba

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [scaling laws](<https://devfeed.tech/topics/scaling-laws.md>), [primes](<https://devfeed.tech/topics/primes.md>)

Tags: [architectures](<https://devfeed.tech/tags/architectures.md>), [beam](<https://devfeed.tech/tags/beam.md>), [compute](<https://devfeed.tech/tags/compute.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [factoring](<https://devfeed.tech/tags/factoring.md>), [laws](<https://devfeed.tech/tags/laws.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [scaling-laws](<https://devfeed.tech/tags/scaling-laws.md>)

## AI overview

Transformers trained with discrete denoising diffusion and decoded using guided beam search reportedly factor semiprimes up to 68 bits, extending a prior 56-bit result. The model learns from examples without number-theoretic priors and proposes factor candidates for exact verification or lattice-based post-processing; it is less computationally efficient than classical factoring algorithms. Empirical scaling results identify problem size as the main driver: maintaining fixed held-out accuracy requires compute that grows exponentially with bit length. The authors therefore project that costs remain prohibitive for cryptographically relevant integers.

## Source excerpt

arXiv:2611.10202v1 Announce Type: new Abstract: 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.