Soar is a cognitive architecture, a fixed computational framework that specifies the memories, decision process and learning mechanisms from which an intelligent agent is built. Within Symbolic AI & reasoning, it is one of the longest-running attempts to model general intelligence with symbols, production rules and goal-directed problem solving, and it remains under active development as open-source software.
Soar was created in the early 1980s by John Laird, Allen Newell and Paul Rosenbloom at Carnegie Mellon University and is now maintained mainly at the University of Michigan. Newell presented it as a candidate unified theory of cognition, so the architecture serves two audiences: cognitive scientists who test hypotheses about human thinking, and engineers who build autonomous agents for simulation, robotics and decision support. Not to be confused with security orchestration platforms that share the same name.
How the Soar cognitive architecture works
Soar organizes all behavior as search in problem spaces: an agent is in a state, considers operators that could change that state, selects one and applies it. Knowledge about which operators to propose, how to compare them and how to apply them is encoded as production rules in procedural memory, while the current situation lives in working memory as a graph of identifier, attribute and value triples.
The heart of the system is the decision cycle. Rules fire in parallel to elaborate the state and propose operators; they also create preferences such as acceptable, better, best or indifferent. A fixed decision procedure then interprets those preferences and selects exactly one operator per cycle, which keeps deliberation serial even though rule matching is parallel.
The table below summarizes the phases of a single cycle and what each one contributes to behavior.
| Phase | What happens | Role in behavior |
|---|---|---|
| Input | Perception writes sensor data to working memory | Keeps the state current |
| Elaboration and proposal | Rules infer facts and propose operators | Generates candidate actions |
| Decision | Preferences are resolved to one operator | Commits to a single choice |
| Application | Rules modify the state for the chosen operator | Carries out internal or external action |
| Output | Motor commands are sent to the environment | Acts in the world |
Matching thousands of rules against a changing working memory every cycle would be slow with naive methods, so Soar relies on a Rete-based matcher that processes only the changes. This design lets agents with large rule bases run fast enough for real-time control in simulations and on robots.
Impasses, substates and chunking
When the preferences do not determine a single operator, Soar does not fail; it reaches an impasse. Typical cases are a tie between equally good operators, a conflict between contradictory preferences, no available operator, or an operator that cannot be applied with current knowledge. The architecture then creates a substate, a new problem space whose goal is to resolve that impasse.
This mechanism yields automatic subgoaling: the agent can plan, look ahead or retrieve memories inside the substate and return a result to the parent state. Hierarchical task decomposition therefore emerges from the architecture itself rather than from a separately programmed planner.
Whenever a substate produces a result, chunking compiles the reasoning that led to it into a new production rule. The next time a similar situation arises, the learned rule fires directly and the impasse never occurs. Chunking is a form of explanation-based learning that converts deliberate reasoning into fast recognition, which mirrors how human skills become automatic with practice.
| Impasse type | Cause | Typical resolution in the substate |
|---|---|---|
| Tie | Several operators remain equally acceptable | Look-ahead evaluation of each candidate |
| Conflict | Preferences contradict each other | Additional knowledge to rank options |
| State no-change | No operator is proposed | Search for new operators or subgoals |
| Operator no-change | The selected operator cannot be applied | Decompose it into suboperators |
Memories and learning mechanisms in modern Soar
Early versions of Soar relied almost entirely on procedural memory and chunking. Starting with Soar 9, the architecture added several long-term memories and learning methods so that agents could store facts, remember experiences and tune behavior from rewards. Each module has its own encoding and retrieval rules, and agents access them through dedicated structures in working memory.
| Module | Content | Learning method |
|---|---|---|
| Procedural memory | Production rules for proposing and applying operators | Chunking |
| Semantic memory | General facts as a symbolic graph | Deliberate storage by the agent |
| Episodic memory | Snapshots of past working memory states | Automatic recording over time |
| Soar-RL | Numeric preferences on operators | Reinforcement learning from reward |
| Spatial visual system | Geometric scene representations | Updated from perception |
The spatial visual system addresses a long-standing weakness of purely symbolic architectures by letting the agent reason about positions, shapes and imagined movements, while symbolic working memory receives only abstract predicates such as whether one object is on another. Learning from reward through Soar-RL adjusts numeric operator preferences without changing the symbolic rules themselves.
How Soar compares with related approaches
Soar belongs to a small family of cognitive architectures, and its closest relative in symbolic AI is ACT-R. Both use production rules and a central cycle, but they differ in purpose, the role of numeric quantities and the way they are evaluated. Comparisons with classical expert systems and with modern language-model agents are also useful because all three can drive goal-directed behavior.
| Approach | Main goal | Knowledge form | Typical strength |
|---|---|---|---|
| Soar | General intelligent agents | Rules, operators, several memories | Integrated learning and real-time agents |
| ACT-R | Precise models of human cognition | Chunks and rules with activation values | Fitting reaction times and error data |
| Expert system shell | Narrow domain expertise | Rule base with forward or backward chaining | Transparent domain rules |
| LLM-based agent | Broad task completion from text | Neural weights and prompts | Coverage of open-ended language tasks |
Unlike a plain forward chaining expert system, Soar never lets rules act directly on the world without the operator selection step, so every action passes through explicit deliberation. Researchers increasingly combine Soar with neural components, using language models or vision networks for perception and knowledge retrieval while Soar provides reliable control and traceable decisions.
Uses, limitations and common misconceptions
Soar has been used for synthetic pilots in military flight simulation, interactive task learning on mobile robots, intelligent tutors, game characters and natural-language understanding research. Its main appeal is transparent reasoning: every operator choice can be traced to the rules and preferences that caused it, which matters for training simulations and for safety reviews.
- Knowledge engineering cost remains high, because most competence still has to be written as rules by skilled developers, an echo of the knowledge acquisition bottleneck.
- Chunking can overgeneralize or create many rules when the reasoning in a substate depends on details it did not test, which is why later versions refined the chunking algorithm.
- Soar is not a neural network; it is a symbolic system, although it accepts numeric preferences and integrates with neural modules.
- Psychological plausibility is debated: Soar models many behavioral regularities qualitatively, but ACT-R is usually preferred for precise timing fits.
In everyday language
Soar is a blueprint for building a thinking program. It says what kinds of memory the program has and how it makes decisions. At each step, the program looks at its situation and lists possible moves. It then picks one move at a time.
When it cannot decide, it stops and works on that small problem first. Once solved, it writes down a new rule. Next time, it knows the answer immediately. This is similar to how a beginner driver thinks hard at a junction, while an experienced driver acts without thinking.
Seen in the real world
A defense training center needs realistic computer-controlled pilots for large air combat exercises, so that human trainees can fly against and alongside many aircraft without hiring dozens of real pilots. Engineers build each synthetic pilot as a Soar agent with thousands of rules covering tactics, radio procedures and mission goals.
During a simulated patrol, an agent detects an unknown aircraft. Its rules propose operators to intercept, report or hold position, and preferences based on the rules of engagement select interception and reporting. When two intercept paths look equally good, a tie impasse triggers a quick look-ahead, and chunking stores the result for later encounters.
The outcome is a pilot that behaves plausibly and explainably: after the exercise, instructors can replay the decision trace and see exactly why each maneuver was chosen, which makes debriefing and tactic revisions far easier than with opaque scripted behavior.