SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.04575 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.04575.json · badge: /api/ran/2404.04575.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhqiu/tempnet canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_acc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhqiu/tempnet/Bimodal_CL/utils.py
pointer only (licence: NONE) · get_code("aa81d03f07735ab8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_n_params Ran
ran; our contract draft was wrong, not the code
zhqiu/tempnet/Bimodal_CL/utils.py
pointer only (licence: NONE) · get_code("ad12a494674d23fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

off_diagonal Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhqiu/tempnet/Bimodal_CL/models/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from neurai-lab/tamil, is pointer only (licence: NONE) · get_code("3e30d88eaef01190")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tau_cross_entropy Ran
ran; our contract draft was wrong, not the code
zhqiu/tempnet/tempnet.py
pointer only (licence: NONE) · get_code("4f4e825f223163d5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tau_cross_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhqiu/tempnet/GPT-2/megatron/model/tempnet.py
pointer only (licence: NONE) · get_code("653d3c854b95104d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

concat_all_gather Not yet run
unverified (harvested, no recorded run)
zhqiu/tempnet/Bimodal_CL/models/model_clip.py
pointer only (licence: NONE) · get_code("73cecca9f3575f09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_zeroshot_dataloader Not yet run
unverified (harvested, no recorded run)
zhqiu/tempnet/Bimodal_CL/clip.py
pointer only (licence: NONE) · get_code("7b8bc0f7be6de7b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

zeroshot_transfer Not yet run
unverified (harvested, no recorded run)
zhqiu/tempnet/Bimodal_CL/clip.py
pointer only (licence: NONE) · get_code("b84ffd2694717bc7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhqiu/tempnet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 4 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
concat_all_gather 138 other papers
107 dated earlier, 3 the same month, 25 later, 3 same year, order not determinable · 33 only as an assembly brick
1710.09412 (2017-10)
mixup: BEYOND EMPIRICAL RISK MINIMIZATION
1905.04899 (2019-05)
CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 135 more not named here
compute_n_params 29 other papers
21 dated earlier, 1 the same month, 6 later, 1 same year, order not determinable
2111.09452 (2021-11)
Open Vocabulary Object Detection with Pseudo Bounding-Box Labels
2211.09790 (2022-11)
ConStruct-VL: Data-Free Continual Structured VL Concepts Learning
2211.13594 (2022-11)
Self-supervised vision-language pretraining for Medical visual question answering
and 26 more not named here
compute_acc 28 other papers
21 dated earlier, 1 the same month, 5 later, 1 same year, order not determinable
2111.09452 (2021-11)
Open Vocabulary Object Detection with Pseudo Bounding-Box Labels
2211.09790 (2022-11)
ConStruct-VL: Data-Free Continual Structured VL Concepts Learning
2211.13594 (2022-11)
Self-supervised vision-language pretraining for Medical visual question answering
and 25 more not named here
off_diagonal 23 other papers
18 dated earlier, 5 later · 5 only as an assembly brick
1908.10084 (2019-08)
Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
2004.04136 (2020-04)
CURL: Contrastive Unsupervised Representations for Reinforcement Learning
2007.16189 (2020-07)
Self-supervised learning through the eyes of a child
and 20 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.04575")
get_code_for_paper("2404.04575")
have("2404.04575")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.04575.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.04575.svg)](https://syntology.ai/paper/2404.04575)

Connect an agent — have() is free.