paper-with-me

Papers

Towards noise contrastive estimation with soft targets for conditional models

2024-04-22 · Johannes Hugger, Virginie Uhlmann

Soft targets combined with the cross-entropy loss have shown to improve generalization performance of deep neural networks on supervised classification tasks. The standard cross-entropy loss however assumes data to be categorically distributed, which may often not be the case in practice. In contrast, InfoNCE does not rely on such an explicit assumption but instead implicitly estimates the true conditional through negative sampling. Unfortunately, it cannot be combined with soft targets in its standard formulation, hindering its use in combination with sophisticated training strategies. In this paper, we address this limitation by proposing a loss function that is compatible with probabilistic targets. Our new soft target InfoNCE loss is conceptually simple, efficient to compute, and can be motivated through the framework of noise contrastive estimation. Using a toy example, we demonstrate shortcomings of the categorical distribution assumption of cross-entropy, and discuss implications of sampling from soft distributions. We observe that soft target InfoNCE performs on par with strong soft target cross-entropy baselines and outperforms hard target NLL and InfoNCE losses on popular benchmarks, including ImageNet. Finally, we provide a simple implementation of our loss, geared towards supervised classification and fully compatible with deep classification models trained with cross-entropy.

📄 PDF Abstract BibTeX arXiv:2404.14076

Code (1)

uhlmanngroup/soft-target-infonce 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

InfoNCE 설명 없음

Similar Papers 제목 키워드 기반

A Batch Noise Contrastive Estimation Approach for Training Large Vocabulary Language Models

2017-08-20 · Youssef Oualil, Dietrich Klakow

Training large vocabulary Neural Network Language Models (NNLMs) is a difficult task due to the explicit requirement of the output layer normalization, which typically involves the evaluation of the full softmax function…

GPUText Compression

Noise Contrastive Meta-Learning for Conditional Density Estimation using Kernel Mean Embeddings

2019-06-05 · Jean-Francois Ton, Lucian Chan, Yee Whye Teh, Dino Sejdinovic

Current meta-learning approaches focus on learning functional representations of relationships between variables, i.e. on estimating conditional expectations in regression. In many applications, however, we are faced wit…

Density EstimationMeta-Learningregression

MCD: Marginal Contrastive Discrimination for conditional density estimation

2022-06-03 · Benjamin Riu

We consider the problem of conditional density estimation, which is a major topic of interest in the fields of statistical and machine learning. Our method, called Marginal Contrastive Discrimination, MCD, reformulates t…

Binary ClassificationDensity Estimationregression

On the connection between Noise-Contrastive Estimation and Contrastive Divergence

2024-02-26 · Amanda Olmin, Jakob Lindqvist, Lennart Svensson, Fredrik Lindsten

Noise-contrastive estimation (NCE) is a popular method for estimating unnormalised probabilistic models, such as energy-based models, which are effective for modelling complex data distributions. Unlike classical maximum…

Noise Contrastive Estimation and Negative Sampling for Conditional Models: Consistency and Statistical Efficiency

2018-09-06 · EMNLP 2018 10 · Zhuang Ma, Michael Collins

Noise Contrastive Estimation (NCE) is a powerful parameter estimation method for log-linear models, which avoids calculation of the partition function or its derivatives at each training step, a computationally demanding…

ClassificationGeneral ClassificationLanguage ModelingLanguage Modelling+2