SandHouse
Pages and contents

Concept Learner 2

I denote the central concept space as Γ.

Properties

There are several properties that the world model should satisfy.

1. Persistence: A concept should retain a stable identity over time. The relations between other concepts is what changes.
2. Reuse: A concept should be able to be reused in different contexts. For example, wood is an invariant among different environments. The usability inherently correlates to a hierarchy. The more a concept is used, the more abstracted it likely is.
3. Compositionality: There should be incentive to treat a scene or object in terms of its compositional structure. However compositional forms should be able to become primitives such as “dog” (which is composed of paws, legs, mouth, etc).
4. Cross Modality: The concept itself should not inherently be visual or linguistic. Vision, language, action, and eventually memory should provide different evidence about the same underlying concept.
5. Dynamical Content: Concepts should not be restricted to static entities. Causal and relational concepts such as forward, left-of, etc. are crucial.
6. Selective Computation: We should allow Γ to grow very large, which will require sparse computation or sub-quadratic attention.

Working Towards Γ

Elements of Γ

γk∈ℝd,Γ is a vector which describes a stable predictive relationship across contexts.

Effect Function

Let zt=E(Xt)be some simple encoding into latent features. Define the effect of an action a as

δ=ϕa(x1,x2,⋯)

Where x1,x2 are placeholder variables to allow for a variety of effect inputs. The definition of the effect function determines what type of equivalence relations the model discovers. In the MiniGrid “DoorKey” environment where the agent is split by a wall with a yellow key, a locked door, and a goal, setting an effect function defined over the local region δtlocal=ϕlocal(zt,zt+1) encourages concepts corresponding to object affordances such as pickupable, openable, or passable . An effect over the entire observation instead captures changes to the broader spatial configuration and can therefore produce place or context concepts.

Predictive Relationship

A predictive relationship is a conditional distribution of the effect given state z and action a.

P(δ∣z,a)

Across a set of interventions (actions) 𝒜, we can define a predictive equivalence class Ck={z:z∼𝒜zk} where

zi∼𝒜zj⟺𝔼a∼𝒜[D(P(δ∣zi,a),P(δ∣zj,a))]<ϵ

This describes two states zi,zj as interchangeable given the outcome of their effect functions under the same action a.

Predictive Functions

A concept should ultimately be defined by the predictive relationship it implements. We can therefore associate each γk with a function

fγk(a)=Pθ(δ∣γk,a)

Two concepts are behaviorally equivalent when their functions are equivalent

dΓ(γi,γj)=𝔼a∼𝒜[D(Pθ(δ∣γi,a),Pθ(δ∣γj,a))]

This suggests that the embedding γk is a persistent parameterization of a predictive function rather than the concept definition by itself. A practical parameterization is

Fθ(γk,a)+bk,a→(μk,a,Σk,a)

where Fθ contains shared structure while bk,a gives each concept a small concept-specific predictive component. The shared function encourages reuse, while the concept-specific component allows a new concept to represent a genuinely new predictive model.

An optimal element of the concept space should have a predictive function Pθ that predicts all effects of the action trajectories for the invariant that it represents.

γk∗=arg⁡minγ⁡𝔼z∼Ck𝔼a[D(P(δ∣z,a)∥Pθ(δ∣γ,a))]

Persistent Identity

We can define a gate qψ(k∣z) which is a neural network or MLP that predicts the activations of each γk∈Γ. The gate qψ answers a slightly different question for every intervention a. A persistent concept, however, should describe the state across interventions. We define an action-consensus activation

qΓ(k∣z)∝exp⁡(𝔼a∼𝒜[log⁡qψ(k∣z,a)])

For a finite intervention set this becomes

qΓ(k∣z)∝exp⁡(1|𝒜|∑a∈𝒜log⁡qψ(k∣z,a))

Then

γ(z)=arg⁡maxk⁡qΓ(k∣z)

can be interpreted as the persistent concept instantiated by z , while qψ(k∣z,a) describes how evidence for that concept changes under a particular intervention. Identity is determined by behavior across a set of possible actions rather than by the single action that happened to be sampled.

Concept Birth

