Generalized Logit Adjustment: Calibrating Fine-tuned Models by Removing Label Bias in Foundation Models

Beier Zhu, Kaihua Tang, Qianru Sun, Hanwang Zhang
2/12/2026

No official code found. Best implementation: cooper-org/cooper (166 stars, MIT, PyTorch, last commit 2025-11-15). 1 more below.

Abstract

Foundation models like CLIP allow zero-shot transfer on various tasks without additional training data. Yet, the zero-shot performance is less competitive than a fully supervised one. Thus, to enhance the performance, fine-tuning and ensembling are also commonly adopted to better fit the downstream tasks. However, we argue that such prior work has overlooked the inherent biases in foundation models. Due to the highly imbalanced Web-scale training set, these foundation models are inevitably skewed toward frequent semantics, and thus the subsequent fine-tuning or ensembling is still biased. In this study, we systematically examine the biases in foundation models and demonstrate the efficacy of our proposed Generalized Logit Adjustment (GLA) method. Note that bias estimation in foundation models is challenging, as most pre-train data cannot be explicitly accessed like in traditional long-tailed classification tasks. To this end, GLA has an optimization-based bias estimation approach for debiasing foundation models. As our work resolves a fundamental flaw in the pre-training, the proposed GLA demonstrates significant improvements across a diverse range of tasks: it achieves 1.5 pp accuracy gains on ImageNet, an large average improvement (1.4-4.6 pp) on 11 few-shot datasets, 2.4 pp gains on long-tailed classification. Codes are in https://github.com/BeierZhu/GLA.

View on arXivView PDF

Code Implementations(2)

cooper-org/cooperCommunity100%
PyTorchMIT

A general-purpose, deep learning-first library for constrained optimization in PyTorch

16617PythonFeb 4, 202211 months agoMIT
constrained-optimizationdeep-learningmachine-learningoptimizationpython+1 more
BeierZhu/GLACommunity100%

[NeurIPS 2023] Generalized Logit Adjustment

400Sep 22, 20232 years ago

Similar Papers

Cite this paper

@article{zhu2026generalized,
  title  = {Generalized Logit Adjustment: Calibrating Fine-tuned Models by Removing Label Bias in Foundation Models},
  author = {Beier Zhu and Kaihua Tang and Qianru Sun and Hanwang Zhang},
  year   = {2026},
  eprint = {2310.08106},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.08106},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.08106.svg)](https://codeofpaper.com/paper/2310.08106)

Discussion