Approximate Equivariance in Reinforcement Learning
Overview
Exactly equivariant agents assume that transforming a state and action by a symmetry leaves the reward and transition dynamics unchanged. This assumption can improve sample efficiency because the agent shares what it learns between symmetric situations. However, exact equivariance can be too restrictive especially in real-world scenarios when the environment contains symmetry-breaking factors, such as asymmetric gravity, differences in actuator response, etc...
The paper proposes using approximate equivariance as a middle ground between exactly equivariant and unconstrained RL agents. The network retains a strong symmetry bias but can learn deviations from it when the data indicates that transformed situations are not identical.
Approximate Equivariance in MDPs
For a group acting on the input space and output space , the equivariance error of a function for a transformation and input is
This measures the difference between transforming the input before applying and applying before transforming its output. An exactly equivariant function has zero equivariance error for every input and every group transformation.
The -stabilizer contains the transformations whose equivariance error is bounded by for all inputs:
The function is approximately -equivariant when
Therefore, every transformation in the group must satisfy the equivariance relation up to a bounded error. This differs from partial equivariance, where only a subset of the group satisfies the bound.
The paper extends this definition to an infinite-horizon discounted MDP . A group acts on both states and actions, mapping to . The MDP is -invariant if its reward and transition functions satisfy
and
for every . The first condition says that symmetric state-action pairs have approximately equal rewards. The second says that their next-state distributions are approximately transformed versions of one another. The distance is an integral probability metric; i.e. a measure of distance between probability distributions.
The main theoretical result shows that approximate symmetry of the MDP produces approximate invariance of its optimal value functions. If rewards are bounded and , then
and
where
Approximately Equivariant Actor-Critic
The main change from exactly equivariant RL is to replace the exactly equivariant group or steerable convolution layers in the encoder, actor, and critic with relaxed group convolutions.
An exact group convolution is defined as
Because the kernel depends only on the relative group element , the same weights are shared across symmetry-related inputs, which enforces exact equivariance. A relaxed group convolution instead uses exactly equivariant kernels and transformation-dependent relaxed weights:
Each kernel retains the equivariant structure, while the weights are allowed to depend on the specific group element . This breaks strict weight sharing and allows the layer to learn different responses for symmetry-related inputs. If the relaxed weights remain equal across group elements, the layer behaves like an exactly equivariant layer; differences between them represent learned symmetry breaking.
The agent is organized as follows:
- the encoder is approximately equivariant and maps the observation to a latent state
- the latent state transforms according to copies of the regular representation of , which permutes its group-indexed channels when the input is transformed
- the policy is approximately equivariant, so transforming the state approximately produces the corresponding transformed action
- the action transformation is specified separately for each environment because different action components can respond differently to rotations or reflections
- the critic is approximately invariant and produces a scalar that should remain approximately unchanged when both the state and action are transformed

Backlinks
Notes that reference this page.
Connections
Direct relationships to this note.