A fixed K assumes that the correct number of concepts is known beforehand. Instead, Γ should be able to grow when existing concepts repeatedly fail to represent a coherent predictive relationship. For transition i , define predictive surprise

si=−log⁡[∑kqψ(k∣zi,ai)Pθ(δi∣γk,ai)]

High surprise alone is insufficient because an inherently uncertain transition may remain surprising forever. We instead define excess surprise relative to the uncertainty predicted by the model

s~i=si−∑kqψ(k∣zi,ai)H(Pθ(δ∣γk,ai))

A transition therefore becomes interesting when the observed outcome is more surprising than the model believes it should have been. Concept birth should occur only when a collection of high-excess-surprise
transitions forms a reusable predictive mode. Suppose 𝒞 is a candidate subset associated with an existing concept and intervention. Fit a candidate predictor on one subset 𝒞fit and evaluate it on an independent subset𝒞test. Define the held-out predictive gain

g(𝒞)=𝔼i∼𝒞test[log⁡Pnew(δi∣ai)−log⁡Pold(δi∣zi,ai)]

A new concept is justified when g(𝒞)>0 . and the improvement persists on unseen members of the candidate mode. More generally, concept creation can be treated as an MDL-style tradeoff

Δbirth=|𝒞|g(𝒞)−λcomplexityC(γnew)

Concept birth occurs when Δbirth>0. The factor |𝒞| is important: a moderately useful relationship that
applies broadly may be more deserving of a concept than an extremely precise relationship that occurs only in a tiny combinatorial slice of experience.

Concept Merge and Death

Birth should have an inverse operation. If two concepts implement approximately the same predictive function, dΓ(γi,γj)<ϵmerge, then they can be merged into their average.

Similarly, we can define the long run usage of a concept k as

uk=𝔼z[qΓ(k∣z)]

If the moving average u‾k<ϵu for a sufficiently long period T, the concept can be removed or forgotten. The size of the concept space becomes dynamic; Birth discovers missing predictive distinctions, merge removes redundant distinctions, and death removes unused structure.

Model Prediction

The model predicts

P(δt∣zt,at)=∑k=1Kqψ(k∣zt,at)Pθ(δt∣γk,at)

with a prediction loss of

ℒpred=−𝔼ilog⁡[∑k∈Γqψ(k∣zi,ai)Pθ(δi∣γk,ai)]

We want to minimize prediction loss while incentivizing the model to maintain a simpler ontology rather than an arbitrarily large concept space.

ℒ=ℒpred+λΓC(Γ)

Where in the simple case, C(Γ)=|Γ| .

Sources of Prediction Error

There are different sources of the Γ model prediction error. When there is a missing concept in the Γ space, the required information is already present in the representation, but the current Γ does not contain the required predictive mode. Concept birth should reduce this error.

When there is a missing representation, the predictive relationship cannot be expressed from the information currently available to the gate qψ. For example, an effect may require temporal or spatial context

q(k∣zt,at)⟶q(k∣zt,Ht,at)

In this case adding more concepts does not solve the underlying problem, the model requires some form of representation growth.

Some outcomes may genuinely remain stochastic even with the correct representation and concepts. In this case the correct response is not concept growth but uncertainty calibration, increasing Σk,a. This gives prediction error a second role: it can indicate not only that a concept is missing, but that the current model class itself is insufficient.

Consequence of Effect

Pure perceptual effects do not necessarily distinguish states that matter differently for control. Reward can therefore be incorporated as another effect channel.

δt=[δtZ,αrrt,αddt,…]

where dt can represent termination or another consequence signal. Predictive equivalence then means equivalence not merely in perceptual change, but in the consequences relevant to the agent. This provides a natural route from perceptual concepts toward control-relevant concepts.

Summary

A concept γk can now be interpreted as a persistent predictive primitive characterized by

γk⟷fγk(a)=P(δ∣γk,a)

The effect definition ϕ determines which regularities are visible, experience supplies evidence for those regularities, and birth/merge/death allow the ontology itself to adapt. The resulting loop is approximately

(zt,at,zt+1,rt)→ϕδt→prediction errorΓ→birth / merge / deathΓ′

while the persistent concepts in Γ provide reusable predictive functions for future states and tasks.