potentialpaper

Second-Order Complexity Theory for Neural Networks

Yoshihiro Maruyama

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Smooth local neural-network training primitives are second-order polynomial-time computable, while discontinuous selection, global optimization, and continuous-time flow solving introduce higher complexity.

Abstract. Machine learning relies on gradient-based training procedures whose empirical efficiency is usually analyzed through finite-dimensional arithmetic counts rather than formal complexity over continuous real-valued data. This paper studies neural-network training primitives as represented-real operators in the second-order complexity framework of Kawamura and Cook. Here, second-order polynomial time (FP2\mathrm{FP}_2) means computing a real-valued operator to accuracy 2−n2^{-n} in time polynomial in the requested precision, architecture size, primitive evaluation costs, and analytic bounds encoded with the input. We prove that dense backpropagation, convolutional backpropagation, soft attention, a fixed number of SGD- or Adam-style updates, and related smooth local primitives are FP2\mathrm{FP}_2-computable over the relevant represented real spaces. More precisely, dense one-sample backpropagation has tight arithmetic-and-output complexity Θ(s)\Theta(s) for ss weights and polynomial bit complexity; convolutional backpropagation is polynomial in the number of active convolution incidences; dense soft-attention backpropagation for sequence length ℓ\ell and model dimension dd has arithmetic cost Θ(ℓd2+ℓ2d)\Theta(\ell d^2+\ell^2d) using classical matrix multiplication; and fixed finite optimizer updates remain FP2\mathrm{FP}_2-computable, with polynomial precision moduli and denominator bounds determining the required precision. Higher complexity enters through three distinct mechanisms: discontinuous selection, global optimization, and continuous-time flow solving. For example, hard routing, top-kk sparsification, argmax decisions, ReLU kink conventions, exact line search, and idealized gradient flow change the second-order complexity of the training operator. Overall, this work provides a rigorous mathematical language for establishing tractability guarantees and identifying computational barriers in neural-network training, thus enabling a unified account of computational complexity for dense networks, CNNs, attention, Transformers, and standard optimizers.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:50 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary

The paper provides a unified complexity account for various neural network architectures, optimizers and other blocks and operations. It studies neural-network training primitives as operators over represented real spaces using the second-order complexity framework of Kawamura-Cook, which actively considers precision as part of the complexity analysis.

First it is show that the smooth local primitives used in standard training are second-order polynomial-time computable (FP2FP_2 computable), which means that the operator can be computed to accuracy 2−n2^{−n} in time polynomial in the required precision (and other constraints). Examples are convolutional backpropagation, dense soft-attention backpropagation, SGD and Adam style updates. Therefore, the backpropagation used for fixed precision can support represented-real statement with explicit consideration with polynomial complexity. It is also shown that primitives like hard routing, top-k sparsification and argmax decisions are examples that are not in general FP2FP_2 computable. The results are summarized in the table of Page 9.

Strengths and weaknesses

Actively considering precision in the complexity analysis of neural networks is an interesting point that can provide guideline for future computational paradigms and hardware. The paper presents the theoretical framework of Kawamura-Cook with adequate details, and the results seem to be correct.

A recurring question among the reviewers where the insight behind the provided results, the implications of the result both for theoretical research and machine learning practitioners. What is the importance of the second-order complexity framework both theoretically and practically? What is the impact of difference architecture choices on the complexity? Can the authors provide actionable guidance on architecture design or compute implementation for practitioners? For the primitive such as discontinuous selection, global optimization, and continuous-time flow solving, what are the implications of not being FP2FP_2 computable? Are there any solutions to address the limitation, for instance with using smooth approximation of these primitives?

The authors are encouraged to clarify all these details during the rebuttal.

Final justification

