Aligning Model Properties via Conformal Risk Control

William Overman, Jacqueline Jil Vallon, Mohsen Bayati · DOI

Introduction

In the current machine learning landscape, "alignment" is frequently discussed in the context of Large Language Models (LLMs) and human feedback. However, alignment is equally critical for traditional, non-generative models used in high-stakes domains such as medical triage, criminal sentencing, and economic forecasting. In these fields, models must adhere to specific behavioral properties—such as monotonicity or concavity—to ensure safety, fairness, and physical plausibility. For instance, a model predicting patient mortality should logically show a monotonically increasing risk as a disease stage progresses.

This paper introduces a novel framework to align pre-trained models with these properties using Conformal Risk Control (CRC). By treating alignment as a post-processing step rather than a training constraint, the authors provide a method to guarantee that a model's predictions remain within a "safe" band that satisfies desired properties, all without the need for computationally expensive retraining.

The Challenges of Traditional Alignment

Existing approaches to model alignment face three primary hurdles:

  1. Computational Cost: Incorporating constraints directly into the training objective often requires retraining models from scratch, which is infeasible for large-scale architectures.
  2. The Persistence of Bias: A significant theoretical contribution of this work is the proof that scaling laws do not solve alignment. In "underspecified" settings—where a model has more parameters than data points—the model tends to learn biased noise perfectly. The authors demonstrate that simply increasing model size or data volume will not eliminate these systematic biases.
  3. Detection Difficulty: Determining whether a complex black-box model satisfies a global property across its entire domain is non-trivial when only individual outputs are observable.

Methodology: Alignment as a Wrapper

The authors propose a general procedure to wrap any pre-trained model $f$ to align it with a property $\mathcal{P}$. The framework consists of several key components:

Property Testing and POTs

The method leverages Proximity-Oblivious Testers (POTs). These algorithms use local queries to determine if a function globally satisfies a property or is significantly "far" from it. This allows the framework to quantify alignment violations mathematically.

Conformal Risk Control (CRC)

Instead of a single point prediction, the pre-trained model is wrapped in a set-valued function $F_\lambda(X)$, creating a prediction interval. Using a small, held-out calibration dataset, CRC is used to calibrate the interval size ($\lambda$). This ensures that the resulting prediction band contains at least one function satisfying the desired property with high probability.

Loss Function Mapping

The output of the property tester is converted into a loss function (assigning 0 if the property is satisfied and 1 if rejected). By minimizing this risk via CRC, the framework provides distribution-free guarantees, meaning the safety bounds hold regardless of the underlying data distribution or model architecture.

Multi-lambda Extension

To increase flexibility, the paper extends standard CRC to handle multi-dimensional parameters. This allows for asymmetric intervals, enabling the model to adjust more significantly in one direction than another to satisfy a specific constraint without unnecessarily inflating the interval size.

Empirical Evaluation

The framework was evaluated using several regression datasets from the UCI Machine Learning Repository, focusing on monotonicity and concavity constraints:

  • Combined Cycle Power Plant: Testing monotonicity between efficiency and exhaust vacuum.
  • Abalone: Testing monotonicity between age and shell weight.
  • Concrete Compressive Strength: Testing monotonicity between strength and cement content.
  • Seoul Bike Sharing: Testing concavity of bike demand relative to temperature.

Key Results

The conformal approach demonstrated superior performance compared to models explicitly trained with constraints. On the Power Plant dataset, an unconstrained XGBoost model exhibited a violation rate (Risk) of 0.75. By applying the CRC procedure with a target error rate ($\alpha$) of 0.1, the risk was successfully reduced to 0.10.

Crucially, this alignment did not come at the cost of accuracy. On the same dataset, a model using "Constrained" training achieved a Mean Squared Error (MSE) of 16.21, while the CRC-adjusted model achieved a significantly better MSE of 10.47 for the same level of alignment.

Conclusion and Future Work

This research demonstrates that alignment can be effectively managed as a statistically calibrated post-processing step. By providing distribution-free guarantees, the CRC framework offers a robust path forward for ensuring safety in black-box models.

While the current work focuses on shape constraints like monotonicity, future research may extend this to more complex logical properties in Reinforcement Learning (RL). Additionally, while the method currently produces prediction intervals, refining heuristics to extract precise point predictions remains an active area for development. Ultimately, this framework proves that we do not need to "fix" a model's internal weights to ensure its behavior remains within safe, aligned boundaries.

Summary updated

BibTeX
@inproceedings{overman2024aligning,
  author = {William Overman and Jacqueline Jil Vallon and Mohsen Bayati},
  title = {{Aligning Model Properties via Conformal Risk Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=9OHXQybMZB},
}
Figure