Integer Factorization Complexity Classes and How to Verify Claimed Speedups

    A claimed faster integer-factorization procedure is an algorithmic advance only when its complexity class, assumptions, model, success probability, proof, and independent checks line up. This article explains what comparisons must hold fixed, how the L-notation should be read, why matching the number-field sieve class is not the same algorithm, what automated search can and cannot establish, and how to read a speed claim before treating it as a change to public-key engineering.

    Integer factorization has long sat at the intersection of computational number theory and public-key cryptography: given a composite N, find a nontrivial factor. The problem statement is short, but the difficulty lies in aligning scale, proof, and engineering. A recent style of reporting treats “an intelligent system searched out a faster factorization procedure” as a change of algorithmic generation. A more careful reading asks first which complexity class the new procedure falls into, whether that class depends on an unproved conjecture, and whether the comparison uses the same problem, the same model, and the same success probability. It then asks whether the proof, implementation, and resource estimates can be checked independently. Only when these conditions hold together does a speed improvement qualify as algorithmic progress rather than a non-transferable experimental observation.

    What the comparison is actually about

    Integer factorization is not a single-algorithm contest. The smoothness bound, polynomial selection, relation collection, linear algebra, and square-root extraction have different cost curves, and total time is usually set by the slowest stage. Comparing two approaches requires at least four things to be fixed.

    First, how input size is measured. The usual practice is to write subexponential expressions in the bit length of N or in its natural logarithm. Wall-clock time at one particular size is not an asymptotic conclusion. Second, whether the computational model is the same, including random access, parallelism, the memory hierarchy, and whether preprocessing is allowed. Third, whether success probability and the cost of retrying after failure are counted. Fourth, whether a number-theoretic conjecture is being used as if it were a proved theorem. Drop any one of these, and two claims of “faster” may not be comparable.

    A result said to enter the same class as the classical number-field sieve should therefore be translated into a mathematical statement: is its time bound written in the same subexponential form, and is the secondary constant actually proved, rather than illustrated only by medium-scale examples? Examples can suggest research directions, but they do not replace a complexity proof.

    What the L-notation says

    The L-notation is the standard way to describe growth between polynomial and fully exponential. Intuitively, it places a fractional power of the logarithm of N inside the exponent, which separates algorithmic families. The notation usually has two key parameters. One is the fractional power of the logarithm, which decides whether the leading behavior is closer to a square-root exponential or to a milder subexponential. The other is the secondary constant, which decides which procedure has the smaller leading coefficient inside the same direction.

    At the sizes that matter for cryptography, the same fractional power with different secondary constants can produce a large gap. A “smaller constant,” however, must come from a checkable estimate, not from extrapolation of a fitted curve. Extrapolation is easily distorted by modeling error in the smoothness bound, relation density, and the sparse structure of the linear algebra. Writing an empirical fit as a theorem is the most common overreach in this kind of discussion.

    Normalization of the constants also matters. Different papers use different logarithm bases, absorb lower-order terms into o(1) in different ways, or mix space and time, and the resulting numbers can look different. Citing only the conclusion “same class” without checking the normalization creates a false gap in order of magnitude. A review or self-check should require the full asymptotic expression, the source of the hidden terms, and the range of N in which the leading term begins to dominate.

    “Same class as the sieve” is not the same algorithm

    The classical number-field sieve is the reference because it organizes factorization as polynomial selection, search for smooth relations, solution of a large sparse linear system, and then extraction of a square root from a dependency so that a greatest common divisor can be computed. Its widely accepted complexity sits in the class whose fractional power is one third. The secondary constant comes from optimizing the balance between smoothness probability and the sieving stage. Later improvements often occur in polynomial selection, lattice sieving, cache-friendly relation collection, and linear-algebra implementations, and they do not automatically change the asymptotic leading term.

    Entering the same class only means that the leading-term shape of the new procedure matches this reference. It does not mean the procedure reuses the same algebraic structure, and it does not mean existing implementations can already be replaced in engineering practice. The secondary constant may even be worse, just not worse enough to fall into a slower class. Conversely, a claim that the secondary constant is substantially better than the balance point reached by long optimization should be assumed to carry a heavier burden of proof. Either a new source of smoothness or a better stage balance has been found, or a stronger assumption, a looser model, or a cost moved into preprocessing has been hidden.

    Independence from unproved assumptions is a harder condition than “same class.” Many factorization-related statements borrow the generalized Riemann hypothesis, a strong form of the distribution of smooth numbers, or density estimates for rings of algebraic integers that are not fully proved. These assumptions are useful in heuristic analysis, but once they are removed the algorithm may have only Monte Carlo-style empirical support. Separately labeling heuristic analysis and unconditional proof is a baseline for responsible technical writing. Unconditional does not mean practical: a huge constant, unacceptable space, or validity only for special forms of N is not a general advance.

    What intelligent methods can and cannot do

    Handing search, symbolic reasoning, and large-scale trial and error to a program is suitable for three kinds of assistance. It is not a way to issue a mathematical conclusion directly.

    The first is candidate generation. A factorization procedure contains many discrete choices: polynomial degree and coefficient range, factor-base size, the number of large-prime variants, and how the sieve interval is split. A program can enumerate candidates under explicit constraints and screen them on small instances. The screening metric must be written down in advance, so that the speed one hopes to prove is not used afterward to select configurations that merely look successful.

    The second is proof drafts and counterexamples. For a claimed recurrence, identity, or complexity balance, a program can try symbolic expansion, random checks, and boundary cases. A counterexample is usually more valuable than a batch of positive examples. If the program produces only a natural-language “proof,” that text should be treated as notes awaiting review. It must be reduced to a machine-checkable derivation or to a proof a person can read in full.

    The third is experimental logs and ablations. When one parameter changes, relation yield, matrix dimension, iteration count, and peak memory should be recorded separately. Readers can then judge whether a speedup comes from an improvement in the leading term or from implementation detail, hardware, or dataset bias.

    What these methods cannot do is replace a proof with irreproducible internal state, replace peer review with one model’s self-report, or treat “text in the form of a paper was generated” as the discovery of an algorithm. Fluent text has no relation to mathematical correctness. Several such texts appearing together only increase the reading burden; they do not raise the level of evidence. That level is set jointly by definitions, theorems, the list of assumptions, the complexity derivation, and an independent implementation.

    A schematic acceptance checklist, independent of any particular platform, can be written as pseudocode. It checks the structure of the argument; it does not factor an integer:

    1. claim = load_statement()
    2. assert claim.problem == "general_integer_factorization"
    3. assert claim.complexity.form == "L"
    4. assert claim.complexity.alpha == 1/3
    5. assert claim.second_constant_proven
    6. assert claim.unproven_hypotheses == []
    7. assert claim.model in {"ram", "multitape"} # consistent with the reference algorithm
    8. assert has_independent_proof_check(claim)
    9. assert small_n_timing_not_used_as_asymptotics(claim)

    If any item fails, the conclusion should be downgraded to a conjecture, a heuristic, or an engineering optimization, not an “algorithmic breakthrough.”

    How to read a claimed speed improvement

    Read a claim in four layers so the headline does not carry the argument.

    Layer A: is the problem general? An algorithm that works only for integers of a special form cannot be extrapolated to arbitrary composites. Fermat numbers close to a square, smooth order, or a partially known prime factorization are easier subproblems.

    Layer B: is the complexity of the same type? Check the fractional power, the secondary constant, lower-order terms, and the space bound. If space moves from subexponential to nearly exponential, an attractive time bound may still be unusable.

    Layer C: are the assumptions weaker, or at least the same? Canceling an older heuristic is a substantive advance. Adding a stronger conjecture should be written explicitly as a conditional result.

    Layer D: is the implementation cross-checked? At least two independent implementations should report, on public medium-scale instances, the number of relations, the matrix size, and the number of retries after failure. Public channels should not encourage factorization attempts against real keys. The objects of verification should be random composites or contest-style instances with known answers, used to check that the implementation is correct.

    A result that passes A and B but not C is appropriately written as “conditional complexity.” Only a result that passes all four layers is ready for discussion of whether it changes the engineering status of the reference algorithm. Even then, the constant term must be assessed separately: asymptotic leadership and practical leadership at current key lengths are not the same thing.

    Implications for public-key systems and systems engineering

    For public-key schemes whose hardness rests on factoring large integers, the security margin comes from the best current general algorithm, implementation constants, and the attacker’s budget. It does not come from one unaudited asymptotic announcement. In engineering, algorithmic progress should be treated as a risk input, not as a reason to rewrite every system parameter immediately.

    The workable practice is cryptographic agility and key-lifecycle management, not chasing a single news item.

    • Separate parameters from algorithm identifiers: keep an algorithm identifier in ciphertext, certificates, and protocol negotiation, so that changing a key length or changing the hard problem does not require rewriting the application protocol.
    • Dual-track validation: before new parameters go live, use compatibility tests and a performance budget to confirm handshake, signature, and storage cost, rather than optimizing only the “paper bit length.”
    • Data retention period: if ciphertext or signatures must remain confidential for many years, the assessment should stress-test against algorithmic progress that could appear during that retention period, and should document which year the assumption comes from and when it will be reviewed.
    • Migration priority: handle long-term archives, code signing, and device identity first, then short-lived sessions. Short sessions are less sensitive to asymptotic improvements, but they are often more sensitive to implementation flaws and random-number failures.
    • Monitoring metrics: when tracking public complexity results, record whether the result is unconditional, whether it applies to general integers, whether the secondary constant became smaller, and whether the space is acceptable. Do not record media phrasing.

    These measures do not depend on any one cloud vendor’s proprietary interface. Object storage can keep proofs and experiment logs, a message queue can distribute review tasks, a container platform can pin the computing environment, and logs with monitoring alerts can record job failures and resource peaks. Using general-purpose capabilities to make review an auditable pipeline is more reliable than binding the conclusion to the output of a conversational tool.

    Research writing and team practice

    If a team also uses programs to explore factorization procedures, the artifacts should be split into four repository views: conjectures, heuristic analysis, unconditional proofs, and experimental reports. Titles must not present a conjecture as a theorem. Each internal report should open, in no more than about ten lines, with the input distribution, computational model, assumption set, and complexity normalization. Experiments must state the random-seed policy, the stopping condition, and negative results, rather than keeping only configurations that beat the baseline.

    Review questions can be fixed in advance. Was the leading term rebalanced? How sensitive is the balance point to parameters? What remains after the strongest assumption is removed? Was a speedup on special integers miswritten as a general conclusion? Does the linear-algebra stage become the bottleneck under the new parameters? Text that can answer these questions is what is worth taking into external discussion.

    For the reader, the gain should be a set of criteria: the same L-class only means the families are close; the absence of unproved assumptions outranks the constant; and intelligent search can enlarge the candidate set and look for counterexamples, but it cannot replace a proof and an independent implementation. Put those three statements before any “speed number,” and the discussion will not be carried off by a narrative that cannot be checked. Integer factorization remains a hard problem. Progress should be measured by clearer assumption boundaries and checkable derivations, not by the volume of text or the speed of a demonstration.