During the rebuttal, the authors provided a clear answer for the importance of the second-order complexity framework: the goal is to explicitly include in the complexity analysis the cost of accurate output computation (discontinuous selection, exact global optimization) beyond addition and multiplication. The take-aways from the theory is specified: Finite compositions of smooth local primitives are second-order polynomial-time computable under the given conditions, while discontinuous branch identification, global optimization, and unrestricted flow solving introduce additional difficulties. The authors provided a numerical example of their bounds for dense networks, CNNs, self-attention mechanisms, and transformers, and SGD update. The authors further explained the impact of hard attention, argmax routing, top-k selection, and derivative conventions at non-smooth boundaries, and how numerical errors may be amplified by poor conditioning.

Nonetheless, despite further clarifications by the authors, the findings and take-aways of the paper still require deeper and additional discussions, particularly because the theoretical framework is not the predominant framework in the field.

The paper’s main contribution is a formal model of deep-learning computation that incorporates real-valued data, approximation accuracy, conditioning, and the certificates needed to guarantee efficient computation. The work leverages FP2FP_2 computability theory, which is a seemingly new framework for analyzing deep learning computation. I believe the presentation of these ideas is useful for the community. I propose acceptance of the paper.

Area Chair Gof5 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary

The paper provides a unified complexity account for various neural network architectures, optimizers and other blocks and operations. It studies neural-network training primitives as operators over represented real spaces using the second-order complexity framework of Kawamura-Cook, which actively considers precision as part of the complexity analysis.

First it is show that the smooth local primitives used in standard training are second-order polynomial-time computable (FP2FP_2 computable), which means that the operator can be computed to accuracy 2−n2^{−n} in time polynomial in the required precision (and other constraints). Examples are convolutional backpropagation, dense soft-attention backpropagation, SGD and Adam style updates. Therefore, the backpropagation used for fixed precision can support represented-real statement with explicit consideration with polynomial complexity. It is also shown that primitives like hard routing, top-k sparsification and argmax decisions are examples that are not in general FP2FP_2 computable. The results are summarized in the table of Page 9.

Strengths and weaknesses

Actively considering precision in the complexity analysis of neural networks is an interesting point that can provide guideline for future computational paradigms and hardware. The paper presents the theoretical framework of Kawamura-Cook with adequate details, and the results seem to be correct.

A recurring question among the reviewers where the insight behind the provided results, the implications of the result both for theoretical research and machine learning practitioners. What is the importance of the second-order complexity framework both theoretically and practically? What is the impact of difference architecture choices on the complexity? Can the authors provide actionable guidance on architecture design or compute implementation for practitioners? For the primitive such as discontinuous selection, global optimization, and continuous-time flow solving, what are the implications of not being FP2FP_2 computable? Are there any solutions to address the limitation, for instance with using smooth approximation of these primitives?

The authors are encouraged to clarify all these details during the rebuttal.

Final justification

During the rebuttal, the authors provided a clear answer for the importance of the second-order complexity framework: the goal is to explicitly include in the complexity analysis the cost of accurate output computation (discontinuous selection, exact global optimization) beyond addition and multiplication. The take-aways from the theory is specified: Finite compositions of smooth local primitives are second-order polynomial-time computable under the given conditions, while discontinuous branch identification, global optimization, and unrestricted flow solving introduce additional difficulties. The authors provided a numerical example of their bounds for dense networks, CNNs, self-attention mechanisms, and transformers, and SGD update. The authors further explained the impact of hard attention, argmax routing, top-k selection, and derivative conventions at non-smooth boundaries, and how numerical errors may be amplified by poor conditioning.

Nonetheless, despite further clarifications by the authors, the findings and take-aways of the paper still require deeper and additional discussions, particularly because the theoretical framework is not the predominant framework in the field.

The paper’s main contribution is a formal model of deep-learning computation that incorporates real-valued data, approximation accuracy, conditioning, and the certificates needed to guarantee efficient computation. The work leverages FP2FP_2 computability theory, which is a seemingly new framework for analyzing deep learning computation. I believe the presentation of these ideas is useful for the community. I propose acceptance of the paper.

Reviewer EYvFOpenReview ↗
Rating
4/6
Confidence
1/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

