paper-with-me

홈 › Papers

Contextual Temperature for Language Modeling

2020-12-25 · Pei-Hsin Wang, Sheng-Iou Hsieh, Shih-Chieh Chang, Yu-Ting Chen, Jia-Yu Pan, Wei Wei, Da-Chang Juan

Temperature scaling has been widely used as an effective approach to control the smoothness of a distribution, which helps the model performance in various tasks. Current practices to apply temperature scaling assume either a fixed, or a manually-crafted dynamically changing schedule. However, our studies indicate that the individual optimal trajectory for each class can change with the context. To this end, we propose contextual temperature, a generalized approach that learns an optimal temperature trajectory for each vocabulary over the context. Experimental results confirm that the proposed method significantly improves state-of-the-art language models, achieving a perplexity of 55.31 and 62.89 on the test set of Penn Treebank and WikiText-2, respectively. In-depth analyses show that the behaviour of the learned temperature schedules varies dramatically by vocabulary, and that the optimal schedules help in controlling the uncertainties. These evidences further justify the need for the proposed method and its advantages over fixed temperature schedules.

📄 PDF Abstract BibTeX arXiv:2012.13575

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Selective Attention: Enhancing Transformer through Principled Context Control

2024-11-19 · Xuechen Zhang, Xiangyu Chang, Mingchen Li, Amit Roy-Chowdhury 외

The attention mechanism within the transformer architecture enables the model to weigh and combine tokens based on their relevance to the query. While self-attention has enjoyed major success, it notably treats all queri…

Language ModelingLanguage Modelling

Guidance is All You Need: Temperature-Guided Reasoning in Large Language Models

2024-12-05 · Eyad Gomaa, Gomaa Salah

We present Quasar-1, a novel architecture that introduces temperature-guided reasoning to large language models through the Token Temperature Mechanism (TTM) and Guided Sequence of Thought (GSoT). Our approach leverages …

AllComputational EfficiencyLogical Reasoning

TemPL: A Novel Deep Learning Model for Zero-Shot Prediction of Protein Stability and Activity Based on Temperature-Guided Language Modeling

2023-04-07 · Pan Tan, Mingchen Li, Liang Zhang, Zhiqiang Hu 외

We introduce TemPL, a novel deep learning approach for zero-shot prediction of protein stability and activity, harnessing temperature-guided language modeling. By assembling an extensive dataset of 96 million sequence-ho…

Language ModelingLanguage Modelling

Context-Aware Temperature for Language Modeling

2021-01-01 · Pei-Hsin Wang, Sheng-Iou Hsieh, Shih-Chieh Chang, Yu-Ting Chen 외

Current practices to apply temperature scaling assume either a fixed, or a manually-crafted dynamically changing schedule. However, our studies indicate that the individual optimal trajectory for each class can change wi…

Language ModelingLanguage Modelling

Improving Diversity in Language Models: When Temperature Fails, Change the Loss

2025-08-13 · Alexandre Verine, Florian Le Bronnec, Kunhao Zheng, Alexandre Allauzen 외 arxiv

Increasing diversity in language models is a challenging yet essential objective. A common approach is to raise the decoding temperature. In this work, we investigate this approach through a simplistic yet common case to…