Skip to main content
QUICK REVIEW

[Paper Review] Language modeling via stochastic processes

Rose E Wang, Esin Durmus|arXiv (Cornell University)|Mar 21, 2022
Topic ModelingComputer Science9 citations
TL;DR

This paper proposes Time Control (TC), a novel contrastive learning framework that models text generation as a Brownian bridge process in latent space to improve long-form text coherence. By learning latent trajectories pinned between start and end points, TC enables GPT-2 to generate more structurally consistent and coherent long texts, outperforming baseline methods in discourse coherence and length consistency by up to +90% on long generation tasks.

ABSTRACT

Modern language models can generate high-quality short texts. However, they often meander or are incoherent when generating longer texts. These issues arise from the next-token-only language modeling objective. Recent work in self-supervised learning suggests that models can learn good latent representations via contrastive learning, which can be effective for discriminative tasks. Our work analyzes the application of contrastive representations for generative tasks, like long text generation. We propose one approach for leveraging constrastive representations, which we call Time Control (TC). TC first learns a contrastive representation of the target text domain, then generates text by decoding from these representations. Compared to domain-specific methods and fine-tuning GPT2 across a variety of text domains, TC performs competitively to methods specific for learning sentence representations on discourse coherence. On long text generation settings, TC preserves the text structure both in terms of ordering (up to $+15\%$ better) and text length consistency (up to $+90\%$ better).

Motivation & Objective

  • Address the challenge of incoherent long-form text generation in autoregressive language models due to lack of global planning and text structure modeling.
  • Explore whether contrastive representations learned via stochastic processes can improve generative text quality, especially in long-form generation.
  • Develop a method that explicitly models temporal dynamics in text through a learnable latent process, avoiding domain-specific heuristics.
  • Demonstrate that conditioning generation on learned latent trajectories improves discourse coherence and structural consistency compared to standard autoregressive decoding.
  • Validate the effectiveness of contrastive learning with Brownian bridge dynamics for generative modeling across diverse text domains.

Proposed method

  • Formulate a contrastive learning objective based on Brownian bridge stochastic processes to model latent trajectories that evolve from a start to an end point.
  • Learn a latent space where coherent documents follow smooth, time-correlated trajectories, while incoherent or scrambled documents yield noisy, non-structured paths.
  • Decompose text generation into two stages: first, sample a sequence of latent embeddings from the Brownian bridge process; second, condition GPT-2 to generate sentences based on these latent states.
  • Use a contrastive loss that encourages nearby sentence representations to be close and distant ones to be far apart, with dynamics constrained by fixed start and end embeddings.
  • Fine-tune GPT-2 to generate text conditioned on the latent sequence, enabling goal-directed, structurally coherent generation.
  • Ablate key components: the contrastive objective, Brownian bridge dynamics, explicit modeling of latent dynamics, and decoding from a latent plan.

Experimental results

Research questions

  • RQ1Can contrastive representations learned via stochastic processes improve long-form text generation coherence?
  • RQ2Does modeling text as a Brownian bridge in latent space lead to better structural and discourse coherence than standard autoregressive modeling?
  • RQ3How does the explicit modeling of latent dynamics (via Brownian bridge) compare to simpler processes like Brownian motion or VAEs in capturing text evolution?
  • RQ4To what extent does decoding from a learned latent plan improve text quality compared to direct autoregressive generation?
  • RQ5In which text domains does the method show particular advantage, and why might it underperform in others (e.g., Recipe domain)?

Key findings

  • Time Control improves text length consistency by up to 90% better than baselines in long text generation, indicating stronger control over output length.
  • Time Control enhances ordering consistency by up to 15% better than baselines, showing improved preservation of text structure and sequence integrity.
  • Latent trajectories learned by Time Control show clear, time-correlated structure on coherent documents, while scrambled documents produce noisy, non-evolving trajectories.
  • The VAE baseline performs better than Time Control on the Recipe domain, suggesting that temporal structure alone may not be sufficient for all domains, and other factors like section-level statistics matter.
  • Ablation studies confirm that the contrastive objective and explicit modeling of Brownian bridge dynamics are critical for performance, with non-goal-directed decoding underperforming.
  • The method achieves competitive discourse coherence across multiple domains, outperforming or matching task-specific methods without requiring domain-specific heuristics.

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.