Abstract
Enforcing monotonicity in machine learning models—ensuring that an increase in a specific input leads to a non-decreasing output—is critical for applications ranging from automated bidding to risk assessment. Traditional approaches often sacrifice model expressivity for strict guarantees or fail to provide guarantees at all. This paper introduces the Generative Cost Model (GCM), a novel framework that treats monotonicity as a comparison between an observable revenue variable and a latent cost variable. By leveraging variational inference, GCM provides strict monotonicity without architectural constraints, resulting in superior accuracy and significantly faster inference speeds compared to existing state-of-the-art methods.
Introduction
In many real-world decision-making systems, certain relationships are expected to be monotonic. For instance, in an auction, a higher bid should never decrease the probability of winning. Similarly, in credit scoring, a higher income should generally correlate with a lower risk of default. Capturing these relationships accurately is essential for both model reliability and user trust.
However, standard deep learning models are not inherently monotonic. Researchers have historically addressed this using two primary strategies: "monotonic by construction" architectures and "monotonic by regularization." The former uses restricted weights and activations to force monotonicity, often at the cost of the model's ability to learn complex, non-linear patterns. The latter uses penalty terms during training, which offers more flexibility but cannot guarantee strict monotonicity in practice. This paper proposes a third path: modeling monotonicity through the lens of latent variable generation.
The Generative Cost Model (GCM) Framework
The core innovation of this work is the shift from building a monotonic function to modeling a latent Cost Variable ($c$). The authors posit that a binary outcome $y$ (such as winning an auction) is determined by whether an observable Revenue Variable ($r$) (the bid) exceeds this hidden cost $c$. Mathematically, this is expressed as $y = 1$ if $c \prec r$.
Strict and Implicit Monotonicity
To address different data scenarios, the researchers developed two distinct model variants:
- Generative Cost Model (GCM): This model is designed for scenarios requiring strict monotonicity. It utilizes Variational Inference (VI) to model the distribution of the latent cost $c$ based on non-monotonic features $x$. Because the cost $c$ is independent of the revenue $r$ given $x$, the probability $P(c \prec r)$ is mathematically guaranteed to be strictly monotonic with respect to $r$.
- Implicit Generative Cost Model (IGCM): This variant addresses "implicit" monotonicity, where variables are correlated through a hidden factor rather than a direct causal link. By introducing a latent kernel variable $k$ that influences both the revenue $r$ and the outcome $y$, IGCM can capture complex correlations (e.g., how age influences both height and weight) without imposing a rigid causal structure.
Experimental Evaluation
The researchers evaluated GCM and IGCM against a variety of benchmarks, including numerical simulations for quantile regression and several public datasets such as Adult (Census income), COMPAS, and Auto MPG.
Accuracy and Expressivity
In quantile regression tasks, GCM demonstrated superior expressive power. It achieved a Mean Absolute Error (MAE) of 0.0742, outperforming the best baseline, CMNN, which reached 0.0799. On the Adult dataset, IGCM achieved an AUC of 0.7891, a significant improvement over traditional monotonic methods like PosNN (0.7597). These results suggest that by shifting complexity into the distribution of the latent variable, the model can capture highly non-linear relationships that traditional monotonic networks often smooth over.
Inference Efficiency
One of the most practical advantages of GCM is its efficiency. In many applications, a model must evaluate multiple potential revenue values ($r$) for a single set of features ($x$). Because GCM decouples $x$ and $r$, the latent cost $c$ only needs to be sampled once. In tests involving 1,024 different values of $r$, GCM was 72% faster than the fastest baseline (PWL), as it avoids the need to pass every $(x, r)$ pair through the entire deep neural network.
Conclusion
The Generative Cost Model represents a significant advancement in monotonic machine learning. By reframing the problem as a latent variable comparison, the authors provide a solution that is simultaneously more flexible, more accurate, and faster than previous architectural or regularization-based approaches. While future work may look to scale these models to higher-dimensional partial orders, GCM currently offers a robust framework for high-stakes environments where monotonic guarantees are non-negotiable.
Summary updated