惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Engineering at Meta
Engineering at Meta
腾讯CDC
宝玉的分享
宝玉的分享
H
Help Net Security
I
InfoQ
博客园 - Franky
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
博客园_首页
美团技术团队
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
The Cloudflare Blog
博客园 - 司徒正美
Vercel News
Vercel News
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
月光博客
月光博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Understanding CoALA: A Cognitive Architecture for Languag...
Ndukwe Daniel · 2026-06-18 · via DEV Community

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