atlas

Research map / Learning theory and algorithms / Kernels and regression theory

Thumb on the Scale: Optimal Loss Weighting in Last Layer Retraining

NeurIPS 2025 · Learning theory and algorithms › Kernels and regression theory · approach: Double descent and overfitting · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives asymptotic optimal class-loss weights for last-layer retraining in the underparameterized regime (d/n in (0,1)) on Gaussian data with square loss, and proposes a weight ratio using the effective latent dimension that beats the classical ratio of priors on CelebA and CIFAR10.

Problem

Choosing loss weights for minority classes in last layer retraining when the number of retraining samples and latent dimension are of comparable size (overparameterization ratio d/n in (0,1)), a regime between the population and separable overparameterized extremes where existing weighting theory is

Approach

Uses CGMT on a class-conditional Gaussian model to reduce weighted ERM to a scalar system of equations and derives a closed-form equal-error weight rho-tilde = pi_-/pi_+ + (pi_-/pi_+ - 1) delta/(2pi_+ - delta), which deviates from the ratio of priors by an offset depending on overparameterization; applies it with an effective (PCA-based) latent dimension to real images.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use overparameterization-adjusted weighting ρ̃ instead of the classical ratio of priorsLast-layer retraining on ResNet34 · CelebA Straight Hairworst-class errorHelped
Use overparameterization-adjusted weighting ρ̃ instead of the classical ratio of priorsLast-layer retraining on ResNet34 · CIFAR10 airplane vs truckworst-class errorHelped
Use optimal weighted ERM instead of downsamplingSquare-loss ERM · Class-conditional Gaussian dataworst-class errorHelped
Use optimal weighted ERM instead of downsamplingSquare-loss ERM · Class-conditional Gaussian data as δ approaches 0worst-class errorNo clear effect
Use ρ̃ computed from the effective latent dimension rather than the classical ratio of priorsLast-layer retraining on ResNet34 · CIFAR10 airplane vs truckworst-class errorHelped
Increase the minority-class weight to ρ̃ as the retraining sample size shrinksLast-layer retraining · CelebA Straight Hair and CIFAR10 airplane vs truckworst-class errorHelped
Use ρ̃ instead of unweighted ERMSquare-loss ERM · Class-conditional Gaussian data with mild class separationworst-class errorHelped
Use ρ̃ instead of unweighted ERMSquare-loss ERM · Class-conditional Gaussian data with large class separationworst-class errorHurt
Use ρ̃ for weighting when δ < 2π₊; when δ > 2π₊, increase ρ toward infinitySquare-loss weighted ERM · Class-conditional Gaussian dataworst-class errorHelped
Use a 128-dimensional latent space while retaining ρ̃ calculated from effective dimension 3 (ablation)Last-layer retraining on ResNet34 · CelebA Straight Hairper-class errorNo clear effect
Calculate ρ̃ from effective latent dimension rather than nominal latent dimensionLast-layer retraining on ResNet34 · CIFAR10 airplane vs truckworst-class errorHelped

Surprising findings

Limitations

Experimental setup

Datasets: CelebA CIFAR10

Benchmarks: CelebA CIFAR10

Metrics: worst-class error per-class accuracy per-class test error

Baselines: ratio of priors weighting downsampling unweighted ERM

Builds on: Convex Gaussian minimax theorem Moreau envelope Last layer retraining (DFR)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy