Diminishing Returns Shape Constraints for Interpretability and Regularization

Maya R. Gupta, Dara Bahri, Andrew Cotter, Kevin Robert CaniniNeurIPS 2018

In many real-world systems, we have a strong intuition about how an output should respond to an input. For example, if you are predicting how much someone likes an apartment based on square footage, you expect a "diminishing returns" relationship: going from 50 to 60 square meters is a huge win, but going from 100 to 110 is less impactful.

Standard machine learning models, like Deep Neural Networks (DNNs), lack this inherent common sense. Given noisy data, a DNN might learn a "wiggly" function that suggests a renter likes 90 square meters less than 80, which is nonsensical. While we usually fix this with regularization techniques like dropout or weight decay, those methods require tedious hyperparameter tuning and don't guarantee logical outputs.

This paper introduces methods to enforce "shape constraints"—like diminishing or accelerating returns—directly into the architecture of neural networks and lattice models. By mathematically guaranteeing that a model behaves according to prior knowledge, the authors achieve "tuning-free" regularization and create models that are significantly more interpretable and stable.

The Methods: Enforcing Shape Constraints

The paper defines diminishing returns mathematically as a function that is either monotonically increasing and concave, or monotonically decreasing and convex. To enforce these rules, the authors explore two primary architectures:

1. Shape-Constrained Neural Networks (SCNNs)

The authors extend previous work on "Input Convex Neural Networks." By restricting weights to be non-negative and choosing specific activation functions (like ReLU for convexity or $-ReLU(-x)$ for concavity), they can force the network to be monotonic and concave/convex.

Architecture of a Shape-Constrained Neural Network (SCNN).

However, SCNNs impose joint constraints. This means the constraint applies to the entire feature space at once, which can sometimes be overly restrictive for complex, multi-dimensional problems.

2. Lattice Models

Lattice models act as multi-dimensional interpolated look-up tables. The authors demonstrate that by adding simple linear inequality constraints to the parameters of these tables, they can enforce ceteris paribus (all else being equal) shape constraints. This allows a model to exhibit diminishing returns for one specific feature (like "number of reviews") while remaining unconstrained or having entirely different shapes for other features. The authors argue that these "all else being equal" constraints are often more useful for real-world reasoning than the joint constraints of SCNNs.

Key Insights and Results

The authors evaluated their approach on five real-world regression problems, including predicting car sales based on price, puzzle sales based on ratings, and query-result matching quality.

Performance table and prediction curves comparing unconstrained DNNs to shape-constrained models.

The experiments revealed several major advantages to this approach:

  • Semantic Regularization: Unlike $L_2$ regularization, which merely shrinks weights to smooth a model, shape constraints have clear human meaning. You are explicitly telling the model how the world works, acting as a powerful substitute for massive datasets.
  • Superior Stability: Shape-constrained models proved to be much more stable than standard DNNs. Unconstrained DNNs showed high variance in performance across different random seeds, whereas the constrained models produced consistent, reliable results.
  • Better Generalization: On datasets with domain shift—such as the "Puzzle Sales" dataset where test data came from a different time period than the training data—shape-constrained models significantly outperformed unconstrained DNNs. The constraints successfully prevented the model from overfitting to temporary noise.
  • Interpretability: The resulting "calibrator curves" for diminishing returns models are much smoother and easier to explain to stakeholders than purely unconstrained or strictly monotonic models.

Limitations and Future Work

While powerful, baking common sense into models is not without its challenges. The authors noted that SCNNs are harder to "steer" than lattice models; for instance, it is difficult to produce a monotonic response without also forcing it to be convex or concave.

Furthermore, while the constraints are "tuning-free," they require solving constrained optimization problems (like Projected Stochastic Gradient Descent) during training, which adds computational complexity compared to standard backpropagation. Finally, these models rely heavily on a human expert to correctly identify which features should have diminishing returns. If the expert's prior knowledge is flawed, the model will be forced into an incorrect shape.

Summary updated

BibTeX
@inproceedings{gupta2018diminishing,
  author = {Maya R. Gupta and Dara Bahri and Andrew Cotter and Kevin Robert Canini},
  title = {{Diminishing Returns Shape Constraints for Interpretability and Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=SkNUyD-uZr},
}
Figure