To address the issue that complexity analysis for deep learning training has long been limited to discrete arithmetic counting and lacks formal evaluation criteria in the continuous domain, this work constructs an FP_2-computability analysis framework for neural network training primitives based on second-order complexity theory. It proves that dense backpropagation, convolutional backpropagation, soft attention, and mainstream smooth optimizers all fall into the class of second-order polynomial-time computable operators, and identifies three categories of operations — discontinuous selection, global optimization, and continuous-time flow solving — that drive complexity escalation. This work provides a unified theoretical foundation of computable analysis for the precision dependence and computational efficiency of deep learning training.

Strengths and weaknesses

Strengths

This paper provides a novel perspective from the lens of computational complexity, and its conclusions cover the current mainstream neural network architectures.

Weaknesses

1.While the perspective proposed in the paper is valuable, it is more abstract compared with traditional analytical approaches. It offers little actionable guidance for practitioners to implement or adjust neural networks in practice. Furthermore, the paper does not further elaborate on the broader significance of its conclusions.

2.The mathematical reasoning in the paper is explicit, yet the mathematical results come across as pessimistic. Since non-continuous activation functions are practically indispensable in neural networks, the complexity of neural networks would escalate when such activations are adopted. It leaves readers wondering how to address this issue, and the result seems rather discouraging.

3.For globally defined operators that are of real practical concern, such as global continuous optimization, the paper does not provide corresponding boundary conclusions.

Questions

see weakness.

Limitations

yes

Final justification

I'm sticking with my rating score, as I consider it my final assessment of this job. I provide a relevant explanation to AC.

Formatting concerns

No

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We are grateful to the reviewer for your careful reading of the paper and constructive feedback. Let us address your concerns below. (Please note that the following comments are quite lengthy. Please understand that we still tried to make it as succinct as possible.)


  1. Regarding the first weakness comment, we consider that the results of this paper (are mainly theoretical but also) matter in practice because a training procedure must do more than define a valid gradient: it must execute within feasible computational resources, remain reliable under finite precision, and terminate predictably. Specifically, the results of the paper suggest four concrete factors governing these requirements: (a) active interaction count determines computational and memory cost; (b) branch margins determine whether small perturbations can change discrete decisions and gradients; (c) numerical conditioning determines how strongly errors are amplified and how much precision is needed; and (d) bounded approximate optimization provides finite, robust procedures with predictable runtime. Accordingly, the results of the paper suggests the following four design principles (as actionable guidance for practitioners as requested).

(a) Active interaction count.

Parameter count alone does not determine training cost because a parameter may be reused across many spatial positions or interactions. For a dense network with ss weights, explicitly computing a full one-sample gradient costs Θ(s)\Theta(s) scalar operations, in addition to evaluating activation and loss primitives at the required precision (Theorem 1, p. 6). In convolutional networks, grouping into gg equal groups reduces the leading multiply-accumulate term by a factor of gg, although data movement and gradient-materialization costs need not decrease proportionally. Depthwise-separable convolution replaces the leading dependence on KCinCoutK C_{\mathrm{in}} C_{\mathrm{out}} by KCin+CinCoutK C_{\mathrm{in}}+C_{\mathrm{in}} C_{\mathrm{out}} (Theorem 3, p. 7). Dense self-attention costs Θ(ℓd2+ℓ2d)\Theta(\ell d^2+\ell^2d), whereas fixed sparse attention with at most rr keys per query costs O(ℓd2+rℓd+hrℓ)O(\ell d^2+r\ell d+hr\ell). This becomes Θ(ℓd2+rℓd)\Theta(\ell d^2+r\ell d) when each query has Θ(r)\Theta(r) active keys and the projections remain dense (Theorem 4, p. 8). Architecture selection should thus consider active operations, interaction patterns, and data movement rather than parameter count alone.

(b) Branch margins.

