NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Second-Order Complexity Theory for Risk, Explanation, and Calibration in Machine Learning

Yoshihiro Maruyama

NeurIPS page · OpenReview · Open on the map

Category: Causality, Privacy & Learning Theory › Statistical Learning Theory · Type: theory · Keywords: second-order complexity theory, population risk, explanation complexity, calibration certification, integration hardness, NP-hardness

Summary

Second-order complexity theory provides a taxonomy of the computational difficulty of population-level risk, explanation, and calibration tasks, showing which admit polynomial-time approximations and which are integration-hard, NP-hard, or #P-hard.

Explained to a 5-year-old

We look at big computer models that learn from lots of data and ask how hard it is to figure out their true performance. Some things, like checking how well the model does, are as hard as adding up many tiny pieces of information. Other things, like making explanations or checking if the model is safe, can be really difficult puzzles that need a lot of counting or searching. The paper tells us which tasks are easy (like just looking at the start and end) and which are hard (like solving very hard puzzles). This helps engineers know when they can trust a model quickly and when they need to be careful or use smarter methods.

Explained to a 5-year-old, longer

We study big computer models that learn from lots of data and want to know how hard it is to understand their true behavior. Some tasks, like measuring the model’s risk, are similar to adding up many small pieces of information, which can be a tricky calculation. Other tasks, such as creating explanations for the model’s decisions, can become very difficult puzzles that need a lot of counting or searching through many possibilities. The paper shows that in simple one-dimensional cases, some explanations are easy-just looking at the start and end points. But as soon as we move to two dimensions, even a single coordinate can hide a hard calculation. Making the model safe by certifying its calibration also needs both adding up pieces and finding the hardest parts. Interventional SHAP values are integration-hard even with just two features, while succinct coalitional SHAP values are #P-hard, meaning they are extremely hard counting problems. Finding the nearest counterfactual that changes a prediction is NP-hard, a classic very hard puzzle. By understanding these difficulties, researchers can decide which tasks are doable quickly and which require smarter, more careful approaches.

For a technical reader

The paper reduces population-level ML quantities to classic computational primitives like integration, maximization, and derivative evaluation. It shows that expected risk is integration-hard, integrated gradients are easy in one dimension but become integration-hard in two, interventional SHAP is integration-hard, 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 clear taxonomy of tractability for risk, explanation, and certification tasks.

Problem

Understanding the computational complexity of population-level quantities such as risk, attribution, counterfactual explanation, and calibration certification, and determining when they can be approximated efficiently.

Method

The approach reduces each population-level quantity to fundamental computational tasks such as integration, maximization, and derivative evaluation, then classifies their hardness using known complexity results.

Results

The approach shows that population risk is integration-hard, integrated gradients are easy in one dimension but integration-hard in two, interventional SHAP is integration-hard, succinct coalitional SHAP is #P-hard, nearest-threshold counterfactual search is NP-hard, and continuous calibration certificates require both integration and maximization.

Contributions

It provides a unified complexity taxonomy for population-level risk, attribution, counterfactual explanation, and calibration, identifying which tasks are tractable and which inherit hardness from integration, NP-hardness, or #P-hardness.

Limitations and assumptions

The analysis assumes compact domains and explicit continuity and range information for the underlying functions.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction