Second-Order Complexity Theory for Risk, Explanation, and Calibration in Machine Learning
Yoshihiro Maruyama
NeurIPS 2026
TL;DR. We reveal how population risk, explanations, and calibration inherit the hardness of integration, counting, and optimization, identifying structure that enables efficient high-precision computation.
Abstract. Many machine-learning quantities are straightforward to compute once a finite data set is fixed, but their population versions can encode much harder computational problems. We study this gap for population risk, attribution, counterfactual explanation, and calibration certification, asking which of these quantities can be approximated in time polynomial in the requested number of bits. The formal basis is the Kawamura-Cook second-order complexity theory, instantiated here with compact-domain real functions carrying explicit evaluation, continuity, and range information. In this framework, expected risk has exactly the difficulty of real integration. Integrated gradients behave differently by dimension: in one dimension they reduce to evaluating endpoints, while in two dimensions even one coordinate can already encode one-dimensional integration when the relevant derivative is provided. The same lens separates the costs in related explanation and certification methods. Interventional SHAP is integration-hard even with two features, succinct coalitional SHAP is #P-hard, nearest-threshold counterfactual search is NP-hard, and continuous calibration certificates combine integration with maximization. These results give a taxonomy of when population-level explanation and certification admit polynomial-time bit approximations, and what additional structure is needed for tractability.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) Summary of the scientific claims and findings
This paper develops a unified framework, based on the Kawamura–Cook theory of second-order complexity, for analyzing the bit complexity of population-level machine-learning quantities. The authors study expected risk, integrated gradients, SHAP values, counterfactual explanations, and calibration certificates under explicit representations of real-valued functions and probability distributions. The main results characterize these quantities through standard computational primitives. The resulting taxonomy also identifies structural assumptions under which polynomial-time approximation becomes possible.
(b) Main strengths
The paper is mathematically rigorous, clearly written, and broad in scope. Its main strength is the coherent treatment of several seemingly different ML quantities within a single complexity-theoretic framework. The distinctions it draws between different sources of computational hardness are conceptually useful.
(c) Main weaknesses and potentially missing elements
The principal concern is significance and motivation. The paper emphasizes approximation to a requested number of bits, but it does not provide a sufficiently concrete and well-supported ML setting in which high bit precision is necessary for auditing, safety certification, or explanation guarantees.
The novelty of the individual results also needs sharper delineation. The paper should distinguish clearly between genuinely new theorems, adaptations of prior results, and the contribution of the unifying framework itself.
(d) Issues that could substantially change the decision if resolved in the author response
The assessment could improve substantially if the authors provide a concrete, cited application in which bit-precision complexity is operationally relevant, rather than merely constant-accuracy statistical estimation. It would additionally be important to explain which hardness results persist for practically relevant model classes such as ReLU networks, tree ensembles, and so on.
Final justification
The technical contributions of this paper have been evaluated by the reviewers. Furthermore, the authors provided a sufficiently persuasive explanation in their rebuttal. This paper is judged to be sound and to make a substantial contribution. I recommend acceptance on the condition that the authors update the description of their motivation, as requested in the rebuttal.
Read meta-review
Meta-review
(a) Summary of the scientific claims and findings
This paper develops a unified framework, based on the Kawamura–Cook theory of second-order complexity, for analyzing the bit complexity of population-level machine-learning quantities. The authors study expected risk, integrated gradients, SHAP values, counterfactual explanations, and calibration certificates under explicit representations of real-valued functions and probability distributions. The main results characterize these quantities through standard computational primitives. The resulting taxonomy also identifies structural assumptions under which polynomial-time approximation becomes possible.
(b) Main strengths
The paper is mathematically rigorous, clearly written, and broad in scope. Its main strength is the coherent treatment of several seemingly different ML quantities within a single complexity-theoretic framework. The distinctions it draws between different sources of computational hardness are conceptually useful.
(c) Main weaknesses and potentially missing elements
The principal concern is significance and motivation. The paper emphasizes approximation to a requested number of bits, but it does not provide a sufficiently concrete and well-supported ML setting in which high bit precision is necessary for auditing, safety certification, or explanation guarantees.
The novelty of the individual results also needs sharper delineation. The paper should distinguish clearly between genuinely new theorems, adaptations of prior results, and the contribution of the unifying framework itself.
(d) Issues that could substantially change the decision if resolved in the author response
The assessment could improve substantially if the authors provide a concrete, cited application in which bit-precision complexity is operationally relevant, rather than merely constant-accuracy statistical estimation. It would additionally be important to explain which hardness results persist for practically relevant model classes such as ReLU networks, tree ensembles, and so on.
Final justification
The technical contributions of this paper have been evaluated by the reviewers. Furthermore, the authors provided a sufficiently persuasive explanation in their rebuttal. This paper is judged to be sound and to make a substantial contribution. I recommend acceptance on the condition that the authors update the description of their motivation, as requested in the rebuttal.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the bit-complexity of several population-level machine learning operators using the Kawamura-Cook framework of second-order complexity theory. The authors analyze expected risk, integrated gradients, SHAP values, counterfactual explanations, and calibration certificates, and classify their complexity in terms of integration, maximization, counting, and global optimization. The paper establishes completeness and hardness results, including equivalences between population risk and integration, integration hardness of coordinate integrated gradients and interventional SHAP, #P-hardness of succinct coalitional SHAP, NP-hardness of counterfactual search, and complexity characterizations of calibration metrics.
Strengths and weaknesses
This work addresses the central challenge of understanding the complexity of population-level risk, explanation, recourse, and calibration. The paper is mathematically rigorous and develops a unified complexity-theoretic framework for several important ML operators. The resulting taxonomy is broad, clean, and conceptually insightful.
The claims of the paper are well supported by formal reductions and detailed proofs. In particular, the complexity characterizations for population risk, integrated gradients, SHAP, counterfactual search, and calibration provide a coherent picture of where computational hardness arises.
My main concern is significance. Most results are derived in highly general represented-function settings that are more abstract than typical ML practice. While the theory is interesting and technically strong, its implications for commonly used models and explanation methods remain somewhat indirect.
Questions
- Can the authors provide more discussion on the practical implications of these hardness results for commonly used ML models and explanation methods?
- Which of the identified hardness results are expected to remain relevant under the structured model classes most frequently encountered in practice (e.g., neural networks, tree ensembles, foundation models)?
- Are there additional natural tractable subclasses beyond those discussed in Section 5 where the generic hardness results collapse?
Limitations
Yes.
Final justification
The rebuttal addressed my main concerns, particularly regarding the practical implications of the framework. The response strengthened my positive assessment of the paper, and I maintain my current score.
Formatting concerns
No
3 comments
Thank you for the detailed response. The rebuttal addressed my main concerns, particularly regarding the practical implications of the framework and the role of structural assumptions in recovering tractability. Overall, the response strengthened my positive assessment of the submission.
Thank you very much for confirming that the rebuttal addressed your concerns; we are very happy with that. Many thanks again for your constructive review and feedback.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Many machine-learning quantities are estimate through sample estimation then bound generalization error. The authors tries to study the computing these quantities directly on the population without the generalization assumptions and characterize the difficulty by the number of bits. The main contribution of the is bit-complexity of common population-level operators like integration, maximization, counting, and global search. In particular, the authors studied population rick, integrated gradients, Shapley average of conditional expectations and additive-gap results for nearest threshold recourse, both for rational ReLU networks and for smooth arithmetic-circuit models. In particular, the paper shows continuous calibration certification decomposes into integration and maximization
Strengths and weaknesses
I think this is a well-written paper that studies a interesting problem. The authors shows expected-rick and Shapley average of conditional expectations can be reduced to integration and other operations like coalition summation and maximization. In particular, there are lines of work study calibration on samples but the actually the interesting question is how to characterize complexity of computing calibration on population distribution. This paper presents an interesting way characterize the real complexity.
There aren't many weaknesses. I think it would be a little bit more intuition or examples on INT and MAX.
Questions
I think this seems to be a solid work and I only a one question. I am wondering if how should I interpret the results from ECE, MCE and interval calibration. I can see the lower bound and upper bound but it would be nice if the authors can give a more sentences explaining the takeaway. I wonder if there is any comparison of complexity between MAX and INT.
Limitations
N/A
Final justification
The authors have addressed my concerns
Formatting concerns
N/A
3 comments
Rebuttal
We are grateful to the reviewer for your careful reading of the paper and constructive feedback.
Regarding the question, the results should be interpreted as follows. ECE is essentially as hard as one-dimensional integration: the upper bound shows that integration is sufficient to compute ECE, while the lower bound shows that ECE can encode any integration problem. MCE has the analogous relationship with global maximization. Thus ECE measures an average, probability-weighted calibration error, whereas MCE searches for the worst error, even in a very narrow or low-probability score region.
Interval calibration lies between these two viewpoints. It finds the score interval having the largest net overconfidence or underconfidence. If , then interval calibration is . Its computation thus involves integration to construct and maximization to find its range. The lower bound proves that interval calibration is at least integration-hard. When the residual has one sign, interval calibration equals ECE; sign changes introduce the interval-selection component.
There is a comparison between MAX and INT. Maximization has NP-type complexity, whereas integration has counting, or sharp-P-type, complexity. Under the represented-function model used in the paper, MAX can be oracle-reduced to INT using integrals of and a fuzzy binary search based on the supplied modulus of continuity. Consequently, the interval-calibration result can likely be sharpened to integration-completeness under oracle reductions.
Many thanks again for your review. We will improve the paper taking all of your precious comments into account.
Thank you for addressing my comments.
Many thanks again for your constructive review and feedback.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper the authors propose a framework---built on the Kawamura--Cook theory of complexity for operators on real functions---for measuring how hard it is to compute common machine-learning quantities to a requested precision (number of correct bits), assuming exact access to the model and the data distribution. They apply it to several population-level quantities---expected risk, integrated-gradient attributions, SHAP values, counterfactual explanations, and calibration error---and, for each, show whether it is efficiently computable or instead inherits the difficulty of a known-hard problem: integration, maximization, counting (#P-hard), or global search. The result is a classification of which of these quantities can be computed precisely in polynomial time and which cannot, together with the extra structure (smoothness, fixed dimension, finite data) that restores tractability.
Strengths and weaknesses
Strengths:
- The theory appears correct and is cleanly presented: the central reductions look sound and follow directly from the definitions; the assumptions are mild and standard.
- A couple of genuinely clarifying points: that SHAP has two separate sources of hardness (the continuous expectation, and the sum over coalitions), and that an integrated-gradient total (all features) can be easy to compute while a single feature's attribution is hard.
Weaknesses:
- The biggest weakness for me is the motivation. Paper claims that bit-precision matters for ''auditing, safety certification, explanation guarantees'' (line 59-62) but its uncited. Furthermore, the paper itself claims that the "not every ML application needs many bits" (line 56-57). No concrete setting has been presented or prior work cited where need for such bit-precision classification would be helpful to the community.
- Second, the novelty is unclear to me. Several results (Risk, MCE, Counterfactual, SHAP etc) are close to definitional, and they largely restate known results from the prior works (Friedman 1984; Van den Broeck et al.\ 2022; Arenas et al.\ 2023, all cited); the contribution rests mainly on the unifying framework.
Questions
- A concrete, cited ML setting that needs bit precision rather than constant-accuracy estimation would be really helpful to strengthen the introfuction/motivation.
- Which individual results are new, versus re-derivations of Friedman (1984) / Van den Broeck et al.\ (2022) / Arenas et al.\ (2023)?
Limitations
Yes.
Final justification
My main concern was the motivation of the paper. Authors have resolved that and thus I am increasing my rating to borderline accept. Though my concerns for novelty were not addressed, differentiation with known results and whats completely new should be made more clear.
Formatting concerns
No.
3 comments
Rebuttal
We are grateful to the reviewer for your careful reading of the paper and constructive feedback. (Please understand that our reply to the questions became quite lengthy although we tried to make it as succinct as possible. Thank you in advance for your time to read it.)
- Regarding the first question, let us provide two examples below.
The first example is certified adversarial robustness through randomized smoothing [1]. Let be an image classifier, let , and let be the probability that the noise-perturbed input is assigned to class . In the binary case, Cohen, Rosenfeld, and Kolter [1] prove that the resulting smoothed classifier is constant throughout the Euclidean ball of radius around . Consequently, certifying a prescribed robustness radius requires proving . If the certification margin is , a constant-additive-accuracy estimate cannot determine whether the classifier passes or fails the certificate; a sound estimate must have error smaller than . In the usual Bernoulli regime, Monte Carlo estimation to this accuracy requires noisy evaluations. This precision requirement arises in ordinary deep image classification: Cohen et al. apply randomized smoothing to CIFAR-10 and full-resolution ImageNet, use Monte Carlo samples per input for certification, and report certified top-1 ImageNet accuracy against perturbations of Euclidean norm less than . Thus, bit complexity measures the computational cost of resolving small robustness-certification margins, whereas constant-accuracy analysis suppresses that cost.
The second example is privacy accounting for differentially private stochastic gradient descent (DP-SGD) [2,3]. A trained model satisfies -differential privacy only if for every pair of neighboring data sets and every output event . Because DP-SGD repeatedly accesses private training data, its overall privacy guarantee must be obtained by composing the privacy losses of all training iterations. Abadi et al. [2] introduced DP-SGD and the moments accountant for this purpose. Gopi, Lee, and Wutschitz [3] subsequently developed a numerical accountant that approximates the composed privacy curve with certified errors. Their DP-SGD experiment uses and . An estimate with constant additive error such as cannot certify this guarantee because its error is ten thousand times larger than the permitted privacy-failure probability. Achieving error at most instead requires bits of absolute accuracy. More generally, as the required privacy threshold decreases, the requested precision grows as . Gopi et al. explicitly obtain runtime dependence on , illustrating why polynomial dependence on bit precision is operationally meaningful in private ML.
[1] Jeremy Cohen, Elan Rosenfeld, and J. Zico Kolter. Certified Adversarial Robustness via Randomized Smoothing. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, Proceedings of Machine Learning Research, volume 97, pages 1310--1320, 2019. URL: https://proceedings.mlr.press/v97/cohen19c.html.
[2] Martín Abadi, Andy Chu, Ian Goodfellow, H. Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep Learning with Differential Privacy. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, pages 308--318, 2016. DOI: 10.1145/2976749.2978318.
[3] Sivakanth Gopi, Yin Tat Lee, and Lukas Wutschitz. Numerical Composition of Differential Privacy. Advances in Neural Information Processing Systems, volume 34, pages 11631--11642, 2021. URL: https://proceedings.neurips.cc/paper/2021/hash/6097d8f3714205740f30debe1166744e-Abstract.html.
- Regarding the second question, let us clarify the novelty of this paper through a more detailed comparison with the three papers mentioned by the reviewer. First of all, please note that the second-order complexity framework of Kawamura-Cook (2012) we use in this paper did not exist at the time of Friedman (1984) and that neither van den Broeck et al. (2022) nor Arenas et al. (2023) uses any second-order complexity framework; both only formulate SHAP computation over finitely encoded feature domains, models, and rational probabilities using ordinary polynomial-time and counting complexity. As a matter of fact, the second-order complexity framework has never been applied to ML problems before, which we would like to emphasize before the following technical detail comparison.
Arenas et al. (2023) characterize finite-domain SHAP through circuit structure. Deterministic decomposable circuits admit polynomial-time algorithms, whereas removing the relevant structure produces exact hardness and approximation barriers. Their results therefore explain how the representation of a growing discrete model controls the complexity of coalition expectations and summation. Our theorem addresses the complementary continuous regime left outside that analysis. Even with two features, and hence constantly many coalitions, a generic bit-polynomial SHAP algorithm would yield a bit-polynomial algorithm for represented integration. This does not contradict their tractability results: their algorithms exploit finite-domain circuit compilation, whereas our lower bound shows that eliminating coalition growth does not eliminate the continuous-precision obstruction. Note also that our separate succinct-game result isolates coalition summation.
Van den Broeck et al. (2022) give a SHAP-expectation equivalence for finite discrete features under fully factorized distributions and derive hardness for several finite-domain model and distribution classes. Our theorem identifies a different complexity axis: the feature dimension, coalition family, background distribution, and target coordinate are all fixed, yet computing one SHAP value contains the hardness of represented real integration because the features and population distribution are continuous and accuracy is measured in bits. Concretely, two real-valued features and a fixed uniform background suffice. Under this independent background, conditional and interventional coalition values coincide, so the distinction is not obtained by changing SHAP semantics. The obstruction is certified continuous-population integration rather than growth of the finite feature domain or discrete model representation.
Friedman (1984) gives complexity-theoretic obstructions for real integration and maximization. In the present paper, we give uniform constraint-preserving reductions showing that they occur inside concrete population-level ML operators. These reductions preserve the structure required for genuine ML instances: a normalized deployment distribution and bounded loss for population risk; a specified attribution coordinate and supplied derivative representation for integrated gradients; a threshold, distance objective, and polynomial-size model for counterfactual recourse; and a normalized score density together with a valid conditional-accuracy function for calibration. Most strikingly, our integrated-gradients results reveal a phenomenon absent from Friedman (1984)’s generic integration theory: one-dimensional integrated gradients are endpoint-evaluable, whereas one coordinate becomes integration-complete already in dimension two, even though the sum of all coordinates remains endpoint-computable.
These works therefore identify different sources of complexity. Friedman isolates the underlying analytic primitives; Van den Broeck et al. connect finite-domain SHAP to expectation computation; and Arenas et al. locate discrete SHAP tractability in circuit structure. Our contribution exposes an orthogonal source of difficulty, namely certified precision for continuously represented population operators, and shows through ML-valid reductions that it appears already in minimal dimension. Consequently, prediction can be polynomial-time evaluable, the feature dimension and coalition family can be constant, and yet a single population-level attribution or certification quantity can still contain the full hardness of real integration. In conclusion, there may be some superficial similarity between this work and the three papers; however, the technical content of this paper significantly differs from those of the three papers as we explained above (and none of the three papers uses the second-order complexity framework as used in this paper).
Many thanks again for your review. We will improve the paper taking all of your precious comments into account.
Reply to the rebuttal.
Thanks for addressing my concerns. Given the reply especially the related works and the motivation, I have decided to increase my rating to borderline accept as the paper claims are solid but my concerns for novely are not fully resolved. But nonetheless I see value in the work/results the paper has established.
I would ask reviewers to improve the related works and motivation sections of paper if the paper is accepted.
Many thanks for your advice to improve the paper. We will surely improve the related work and motivation sections of the paper considering all of your comments. Thank you again for your careful review and constructive feedback.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We are grateful to the reviewer for your careful reading of the paper and constructive feedback.
A positive implication of these hardness results is that they provide a constructive map of where tractability can be recovered. Finite-support distributions reduce population integration to averaging, additive and tree-structured models enable efficient SHAP computation, and convex, monotone, or low-dimensional decision regions can support certified counterfactual search. Similarly, separability, analytic primitives, and effective smoothness bounds can make integrated gradients and continuous calibration certificates computationally manageable. The results therefore motivate explainability-aware model design: models can be selected or regularized not only for predictive performance, but also for the structure needed for reliable auditing.
The results also clarify the value of practical approximation methods. Quadrature, Monte Carlo sampling, coalition sampling, and amortized explainers can remain highly effective when moderate accuracy is sufficient. Hardness identifies which approximation errors and structural assumptions should be reported. This encourages more transparent evaluation, better allocation of computational resources, and explanation pipelines that combine fast empirical estimates with stronger certification only in safety-critical cases.
The most robust result is the NP-hardness of nearest-counterfactual search. It applies directly to rational ReLU networks and is expected to persist for tree ensembles and expressive foundation-model families because finding the smallest prediction-changing perturbation is a global combinatorial optimization problem.
The integration and maximization hardness of population risk, interventional SHAP, and calibration also remains relevant across model classes whenever the deployment or background distribution is sufficiently rich. These obstacles arise from population expectations and worst-case certification rather than from the predictor alone.
Coalitional SHAP counting hardness is particularly relevant to neural networks and foundation models with many features, tokens, or concepts. Standard tree ensembles are an important exception because their decomposition can support exact dynamic-programming algorithms such as TreeSHAP.
Additional natural tractable subclasses arise when the hard operator has a polynomial-size structural representation. Examples include moment-closed integrands with M=poly(n) computable basis moments; integrated-gradient paths with polynomially many polynomial pieces; and SHAP games with bounded-order interactions, dependence on only O(logn) relevant features, or exchangeable coalition marginals.
Further examples are counterfactual feasible sets that are unions of K=poly(n) certified convex regions and rational polynomial or spline calibration curves, for which integration, root isolation, and maximization are bit-polynomial. Certified spectral classes admitting polynomial-size approximations with uniform error 2−m are also tractable. Fixed dimension, independence, nonnegativity, or qualitative smoothness alone do not suffice, since the lower bounds already survive several of these restrictions.
Many thanks again for your review. We will improve the paper taking all of your precious comments into account.