Monotonic constraints and learned features: a primer for pricing actuaries

Aerial view of warehouse roofs in Luoyang, China, showing different roof materials and conditions side by side.

A monotonic constraint is a rule you put on a model term that says the relationship between that term and the outcome only moves in one direction. More building age means more loss cost, never less. More flood depth means more loss cost, never less. The GLM doesn't have to guess at the sign; you've told it up front, and it can't fit a wiggle that reverses direction somewhere in the middle of your distribution just because that's what forty years of sparse data happened to produce.

This matters more than it sounds like it should, because a GLM with an unconstrained spline or a badly binned factor can do something a filing reviewer, a reinsurer's own validation team, or a regulator will catch instantly: it can say that risk goes down as exposure goes up, somewhere in a thin tail of the data where the fit is noisy rather than real. Underwriters notice too. If your model says a property in a slightly worse flood zone gets a slightly better rate than one next door, you'll hear about it from the field before you hear about it from compliance.

Why a learned feature breaks the usual fix

For a hand-built rating factor, the standard fix is easy: you constrain the coefficient, or you force monotonic binning on the variable during preprocessing, and you're done. The factor has one dimension and a direction you understand.

A learned feature doesn't come with that structure built in. An embedding vector from imagery, a GBM leaf output, a PCA component off a wide set of correlated predictors, any of these can be a strong predictor of loss and still have no interpretable sign on its own. A single dimension of a 256-length vector might correlate with roof condition in one region of the input space and with vegetation density in another. There's no single "more of this is worse" story to constrain, because the vector wasn't built around one.

That's the real tension when a learned feature meets a GLM: the model family that your filing process trusts wants monotonic, explainable terms, and the feature that's actually adding predictive lift was built to maximize fit, not to respect a sign convention. You can't constrain what you can't attach a direction to.

What quants do about it

In practice, teams handle this a few ways, and none of them involve trusting the raw vector unconstrained in a filed model. One common path: use the learned feature in an unconstrained shadow model, usually a GBM, to see how much lift it's worth before spending time on anything else. If the lift isn't there, you've saved yourself a monotonicity problem you didn't need to solve.

If the lift holds up, the next step is usually collapsing the vector into a single score, something like a fitted propensity or a one-dimensional projection trained against your own loss experience, and testing that score for monotonicity the normal way: partial dependence plots, isotonic regression against observed loss ratio, binned relativities. Once you have a single score with a checked direction, it goes into the GLM like any other rating factor, constrained the same way you'd constrain building age or distance to coast. The embedding itself never goes into the filed model. The derived score does.

This is also why it's worth keeping the raw vector around separately from whatever score you derive from it. A vector tied to your site list, refreshed on a normal cadence, lets you re-derive the score each time you re-underwrite the book or re-run your validation, rather than treating the first derived score as permanent. The site list is yours; the vector should be too, and the landing page for Imagery Embeddings lays out how that gets delivered as a file keyed to your own sites rather than a model you have to query.

None of this is a reason to avoid learned imagery features in a scoring model. It's a reason to test the lift first, derive a single constrained score before it goes anywhere near a filed GLM, and treat the raw vector as an input to that process rather than a rating factor in its own right. If you're at the stage of testing whether a site-level imagery signal is worth that work, that's exactly what Imagery Embeddings is built to feed.