Elamur Research

Mapping Explanation-Based Generalization onto Soar

Paper · 1986 · Paul S. Rosenbloom and John E. Laird

Summary

What can a system learn from a problem it already knows how to solve? If it can explain why its answer worked, it may be able to turn that explanation into a rule for future cases. Explanation-based generalization, or EBG, uses a description of one example and a theory of the task to derive such a rule. The rule should express its conditions in a form the system can check easily. Rosenbloom and Laird ask whether Soar, a cognitive architecture with an independently developed learning mechanism called chunking, performs the same kind of learning when it creates rules from its own problem solving.

The authors give each part of EBG a counterpart in Soar. The concept to be learned corresponds to something Soar is trying to achieve. The example is the situation in which that goal arises. Knowledge about the task is organized as a problem space, where operators produce the facts needed to reach the goal. When a difficulty creates a subgoal, Soar can work it out using those operators. Chunking then traces the result back to the facts that supported it. The resulting production, or condition–action rule, tests facts available before the subgoal began and can produce the result in a future situation that meets those conditions.

The paper works through two tasks from the EBG framework. In Safe-to-Stack, Soar learns when it can report that one object may be placed on another. Its initial rule recognizes the particular volume and density used in the example. Making multiplication and comparison facts available earlier gives the rule more scope, though it still preserves an equality between density and weight that happened to hold in the example. In symbolic integration, Soar learns when an operator that moves a numerical coefficient outside an integral is worth choosing. The learned rule largely agrees with the corresponding EBG rule. A difference in what the rules examine reflects how the formula is represented.

The authors conclude that chunking qualifies as a form of EBG. The approaches differ in when they introduce variables, which facts can serve as readily testable conditions, and how they derive rules for choosing operators. The mapping also gives the authors ways to address questions about where learning tasks come from, how contextual knowledge enters a rule, and what happens when the theory behind an explanation is imperfect. They draw on previous Soar work, including expert-system tasks, to argue that this kind of learning can be used in larger settings. The examples in this paper establish the correspondence by showing how particular rules are produced.

Deep dive: Mapping Explanation-Based Generalization onto Soar

Mapping Explanation-Based Generalization onto Soar shows how solving a single problem can produce a rule that applies to new cases. · about 37 minutes to read

The problem and its context

Why a justified answer can still be expensive

A system can possess enough knowledge to answer a question while having to do considerable work each time the question comes up. Consider the stacking example. A general safety definition can refer to the comparative weight of the objects. To use that definition in a particular case, the system may need to obtain both weights, calculate one of them from the available measurements, and compare the results. The safety definition says what would settle the question. The measurements say what is known at the start. The work of connecting them falls to the reasoner.

Explanation-based generalization asks what can be learned from making that connection once. Suppose the system succeeds with a box and an endtable. The resulting explanation can identify why the box’s volume mattered, why its density mattered, and why the lower object’s type mattered. The same example describes the objects’ colors, but the chosen explanation gives those facts no role. The task is to express the successful reasoning as a condition that another case could meet. The choice of conditions comes from the explanation of success in the training case.

This is a problem of knowledge representation and reasoning. A rule involving quantities already accessible to the system can be easier to apply than a definition involving a quantity it has to infer. Ease of use depends on how knowledge is stored and what operations the reasoner can perform. A comparison could be a fact ready for lookup, for example, or the conclusion of a calculation. The expression may look similar on paper in both cases, but to the reasoner it calls for different work. EBG makes the choice of acceptable tests part of the learning task through its operationality criterion.

A second issue concerns what it means to generalize a successful proof. A proof of safety for one pair of objects demonstrates one route to a positive answer. A broader safety definition might support other routes. An acquired rule can be entirely justified by the proof and still recognize only a subset of the concept. For the authors’ comparison, this distinction matters because both EBG and chunking have to take account of how the particular result was reached. The form of the original goal alone gives too little information to predict the rule that either method will produce.

Why compare EBG with Soar?

The paper situates EBG within ongoing work in machine learning. It points to the unifying framework of Mitchell, Keller, and Kedar-Cabelli as a way to describe several previous approaches using a common vocabulary. That framework identifies what knowledge a learner starts with and what it does with that knowledge. In particular, it separates the example, the concept to be acquired, the theory that explains the example, and the criterion that governs what the acquired rule may test. This separation lets the authors ask which parts of Soar serve each purpose, even where Soar organizes the work differently.

The paper also acknowledges an alternative attempt to bring explanation-based approaches together, by DeJong and Mooney. The authors limit their mapping to the Mitchell, Keller, and Kedar-Cabelli formulation. That choice identifies the comparison precisely. An apparent difference might depend on how that formulation defines operational predicates or handles the derivation of search-control knowledge. A finding about the mapping is therefore strongest when stated with the relevant implementation or formulation in view.

Soar came from a different research program. Its purpose was to bring memory, learning, and problem solving together within a general architecture. The authors cite previous work on these capabilities and on expert-system applications. At the center of the account they use here is the idea that ordinary problem solving can generate its own requests for additional reasoning. If the architecture cannot choose an operator or cannot apply one it has already chosen, it creates a subgoal. Chunking then has an occasion to learn from how that subgoal is resolved. The architectural background is described in the work the paper cites as Soar: An architecture for general intelligence.

The authors are interested in what follows if the subgoal can be understood as a concept-learning problem. A system that asks how to apply a safety operator could acquire a classification rule. A system that asks which available change to make to an equation could acquire a rule about operator preference. The architectural machinery would be shared even though the knowledge acquired in the two cases serves different purposes. Conversely, EBG’s distinction between an explanation and its operational form offers a way to ask why a chunk has the conditions it does.

Where the learning problem begins

In the EBG framework, a learning problem starts with a designated concept and an example known to instantiate it. In Soar, the immediate objective is to make progress on a task. A pause in that progress determines what needs explaining. If the system has selected a safety operation it cannot yet carry out, the missing information concerns whether a particular pair satisfies the safety condition. If it faces competing integration operators, the missing information concerns which choice can lead to a solution.

