TL;DR
Cognitive scientists have spent decades building simulations of the human mind using frameworks like ACT-R and Soar, which speak fundamentally different computational languages. This paper explores whether Large Language Models (LLMs) can act as universal translators between these architectures. While LLMs stumble over the conceptual translation out of the box, pairing structured prompt engineering with human-in-the-loop feedback reliably turns broken first drafts into working, cross-platform cognitive models.
What Problem Does This Paper Address?
Imagine trying to port a video game written for an arcade cabinet directly onto a modern smartphone—except instead of rendering pixels, you’re simulating human thought.
In computational cognitive science, researchers build software models to simulate how humans remember, perceive, and make decisions. Two titans in this space are ACT-R and Soar. While both align with a unified theory of how the mind works, their underlying engineering is vastly different:
- ACT-R is modular and buffer-centric. Think of it as separate brain regions passing discrete "chunks" of declarative facts through narrow bottlenecks, governed by reactive
if-thenproduction rules. - Soar uses a unified working memory structured like a dynamic graph, navigating problems hierarchically through cycles of proposing and applying "operators."
Because their paradigms diverge so sharply, a model built in Soar is locked into Soar. Translating it to ACT-R isn't just a matter of swapping syntax (like translating Python to Java); it requires rethinking how memory and control flow are represented. Historically, porting models required grueling manual rewrites, stifling cross-framework validation and model reuse. The authors ask: Can LLMs bridge this divide?
Methods
Rather than expecting a zero-shot miracle from an off-the-shelf LLM, the authors designed a structured, iterative Human-in-the-Loop (HITL) pipeline using ChatGPT (v3.5 and 4o) to translate models bi-directionally.
The novel methodology breaks down into four distinct stages:
- Layered Prompt Initialization: Before touching any code, the LLM is primed with architectural context, syntax rules, and memory specifications (e.g., explaining ACT-R chunk-types vs. Soar working memory elements).
- Scaffolded Generation: Instead of asking for the whole model at once, prompts are sequenced—defining memory schemas first, then translating individual procedural rules.
- Simulation & Expert Verification: Humans run the generated code in the target architecture, checking for syntactic correctness (does it compile?), semantic fidelity (is the logic preserved?), and execution validity (does it output the right answer?).
- Targeted Debugging Feedback: When the model fails, experts feed specific diagnostic prompts back into the LLM (e.g., "You forgot the buffer condition in the goal module. Fix that."), looping until the model runs cleanly.
Datasets
Traditional machine learning datasets were not used here. Instead, to maintain tight experimental control, the authors developed custom, functionally equivalent counting models in both ACT-R and Soar as their evaluation targets. These models contain production rules to initialize, increment, and terminate a simple counting task (counting from 1 to 6), serving as clean testbeds for structural and semantic alignment.
Key Insights and Ideas
- Translation Requires "Conceptual Flattening": Moving from Soar to ACT-R was the trickiest conceptual leap. Soar handles things like subgoals and operator preferences implicitly in a deep, graph-like hierarchy. To work in ACT-R, this hierarchy had to be "flattened" into explicit, step-by-step production sequences and rigid slot-value memory chunks.
- Concurrency vs. Sequencing: Going the other way (ACT-R to Soar) meant taking ACT-R rules that check multiple modular buffers simultaneously and splitting them apart into sequential propose-and-apply operator cycles in Soar.
- LLMs Are Great Scaffolders, Poor Architects: ChatGPT excelled at generating syntactic boilerplate, but frequently hallucinated non-existent buffer names or mismanaged goal states. However, its self-correction loop proved remarkably responsive when nudged by concrete, human-authored error diagnostics.
Key Results
Across 12 controlled translation experiments (6 from ACT-R to Soar, 6 from Soar to ACT-R), the numbers tell a clear story of initial brittleness followed by rapid convergence:
- High Initial Error Rates: Out of the box, initial LLM generations suffered from syntax errors 67% of the time (ACT-R $\rightarrow$ Soar) and 72% of the time (Soar $\rightarrow$ ACT-R).
- Fast Convergence with HITL: Guided by structured debugging prompts, the models required an average of just 2.5 iterations (ACT-R $\rightarrow$ Soar) and 2.2 iterations (Soar $\rightarrow$ ACT-R) to reach a 100% success rate after two correction cycles.
- Reusable Prompt Patterns: The team distilled six generalizable prompt archetypes (Initialization, Declarative Structure, Procedural Rule, Sequencing, Debugging Feedback, and Post-execution) that reliably steer the LLM toward valid cognitive code.
Limitations and Future Work
The authors are candid about the boundaries of this pilot study:
- Toy Task Scope: Counting from 1 to 6 is a well-scoped, purely symbolic task. Scaling this workflow to complex, multi-module models involving vision, motor control, or learning mechanisms remains an open challenge.
- Heavy Expert Bottleneck: Because general-purpose LLMs hallucinate architectural rules, you still need a human expert in the loop who knows both ACT-R and Soar to diagnose subtle semantic bugs.
For future work, the team plans to explore automated error-correction pipelines (hooking compiler/simulator traces directly back into the LLM), hallucination detection, richer cognitive tasks, and quantitative benchmarks to measure just how much human effort this approach actually saves.
Summary updated