Learning to Plan Long-Term for Language Modeling

Florian Mai, Nathan Cornille, Marie-Francine Moens
8/23/2024
cs.CLcs.AI

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Modern language models predict the next token in the sequence by considering the past text through a powerful function such as attention. However, language models have no explicit mechanism that allows them to spend computation time for planning long-distance future text, leading to a suboptimal token prediction. In this paper, we propose a planner that predicts a latent plan for many sentences into the future. By sampling multiple plans at once, we condition the language model on an accurate approximation of the distribution of text continuations, which leads to better next token prediction accuracy. In effect, this allows trading computation time for prediction accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mai2024learning,
  title  = {Learning to Plan Long-Term for Language Modeling},
  author = {Florian Mai and Nathan Cornille and Marie-Francine Moens},
  year   = {2024},
  eprint = {2409.00070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.00070v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.00070.svg)](https://codeofpaper.com/paper/2409.00070)

Discussion