Thinking Aloud: Dynamic Context Generation Improves Zero-Shot Reasoning Performance of GPT-2
Gregor Betz, Kyle Richardson, Christian Voigt
TL;DR
This paper investigates whether dynamic problem elaboration—self-generated context expansions—can improve zero-shot reasoning in GPT-2 on a deductive, multi-hop task. It introduces ChainRuler, a synthetic dataset with facts, rule chains, and distractors, and compares multiple elaboration strategies (Free, Fewshot IC/PC/PCIC, Structured, Recursive, Piecemeal) generated by the same model. Findings show that dynamic elaborations can de-bias the model's simple heuristic and increase accuracy by up to 9 percentage points, with the largest gains (up to 24 percentage points) when elaborations are highly faithful to the problem; elaboration type and coherence strongly influence effectiveness. The results highlight that context generation is central to the model's reasoning performance, offering a path toward enabling meta-cognitive thinking in language models without fine-tuning.
Abstract
Thinking aloud is an effective meta-cognitive strategy human reasoners apply to solve difficult problems. We suggest to improve the reasoning ability of pre-trained neural language models in a similar way, namely by expanding a task's context with problem elaborations that are dynamically generated by the language model itself. Our main result is that dynamic problem elaboration significantly improves the zero-shot performance of GPT-2 in a deductive reasoning and natural language inference task: While the model uses a syntactic heuristic for predicting an answer, it is capable (to some degree) of generating reasoned additional context which facilitates the successful application of its heuristic. We explore different ways of generating elaborations, including fewshot learning, and find that their relative performance varies with the specific problem characteristics (such as problem difficulty). Moreover, the effectiveness of an elaboration can be explained in terms of the degree to which the elaboration semantically coheres with the corresponding problem. In particular, elaborations that are most faithful to the original problem description may boost accuracy by up to 24%.