This difference in starting point gives the comparison a practical question. Can the circumstances of an ordinary decision supply everything a learner needs? A candidate operator, the current state, and a goal already give the situation some structure. If additional reasoning returns an answer to the blocking question, the system can inspect where that answer came from. The proposal is that the learning problem can arise this way inside a continuing task. Its formulation comes from what the system needed to determine, and its example comes from the situation in which that need arose.

The mapping also gives the authors a way to distinguish parts of the problem that depend on the architecture from parts that depend on the task. Soar decides when a subgoal is needed and how to turn its results into productions. The available knowledge still determines how the system can solve that subgoal. Nothing in the general mapping supplies the weight of an endtable or the mathematical transformations for integrating a formula. Those have to be represented in the specific problem space. The paper’s question is whether the architecture can use such knowledge to learn in the way EBG describes.

The method, step by step

What the example contributes

The stacking task starts with a relationship to recognize, a positive example, knowledge that can connect the example to the relationship, and a requirement for the form of the learned rule. The relationship is Safe-to-Stack. Its definition has a branch about the lower object’s fragility and another about comparative weight. The example goes through the weight branch. The box is on the endtable, and its description includes its type, color, volume, and density. The endtable has a type and a color. The value of the example is that it gives the proof concrete objects and measurements on which to operate.

The paper’s initial concept definition can be written as follows.

(¬Fragile(y) ∨ Lighter(x, y)) ↔ Safe-to-Stack(x, y)

Here x is the object placed on top and y the object underneath. Fragile(y) describes the lower object’s fragility and ¬ negates that predicate. Lighter(x, y) says the upper object weighs less than the lower one. ∨ means either branch suffices, and ↔ expresses the definition relating those branches to Safe-to-Stack(x, y). The derivation in the paper uses Lighter. The separate Soar production printed for the fragility branch has a positive Fragile test, so the printed forms differ on that unused branch. The weight-based derivations can be followed without resolving the discrepancy.

The example records the volume as 1 and the density as .1. It also records red for the box and blue for the endtable. These facts are supplied together. The proof determines which of them have a reason to enter the learned conditions. For example, a weight rule can use volume and density from the box’s description. It has no dependency on a color. The proof thereby supplies a basis for ignoring some recorded properties even though they are just as prominent in the initial description as the useful measurements.

The components of the domain theory make the possible proof explicit. A weight can be obtained from volume and density.

Volume(p, v) ∧ Density(p, d) → Weight(p, v × d)

p is an object, v its volume, and d its density. Volume and Density associate those quantities with p. ∧ joins conditions that must both hold, → introduces what the rule licenses, and × multiplies the quantities. Weight associates the product with the same object.

Another rule turns available weights into the comparison the concept needs.

Weight(p₁, w₁) ∧ Weight(p₂, w₂) ∧ Less(w₁, w₂) → Lighter(p₁, p₂)

p₁ and p₂ are the objects being compared, and w₁ and w₂ are their respective weights. Less tests the ordering of the weights. Lighter expresses the resulting ordering of the objects themselves. The conjunction and implication signs connect the conditions to this result in the same way as in the weight rule.

For the lower object in this example, the theory supplies a weight based on type.

Isa(p, endtable) → Weight(p, 5)

Isa says that p is of the type named by endtable. The implication assigns that object a weight of 5 in the weight representation of the task. The authors later discuss this rule as a default. Its use in the derivation licenses the assumed weight for the example.

The comparison facts include the relationship needed for the two example weights.

Less(.1, 5)

Less states that its first argument is smaller than its second. .1 is the weight obtained for the box in the example and 5 is the value supplied for the endtable. The fact supports the transition from the two weights to the Lighter conclusion.

Under EBG, the learner first proves that the supplied example belongs to the concept. It then retains the part of the proof that supports that conclusion as an explanation structure. This structure records the dependencies among the rules used. Last, the learner works backward through it. Each step asks what had to hold for the relevant conclusion to follow, substituting those requirements for the conclusion until the remaining tests count as operational. This backward step is called goal regression.

The operationality criterion can be set to accept just predicates used in describing examples. The EBG implementation the authors compare against also accepts readily computed tests, including the numerical comparison. That choice allows the learned condition to keep a comparison involving the product of the two quantities.

Volume(x, v) ∧ Density(x, d) ∧ Isa(y, endtable) ∧ Less(v × d, 5) → Safe-to-Stack(x, y)

x is the upper object and y the lower one. v and d are the upper object’s volume and density, and their product supplies the first argument to Less. Isa identifies the lower object as an endtable, whose assumed weight is 5. Volume, Density, the type test, and the comparison must all hold for this rule to conclude Safe-to-Stack. The measurements now appear as variables that can take other values, as long as the product passes the comparison.

How Soar creates an occasion to learn

In Soar, a problem space describes where a particular kind of problem solving takes place. The architecture selects a space, a state within that space, and an operator to apply. A state records the current situation. An operator is a deliberate action that can change or add to the information in that state. In the stacking task, calculating a weight and establishing a comparison are separate operations that make information available for the final safety judgment.

Soar stores long-term knowledge as productions. A production tests a conjunction of conditions against working memory and, when it fires, adds elements to that memory. The condition language permits constants, variables, and tests for equality and inequality of structured patterns. Alternatives can be represented with separate productions. The action language creates working-memory elements. A mathematical function such as multiplication has to be supplied through the architecture’s available mechanisms for representing or deriving its result.

Working memory holds temporary information and the currently active goals. In the elaboration phase of a decision cycle, applicable productions can contribute information in parallel. Elaboration continues until those productions have no further information to add for the cycle. The decision procedure then acts on the resulting situation. This division matters for learning because a fact added by elaboration can be present before the decision creates a subgoal. The same fact obtained inside the subgoal would have a different status when the system later constructs the chunk.

