Watch Your Steps: Observable and Modular Chains of Thought

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cohen, Cassandra A., Cohen, William W.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913526443933696
author Cohen, Cassandra A.
Cohen, William W.
author_facet Cohen, Cassandra A.
Cohen, William W.
contents We propose a variant of chain of thought (CoT) prompting called Program Trace Prompting that makes explanations more observable while preserving the power, generality and flexibility of CoT. In our approach, few-shot CoT demonstrations are wrapped in a formal syntax based on Python, and each prompt: identifies and names steps; defines the input/output behavior of steps; and replaces CoT explanations of in-context examples with chains of these formalized steps on the same examples. Program Trace Prompting is applicable to many tasks, achieving strong results on the 23 diverse tasks in the BIG-Bench Hard benchmark. More importantly, by instrumenting explanations in this way, we enable new types of analysis. In particular, we identify "non-local errors" (which correspond to incorrectly learning the reasoning method illustrated in the demonstrations) as an unaddressed issue in CoT learning, and we present methods for verifying the modularity of steps in a CoT explanation.
format Preprint
id arxiv_https___arxiv_org_abs_2409_15359
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Watch Your Steps: Observable and Modular Chains of Thought
Cohen, Cassandra A.
Cohen, William W.
Computation and Language
Artificial Intelligence
Machine Learning
We propose a variant of chain of thought (CoT) prompting called Program Trace Prompting that makes explanations more observable while preserving the power, generality and flexibility of CoT. In our approach, few-shot CoT demonstrations are wrapped in a formal syntax based on Python, and each prompt: identifies and names steps; defines the input/output behavior of steps; and replaces CoT explanations of in-context examples with chains of these formalized steps on the same examples. Program Trace Prompting is applicable to many tasks, achieving strong results on the 23 diverse tasks in the BIG-Bench Hard benchmark. More importantly, by instrumenting explanations in this way, we enable new types of analysis. In particular, we identify "non-local errors" (which correspond to incorrectly learning the reasoning method illustrated in the demonstrations) as an unaddressed issue in CoT learning, and we present methods for verifying the modularity of steps in a CoT explanation.
title Watch Your Steps: Observable and Modular Chains of Thought
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2409.15359