Tailoring Strictly Proper Scoring Rules for Downstream Tasks: An Application to Causal Inference

Roman Plaud, Alexandre Perez-Lebel, Antoine Saillenfest, Thomas Bonald, Marine Le Morvan, Gaël Varoquaux, Matthieu Labeau

Machine learning models are predominantly trained using task-agnostic loss functions, such as log-loss (cross-entropy). While statistically sound for general prediction, these "one-size-fits-all" objectives ignore how the model's predictions will ultimately be used. This disconnect becomes a critical point of failure in two-step processes where predicted probabilities are plugged into downstream estimators. A recent paper, Tailoring Strictly Proper Scoring Rules for Downstream Tasks: An Application to Causal Inference, introduces a principled framework to derive custom, "task-aware" loss functions that match the mathematical sensitivity of downstream estimators, stabilizing and improving causal inference in high-stakes scenarios.

The Vulnerability of Causal Inference

In causal inference, Inverse Probability Weighting (IPW) is a standard technique for estimating the Average Treatment Effect (ATE). IPW relies on dividing outcomes by the predicted probability of receiving a treatment (the propensity score).

Because the estimator divides by these probabilities, it is highly sensitive to boundary values. If a predicted probability is close to $0$ or $1$, even a microscopic estimation error in the first step can cause the final causal estimate to explode in bias and variance. Traditionally, practitioners rely on heuristic "band-aids" like weight clipping or trimming to mitigate this, but these post-hoc fixes fail to address the root cause of the estimation error.

Methodology: Tailored Proper Scoring Rules

To address this vulnerability, the authors introduce a framework to derive custom loss functions that internalize the geometry of the downstream task.

  1. Curvature Matching: By analyzing the Mean Squared Error (MSE) of the downstream estimator via a Taylor expansion, the authors identify a "weight function" that maps exactly where the estimator is most sensitive to errors.
  2. Tailored Loss Derivation: They analytically construct a unique, strictly proper scoring rule (a loss function) whose local curvature matches this sensitivity. For IPW, the resulting loss aggressively penalizes errors near the $0$ and $1$ boundaries, far more than standard log-loss.
  3. The Canonical Link: Custom losses often induce "exploding gradients" during training. To stabilize optimization, the authors derive a Canonical Probability Mapping—a custom activation function that replaces the standard Sigmoid. This ensures gradients remain stable and linear ($p - y$). For the IPW-tailored loss, this requires solving a quartic (fourth-degree) equation during the model's forward pass.

Experimental Validation

The framework was rigorously evaluated across standard causal inference benchmarks, including low-dimensional datasets (IHDP, Jobs, Kang-Schafer) and the high-dimensional ACIC 2017 Data Challenge (featuring 4,802 observations and 58 dimensions across 32 data-generating processes).

  • Superior Stability: On the notoriously difficult Kang-Schafer benchmark—a stress test for overlap violations—standard log-loss often leads to catastrophic divergence (RMSE $\approx$ 66.9). The tailored loss maintains stability and accuracy (RMSE $\approx$ 2.68).
  • Consistent Wins: In the ACIC 2017 challenge, the tailored loss improved performance in 95 out of 96 configurations for Multi-Layer Perceptrons (MLPs) compared to the log-loss baseline.
  • High-Selection Strength: Gains were most pronounced in "high-strength" regimes—scenarios where treatment assignments are highly predictable, forcing probabilities to hug the $0$ and $1$ boundaries.
  • Architecture Agnostic: The tailored objective serves as a drop-in replacement for both neural networks and gradient boosting algorithms like XGBoost.

Key Insights

The success of this approach highlights several critical insights for model training:

  • Loss-Mapping Duality: Changing a deep learning model's loss function necessitates changing its activation function. Pairing the tailored loss with its canonical link is essential for modern gradient-based learners.
  • Ante-hoc Regularization: Rather than applying post-hoc fixes like weight clipping, this method acts as an "ante-hoc" regularizer, guiding the model to prioritize accuracy in the most critical regions during training.
  • Geometric Awareness: The Kullback-Leibler divergence induced by log-loss significantly underestimates error magnitudes near the boundaries of the probability simplex, precisely where causal estimators are most vulnerable.

Limitations and Future Directions

While highly effective, the derivation relies on a local Taylor expansion; it lacks formal global guarantees that the loss is the tightest possible bound in regions far from the true probability. Additionally, solving a quartic equation in the forward pass introduces slight computational overhead, though the backward pass is optimized to match standard methods.

Future research could extend this framework beyond ATE via IPW to other causal estimands, such as the Conditional Average Treatment Effect (CATE), or to robust estimators like Targeted Maximum Likelihood Estimation (TMLE). By bridging the gap between predictive training and downstream utility, tailored scoring rules offer a powerful new paradigm for applied machine learning.

Summary updated

BibTeX
@inproceedings{plaud2026tailoring,
  author = {Roman Plaud and Alexandre Perez-Lebel and Antoine Saillenfest and Thomas Bonald and Marine Le Morvan and Gaël Varoquaux and Matthieu Labeau},
  title = {{Tailoring Strictly Proper Scoring Rules for Downstream Tasks: An Application to Causal Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=JTwryHNicJ},
}
Figure