An impasse is a point where the current knowledge leaves the architecture unable to proceed. An operator might be selected but lack an available implementation. Several operators might be acceptable with too little information to choose among them. Soar automatically creates a subgoal whose work can address the impasse. Additional impasses can occur within that work, producing a hierarchy of goals. An element created below can count as a result of a subgoal when it is linked to information accessible from a higher goal.

In the stacking example, Safety? is selected in a state with the example objects. Its intended effect is to add information about whether the proposed ordering is safe. Initially no production directly applies it. The resulting operator-implementation subgoal uses the Safe problem space to work out the safety judgment. The state at the start supplies the example, the desired effect of the selected operator supplies the goal, and the operators in Safe supply the domain reasoning. The production Soar eventually learns expresses the operational form in terms of items available before that subgoal.

How Soar learns a rule from a subgoal

The steps in order.

How Soar learns a rule from a subgoalStep 1: Select an operator in the current state1. Select an operator in the current stateStep 2: Create a subgoal when progress stalls2. Create a subgoal when progress stallsStep 3: Solve it with the relevant problem space3. Solve it with the relevant problem spaceStep 4: Trace the result back through production firings4. Trace the result back through production firingsStep 5: Keep conditions available before the subgoal5. Keep conditions available before the subgoalStep 6: Replace object identifiers with consistent variables6. Replace object identifiers with consistent variablesStep 7: Store a production that recreates the result7. Store a production that recreates the result

How the stacking proof runs in Soar

The Soar version gives temporary identifiers to the objects and to values associated with their properties. The box’s volume points to an identifier, for example, and that identifier carries the name 1. Its density similarly points to a value named .1. The distinction between the identifier and its name lets productions ask different questions. They can test whether two references point to the same object or whether an object has a particular name. A chunk can subsequently replace an identifier with a variable while retaining a name test required by the reasoning.

The Safe space contains operators for weight, relative weight, numeric comparison, and multiplication. It also has an operator that establishes the goal concept. The weight operation has a production for an endtable. In the initial implementation that production creates a new value identifier and gives it the name 5.

Name(p, endtable) → Weight(p, w) ∧ Name(w, 5)

p is the identifier tested for the name endtable. w denotes a value identifier created by the action because it has no binding in the conditions. Weight connects the object with its weight identifier, and Name gives that new identifier the numeric name 5. The conjunction on the action side means that the production adds both elements.

For the box, the corresponding weight production uses a product relationship that another operator can establish.

Volume(p, v) ∧ Density(p, d) ∧ Product(v, d, w) → Weight(p, w)

p is the box’s identifier, v identifies its volume value, d its density value, and w the value given as their product. Volume and Density connect the object to those quantities, while Product connects the two factors to the result. Weight assigns the resulting value identifier to the object as its weight.

The multiplication operator has just the knowledge needed for the worked case. Its production describes what happens when the first factor is named 1.

Name(n₁, 1) → Product(n₁, n₂, n₂)

n₁ identifies the first factor and n₂ the second. The condition checks the numeric name of n₁. Product uses the same identifier n₂ for the second factor and for the product, expressing multiplication by 1. The operator’s arguments supply the two factors for this application. The authors point out that a full implementation could use more productions or carry out a general multiplication procedure in a problem space.

Comparison is stored as a production because long-term knowledge in Soar takes that form. The example uses the fact for the names .1 and 5.

Name(n₁, .1) ∧ Name(n₂, 5) → Less(n₁, n₂)

n₁ and n₂ identify the two values. Name checks which quantity each identifier denotes. Less adds their less-than relationship to working memory. A collection of such productions can encode individual comparison facts. The paper also describes the possibility of implementing comparison as an algorithm in a subgoal.

The relative-weight operator uses the shared pattern of the EBG comparison rule. It requires a weight for each object and a Less relationship between the corresponding values. After it has added Lighter, the last operator establishes the safety fact.

Lighter(p₁, p₂) → Safe-to-Stack(p₁, p₂)

p₁ identifies the upper object and p₂ the lower one. The condition concerns the relative weight of that ordered pair. The result preserves the order of the objects in the Safe-to-Stack relation.

In the demonstrated sequence, Soar obtains the endtable weight and establishes the product for the box’s measurements. It can then obtain the box’s weight, compare the weights, establish which object is lighter, and conclude that the proposed stack is safe. Each operator adds information needed by a subsequent step. The final conclusion is accessible from the goal that was waiting for Safety? to be applied. A test production recognizes that the operator’s requested result is available, allowing the subgoal to terminate.

Productions also set up the initial state, propose operators, and reject operators whose work is already complete. For this particular task, the authors guide the operator sequence by hand. The trace relevant to the acquired concept contains the firings that derive the safety fact, along with some conditions that connect those firings to the goal and state. The authors describe the operator proposals as duplicating relevant conditions when they enter the explanation. The reject productions do not contribute to the selected derivation.

How a particular trace becomes a reusable condition

For each production firing in the subgoal, the trace records the actual working-memory elements that matched its conditions and the elements that its actions created. The distinction between a production and its firing is important. A general weight production can be written with variables. In its firing, the matched elements refer to a particular object and particular quantities in the current situation. Backtracing works with those elements.

Starting from the safety result, the architecture finds the firing that produced it. It follows the conditions of that firing back to the firings that supplied them, continuing while a condition depends on work within the subgoal. A fact that was already present is a possible endpoint. To become the basis of a chunk condition, that earlier fact must also have been matched by a firing on the explanation trace. A preexisting color fact can therefore be available throughout the derivation without becoming a condition. An intermediate weight can be central to the derivation and still be absent from the final conditions if its value had to be established within the subgoal.

The resulting explanation is a set of relevant production traces. It is selective even if the history of the subgoal contains additional reasoning. The rule’s action comes directly from the result that the higher goal can use. Its conditions come from the preexisting side of the traced dependencies. The application context also matters. The new production is for carrying out the intended safety operation in the appropriate state, so the paper presents the resulting rule with Safety? as its operator context.

