Calibrating Generative Models

📅 2025-10-11
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Generative models often suffer from poor calibration, where predicted class probabilities diverge from empirical sampling statistics. This paper proposes a general constraint-based calibration framework: it minimizes the KL divergence between the calibrated and original model distributions, subject to multiple category- or statistic-specific constraints. Two scalable optimization objectives are introduced: (i) relaxed loss—incorporating calibration error as a regularization term—and (ii) reward loss—transforming constraints into differentiable reward signals for fine-tuning. Both support joint optimization over hundreds of constraints. The method preserves generation quality while substantially reducing calibration error—even for billion-parameter models. Extensive experiments across protein design, image generation, and language modeling demonstrate strong generalization and computational efficiency.

Technology Category

Machine Learning: Calibration & Uncertainty QuantificationComputer Vision: Diffusion Models for VisionConstraint Satisfaction and Optimization: Constraint Optimization

Application Category

User Modeling, Personalization and Recommendation: Fairness-aware retrieval and rankingSearch and Retrieval-Augmented AI: Web learning to rank, online learning, and counterfactual learning for rankingGraph Algorithms and Modeling for the Web: Foundation models and LLMs for Web-related graphs
📝 Abstract
Generative models frequently suffer miscalibration, wherein class probabilities and other statistics of the sampling distribution deviate from desired values. We frame calibration as a constrained optimization problem and seek the closest model in Kullback-Leibler divergence satisfying calibration constraints. To address the intractability of imposing these constraints exactly, we introduce two surrogate objectives for fine-tuning: (1) the relax loss, which replaces the constraint with a miscalibration penalty, and (2) the reward loss, which converts calibration into a reward fine-tuning problem. We demonstrate that these approaches substantially reduce calibration error across hundreds of simultaneous constraints and models with up to one billion parameters, spanning applications in protein design, image generation, and language modeling.
Problem

Research questions and friction points this paper is trying to address.

Generative models often have miscalibrated class probabilities
Calibration is framed as constrained optimization with KL divergence
Methods reduce calibration errors across billion-parameter models
Innovation

Methods, ideas, or system contributions that make the work stand out.

Frames calibration as constrained optimization problem
Introduces relax loss with miscalibration penalty
Uses reward loss for reward fine-tuning approach
H
Henry D. Smith
Stanford University
N
Nathaniel L. Diamant
Stanford University
B
Brian L. Trippe
Stanford University