Hard attention, argmax routing, top-kk selection, and derivative conventions at nonsmooth boundaries can produce discontinuous selection or gradient maps (Proposition 2, p. 16). Relevant local margins include γtop-k=s(k)−s(k+1)\gamma_{\mathrm{top}\text{-}k}=s_{(k)}-s_{(k+1)} for top-kk selection and γsign=∣z∣\gamma_{\mathrm{sign}}=|z| for a sign decision. When a computation contains several branch tests, its stability is governed by the smallest margin. If this margin is small, rounding errors, reduced precision, or minor input perturbations may alter the selected branch and the resulting gradient. On a domain with a positive minimum margin γ\gamma, additional working precision O(log⁡(1/γ))O(\log(1/\gamma)) is sufficient to resolve the decisions reliably (Proposition 3, p. 16). Monitoring branch margins, using fixed masks or smooth relaxations, and maintaining positive branch separation can thus improve stability and reproducibility.

(c) Numerical conditioning.

Even when the operation count is moderate and all branch decisions are fixed, numerical errors may be amplified by poor conditioning. Useful diagnostics include activation and preactivation ranges, layer operator norms, local Jacobian or Hessian estimates, attention-score ranges, routing margins, and normalization or optimizer denominators. Gradient magnitude measures the scale of an update but does not by itself measure the sensitivity of the gradient map. Large local derivative estimates indicate potential error amplification, while small denominators can make normalization and adaptive updates numerically sensitive.

For dense backpropagation, a sufficient working-precision bound has the form p=n+O(log⁡(2+Hdense)+log⁡(2+q)+log⁡(2+A))p=n+O(\log(2+H_{\mathrm{dense}})+\log(2+q)+\log(2+A)), where 2−n2^{-n} is the target coordinatewise error, HdenseH_{\mathrm{dense}} bounds second derivatives, qq is the number of scalar inputs, and AA measures the arithmetic work (Theorem 2, p. 6). Thus, the required precision depends on both the desired accuracy and the conditioning of the computation. Rescaling, normalization, norm control, and positive denominator safeguards may reduce numerical risk.

(d) Bounded approximate optimization.

Practical optimization should be implemented as a finite sequence of explicitly approximate operations. Under the assumptions stated in the paper, any prescribed finite sequence of SGD-, momentum-, RMSProp-, or Adam-style updates is efficiently computable (Theorem 5, p. 8). Fixed-iteration curvature-based methods are similarly covered when derivative bounds are available, generated directions remain in the declared domain, denominators have positive lower bounds, and inner iteration counts are explicitly bounded (Section 7, pp. 8-9; Appendix A.10, p. 18).

By contrast, exact line search introduces global continuous minimization, while unrestricted gradient flow requires solving a continuous-time initial-value problem. Implementations should thus use finite iteration budgets, bounded approximate line searches, safeguarded denominators, explicit tolerances, and maximum iteration counts. Data-dependent stopping and acceptance tests should also use numerical margins or robust equality handling. These measures provide predictable termination and prevent singular operations or unresolved comparisons from dominating the computation.

These four principles address excessive computational cost, unstable branch decisions, numerical error amplification, and unpredictable optimization procedures. They identify conditions under which prescribed training updates can be evaluated efficiently and reproducibly.


  1. Regarding the second weakness comment, interpretation may vary, but it does not have to be necessarily pessimistic; let us explain more positively below.

Nonsmoothness does not make neural-network differentiation intrinsically expensive. The obstruction is localized to numerically unstable branch boundaries. Away from those boundaries, nonsmooth backpropagation remains second-order polynomial-time, with inverse margin acting as a condition parameter. The theory consequently suggests concrete routes to certified tractability: maintain or verify branch margins, use smooth or soft relaxations when margins collapse, and employ finite approximate optimization procedures rather than exact global or continuous-time idealizations.


  1. Regarding the third weakness comment, we can add the following type of global continuous-optimization boundary theorem in the appendix.