Volume(α, δ) ∧ Name(δ, 1) ∧ Density(α, ε) ∧ Name(ε, .1) ∧ Name(β, endtable) → Safe-to-Stack(α, β)

Here α and β are the identifiers of the upper and lower objects in the demonstrated application of Safety?. δ and ε identify the volume and density quantities linked to α. The three Name tests read the numeric names 1 and .1 and the object name endtable. Volume and Density connect the property values to the box. The implication recreates the safety conclusion for α and β when the listed conditions hold in the operator context.

This stage explains how the system selected conditions, and variable replacement explains how those conditions become reusable. Soar substitutes a variable for each identifier. Occurrences of the same identifier receive the same variable. Distinct identifiers receive variables constrained to match distinct objects. Names that the proof tested, such as the numeric name of a quantity, remain tests. The production can therefore match newly created identifiers in a later situation while preserving specified names and relationships.

Volume(x, v) ∧ Name(v, 1) ∧ Density(x, d) ∧ Name(d, .1) ∧ Name(y, endtable) → Safe-to-Stack(x, y)

x and y now stand for the upper and lower objects in a matching application of Safety?, while v and d stand for identifiers of the upper object’s volume and density. Name(v, 1) and Name(d, .1) preserve the measurement tests, and Name(y, endtable) preserves the lower object’s type test in Soar’s representation. The remaining predicates and connectives have the same roles as in the instantiated rule. The formula shows the principal conditions, with the architecture’s context and identifier constraints understood.

Classical EBG, in the version compared here, starts regression with a goal already expressed using variables. It matches that goal with the corresponding rules and carries the resulting variable connections back through the explanation. Soar determines the dependency boundary using an actual result and actual firings, then derives its variable connections from the identities in the trace. The two procedures can retain similar supporting facts. They can also make different commitments about which quantities are required to stand in the same relationship in future cases.

What changes when arithmetic facts are available earlier

The authors also describe a version in which the relevant numbers, product relationships, and comparison relationships are available before the subgoal. That means backtracing can end on Product and Less facts. The endtable weight production also has to use an existing identifier for 5. The age of an identifier matters here. If the weight production creates another object named 5 during the subgoal, that object’s origin is still inside the derivation even though its name matches a number already represented outside it.

With these changes, the rule Soar acquires expresses the arithmetic relationships explicitly.

Volume(x, v) ∧ Density(x, d) ∧ Name(y, endtable) ∧ Product(v, d, d) ∧ Less(d, w) ∧ Name(w, 5) → Safe-to-Stack(x, y)

x and y are the candidate upper and lower objects in the Safety? application. v and d identify the upper object’s volume and density. w identifies the value named 5, used for the lower object’s weight. Product(v, d, d) requires the product to be represented by the same identifier as the density. Less(d, w) requires that value to fall below the lower object’s weight. The volume, density, and name conditions connect these value tests with the objects, and the action adds the safety relation.

Making the arithmetic relationships available changes where regression stops. It leaves the variable replacement procedure intact. In the example, multiplication returns the very identifier used for density, so that identifier becomes one variable occupying both roles. The classical EBG rule is free to use a separate value for the product. The paper observes that a differently structured example, with separate density and weight identifiers, would yield a chunk for future cases with that distinction. The example thus demonstrates two ways the initial representation can influence the learned rule. The timing of available facts determines which tests remain, and the reuse of identifiers determines which arguments must coincide.

How an operator choice becomes a learning task

The second task concerns symbolic integration. Here the task goal is a formula with no integral remaining. The task operators transform formulas. An operator can be applicable to the current form without the system already knowing whether applying it will help reach the goal. The learned concept therefore concerns the usefulness of an operator in a class of situations, a kind of knowledge the paper calls search control.

In the EBG formulation, Op3 moves a numerical coefficient outside an integral. The training case involves the coefficient 7. The domain theory explains what it means for a state to be solved, how a successor state can be shown to admit a solution, and how requirements for the solution can be worked backward through the chosen transformations. The search first establishes a route to a solved state after using Op3. Regression through that route gives the earlier conditions supporting the claim that the operator is useful. This regression is part of the domain theory’s procedure for search control. EBG then works with the explanation formed from that procedure.

In schematic notation, the EBG rule has the following form.

Matches(y, f(·) ∫ r xˢ dx) ∧ Isa(r, real) ∧ Isa(s, real) ∧ Isa(f, function) ∧ Not-Equal(s, -1) → Useful-Op3(y)

y is the formula being tested. Matches checks for the indicated structure. f(·) stands for a function in the expression before the integral, with · leaving its argument unspecified here. ∫ marks integration with respect to x, as indicated by dx. r is the numerical coefficient and s the exponent in xˢ. Isa supplies the two real-number tests and the function test. Not-Equal requires that the exponent differ from -1. Together the conditions support Useful-Op3 for the formula.

In Soar, the original problem space holds the task operators, and the current formula supplies the initial task state. Op3 and another operator are acceptable there. Soar creates an operator-selection subgoal because the available productions give it too little information to decide between them. The usual problem space for this kind of subgoal is Selection, whose Evaluate operator is intended to determine how useful a proposed operator would be in the current state.

When Soar cannot apply Evaluate directly, it creates an operator-evaluation subgoal. The evaluation returns to the original task problem space, starts with the task state, and applies the candidate operator. If the successor state can be evaluated, the evaluation subgoal can finish. Otherwise the architecture continues, potentially creating further selection and evaluation goals, until the task goal can be reached or the search fails. The demonstrated route reaches a form on which Op9 can perform the integration. A goal test recognizes the resulting state.

The way the useful information moves up the hierarchy is central to the mapping. The successful search produces an evaluation of Op3. Chunking over the evaluation subgoal can summarize the conditions under which the result was achieved. That work contributes to the explanation for the enclosing selection subgoal. The resulting search-control knowledge permits a choice in the original task, where Op3 can be selected and applied. Soar can learn productions at the different levels, but the rule of interest to the authors comes from the selection subgoal. In compact form it reads as follows.

