mlsanityData to 7 Oct 2026

To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DRO

arXiv 2404.04575 ↗First posted 6 Apr 2024cs.LG cs.AI math.OCcited by 11

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

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  7. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  8. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  9. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  10. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  11. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  12. 2017On Calibration of Modern Neural Networkscited by 4,860
32 more
  1. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  2. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  5. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  6. 2021Align before Fuse: Vision and Language Representation Learning with Momentum Distillationcited by 1,612
  7. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
  8. 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
  9. 2021Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Conceptscited by 1,209
  10. 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
  11. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
  12. 2020Understanding the Behaviour of Contrastive Losscited by 397
  13. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  14. 2017Toward Controlled Generation of Textcited by 271
  15. 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
  16. 2022Curriculum Temperature for Knowledge Distillationcited by 110
  17. 2022Coarse-to-Fine Vision-Language Pre-training with Fusion in the Backbonecited by 109
  18. 2022Sample-dependent Adaptive Temperature Scaling for Improved Calibrationcited by 48
  19. 2023Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Datacited by 44
  20. 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 40
  21. 2020Contextual Temperature for Language Modelingcited by 25
  22. 2021Temperature as Uncertainty in Contrastive Learningcited by 25
  23. 2023Not All Semantics are Created Equal: Contrastive Self-supervised Learning with Automatic Temperature Individualizationcited by 25
  24. 2020SubjQA: A Dataset for Subjectivity and Review Comprehensioncited by 24
  25. 2022Adaptive Temperature Scaling for Robust Calibration of Deep Neural Networkscited by 24
  26. 2023Understanding Contrastive Learning via Distributionally Robust Optimizationcited by 21
  27. 2022Meta Knowledge Distillationcited by 20
  28. 2022Stochastic Constrained DRO with a Complexity Independent of Sample Sizecited by 16
  29. 2018Heated-Up Softmax Embeddingcited by 15
  30. 2021Label Distributionally Robust Losses for Multi-class Classification: Consistency, Robustness and Adaptivitycited by 11
  31. 2017Softmax Q-Distribution Estimation for Structured Prediction: A Theoretical Interpretation for RAMLcited by 4
  32. 2023Dynamically Scaled Temperature in Self-Supervised Contrastive Learningcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 3.

11 papers.