Skip to main content
QUICK REVIEW

[Paper Review] Contrastive estimation reveals topic posterior information to linear models

Christopher Tosh, Akshay Krishnamurthy|arXiv (Cornell University)|Mar 4, 2020
Topic ModelingComputer Science25 references19 citations
TL;DR

This paper demonstrates that contrastive learning under topic modeling assumptions can produce document representations that expose latent topic posterior information to linear classifiers. By training on positive pairs (real documents) and negative pairs (pasted document halves), the method enables linear models to accurately predict topic posteriors, significantly improving performance in low-shot semi-supervised document classification settings.

ABSTRACT

Contrastive learning is an approach to representation learning that utilizes naturally occurring similar and dissimilar pairs of data points to find useful embeddings of data. In the context of document classification under topic modeling assumptions, we prove that contrastive learning is capable of recovering a representation of documents that reveals their underlying topic posterior information to linear models. We apply this procedure in a semi-supervised setup and demonstrate empirically that linear classifiers with these representations perform well in document classification tasks with very few training examples.

Motivation & Objective

  • To investigate whether contrastive learning can recover latent topic posterior information in document representations.
  • To evaluate the effectiveness of linear classifiers applied to contrastive representations in low-resource semi-supervised learning settings.
  • To analyze how model capacity and training data size affect topic recovery performance.
  • To establish a theoretical and empirical link between contrastive learning and posterior inference under topic models.

Proposed method

  • Construct contrastive training pairs using real documents as positives and mixed document halves as negatives.
  • Train a contrastive model using a loss function that distinguishes between positive and negative pairs, encouraging separation in representation space.
  • Use a two-branch neural network architecture with shared weights to embed documents into a latent space.
  • Generate document embeddings via landmark-based approximation using 1,000 sampled documents from the topic model.
  • Reconstruct the model-based posterior using the likelihood matrix and the learned embedding to estimate topic distributions.
  • Train linear classifiers on the contrastive representations and evaluate performance on downstream topic prediction tasks.

Experimental results

Research questions

  • RQ1Can contrastive learning recover topic posterior information sufficient for linear models to perform accurate classification?
  • RQ2How does model capacity affect the quality of topic recovery in contrastive representations?
  • RQ3How does the size of the unlabeled training corpus impact topic prediction accuracy?
  • RQ4Does contrastive learning enable effective semi-supervised document classification with very few labeled examples?

Key findings

  • Contrastive representations enable linear classifiers to achieve high accuracy in topic prediction, especially when labeled data is scarce.
  • Performance degrades as the Dirichlet hyperparameter α increases (making topics more similar), but this can be mitigated by increasing model capacity or training data size.
  • Increasing the resampling rate of the contrastive training set from 600K to 6M documents improves topic recovery accuracy across all settings.
  • Larger models (512 nodes per layer) outperform smaller ones (256 nodes per layer), particularly at higher α values, indicating that model capacity enhances representation quality.
  • The method achieves strong performance even with minimal labeled data, confirming its utility in semi-supervised settings.
  • The average total variation distance between topics increases with α, confirming that topic separation becomes harder as topics grow more similar.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.