Proposed(a) ∧ Name(a, Op3) ∧ Integral(a, b) ∧ Matches(b, ∫ r xˢ dx) ∧ Isa(r, real) ∧ Isa(s, real) ∧ Not-Equal(s, -1) → Best(a)

a is a proposed operator instance and b its integral argument. Proposed and Name identify an available Op3 instance. Integral links it to the argument checked by Matches. Inside the pattern, ∫ and dx indicate integration with respect to x, r denotes the coefficient, and s the exponent. Isa requires both numerical roles to be real, and Not-Equal excludes the exponent -1. Best(a) means Soar can treat that candidate as at least as good as the alternatives in this evaluation.

The symbolic integration setup illustrates how a chunk can describe a category absent from the original numerical expression. The training case mentions 7. Productions add descriptors from a type hierarchy, including its real-number description, during the first elaboration phase after the example is available. Those descriptions can already be in working memory when the selection subgoal begins. Chunking can then preserve a real-number test that the reasoning used. The useful rule is still acquired from a concrete formula. Its conditions are stated partly in the more general vocabulary made available by the ordinary operation of the architecture.

Experiments and results

What the demonstrations compare

The paper compares learned rules on worked tasks from the EBG framework. Safe-to-Stack supplies a positive situation with object properties and a domain theory for deriving and comparing weights. Symbolic integration supplies an expression, a solution criterion, and transformations that can bring an expression to a solved state. The comparison in each case is between the concept description previously obtained by EBG and the production learned by Soar. The demonstrations also allow comparisons among Soar representations, particularly in the stacking case.

The evidence consists of the learned conditions, the reasoning that produced them, and what they mean when the system next encounters the relevant kind of decision. Coverage can be compared by reading the tests in the learned rules. For instance, a rule that requires a particular volume has a different scope from a rule that accepts any volume whose product with density passes a comparison. The paper supplies training examples for its derivations. It gives no dataset split, aggregate accuracy, timing series, or counts of successful and unsuccessful predictions over a collection of examples. Numerical values in the rules are inputs or conditions for the worked cases.

Which stacks the learned rules recognize

In the Safe-to-Stack demonstration, Soar uses the Safe problem space to reach a positive safety judgment. The essential part of the explanation consists of the firings the paper displays as productions 16–21. Those firings establish the endtable’s weight, obtain the box’s weight through the product, compare the results, and derive the conclusion. The firing trace shows that the architecture acquired an operational rule by solving the subgoal it had actually encountered. The color facts, although present in the case description, have no place in the learned rule.

The first learned Soar rule, production 23, checks that the upper object has volume 1 and density .1 and that the lower object is an endtable. The values 1 and .1 are the training box’s volume and density, respectively. The object identifiers themselves have been generalized, so the rule can apply to other objects meeting these tests. In a matching application of Safety?, the learned production can supply the conclusion directly. The rule thus captures part of the intended concept in a form that the architecture can use.

The reference EBG rule, rule 7, checks whether the product of volume and density is less than 5 for a stack whose lower object is an endtable. Here 5 is the assumed endtable weight used as the cutoff in the learned condition. This form provides broader coverage than the first Soar rule because it can accept other pairs of measurements that satisfy the comparison. The paper accounts for the difference by tracing the location of the arithmetic operations. EBG is allowed to retain the computable arithmetic in its operational description. In the first Soar setup, the arithmetic relations are generated within the subgoal, so their dependencies lead back to the specific names tested by the productions.

The modified Soar setup yields production 24. Its conditions include Product and Less, with 5 still the named comparison value. It retains a restriction visible in the placement of the density variable. The product has to use that same value identifier as the second factor and the result, as it did in the demonstrated multiplication. This is narrower than rule 7 even though it avoids hard-coding the training measurements as the preceding Soar production did. The authors use it to show that equivalent access to arithmetic facts still leaves a possible difference in how the two learning methods generalize the argument relationships.

These outcomes resolve different parts of the comparison. Soar produces an operational safety rule from the same kind of reasoning used to explain the case in EBG. Changing the material available at the start changes the numeric tests the rule can use. The difference that remains in production 24 can be located in the learner’s treatment of identity, independently of where the arithmetic facts were obtained.

What Soar learns to choose during integration

In symbolic integration, the task goal is reached in the course of evaluating an operator. The successful route through Op3 and Op9 supports an evaluation of success for Op3. The architecture can use the resulting preference at the task level. The learned production records a class of proposed Op3 applications for which it can supply that preference in the future. The levels in the following comparison come from the hierarchy displayed for this task. They measure where an operation sits relative to the original integration goal.

Subgoal levels in the symbolic integration demonstration

The learned operator preference belongs to the selection level above the evaluation that supports it.

Subgoal levels in the symbolic integration demonstrationSoar operator selection (this paper): 2Soar operator selection (this paper)2Soar operator evaluation: 3Soar operator evaluation3
The numbers
System or settinggoal level, with lower levels closer to the task goal
Soar operator selection (this paper)2
Soar operator evaluation3

Level 2 is the selection subgoal from which the paper’s search-control production is learned. Level 3 is the evaluation subgoal that uses the task problem space to establish an operator’s utility. A lower value in this comparison marks a position nearer the original task goal. The hierarchy explains why an evaluation performed deeper in the work can contribute to a rule whose action is to guide a higher-level decision.

The reference EBG result is rule 25. It describes when moving a coefficient outside the integral is useful. Soar’s production 26 describes when the proposed Op3 is best. Its conditions test the structure of the integral, the real-number status of the coefficient and exponent, and whether the exponent differs from -1. Here -1 is an excluded exponent in the learned integration condition. The label Best is compatible with the usefulness predicate in this demonstration because the evaluations depend on reaching a goal state, and an operator can be best by being at least as good as every alternative considered. The rule need not establish that the choice is uniquely successful.

The EBG rule checks the function preceding the integral, while the Soar production examines the integral argument directly. The authors relate this difference to the representation of formulas. Soar can reach and alter terms independently by means of its tree-structured and flat access. Its explanation therefore has no need to test the surrounding function to use the relevant integral. The significance of the comparison is that the two rules express essentially the same useful mathematical condition after allowance for that difference in what a rule must access.

The two demonstrations support the mapping at distinct points in a problem-solving episode. The safety rule gives the implementation of an operator a direct route to its result. The integration rule supplies information for deciding which operator to use. Both are obtained by explaining the result of a subgoal whose original purpose was to let the task proceed. The integration case additionally shows how a result computed in a lower subgoal can enter the explanation for the chunk that controls a higher decision.

What the ablations show

The paper has no formal ablation study. It offers a change to the stacking representation, comparisons of learned rule conditions, and an architectural explanation of why earlier chunking could retain too much from a search.

Availability and identity explain different restrictions

The most informative change to the stacking setup is to make Product and Less available before the Safety? subgoal. The authors also arrange for the weight rule to use the preexisting value identifier for 5. With the same kind of safety question, the chunk now retains arithmetic relationships among its conditions. The comparison shows that the time at which the predicates become available determines whether the learner keeps a relationship as a test or traces through the steps used to create it. It concerns the vocabulary of the rule as well as the form of an individual test.

The change is a package. It supplies preexisting arithmetic facts and alters the endtable weight production’s treatment of the value identifier. The resulting rule shows the effect of moving that part of the dependency boundary. The paper gives no separate run for each adjustment. In the authors’ explanation, both matter because an arithmetic fact and the objects to which it refers need to be connected to the situation that existed before the subgoal. Merely having the number available under some identifier leaves open whether the weight calculation actually uses that identifier.

The remaining repeated argument in Product is a different restriction. It follows from the handling of identifiers after relevant conditions have already been identified. The box’s density and its computed weight share a value in the trace. Reusing one variable for that identifier is the architecture’s conservative way of retaining a relationship present in the successful reasoning. Here, the equality reflects the chosen example. The comparison with the EBG rule shows why a successful explanation may justify a broader arithmetic condition than the resulting chunk expresses. The paper’s account of a run with different density and weight describes how a different example could produce another rule, rather than reporting measurements over additional stacking cases.

Relevant reasoning is narrower than everything inspected

The authors explain an earlier Soar approach in which a chunk could take conditions from the working-memory elements examined by productions during the subgoal. That approach could work where the problem-solving path was constrained to inspect relevant material. A search that can explore dead ends creates a different situation. A fact consulted on an unsuccessful branch can then be carried into the rule even though it played no role in the result. Starting the trace with the actual result gives the later approach a way to keep the conditions of the successful dependency path.

The Safe-to-Stack example makes the effect intelligible even though the authors guided its operator choices. They can account for the learned conditions by following the weight comparison back from the safety result. Productions that manage the search contribute little in this example. Some conditions locate the task in its state and goal context, and some proposal tests duplicate conditions already required by the operator implementations. The authors caution that such productions can have a larger effect in other tasks. The learned rule follows the particular explanation that actually supports the result.

The treatment of search control gives another mechanism comparison. In the stacking case, information used simply to direct a sequence of operators is outside the explanation of the safety fact. In integration, the utility of an operator is precisely the result the selection subgoal is trying to obtain. The evaluation that establishes utility can therefore enter the explanation for the selection rule. Whether a piece of work contributes to a chunk depends on the result being explained. The same architecture can disregard guidance used solely to get to a conclusion in one task and learn a rule giving guidance as its conclusion in another.

Representation changes what a useful rule needs to test

The integration comparison exposes a representational dependency of a different kind. The EBG formulation includes a structural check on a function outside the integral. The Soar formulation gives the operator access to the integral as an argument and permits independent access to terms of the expression. The learned condition consequently leaves the surrounding function out. The authors attribute that difference to what the problem solver needed to inspect while justifying the operator’s usefulness. They do not report a run that keeps the architecture fixed and substitutes a different formula representation.

The real-number descriptions show the complementary effect of supplying more structure to working memory. An example written using 7 can support a test for a real coefficient after the type productions have added that descriptor. The test is operational because elaboration has already established the descriptor when the subgoal is created. This example shows that relevance and availability are separate questions. The mathematical reasoning explains why a type test matters. The timing of elaboration explains why the type itself can appear among the final conditions.

Together, these analyses account for several otherwise puzzling features of the acquired productions. A condition may be absent because the successful reasoning could reach the relevant subexpression without inspecting it. A condition may be kept at a higher level of description because the architecture made that description available before the subgoal. And a condition may be narrower than expected because the example identified two roles with the same object. The paper locates these effects by inspecting rules and traces. Their frequency across other tasks remains open.

Limitations

Limits the authors identify

The authors report that the generality of a chunk depends partly on the identifiers used in a concrete example. Replacing identifiers with variables preserves both identity and distinctness. That prevents a chunk from casually dropping relationships present in the trace. It can also preserve a relationship that happened to hold in the example and is unnecessary for the concept. The shared density and weight identifier in the stacking rule is an explicit instance. The mechanism learns from a proof of the particular case, and its variable strategy can retain more of that case than a regression starting from parameterized rules would retain.

The set of operational facts presents a separate limit. EBG can treat comparison facts as operational or give the rule language a primitive operation for a computation. For a Soar subgoal, a production can directly test the relevant facts when they already exist in working memory. Producing a fact through an operator makes it usable during problem solving, but its production within the subgoal means it can still be expanded during backtracing. The authors consider the resulting mapping workable and acknowledge potential differences in efficiency. They describe dynamic enlargement of the available operational predicates as a direction under investigation. The idea is that chunks learned for intermediate computations might allow a later rule to state its conditions using those computations.

The treatment of imperfect domain knowledge has several limits. The authors discuss completeness, consistency, tractability, and freedom from errors as conditions whose failures can appear during attempts to solve individual problems. A problem space may be adequate for one case while giving too little information, conflicting information, an unmanageable search, or an erroneous result for another. The authors suggest addressing such failures where they arise, as problems of problem solving. They describe more experience with tractability, drawing on mechanisms such as evaluation, search guidance, and abstraction, and less investigation of the other issues. The mapping identifies a place to address those problems within Soar.

