Abstract
Large language models (LLMs) perform well at a myriad of tasks, but explaining the processes behind this performance is a challenge. This paper investigates whether LLMs can give faithful high-level explanations of their own internal processes. To explore this, we introduce a dataset, ArticulateRules, of few-shot text-based classification tasks generated by simple rules. Each rule is associated with a simple natural-language explanation. We test whether models that have learned to classify inputs competently (both in- and out-of-distribution) are able to articulate freeform natural language explanations that match their classification behavior. Our dataset can be used for both in-context and finetuning evaluations. We evaluate a range of LLMs, demonstrating that articulation accuracy varies considerably between models, with a particularly sharp increase from GPT-3 to GPT-4. We then investigate whether we can improve GPT-3's articulation accuracy through a range of methods. GPT-3 completely fails to articulate 7/10 rules in our test, even after additional finetuning on correct explanations. We release our dataset, ArticulateRules, which can be used to test self-explanation for LLMs trained either in-context or by finetuning.
Introduction
As Large Language Models (LLMs) are increasingly deployed in critical domains, understanding the logic behind their decisions becomes a fundamental requirement for AI safety and alignment. Ideally, models should be "faithful"—their self-generated explanations should accurately reflect the internal processes driving their behavior rather than merely providing post-hoc justifications. This research investigates the extent to which current LLMs can introspect and articulate the rules they follow during classification tasks.
The ArticulateRules Benchmark
To systematically evaluate self-explanation, we developed ArticulateRules, a benchmark consisting of 29 distinct rule functions (e.g., "Contains a French word" or "Words are in reverse alphabetical order"). The evaluation follows a three-step task structure designed to probe different levels of understanding:
- Binary Classification: The model is given few-shot examples and must predict if a new input follows a hidden rule.
- Multiple Choice Articulation: The model selects the correct rule from a provided list.
- Freeform Articulation: The model must generate the rule in natural language.
To ensure models have truly learned a robust rule rather than memorizing surface patterns, the benchmark includes 15 types of adversarial attacks (e.g., case changes or synonym substitutions) to test out-of-distribution (OOD) classification performance.
Experimental Findings
Our evaluation across models ranging from Ada to GPT-4 reveals several critical insights into the relationship between task performance and self-explanation.
The GPT-4 Leap
We observed a non-linear jump in articulation capability between model generations. While smaller models and GPT-3 (175B) are competent classifiers, they largely fail at freeform articulation. GPT-4, however, demonstrates a nascent ability to introspect, achieving 72% accuracy in freeform articulation compared to GPT-3's 7%.
Classification is Not Articulation
One of the most striking findings is that high classification accuracy does not guarantee the ability to explain that behavior. GPT-3 can be finetuned to reach near-perfect classification accuracy, yet it remains unable to articulate the underlying rule. This suggests that the "reasoning" used for classification may be stored in internal circuits that are not readily accessible to the model's language generation components.
Limits of Finetuning
Attempts to improve GPT-3's articulation through targeted finetuning on ground-truth explanations yielded poor results. Even when trained on correct explanations for a subset of rules, the model failed to generalize this ability to new rules, remaining at 0% freeform articulation accuracy for 7 out of 10 test rules.
Discussion and Future Work
While GPT-4's performance is promising, it raises a significant philosophical question: is the model truly introspecting, or is it performing sophisticated statistical completion based on the few-shot prompt? A correct explanation might still be a "hallucination" that happens to match the behavior.
Future research should focus on "Whitebox" validation—combining behavioral studies with internal activation probing to see if the articulated rules correspond to specific neural circuits. Additionally, exploring the impact of Reinforcement Learning from Human Feedback (RLHF) on articulation could clarify whether GPT-4's edge comes from scale or specific training paradigms.
Summary updated