What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answering
Authors:
- Jim MaarJMJim Maar
- Denis PapernoDPDenis Paperno
- Callum Stuart McDougallCMCallum Stuart McDougall
- Neel NandaNNNeel Nanda
Preprint
Abstract
Prior work suggests that language models, while trained on next token prediction, show implicit planning behavior: they may select the next token in preparation to a predicted future token, such as a likely rhyming word, as supported by a prior qualitative study of Claude 3.5 Haiku using a cross-layer transcoder. We propose much simpler techniques for assessing implicit planning in language models. With case studies on rhyme poetry generation and question answering, we demonstrate that our methodology easily scales to many models. Across models, we find that the generated rhyme (e.g. "-ight") or answer to a question ("whale") can be manipulated by steering at the end of the preceding line with a vector, affecting the generation of intermediate tokens leading up to the rhyme or answer word. We show that implicit planning is a universal mechanism, present in smaller models than previously thought, starting from 1B parameters. Our methodology offers a widely applicable direct way to study implicit planning abilities of LLMs. More broadly, understanding planning abilities of language models can inform decisions in AI safety and control.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- CodePlan: Repository-Level Coding using LLMs and PlanningProceedings of the ACM on Software Engineering, 2024
- Refusal in Language Models Is Mediated by a Single Direction2024
- Leave It to Large Language Models! Correction and Planning with Memory IntegrationCyborg and Bionic Systems, 2024
- Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting2023
- Gradient-based Constrained Sampling from Language Models2022
- PoeLM: A Meter- and Rhyme-Controllable Language Model for Unsupervised Poetry Generation2022
- The Timing of Utterance Planning in Task-Oriented Dialogue: Evidence from a Novel List-Completion ParadigmFrontiers in Psychology, 2016
- Four central questions about prediction in language processingBrain Research, 2015
- Ways of looking ahead: Hierarchical planning in language productionCognition, 2013
- How Incremental Is Language Production? Evidence from the Production of Utterances Requiring the Computation of Arithmetic SumsJournal of Memory and Language, 2002