Defeasibility creates a different failure. A defeasible conclusion can change when more knowledge arrives. An explanation may finish successfully under the information available and still yield a rule that gives the wrong answer in another setting. The endtable weight is an example. A known actual weight can override the default weight of 5. A rule that tests only the lower object’s type and the comparison against the default can still match an endtable with a smaller actual weight. In that case the concept description has lost a qualification on the knowledge used in its derivation.

The authors discuss reformulating some domain theories and, in some cases, carrying a default’s qualification into the learned conditions. Soar can use a negated condition to test the absence of an element of a given kind. Such a condition has a different meaning from a predicate asserting an inequality, as the learned integration rule does for the exponent. An absent exception and a known numerical distinction provide different kinds of support for a conclusion. Carrying the former into the rule can be important when the justification depended on an assumption that better information may overturn.

Recovery from overgeneralization remains incomplete in the authors’ account. They identify a situation in which Soar can recover when using an overgeneral chunk fails to satisfy a higher goal. The failure then gives the architecture a problem it can confront. The stated condition leaves open cases in which the mistaken result produces no such detectable failure. The claim is accordingly about an opportunity for recovery within the goal hierarchy, with a broader solution still open.

The authors also leave the combination of explanation-based and similarity-based learning for future work. Their discussion treats explanations for individual problems, the automatic formulation of generalization tasks by subgoals, and the use of contextual knowledge during elaboration. Those mechanisms can bring background information into the conditions for a particular kind of result. They leave open how a learner would combine that information with evidence from similarities among examples.

Limits visible in the demonstrations

The stacking case shows a successful proof through a guided sequence. The authors explain why such guidance need not appear among the chunk’s conditions. The run still leaves separate questions about the ability to find a suitable proof autonomously when many operators compete or when paths fail. The architecture’s backtracing mechanism can distinguish a successful dependency from incidental processing once a result is available. Finding that result can require search knowledge or procedures whose performance is outside what the stacking run measures.

The demonstration also uses a narrow arithmetic implementation. The product production handles multiplication by 1, and individual comparison facts are sufficient for the illustrated calculation. These choices make it possible to trace the relationship between the arithmetic representation and the learned conditions. They leave the cost and behavior of a general arithmetic implementation unmeasured. A larger collection of preexisting facts might produce different costs from a calculation performed when needed. The paper’s correspondence concerns what can be represented as operational and acquired in a rule, with the comparison of total costs left open.

Rule scope can be read directly in the examples. That gives a logical comparison between the coverage of the two stacking conditions and an explanation of the repeated density argument. Evaluation on a collection of fresh instances would address a different question, including how often the distinctions matter in practice and how much computation is saved by using the chunk. The paper supplies neither that collection nor measurements of the gain. The count of distinct cases reached by the learned rules is consequently unknown.

The symbolic integration example establishes one kind of utility. In the demonstration, an operator can receive a favorable evaluation because using it leads to a goal state. That interpretation supports the authors’ comparison of the Soar preference and the EBG usefulness condition. Questions involving the cost of alternative paths, different grades of utility, or integration operators beyond the displayed example would require evidence at those levels. The production’s Best action should be read in terms of the evaluation the system actually performs in the case.

There are also limits to what the paper’s claim about scale can establish. Its evidence for larger applications comes from previous Soar experience, including expert-system work. The mapping makes that experience relevant by identifying chunking as explanation-based learning in an architecture already used on varied tasks. The larger tasks are not rerun here as controlled comparisons of the Soar and reference EBG formulations. Questions about run time, memory use, rule growth, or the frequency of useful chunks at scale remain beyond the rule-level evidence of the two demonstrations.

Finally, the mapping explains why background descriptions can enter a chunk when elaboration places them in working memory and the solution uses them. This is a mechanism for including context, with its success in any task dependent on the available knowledge and the explanation. In the integration example, type information is supplied by productions that already encode the hierarchy. In the stacking example, the theory already supplies the relevant connection between object type and expected weight. The demonstrations concern what the architecture can generalize from that knowledge once it is represented, leaving the acquisition and maintenance of the background theory outside the experiment.

What came after

The evidence for the paper’s influence stops at its own discussion of earlier work and open directions. There are no documented later papers to discuss here. The authors place their comparison alongside previous Soar work on chunking and problem solving, and alongside other formulations of explanation-based learning. Those works establish the setting in which the mapping was proposed.

One question the authors leave open concerns when a system should begin using newly acquired intermediate rules as part of the vocabulary for further learning. In the stacking derivation, the conditions of the final chunk depend on which relationships were available when the subgoal began. If a reusable chunk makes an intermediate result readily available, a later explanation might be stated using that result. The authors describe this as work they were pursuing. Its implication is that the operational conditions for a concept might change as the system acquires useful rules for parts of the computation.

The paper also leaves open how far the mapping extends to other accounts of explanation-based learning. The authors suggest that the alternative framework of DeJong and Mooney could be mapped onto Soar as well. The comparison they carry out uses the unifying framework of Mitchell, Keller, and Kedar-Cabelli. Extending the comparison would help determine which correspondences follow from the general practice of learning through explanation and which depend on the particular starting framework.

The demonstrations give those questions a concrete basis. Soar can acquire a rule for carrying out an operator and a rule for choosing one by explaining the results of different subgoals. The acquired rule depends on the useful facts available at the start, the route taken through the task, and how the example represents the objects and values involved. Those dependencies explain both the paper’s claim that chunking is a form of explanation-based generalization and its conclusion that the two approaches can learn rules of different scope from the same task.

 Institutions

 Fields, topics and concepts

 Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 works

Cite