Theorem (oracle-complexity boundary for global optimization). Let GG be the class of smooth real-valued functions ff on 0,10,1 such that ∣f(x)∣≤1|f(x)|\leq 1 and ∣f(x)−f(y)∣≤∣x−y∣|f(x)-f(y)|\leq |x-y| for all x,y∈[0,1]x,y\in[0,1]. Represent ff by a dyadic value oracle which, on input a dyadic q∈[0,1]q\in[0,1] and a precision request pp, returns a dyadic approximation to f(q)f(q) with error at most 2−p2^{-p}; the Lipschitz bound 11 is assumed known. Let V(f)=min⁡0≤x≤1f(x)V(f)=\min_{0\leq x\leq 1}f(x). A point x∈[0,1]x\in[0,1] is an ϵ\epsilon-minimizer if f(x)≤V(f)+ϵf(x)\leq V(f)+\epsilon.

(i) For all sufficiently small ϵ>0\epsilon>0, both approximating V(f)V(f) with absolute error at most ϵ\epsilon and finding an ϵ\epsilon-minimizer have deterministic worst-case value-oracle query complexity Θ(1/ϵ)\Theta(1/\epsilon). Consequently, when ϵ=2−n\epsilon=2^{-n}, both problems require Θ(2n)\Theta(2^n) oracle queries in the worst case and hence are not uniformly FP2FP_2-computable.

(ii) Let ϕ:[0,1]→R\phi:[0,1]\to\mathbb{R} be differentiable, and suppose that g=ϕ′g=\phi' is supplied through a uniformly FP2FP_2-computable evaluation oracle. Suppose also that an explicit positive dyadic certificate μ>0\mu>0 is supplied such that g(y)−g(x)≥μ(y−x)g(y)-g(x)\geq\mu(y-x) whenever 0≤x<y≤10\leq x<y\leq1. Then ϕ\phi has a unique minimizer xϕx_\phi. Moreover, the operator (g,μ)↦xϕ(g,\mu)\mapsto x_\phi is uniformly FP2FP_2-computable.


Please note that the theoretical significance of the paper is explained in the comments for Reviewer bYxD.

Many thanks again for your review. We will improve the paper taking all of your precious comments into account.

Reviewer M9ZSOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies neural-network training primitives as represented-real operators in the second-order complexity framework of Kawamura and Cook. It proves that smooth neural-network training operations, like dense backpropagation, convolutional backpropagation, and soft-attention are FP₂-computable when supplied with explicit analytic certificates. It further shows that local differentiation through smooth networks is not the source of higher complexity, and that the complexity status changes only through three specific mechanisms, i.e., discontinuous selection, global optimization, and continuous-time flow solving. By making precision, conditioning, and certificate dependencies explicit, the paper provides a mathematical foundation that unifies complexity analyses of dense networks, CNNs, attention mechanisms, Transformers, and standard optimizers.

Strengths and weaknesses

The paper's core strength is its rigorous and unifying theoretical contribution. It formally establishes that standard neural-network training primitives are computationally efficient in an exact-real model, while specific non-local mechanisms, such as discontinuous selection, global optimization, and continuous-time dynamics, are precisely identified as the factors that pushes training complexity beyond polynomial time. The theoretical analysis is sound and consistent.

The main weakness of the paper is its exclusively theoretical nature, which is fully noticed by the reviewer. However, impacts or implications of the presented theory in real-world applications are not clearly discussed.

Questions
  1. Despite rigorous derivation of the 2nd-order complexity theory of various neural network primitives, i.e., closed form expression of the complexity analysis, can you provide concrete exemplification of dense networks, CNNs, attention mechanisms, Transformers, and standard optimizers for a better illustration of the results? For example, given fixed architecture of dense network, how can the result in Eq. (21) be visualised for its impact on complexity.

  2. The analysis is merely on gradient descent algorithm that trains most neural network models studied in the paper. However, the most dominant training algorithm used in real-world applications is Stochastic Gradient Descent. What are implications or values of the presented analysis on 2nd-order complexity theory on gradient descent to Stochastic Gradient Descent?

Limitations

Yes

Final justification

