[Paper Review] Contrastive Entropy: A new evaluation metric for unnormalized language models
This paper introduces Contrastive Entropy (CE), a new discriminative evaluation metric for unnormalized language models that measures a model's ability to distinguish between correct sentences and their distorted versions. Unlike perplexity, CE does not require normalized probabilities, making it suitable for sentence-level models; experiments show that discriminatively trained sentence-level RNNs achieve superior CE scores, especially at low distortion levels, outperforming standard RNNs and n-gram models.
Perplexity (per word) is the most widely used metric for evaluating language models. Despite this, there has been no dearth of criticism for this metric. Most of these criticisms center around lack of correlation with extrinsic metrics like word error rate (WER), dependence upon shared vocabulary for model comparison and unsuitability for unnormalized language model evaluation. In this paper, we address the last problem and propose a new discriminative entropy based intrinsic metric that works for both traditional word level models and unnormalized language models like sentence level models. We also propose a discriminatively trained sentence level interpretation of recurrent neural network based language model (RNN) as an example of unnormalized sentence level model. We demonstrate that for word level models, contrastive entropy shows a strong correlation with perplexity. We also observe that when trained at lower distortion levels, sentence level RNN considerably outperforms traditional RNNs on this new metric.
Motivation & Objective
- To address the limitations of perplexity in evaluating unnormalized language models, particularly those with intractable partition functions.
- To propose a discriminative evaluation metric that works for both word-level and sentence-level language models.
- To demonstrate that contrastive training improves model performance on the new metric, especially for sentence-level models.
- To hypothesize that contrastive entropy correlates better with WER than perplexity due to their shared discriminative nature.
Proposed method
- Proposes Contrastive Entropy (CE) as a discriminative metric that evaluates a model's ability to distinguish between original and distorted sentences.
- Defines CE as the cross-entropy rate between the original sentence and its distorted version, computed as $ H_C = -\frac{1}{N} \sum_{W_n \in T} \log(m(W_n)) $, where $ m $ is the model's unnormalized probability.
- Uses contrastive estimation principles to train sentence-level RNNs (sRNN) to maximize discriminative ability between in-domain and out-of-domain sentences.
- Applies distortion levels (10%, 30%, 50%) to generate negative examples during training, improving generalization to natural variations.
- Employs gradient descent with $ \ell_2 $ regularization and evaluates using SRILM and RNNLM toolkits on Penn Treebank WSJ data.
- Introduces the contrastive entropy ratio $ H_{CR} = \frac{H_C(\text{test distortion})}{H_C(\text{baseline distortion})} $ to normalize performance across models.
Experimental results
Research questions
- RQ1Can a discriminative metric like Contrastive Entropy outperform perplexity in evaluating unnormalized language models?
- RQ2Does training sentence-level RNNs with contrastive estimation improve their discriminative capability on unseen sentence variations?
- RQ3Is there a strong correlation between Contrastive Entropy and WER, suggesting better real-world predictive power than perplexity?
- RQ4How does the choice of distortion level during training affect the performance of sentence-level language models on the new metric?
Key findings
- Contrastive Entropy shows strong correlation with perplexity for word-level models, validating its consistency with established metrics.
- sRNN models trained at 10% distortion (sRNN-75(10)) achieve the highest Contrastive Entropy scores (11.01 at 50% distortion), outperforming all word-level models.
- sRNN-75(10) achieves a contrastive entropy ratio of 5.257 at 50%/10% distortion, significantly higher than RNN (2.596) and n-grams, indicating superior discriminative ability.
- sRNN-75(50), trained at 50% distortion, performs poorly at low distortion levels (1.978 at 10%) but shows improved ratio at high distortion (3.275), confirming the impact of training distortion.
- The contrastive entropy ratio (H_CR) remains stable across word-level models (2.0–2.7), while sentence-level models show higher ratios, indicating better generalization.
- sRNN-150(10) achieves a contrastive entropy ratio of 5.074, slightly below sRNN-75(10)’s 5.257, suggesting that larger latent spaces do not always improve performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.