Throughout this series, we've discussed "the state"
This is not a philosophical question—it's a precise technical question with important implications:
- What object encodes the agent's knowledge?
- What changes when the agent learns?
- What stays fixed during inference?
This chapter provides definitive answers by clarifying:
- The agent's state = particle memory = reinforcement field
- Belief evolution = MemoryUpdate as state transition operator
- The role of weights = implicit GP-derived coefficients, not learned parameters
- Three distinct operations = fixing state, querying state, evolving state
This resolves a common confusion: mixing up the state (what the agent knows) with observations (what the agent queries).
In traditional RL, "state" usually means environment state
But in GRL, we have multiple candidates:
- Environment state
$s$ ? - Augmented point
$z = (s, a)$ ? - Field value
$Q^+(s, a)$ ? - Action projection
$Q^+(s, \cdot)$ ? - The entire field
$Q^+$ ?
Which one is "the agent's state"?
The agent's state is the reinforcement field:
Why the entire field?
Because this object completely specifies the agent's beliefs about value across all state-action combinations.
Equivalent representation: Particle memory
Key equation:
These are two views of the same object:
-
$\Omega$ = discrete representation (particles) -
$Q^+$ = continuous representation (field)
Q: Why isn't
A: Because
Analogy to QM:
| Quantum Mechanics | GRL |
|---|---|
| State: |
State: |
| Wavefunction: |
Field value: |
| Position representation | Augmented space representation |
The wavefunction
Same in GRL:
Critical insight:
What the particles encode:
| Component | Meaning | Type |
|---|---|---|
| Where experience occurred | Position in |
|
| Evidence strength at |
Real number (positive or negative) | |
| Kernel section | Basis function in |
From particles to field:
This representation is complete! You can compute
Question: "Should we store
Answer: No, it's redundant!
So the particle representation is:
NOT:
What
- Original paper: Fitness contribution
- Modern framing: Energy contribution (negative fitness: $E(z_i) = -w_i k(z_i, z_i)$)
- Mathematically: RKHS expansion coefficient
Now that we know the state is
At time
This fixes the belief state:
Meaning: "Conditional on the current memory, the agent's knowledge is
This is NOT learning—it's just stating what the current belief is.
Given fixed
or action wavefunction (from Chapter 4):
or concept activation (from Chapter 5):
Key point: These operations do not change
They are:
- Queries
- Projections
- Evaluations
- Inferences
Analogy: Computing
This is pure inference, no learning.
MemoryUpdate transforms the belief state:
or equivalently:
What can change:
-
Add particles:
$\Omega_{t+1} = \Omega_t \cup {(z_{new}, w_{new})}$ -
Update weights:
$w_i^{(t+1)} = w_i^{(t)} + \Delta w_i$ - Merge particles: Combine nearby particles into one
- Prune particles: Remove low-influence particles
Result: New belief state
This IS learning!
| Operation | Changes |
Purpose |
|---|---|---|
| A. Fix state | No (just specify current state) | Define what agent knows |
| B. Query state | No (projection/evaluation) | Action selection, concept activation |
| C. Evolve state | Yes (belief update) | Learning from experience |
Critical distinction:
Between MemoryUpdate events,
$Q^+$ is fixed. During MemoryUpdate,$Q^+$ evolves.
This gives GRL a natural separation of time scales:
MemoryUpdate events:
State transitions:
This is learning.
Frequency: Every episode, or every
Between
Agent performs many queries:
- Evaluate
$Q^+_t(s_1, a)$ for action selection at$s_1$ - Evaluate
$Q^+_t(s_2, a)$ for action selection at$s_2$ - Compute concept activation
$A_{k,t}$ - Sample from policy
$\pi_t(a|s) \propto \exp(\beta Q^+_t(s, a))$
This is inference.
Frequency: Every step, or multiple times per step
Separation of concerns:
- Learning: Happens via MemoryUpdate (slow)
- Acting: Happens via inference (fast)
- No gradient descent mixing learning and inference
Computational efficiency:
- Don't recompute entire field for every action
- Cache kernel evaluations between updates
- Amortize expensive operations (merging, pruning)
Theoretical clarity:
- Clean POMDP interpretation (belief state =
$Q^+$ ) - Well-defined state transition operator (
$\mathcal{U}$ ) - No ambiguity about "what changed"
Misconception: "The weights
Reality: The weights are implicit coefficients determined by the GP posterior, not explicit optimization variables.
In Gaussian Process regression:
Given data
where:
$\mathbf{k}(z) = [k(z_1, z), \ldots, k(z_N, z)]^T$ $\mathbf{K}_{ij} = k(z_i, z_j)$ $\mathbf{y} = [y_1, \ldots, y_N]^T$
This can be written as:
where
The weights
Similar structure:
The weights arise from:
-
Experience accumulation: Each
$(z_i, r_i)$ contributes - Kernel propagation: Overlap spreads influence
- TD updates: Temporal difference signals adjust weights
They are NOT:
- Gradient descent parameters
- Explicitly optimized
- Independent of the kernel structure
They ARE:
- State variables (part of the belief state)
- Functionally determined by experience and kernel
- Evidence coefficients (strength of belief at each particle)
The representer theorem says:
In RKHS, any function minimizing a regularized loss can be written as a finite sum over data points:
In GRL:
- Data points = experience particles
$z_i$ - Coefficients = weights
$w_i$ - Function = reinforcement field
$Q^+$
So the particle representation is not arbitrary—it's the optimal form given the RKHS structure!
MemoryUpdate is an operator:
In particle coordinates:
From Tutorial Chapter 6, MemoryUpdate performs:
Step 1: Particle instantiation
Given experience
where
Step 2: Kernel association
Compute similarity to existing particles:
Step 3: Weight propagation (optional)
For particles with high association:
This is "experience association"—evidence spreads through kernel geometry!
Step 4: Memory integration
Step 5: Structural consolidation
-
Merge: Combine particles with
$k(z_i, z_j) > \tau_{merge}$ -
Prune: Remove particles with
$|w_i| < \tau_{prune}$ -
Decay:
$w_i^{(t+1)} = \gamma w_i^{(t)}$ for all$i$
Result:
This is a discrete, explicit state transition!
MemoryUpdate can be viewed as:
GP posterior update expressed in particle (inducing point) coordinates
Standard GP update:
- Observe new data:
$(z_{new}, y_{new})$ - Update posterior: $p(f | \mathcal{D}{t+1}) \propto p(y{new} | f, z_{new}) \cdot p(f | \mathcal{D}_t)$
GRL equivalent:
- Observe new experience:
$(z_{new}, r_{new})$ - Update particle memory:
$\Omega_{t+1}$ (via MemoryUpdate) - Resulting field:
$Q^+_{t+1}$
Key difference: GRL also includes:
- Weight propagation (kernel association)
- Structural consolidation (merge/prune)
These are not standard GP operations, but natural extensions for lifelong learning!
Section IV-A describes "experience association"—new experience affects nearby particles through kernel overlap.
Formalizing experience association:
Experience association is the weight propagation step in MemoryUpdate:
where:
In words:
- New evidence at
$z_{new}$ with strength$w_{new}$ - Propagates to associated particles
$z_i$ (where$a_i = k(z_{new}, z_i) > \varepsilon$ ) - Strength of propagation:
$\lambda \cdot a_i \cdot w_{new}$
Standard GP: Each data point contributes independently
where
GRL with experience association: Data points influence each other's weights
This is a form of:
- Soft credit assignment (not just local TD error)
- Geometric belief propagation (through kernel metric)
- Non-local update (affects multiple particles simultaneously)
This is similar to:
- Kernel mean embedding updates
- Belief propagation in continuous spaces
- Kernel density estimation with adaptive weights
But GRL's version is unique because:
- Weights can be positive or negative (not just probabilities)
- Propagation is kernel-weighted (not uniform or discrete)
- Updates are compositional (new evidence builds on old)
In quantum mechanics:
State:
Evolution: Unitary operators (between measurements)
Measurement: Projects onto observable eigenspace
State "fixed": Between measurements
In GRL:
State:
Evolution: MemoryUpdate operator (between inference queries)
Measurement: Projects onto query subspaces
State "fixed": Between MemoryUpdate events
| Aspect | Quantum Mechanics | GRL |
|---|---|---|
| State space | Hilbert space |
RKHS |
| State vector |
|
|
| Basis | ||
| Coordinate rep | ||
| Evolution | Hamiltonian |
MemoryUpdate |
| Measurement | Observable |
Projection |
| Time scales | Between measurements: fixed | Between updates: fixed |
This is not poetry—it's the same mathematical structure!
Representation choice:
Store particles, not the full field:
class BeliefState:
def __init__(self):
self.particles = [] # List of (z_i, w_i)
def query(self, z_query):
"""Compute Q^+(z_query) from particles"""
return sum(w_i * kernel(z_i, z_query)
for z_i, w_i in self.particles)
def update(self, experience):
"""MemoryUpdate: evolve belief state"""
z_new, r_new = experience
w_new = r_new # or more complex mapping
# Particle instantiation
self.particles.append((z_new, w_new))
# Experience association (weight propagation)
for i, (z_i, w_i) in enumerate(self.particles[:-1]):
a_i = kernel(z_new, z_i)
if a_i > epsilon:
self.particles[i] = (z_i, w_i + lambda_prop * a_i * w_new)
# Structural consolidation
self.merge_particles()
self.prune_particles()Between MemoryUpdate:
- Cache kernel evaluations
- Precompute Gram matrix if needed
- Use sparse representations for large particle sets
During MemoryUpdate:
- Only update associated particles (threshold
$\varepsilon$ ) - Merge periodically, not every step
- Use KD-trees for fast nearest-neighbor finding
Visualize belief evolution:
# Track field value at specific points over time
history = []
for t in range(T):
state_t = agent.belief_state.query(z_test)
history.append(state_t)
# Agent acts, observes, learns
experience = agent.interact(env)
agent.belief_state.update(experience)
# Plot belief evolution
plt.plot(history)
plt.xlabel('Time (MemoryUpdate events)')
plt.ylabel('Q^+(z_test)')
plt.title('Belief Evolution at Test Point')-
The Agent's State
- State = reinforcement field
$Q^+ \in \mathcal{H}_k$ - Equivalently: particle memory
$\Omega = {(z_i, w_i)}$ - Complete representation: particles determine field
- State = reinforcement field
-
Three Operations
- Fix state: Specify current belief (Operation A)
- Query state: Compute projections/evaluations (Operation B)
- Evolve state: MemoryUpdate (Operation C)
-
Two Time Scales
- Slow: Learning via MemoryUpdate ($Q^+t \to Q^+{t+1}$)
-
Fast: Inference via queries (
$Q^+_t(s, a)$ , fixed$Q^+_t$ )
-
Weights Are Implicit
- Not learned parameters
- GP-derived coefficients
- State variables, not optimization variables
-
MemoryUpdate as Operator
- Belief state transition: $\mathcal{U}: Q^+t \mapsto Q^+{t+1}$
- Includes: instantiation, association, consolidation
- Experience association = weight propagation
-
QM Parallel
- Same structure: state vector in Hilbert space
- Evolution via operators
- Fixed between update/measurement events
State specification:
Query (inference):
Evolution (learning):
Experience association:
For theory:
- Rigorous definition of "the state"
- Clean separation of learning and inference
- Well-defined belief evolution operator
- Precise QM parallel
For implementation:
- What to store (particles)
- What to compute (queries)
- When to update (MemoryUpdate events)
- How to optimize (caching, sparse ops)
For Part II (Section V):
- Concept activation operates on fixed
$Q^+$ - Concept evolution tracks
$A_k(t)$ over MemoryUpdate events - Clean distinction between concept inference and concept learning
- Chapter 2: RKHS Basis and Amplitudes
- Chapter 4: Action and State Projections
- Chapter 5: Concept Subspaces
- Tutorial Chapter 5: Particle Memory
- Tutorial Chapter 6: MemoryUpdate Algorithm
Gaussian Processes:
- Rasmussen & Williams (2006). Gaussian Processes for Machine Learning. MIT Press.
- Qui & Candela (2005). "Sparse Gaussian Processes using Pseudo-inputs." NIPS.
Belief-State RL:
- Kaelbling et al. (1998). "Planning and Acting in Partially Observable Stochastic Domains."
- Ross et al. (2008). "Online Planning Algorithms for POMDPs."
Kernel Methods:
- Schölkopf & Smola (2002). Learning with Kernels. MIT Press.
- Berlinet & Thomas-Agnan (2004). Reproducing Kernel Hilbert Spaces in Probability and Statistics.
Last Updated: January 14, 2026