Based on the rebuttal from the authors, I raise my rating of the paper to be Accept.

Formatting concerns

No clear violation of formatting.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We are grateful to the reviewer for your careful reading of the paper and constructive feedback.


  1. To answer Q1, please let us give a concrete complexity illustration.

Consider a smooth dense network with widths 784784-256256-128128-1010. It has s=234,752s=234{,}752 weights and N=235,146N=235{,}146 trainable parameters. For discrete labels, q=N+784=235,930q=N+784=235{,}930. Under the normalized stability hypothesis of the precision-propagation lemma underlying Eq.~(21), an illustrative sufficient bound is

$p \ge n+\lceil\log_2(1+qH_{\mathrm{dense}})\rceil +\lceil\log_2(1+A)\rceil+3,$

where AA is the computation-trace length. Taking the coarse leading-order proxy A=5s=1,173,760A=5s=1{,}173{,}760, requesting n=24n=24 output bits gives p=66p=66 working bits when Hdense=1H_{\mathrm{dense}}=1 and p=86p=86 bits when Hdense=220H_{\mathrm{dense}}=2^{20}. Thus the scalar-operation count is independent of HdenseH_{\mathrm{dense}}, while the required precision grows only logarithmically with this derivative-sensitivity envelope. The resulting bit complexity nevertheless depends on pp through the per-operation cost M(p)M(p).

Representative one-sample backpropagation costs are as follows.

  1. Dense network: 784784-256256-128128-1010; leading count 7.72×1057.72\times10^5 operations, with the coarser bound 5s≈1.17×1065s\approx1.17\times10^6 plus lower-order terms.

  2. Convolutional layer: 32×3232\times32 output positions, a 3×33\times3 kernel, and 33 input and 6464 output channels; approximately 1.06×1071.06\times10^7 operations, plus lower-order terms.

  3. Self-attention: sequence length 128128, model dimension 512512, and 88 heads; approximately 9.06×1089.06\times10^8 operations, plus the lower-order softmax contribution.

  4. Transformer block: sequence length 128128, model dimension 512512, and feedforward width 20482048; approximately 2.52×1092.52\times10^9 operations for attention and the two feedforward linear maps, excluding lower-order activation, normalization, and residual costs.

  5. SGD update: N=235,146N=235{,}146 parameters; approximately 2N=4.70×1052N=4.70\times10^5 additional operations.

The reviewer asked for visualization, so we will include visualization in the paper. Equation~(21) can be visualized by plotting the working precision pp against log⁡2Hdense\log_2 H_{\mathrm{dense}}. For attention backpropagation, plotting the coefficient-weighted projection cost 24ℓd224\ell d^2 and token-interaction cost 12ℓ2d12\ell^2d separately shows that the quadratic sequence-length term becomes dominant when ℓ>2d\ell>2d.


  1. Answering Q2, the paper actually addresses the complexity of SGD updates; we will clarify this in the paper. Please let us explain the details below.

Theorem 2 in Section 4 (p. 6), titled “Bit complexity and second-order polynomial time,” proves that the one-sample gradient computed by backpropagation is FP2FP_2-computable.

This result is extended to mini-batch optimization in Theorem 5 of Section 7 (p. 8), titled “Local smooth optimizers.” In particular, Equation (38) gives the cost of one mini-batch update.

The paragraph following Theorem 5 (p. 9) explicitly states that the result covers SGD, mini-batch SGD, momentum, Nesterov momentum, RMSProp, and Adam.

Thus, the paper establishes the precision-aware complexity of each realized SGD update and any fixed finite sequence of such updates. We will clarify these in the paper.


Many thanks again for your review. We will improve the paper taking all of your precious comments into account.

Reviewer M9ZS · CommentOpenReview ↗

The authors addressed my two questions in sufficient details. A revised version of the paper with the example given in the rebuttal and further clarification on the impacts on SGD will be recommended by the reviewer to be acceptable to ICLR. Hence I raise my rating to be Accept.

