To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DRO
Not on the map. Why?
Abstract (arXiv)
The temperature parameter plays a profound role during training and/or inference with large foundation models (LFMs) such as large language models (LLMs) and CLIP models. Particularly, it adjusts the logits in the softmax function in LLMs, which is crucial for next token generation, and it scales the similarities in the contrastive loss for training CLIP models. A significant question remains: Is it viable to learn a neural network to predict a personalized temperature of any input data for enhancing LFMs"? In this paper, we present a principled framework for learning a small yet generalizable temperature prediction network (TempNet) to improve LFMs. Our solution is composed of a novel learning framework with a robust loss underpinned by constrained distributionally robust optimization (DRO), and a properly designed TempNet with theoretical inspiration. TempNet can be trained together with a large foundation model from scratch or learned separately given a pretrained foundation model. It is not only useful for predicting personalized temperature to promote the training of LFMs but also generalizable and transferable to new tasks. Our experiments on LLMs and CLIP models demonstrate that TempNet greatly improves the performance of existing solutions or models, e.g. Table 1. The code to reproduce the experimental results in this paper can be found at https://github.com/zhqiu/TempNet.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 44 of its 63 references that are in the map. First posted on arXiv 6 Apr 2024.
Builds on
44 of 63 references.
References · 44
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2017On Calibration of Modern Neural Networkscited by 4,860
32 more
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2021Align before Fuse: Vision and Language Representation Learning with Momentum Distillationcited by 1,612
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
- 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
- 2021Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Conceptscited by 1,209
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
- 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
- 2020Understanding the Behaviour of Contrastive Losscited by 397
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2017Toward Controlled Generation of Textcited by 271
- 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
- 2022Curriculum Temperature for Knowledge Distillationcited by 110
- 2022Coarse-to-Fine Vision-Language Pre-training with Fusion in the Backbonecited by 109
- 2022Sample-dependent Adaptive Temperature Scaling for Improved Calibrationcited by 48
- 2023Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Datacited by 44
- 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 40
- 2020Contextual Temperature for Language Modelingcited by 25
- 2021Temperature as Uncertainty in Contrastive Learningcited by 25
- 2023Not All Semantics are Created Equal: Contrastive Self-supervised Learning with Automatic Temperature Individualizationcited by 25
- 2020SubjQA: A Dataset for Subjectivity and Review Comprehensioncited by 24
- 2022Adaptive Temperature Scaling for Robust Calibration of Deep Neural Networkscited by 24
- 2023Understanding Contrastive Learning via Distributionally Robust Optimizationcited by 21
- 2022Meta Knowledge Distillationcited by 20
- 2022Stochastic Constrained DRO with a Complexity Independent of Sample Sizecited by 16
- 2018Heated-Up Softmax Embeddingcited by 15
- 2021Label Distributionally Robust Losses for Multi-class Classification: Consistency, Robustness and Adaptivitycited by 11
- 2017Softmax Q-Distribution Estimation for Structured Prediction: A Theoretical Interpretation for RAMLcited by 4
- 2023Dynamically Scaled Temperature in Self-Supervised Contrastive Learningcited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 7; 2026: 3.
11 papers.
- 2024ClinicalBench: Can LLMs Beat Traditional ML Models in Clinical Prediction?cited by 31
- 2025Generative AI for Autonomous Driving: Frontiers and Opportunitiescited by 7
- 2025Logits are All We Need to Adapt Closed Modelscited by 4
- 2025Nested Stochastic Algorithm for Generalized Sinkhorn distance-Regularized Distributionally Robust Optimizationcited by 3
- 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimizationcited by 3
- 2025Group Distributionally Robust Optimization with Flexible Sample Queriescited by 2
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIPcited by 1
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Datacited by 1
- 2025Boosting Open Set Recognition Performance through Modulated Representation Learningcited by 0
- 2025Artificial Finance: How AI Thinks About Moneycited by 0
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learningcited by 0
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learning7 Sep 2026
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Data9 Mar 2026
- 2026Breaking the Limits of Open-Weight CLIP: An Optimization Framework for Self-supervised Fine-tuning of CLIP14 Jan 2026
- 2025NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimization11 Nov 2025
- 2025Artificial Finance: How AI Thinks About Money15 Jul 2025
- 2025Boosting Open Set Recognition Performance through Modulated Representation Learning23 May 2025
- 2025Group Distributionally Robust Optimization with Flexible Sample Queries21 May 2025
- 2025Generative AI for Autonomous Driving: Frontiers and Opportunities13 May 2025
- 2025Nested Stochastic Algorithm for Generalized Sinkhorn distance-Regularized Distributionally Robust Optimization29 Mar 2025
- 2025Logits are All We Need to Adapt Closed Models3 Feb 2025
- 2024ClinicalBench: Can LLMs Beat Traditional ML Models in Clinical Prediction?10 Nov 2024