Concepts · Humans and machines
How Soar learns conditional production rules from substate results, what those rules preserve, and how chunking differs from episodic memory and reinforcement learning.
Review pending. Report issues to editor@achiral.ai.

What Is Soar Chunking?
Soar chunking is a mechanism for learning production rules from the results of substate problem solving. A learned production can create a result directly when its conditions match a later situation, avoiding the need to repeat the earlier reasoning. The Soar architecture manual describes how this learning fits the decision cycle.
The previous chapter followed a refund decision from an unresolved tie to a preference based on eligibility. We will keep that case and examine what can be learned from the reasoning: which result the rule supplies and which conditions it must preserve.
Learn the conditions behind a result
A substate can produce information for a higher-level state, such as a preference that helps select an operator. That result is a change in the model's knowledge; it need not be a completed action in the outside world.
When chunking is enabled and learning is permitted, Soar can trace the reasoning that produced the result and form a production from its dependencies. Its procedural-learning manual describes this dependency analysis, called backtracing.
The learned rule connects conditions to a result. It does not need to preserve every intermediate step or incidental detail of the episode. To understand what it learned, inspect which conditions it tests and what it creates when those conditions match.
Work through a refund decision
In the refund case, eligibility depends on the customer's tier, the amount, the purchase date, and the current policy's permission to process the case automatically. Substate reasoning establishes that the case qualifies and produces a preference for the automatic-refund operator.
Chunking can retain the dependencies behind that preference so a later matching case need not repeat the eligibility reasoning.
A conceptual learned rule might look like:
IF
the customer is in the qualifying tier
and the refund is below the current policy's amount limit
and the purchase is within the current policy's time window
and the current policy permits automatic refunds for this case
THEN
prefer the automatic-refund operatorThis is explanatory pseudocode, not an executable Soar production or the exact output of a chunking run. It shows why the conditions matter. A qualifying customer tier alone would not establish that the refund is allowed.
The learned rule supplies a selection preference. It preserves the decision reached in the subproblem; it does not execute the refund.
Preserve the limits when reusing the rule
On a later case, the production can supply the preference when its conditions match. If the amount exceeds the policy limit or the purchase falls outside the permitted window, this rule should not apply. The workflow needs another route for those cases.
The same requirement applies when policy changes. An AI application borrowing this approach must ensure that learned behavior depends on current policy or is reviewed when that policy changes. Learning a rule once does not establish that it remains appropriate forever.
Soar's manual discusses generality and correctness of learned rules. A rule can become too general if it loses a relevant condition, or too specific to help on other cases. In the refund example, dropping the time-window check would expand the rule to cases the original reasoning did not authorize.
Separate rule learning from other kinds of memory
The word “chunk” has different meanings across these architectures:
| Mechanism | What it represents or changes |
|---|---|
| Soar chunking | Learns a production that can create a result under matching conditions. |
| ACT-R chunk | Represents structured declarative knowledge. |
| Soar episodic memory | Records episodes of working memory for later retrieval. |
| Soar reinforcement learning | Adjusts numeric operator preferences using rewards. |
The ACT-R chunks chapter explains the declarative representation. Soar's episodic-memory manual describes episode recording, while its reinforcement-learning manual describes how rewards change selection preferences.
For the refund case, recalling an earlier decision, learning a conditional preference rule, and adjusting a numeric preference would be different changes to the system. Calling all three “remembering what worked” would hide what actually changed.
Inspect what was learned before relying on it
Chunking is disabled by default in the current Soar manual. Learning can be enabled selectively, and some results do not produce new chunks, for example when learning is disabled for the state, the rule is a duplicate, or configured correctness filters prevent it. The manual documents these controls and exceptions.
For an AI builder, the useful application is to retain a decision pattern together with its conditions. A review should test a qualifying refund, an amount above the limit, and a purchase outside the time window. It should also check what happens when the policy changes. Correctly rejecting a near-match matters as much as recognizing an eligible case.
A learned production shows how the model reached a result from its represented knowledge. The application still needs to establish that the knowledge is accurate and that the resulting behavior meets its requirements.
Continue with Semantic and Episodic Memory in Soar to distinguish learned behavior from the general knowledge and recorded episodes it can draw on.
Sources
- The Soar Architecture: Chunking: substate results and learned procedural knowledge.
- Procedural Knowledge Learning in Soar: backtracing, generalization, learning controls, and exceptions.
- Episodic Memory in Soar: recording and retrieving episodes.
- Reinforcement Learning in Soar: learning numeric operator preferences from rewards.
Go back to Impasses and Subgoals in Soar, continue with Semantic and Episodic Memory in Soar, or return to the Concepts hub.