NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transformation Coding: Simple Objectives for Equivariant Representations

Mehran Shakerinava, Arnab Kumar Mondal, Siamak RavanbakhsharXiv 2022

Abstract

We present a simple non-generative approach to deep representation learning that seeks equivariant deep embedding through simple objectives. In contrast to existing equivariant networks, our transformation coding approach does not constrain the choice of the feed-forward layer or the architecture and allows for an unknown group action on the input space. We introduce several such transformation coding objectives for different Lie groups such as the Euclidean, Orthogonal and the Unitary groups. When using product groups, the representation is decomposed and disentangled. We show that the presence of additional information on different transformations improves disentanglement in transformation coding. We evaluate the representations learnt by transformation coding both qualitatively and quantitatively on downstream tasks, including reinforcement learning.

Introduction

Deep learning models often struggle to capture the underlying geometric structure of data. Ideally, internal representations should be equivariant: if an input undergoes a transformation (like a rotation or translation), the representation should change in a predictable, structured way. Traditionally, achieving this required specialized "Equivariant Neural Networks" with rigid, mathematically complex architectures that are difficult to design and often restricted to linear transformations.

Transformation Coding (TC) offers a simpler, architecture-agnostic alternative. Instead of hard-coding equivariance into the layers, TC uses symmetry-based regularization objectives to force standard neural networks—such as ResNets or MLPs—to organize their latent spaces according to physical laws. This approach shifts the complexity from the model architecture to the objective function, allowing for greater flexibility and ease of use.

Methodology: Equivariance via Symmetry Regularization

The core principle of TC is that "Equivariance is cheap, but actions matter." While almost any injective (one-to-one) function can be technically equivariant to any group of transformations, the resulting latent action is often chaotic and non-linear, making it useless for downstream tasks. TC regularizes the latent space so that transformations correspond to specific, well-behaved geometric groups.

Symmetry Regularization Objectives

The authors introduce loss functions that penalize deviations from desired geometric properties in the latent space:

  • Euclidean Group $E(n)$: This objective forces the model to preserve the Euclidean distance between pairs of points before and after a transformation. If two states are "close" in the real world, their embeddings must remain equally "close" after the same action is applied.
  • Orthogonal and Unitary Groups: These objectives preserve the inner product (dot product) between vectors, maintaining the relative orientation and scale of the representation.
  • Conformal Group: This objective preserves the angles between triplets of points, allowing the model to handle transformations like scaling and inversions while maintaining geometric consistency.
Transformation Coding regularizes the latent space to preserve geometric relationships under transformations.

To prevent the latent space from collapsing into a single point (a common failure mode in representation learning), the authors use a "logarithmic barrier function" to ensure the mapping remains injective. For disentanglement, the latent space is decomposed into independent blocks, each subject to different symmetry losses. This allows the model to separate independent factors of variation, such as an object's position versus its orientation.

Experimental Evaluation

The TC framework was evaluated across a diverse range of environments, including physics simulators (Pendulum, Mountain Car), 3D object datasets (ModelNet40), and complex visual environments (Atari, MuJoCo).

Disentanglement and Topology Recovery

In the "Rotating Chair" task, TC successfully disentangled rotations along three orthogonal axes. As shown in the visualizations, each rotation was mapped to a distinct circular manifold in the latent space, demonstrating that the model correctly identified the cyclic nature of the transformation.

TC disentangles 3D rotations of a chair into independent circular manifolds in the latent space.

Qualitatively, the model recovers the true topology of the underlying state space. For a simple pendulum, the latent space naturally forms a twisted cylinder (resembling a Klein bottle at high speeds), purely as a result of the distance-preserving objective. In ego-motion experiments, the model separated "rotation" (represented as a large ring) from "translation" (represented as smaller local structures) without any prior knowledge of the room's geometry.

Downstream Performance

TC-learned representations significantly improve performance in world modeling and reinforcement learning (RL) tasks:

  • World Modeling: On Atari games like Pong, TC achieved 45.2% Hits@1, significantly outperforming the state-of-the-art Contrastive Structured World Model (C-SWM), which scored 36.5%.
  • Reinforcement Learning: In MuJoCo tasks like InvertedPendulum, agents trained on TC-finetuned representations achieved higher rewards and better sample efficiency. TC reached a score of 950, while the vanilla PPO baseline scored only 500.

Discussion and Future Directions

Transformation Coding demonstrates that architecture-specific constraints are not strictly necessary for learning equivariant representations. A key insight from the study is the power of Active Decomposition: interacting with the environment is significantly more effective for disentangling features than passive observation. When an agent can actively move a specific limb or rotate an object, the model can more easily assign that action to a specific part of the latent code.

However, some limitations remain. The learned geometry is sensitive to the time interval ($\delta t$) between observations; choosing the wrong scale can distort the learned physics. Additionally, the model may ignore small, reward-critical objects if they do not move significantly, as they contribute less to the global symmetry loss. Future research will focus on developing a more universal "recipe" for automatically generating loss functions for arbitrary Lie groups, further expanding the reach of this simple yet powerful framework.

Summary updated

BibTeX
@misc{shakerinava2022transformation,
  author = {Mehran Shakerinava and Arnab Kumar Mondal and Siamak Ravanbakhsh},
  title = {{Transformation Coding: Simple Objectives for Equivariant Representations}},
  year = {2022},
  eprint = {2202.10930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.10930},
}
Figure