Cite as Paul S. Rosenbloom and John E. Laird. 1986. Mapping Explanation-Based Generalization onto Soar. AAAI 1986.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{rosenbloom1986mapping,
  title = {{Mapping Explanation-Based Generalization onto Soar}},
  author = {Paul S. Rosenbloom and John E. Laird},
  booktitle = {AAAI 1986},
  year = {1986},
  url = {https://mlanthology.org/aaai/1986/rosenbloom1986aaai-mapping/}
}

References

25 references, 1 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. DeJong, G. Generalizations based on explanations. Proceedings of IJCAI-81,198l. learning: An OpenAlex ↗ · Scholar ↗
  2. DeJong, G., 8 Mooney, R. “Explanation-based alternative view.” Machine learning 7 (1986). In press OpenAlex ↗ · Scholar ↗
  3. Ellman, T. Explanation-based learning in logic circuit design. Proceedings of the Third International Machine Learning Workshop, Skytop, PA, 1985, pp. 35-37. OpenAlex ↗ · Scholar ↗
  4. Hirsh, H. Personal communication. 1986 OpenAlex ↗ · Scholar ↗
  5. Kedar-Cabelli, S. T. Purpose-directed analogy. Proceedings of the Cognitive Science Conference, Irvine, CA, 1985. OpenAlex ↗ · Scholar ↗
  6. Keller, R. M. Learning by re-expressing concepts for efficient recognition. Procedings of AAAI-83, Washington, D.C., 1983, pp. 182-186. OpenAlex ↗ · Scholar ↗
  7. Laird, J. E. Universal Subgoaling. Ph.D. Th., Carnegie-Mellon University, 1983. OpenAlex ↗ · Scholar ↗
  8. Laird, J. E., and Newell, A. A universal weak method: Summary of results. Proceedings of the Eighth IJCAI, 1983. OpenAlex ↗ · Scholar ↗
  9. Laird, J. E., Newell, A., & Rosenbloom, P. S. Soar: An architecture for general intelligence. In preparation
  10. Laird, J. E., Rosenbloom, P. S., & Newell, A. Towards chunking as a general learning mechanism. Proceedings of AAAI-84, Austin, 1984. OpenAlex ↗ · Scholar ↗
  11. Laird, J. E., Rosenbloom, P. S., & Newell, A. “Chunking in Soar: The anatomy of a general learning mechanism.” Machine Learning 1 (1986). OpenAlex ↗ · Scholar ↗
  12. Lebowitz, M. Concept learning in a rich input domain: Generalization-based memory. In Machine Learning: An Artificial Intelligence Approach, Volume II, R. S. Michalski, J. G. Carbonell, & T. M. Mitchell, Eds., Morgan Kaufmann Publishers, Inc., Los Altos, CA, 1986. OpenAlex ↗ · Scholar ↗
  13. Mahadevan, S. Verification-based learning: A generalization strategy for inferring problem-decomposition methods. Proceedings of IJCAI-85, Los Angeles, CA, 1985. OpenAlex ↗ · Scholar ↗
  14. Minton, S. Constraint-based generalization: Learning game-playing plans from single examples. Proceedings of AAAI-84, Austin, 1984, pp. 251-254. OpenAlex ↗ · Scholar ↗
  15. Mitchell, T. M., Keller, R. M., & Kedar-Cabelli, S. T. “Explanation-based generalization: A unifying view.” Machine Learning 7 (1986). OpenAlex ↗ · Scholar ↗
  16. Mitchell, T. M., Mahadevan, S., & Steinberg, L. LEAP: A learning apprentice for VLSI design. Proceedings of IJCAI-85, Los Angeles, CA, 1985. OpenAlex ↗ · Scholar ↗
  17. Mitchell, T. M., Utgoff, P. E., & Banerji, R. Learning by experimentation: Acquiring and refining problem-solving heuristics. In Machine Learning: An Artificial intelligence Approach, R. S. Michalski, J. G. Carbonell, T. M. Mitchell, Eds., Tioga Publishing Co., Palo Alto, CA, 1983, pp. 163-190. OpenAlex ↗ · Scholar ↗
  18. Mooney, R. Generalizing explanations of narratives into schemata. Proceedings of the Third International Machine Learning Workshop, Skytop, PA, 1985, pp. 126-l 28. OpenAlex ↗ · Scholar ↗
  19. Nilsson, N.. Principles of Artificial Intelligence. Tioga, Palo Alto, CA, 1980. OpenAlex ↗ · Scholar ↗
  20. Rosenbloom, P. S., & Newell, A. The chunking of goal hierarchies: A generalized model of practice. In Machine Learning: An Artifibial Intelligence Approach, Volume II, R. S. Michalski, J. G. Carbonell, & T. M. Mitchell, Eds., Morgan Kaufmann Publishers, Inc., Los Altos, CA, 1986. 2 1. Rosenbloom, P.… OpenAlex ↗ · Scholar ↗
  21. Rosenbloom, P. S., Laird, J. E., Newell, A., Golding, A., & Unruh, A. Current research on learning in Soar. Proceedings of the Third International Machine Learning Workshop, Sky-top, PA, 1985, pp. 163-172. OpenAlex ↗ · Scholar ↗
  22. Segre, A. M. Explanation-based manipulator learning. Proceedings of the Third International Machine Learning Workshop, Skytop, PA, 1985, pp. 183-185. OpenAlex ↗ · Scholar ↗
  23. Tadepalli, P. Learning in intractable domains. Proceedings of the Third International Machine Learning Workshop, Skytop, PA, 1985, pp. 202-205. OpenAlex ↗ · Scholar ↗
  24. Utgoff, P. E. Adjusting bias in concept learning. Proceedings of IJCAI-83, Karlsruhe, West Germany, 1983, pp. 447-449. OpenAlex ↗ · Scholar ↗
  25. Winston, P. H., Binford, T. O., Katz, B., & Lowry, M. Learning physical descriptions from functional definitions, examples, and precedents. Proceedings of AAAI-83, Washington, 1983, pp. 433-439. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/rosenbloom-1986-mapping-explanation-based-generalization-onto/