Authors · CommentOpenReview ↗

Yes, we will improve the paper according to your recommendations. We really appreciate the constructive recommendations. Many thanks again for your careful review and constructive feedback.

Reviewer bYxDOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper under review applies the second-order complexity framework of Kawamura-Cook to neural network training primitives. In particular, it shows that a variety of operations: backpropagation, convolution, soft attention, and fixed smooth optimizer updates are second-order polynomial-time computable. Moreover, precise bounds are given.

Machine learning is a major enterprise which requires an enormous division-of-labor. The same can be said for the mathematical models and levels of abstraction we use to view and study the basic primitives of machine learning. Here is my naive summary of three such levels in decreasing order of abstraction:

Level 1: At this first level we view all quantities as legitimate real numbers in R\mathbb{R}, we assume all operations are exact, and we take for granted that we have automatic sign-testing and zero-testing. For computability questions, we may resort to the Blum-Schub-Smale (BSS) model of real computation. At this level, we may freely use the ideas of real analysis, optimization, variational analysis, etc., which work perfectly well over the real numbers.

Level 2: At this level, we acknowledge that we are working with floating point numbers (or some other data type) and not idealized real numbers. It is here where issues such as machine precision, conditioning of matrices, numerical stability and accuracy, etc., come into the picture.

Level 3: At this level, we are investigating what the hardware is physically doing when we run the computations. I view this as the purview of physics, electrical engineering, materials science, etc.

In my understanding, the Kawamura-Cook framework for complexity theory occupies some level between 1 and 2 above. It permits us to: *replace exact real numbers with dynamic approximations by dyadic numbers; thus helping to bridge the gap between Level 1 and Level 2 above; *rigorously associate complexity costs to common processes which are uniform in the size of the architecture and desired precision

The paper under review takes the first steps at introducing this computational model to the world of machine learning.

Strengths and weaknesses

Strengths:

  1. The paper provides a nice summary in Section 2 of the second-order complexity framework which they use.

  2. The results describe a delineation of the boundary between those operations which are FP2FP_2-computable, versus those which are merely piecewise FP2FP_2-computable (see the table on page 9). This helps build intuition for what types of operations one would expect to be FP2FP_2-computable.

Weaknesses:

  1. One possible weakness is that the results might not seem very surprising. I think the results are carefully stated and the precise bounds could be valuable, but \emph{a priori} I don't think there would be much doubt that these primitives would be FP2FP_2-computable.

  2. I think the paper could do more to explain the importance of the second-order complexity framework. What are the stakes? Can you elaborate on what you mean on p.2 lines 39-42?

My judgment of the paper is based on the belief that the second-order complexity framework is important and should be more widely understood and considered; thus I view the paper as necessary and it should exist in the literature in some form.

Questions
  1. Are there operations where it is not known whether it is second-order polynomial-time computable? What about piecewise FP2FP_2?

  2. What is the definition of piecewise FP2FP_2-computable? Is it meant to be inferred from the statement of Proposition 3?

  3. My understanding of second-order polynomial in $|\varphi|$ and $n$'' (e.g., lines 120-121) is that when $|\varphi|$ is fixed, the bound need not be polynomial in $n$, e.g., if $|\varphi(n)|=2^{2^n}$ then the polynomial'' could still be super-exponential in nn? Does such a situation ever occur in the paper, or all ∣φ∣|\varphi|'s under consideration always assumed to be polynomially-bounded?

Limitations

yes

Final justification

My questions and concerns have all been addressed; the justification of the importance of the second-order complexity framework and the other responses leads me to maintain the score of accept and raise the significance and my confidence.

Formatting concerns

no

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We are grateful to the reviewer for your careful reading of the paper and constructive feedback.


Let us first address the broader question raised in the Strengths and Weaknesses section: “I think the paper could do more to explain the importance of the second-order complexity framework. What are the stakes? Can you elaborate on what you mean on p. 2, lines 39–42?”

