Symmetry Learning for Function Approximation in Reinforcement Learning
Overview
The paper proposes a framework for discovering symmetries from an agent's experience and using them to improve the sample efficiency of reinforcement learning with function approximation. A symmetry maps a state-action pair to another pair while preserving rewards and transition behavior. Consequently, symmetric pairs have the same role in decision making and should have the same optimal action value.
The method does not learn an explicit transformation such as a reflection or rotation. Instead, it identifies individual state-action pairs that appear equivalent because they generate similar future reward sequences. These estimated pairs are then incorporated into Q-learning through an auxiliary loss that encourages their predicted Q-values to agree. The framework therefore consists of two components: detecting candidate symmetries from reward histories and using the detected pairs as a soft prior when training the Q-function.
Methodology
Symmetry Detection
The main assumption is that symmetric state-action pairs generate the same distribution over future reward sequences when followed by corresponding policy behavior. For each state-action pair and sequence length , the method records
where is a reward sequence observed after beginning from and is the number of times that sequence was observed.
The total number of reward trails of length observed after is
For two state-action pairs and , the intersection of their reward-trail collections is defined as
where and are the occurrence counts of reward sequence for and , respectively. Therefore,
The similarity between the two state-action pairs is calculated as
The numerator measures the overlap between the reward-trail counts of the two pairs over sequence lengths from to . The denominator normalizes this overlap according to the total number of trails observed from each pair.
Pairs whose similarity exceeds a threshold are treated as symmetric:
The paper proves a completeness result. If and are equivalent under a true symmetry, then under the assumptions of the theorem,
This establishes that true symmetric pairs can eventually be detected, but it does not establish the converse. The issue is that unrelated pairs can also receive a high similarity score if they happen to generate the same reward sequences. This is especially true for sparse rewards, where a reward sequence of zeros is experienced by many unrelated state-actions.
Potential-based reward shaping is used to make the reward histories more informative:
where the shaping term is
Symmetry Inclusion Priors and Learning
After identifying candidate symmetric pairs, the goal is to make the Q-function assign them identical values:
The ordinary temporal-difference loss is
The paper introduces a symmetry loss
The complete training objective is
where controls the strength of the symmetry prior.
Limitations
- The detector compares reward sequences using exact equality. It is therefore most suitable for deterministic or stochastic rewards with a discrete set of values. Independently sampled continuous rewards will almost never match exactly without quantization or other measures.
- Reward trails depend on the policy used after the initial state-action pair. The theoretical argument relies on corresponding behavior in symmetric regions, while an arbitrary policy early in training may generate different trails from genuinely symmetric pairs.
- The method stores and compares histories for individual state-action pairs. This works for small discrete spaces, but is impractical for large and continuous spaces.
Backlinks
Notes that reference this page.
Connections
Direct relationships to this note.