Abstract
While Large Language Models (LLMs) exhibit impressive performance across various linguistic domains, their capacity for autonomous reasoning remains a subject of intense debate. This study investigates these limitations through the lens of cognitive science, identifying working memory as a critical bottleneck for complex problem-solving. By benchmarking models on $n$-back tasks and the Big-bench Hard (BBH) dataset, we quantify the intrinsic cognitive constraints of current architectures. Furthermore, we introduce "CoT+," an enhanced prompting strategy that incorporates human-like cognitive techniques such as chunking and rehearsal to significantly mitigate these memory limitations.
Introduction
The ability to hold and manipulate information over time—working memory—is a cornerstone of human intelligence. Despite their successes, LLMs often falter on multi-step problems that demand high cognitive load. This research aims to move beyond surface-level performance metrics to identify the underlying cognitive constraints of LLMs. We explore whether an LLM's working memory can be quantitatively measured, how it scales with model size, and to what extent specialized prompting can overcome inherent capacity limits.
Methodology
The study employs a multi-faceted approach to probe the cognitive architecture of LLMs:
- Quantifying Memory via $n$-back Tasks: The classic psychological $n$-back test was adapted for LLMs using ASCII character grids. This task requires the model to determine if a current stimulus matches one presented $n$ steps prior, testing both spatial and temporal memory.
- Task Categorization: To distinguish between failures in knowledge retrieval and logical processing, 23 tasks from the Big-bench Hard (BBH) dataset were mapped onto two dimensions: World Knowledge and Logic.
- CoT+ Prompting Strategy: We introduced CoT+, an enhanced Chain-of-Thought method that explicitly integrates human cognitive strategies:
- Chunking: Organizing data into manageable units (e.g., structured state-change logs).
- Rehearsal: Forcing the model to recite item names and counts to maintain information in its active context.
- Arousal Triggers: Utilizing specific linguistic cues (e.g., "so before that") to refocus attention on critical, previously processed information.
Key Insights
Our analysis revealed several distinct patterns in LLM cognitive performance:
- The U-Shaped Performance Curve: Small models (e.g.,
text-ada-001) often show high sensitivity on memory tasks due to rote repetition of input formats. Performance typically dips in medium-sized models as they attempt complex processing without sufficient capacity, before finally improving in the largest models like GPT-4. - The "Code Training" Advantage: Models heavily pre-trained on code (such as
text-davinci-002) demonstrated superior working memory. Programming logic—loops, conditionals, and state management—appears to provide a structural scaffold for logical reasoning tasks. - Autonomy Deficit and Alignment Tax: Current models lack the autonomy to discover optimal problem-solving patterns independently, relying on engineered prompts. Additionally, fine-tuning for conversational alignment (as seen in GPT-3.5) can sometimes degrade raw reasoning performance, a phenomenon termed the "alignment tax."
Experimental Results
The results highlight both the progress and the persistent gaps in LLM reasoning:
- Scaling Effects: GPT-4's performance on 1-back tasks in large grids ($7\times7$) approaches or exceeds human averages, suggesting that increased model scale directly correlates with expanded working memory capacity.
- CoT+ Efficacy: CoT+ yielded substantial improvements across challenging tasks. For instance, accuracy on the Temporal Sequence task rose to 96% for GPT-3.5 (a 32.8% gain) through the use of arousal triggers. In Object Counting, rehearsal-based prompts led to a 94.8% accuracy for
text-davinci-002.
Conclusion
Working memory serves as a primary identifier for the reasoning limits of current LLMs. While strategies like CoT+ provide essential "mnemonic crutches," the ultimate challenge lies in developing models with greater intrinsic autonomy. Future research should focus on internalizing planning and search algorithms to enable models to manage their own cognitive load without human-engineered interventions.
Summary updated