First of all, ordinary arithmetic counts measure the additions, multiplications, and comparisons performed by an implementation, but they can conceal the cost of obtaining sufficiently accurate approximations to real-valued inputs. For example, a comparison or hard-routing decision may be counted as a single operation even though resolving it near a decision boundary can require arbitrarily high precision. Likewise, treating exact line search as a primitive operation hides the complexity of the underlying global optimization problem.

The second-order framework exposes these costs by measuring complexity as the requested output accuracy increases and by making the necessary conditioning, margin, and nondegeneracy assumptions explicit. It thus prevents the low arithmetic cost of backpropagation from being mistaken for evidence that an entire training procedure is uniformly polynomial-time computable over real-valued inputs.

The stakes are both theoretical and practical. Conditions such as smoothing, positive margins, and finite stopping rules are not merely implementation choices: they can determine whether a training operator admits a certified polynomial-time guarantee. The framework thus identifies the boundary between efficiently computable local operations, such as differentiation under suitable regularity conditions, and qualitatively harder operations involving discontinuous selection, exact global optimization, or unrestricted continuous-time dynamics. It also reveals when an apparently efficient training method is computationally fragile and when smoothing, regularization, soft routing, or finite stopping is necessary for uniform efficiency rather than merely a useful heuristic.

The results of the paper also suggest a compositional complexity principle for learning over continuous data. Finite compositions of smooth local primitives remain second-order polynomial-time computable when their moduli of continuity and nondegeneracy scales are supplied explicitly. By contrast, discontinuous branch identification, global optimization, and unrestricted flow solving introduce qualitatively different operator-level difficulties. Margins, conditioning bounds, and stabilizers thus function as computational certificates, rather than merely numerical implementation details. This reframes neural-training complexity as depending jointly on arithmetic structure, requested precision, and the quantitative information available about the problem.

More broadly, this work connects two largely separate disciplines. Second-order complexity theory studies computation over continuous objects while accounting explicitly for representation and precision costs, whereas much of deep-learning theory analyzes training through finite-dimensional arithmetic counts. Combining these perspectives produces a formal model of deep-learning computation that incorporates real-valued data, approximation accuracy, conditioning, and the certificates needed to guarantee efficient computation.

We hope this work opens a new direction in deep learning theory. As a foundation for this direction, we have developed the first systematic second-order complexity theory of neural-network training operators, treating backpropagation, convolution, attention, and standard finite-step optimizers within a common represented-real framework. We hope this foundation will ultimately lead to an end-to-end theory integrating real-valued operator complexity theory with optimization and generalization, clarifying when a learning method is statistically sound, uniformly implementable, and computationally efficient over real-valued data.


Let us also answer the clarification questions below:

  1. For example, the convex-hull operator on closed subsets of [0,1]2[0,1]^2 is second-order NP-complete, and whether it is FP2FP_2-computable is open.

  2. Yes, an operator is piecewise FP2FP_2-computable if its restrictions to all fixed-branch regions with a supplied positive branch margin are uniformly FP2FP_2-computable.

  3. Yes, pathological super-exponential names could exist. The represented neural quantities in the paper have polynomial-length canonical Cauchy names.


Many thanks again for your review. We will improve the paper taking all of your precious comments into account.

Reviewer bYxD · CommentOpenReview ↗

I thank the authors for their thoughtful response to my questions and concerns, which have all been addressed. I especially appreciate the detailed elaboration on the importance of the second-order complexity framework. I think comments like this in the introduction will broaden the motivation and appeal of the paper. I will maintain the score of accept and increase the significance and my confidence.

An additional question, just out of curiosity; it is even open whether the convex-hull operator on closed semialgebraic (or even basic closed semialgebraic) subsets of [0,1]2[0,1]^2 is FP2FP_2-computable?

Authors · CommentOpenReview ↗

Thank you very much for giving us the opportunity to improve the paper. We will add the comments in the paper.

As to the additional question, the answer is yes. It indeed remains open even for basic closed semialgebraic sets.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…