Understanding CoALA: A Cognitive Architecture for Language Agents (2023)

Understanding CoALA: A Cognitive Architecture for Language Agents (2023)

2
calendar_today agoschedule3 min read
— Originally published at dev.to

Note: This article is a summary and interpretation of the research paper

Cognitive Architectures for Language Agents
(2023) by Michael Sumers, Shunyu Yao, Karthik Narasimhan, and Thomas L. Griffiths. Rather than proposing a new architecture, the goal here is to explain the paper's core ideas in an accessible way and explore why they matter for the future of AI memory systems.

Modern language agents feel intelligent, but under the hood they are still fragile systems stitched together with prompts, context windows, and external tools. The CoALA framework (Cognitive Architectures for Language Agents) proposes a more structured view: instead of treating LLMs as standalone reasoners, we should treat them as components inside a cognitive system with memory, actions, and decision loops.

At the center of this framework is a simple idea borrowed from cognitive science: intelligence depends heavily on how memory is structured.

CoALA breaks memory into four interacting systems: working memory, episodic memory, semantic memory, and procedural memory.

Working Memory: The Active Scratchpad

Working memory is the agent’s current “mental workspace.”

It contains everything the model is actively using right now:

  • the current prompt or conversation
  • intermediate reasoning steps
  • tool outputs
  • short-lived goals and constraints

In CoALA terms, this is the active state used for the current decision cycle. It is not persistent. Once the cycle ends, it disappears unless explicitly stored elsewhere.

You can think of it as the agent’s RAM fast, limited, and constantly overwritten.

Most LLM systems today stop here. That is why they feel intelligent but inconsistent: they reason well in the moment, but forget the structure that produced good decisions.

Episodic Memory: What Happened Before

Episodic memory stores experiences over time.

Instead of storing abstract facts, it stores:

  • past interactions
  • task trajectories
  • failures and corrections
  • sequences of actions taken in specific contexts

Example:

The agent tried to deploy a service, forgot database migrations, caused a rollback, then fixed it by adding a pre-deploy migration check.

This is important because intelligence is not just knowing facts it is learning from sequences of events.

In CoALA, episodic memory supports learning from history, enabling agents to improve across repeated tasks instead of resetting every session.

Without episodic memory, agents repeat mistakes endlessly.

Semantic Memory: What the Agent Knows

Semantic memory is the system’s store of general knowledge.

This includes:

  • facts about the world
  • domain knowledge
  • definitions and relationships
  • stable abstractions

Example:

PostgreSQL requires schema migrations before deployment in production systems.

Unlike episodic memory, semantic memory is not tied to a specific experience. It is decontextualized knowledge that can be reused across situations.

In modern systems, this is often implemented through:

  • vector databases
  • retrieval-augmented generation (RAG)
  • knowledge graphs

Semantic memory is what allows agents to “know things” even if they have never directly experienced them.Procedural Memory: How to Do Things

Procedural memory stores skills and action patterns.

This is not about facts or past events. It is about behavioral structure:

  • step-by-step workflows
  • tool usage patterns
  • decision heuristics
  • learned strategies

Example:

To deploy safely: run tests → build → apply migrations → deploy → verify health checks.

This type of memory is critical because it encodes execution ability, not just knowledge.

In CoALA, procedural memory can live in:

  • explicit rules
  • agent code
  • learned policies
  • tool-use patterns embedded in prompts or fine-tuning

Without procedural memory, an agent may “know” what to do but fail to consistently execute it.

Why These Four Matter Together

The key insight in CoALA is that intelligence emerges from coordination between memory types, not from scaling a single context window.

  • Working memory handles the present
  • Episodic memory improves learning from experience
  • Semantic memory provides knowledge grounding
  • Procedural memory encodes behavior and execution

Most current LLM systems collapse all of this into one space: the prompt. CoALA argues that this is fundamentally limiting.

Instead, memory should be treated as a structured system with different persistence rules, update mechanisms, and retrieval strategies.

Closing Thought

CoALA reframes language agents not as chat models, but as cognitive systems with modular memory and structured decision loops. It connects modern LLM tooling back to decades of cognitive science, showing that we are rebuilding ideas that were already explored in symbolic AI just now with language models as the core engine.

This raises an interesting question: if AI can organize memories like humans, can memory do more than just retrie

Reference:

Sumers, T. R., Yao, S., Narasimhan, K., & Griffiths, T. L. Cognitive Architectures for Language Agents. arXiv, 2023. https://arxiv.org/abs/2309.02427

2 Comments

1 vote
1
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

Your Tech Stack Isn’t Your Ceiling. Your Story Is

Karol Modelskiverified - Apr 9

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

AI Reliability Gap: Why Large Language Models are not for Safety-Critical Systems

praneeth - Mar 31
chevron_left
137 Points2 Badges
1Posts
1Comments
Software Engineer researching AI agents, memory systems, and backend infrastructure. Exploring long-... Show more

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!