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

Soft Tensor Product Representations for Fully Continuous, Compositional Visual Representations

Bethia Sun, Maurice Pagnucco, Yang Song · DOI

Introduction

Researchers from UNSW Sydney have introduced Soft Tensor Product Representations (Soft TPRs), a novel approach for learning compositional visual representations. In the quest for human-like intelligence, neural networks should ideally understand the world compositionally—recognizing that an image of a "red cube" is composed of independent factors like "red" and "cube."

Traditional disentanglement methods typically use a "localist" approach, assigning each factor to a specific "slot" or subset of dimensions in a latent vector. However, this approach is often at odds with the distributed nature of deep learning, restricting gradient flow and making models fragile. Soft TPRs address this by interweaving information across the entire representation, leading to significant gains in disentanglement and learning efficiency.

The Soft TPR Architecture

The proposed framework evolves Paul Smolensky’s Tensor Product Representation (TPR) by relaxing its rigid algebraic structure into a continuous, "soft" space. This allows the model to handle the inherent noise and complexity of real-world visual data while maintaining a structured underlying logic.

The Soft TPR Autoencoder architecture, featuring unbinding, quantisation, and construction modules within a specialized TPR Decoder.

The Soft TPR Autoencoder consists of a standard encoder that produces a "Soft TPR candidate" ($z$). This candidate is processed by a specialized TPR Decoder through three primary stages:

  1. Unbinding: Extracting "soft" versions of factors using role-embedding matrices.
  2. Quantisation: Snapping these soft factors to a learned dictionary of "explicit" fillers using Vector Quantisation (VQ) techniques.
  3. Construction: Rebuilding a mathematically precise TPR from these components to be used by the final decoder.

Distributed vs. Localist Representations

A key insight of this work is that distributed representations are fundamentally better for gradient-based optimization. In a localist model, information is confined to narrow slots. In contrast, Soft TPRs represent factors as overlapping "waves" across all dimensions.

Comparison of localist (slots) vs. distributed (waves) representations and the continuous manifold of Soft TPRs.

This distributed nature allows gradients to propagate globally, leading to smoother and faster optimization. Furthermore, Soft TPRs support "quasi-compositionality," allowing the model to represent structures that are mostly, but not perfectly, decomposable—a common trait in real-world data. The model maintains a "Soft" version for flexible learning and a "Quantised" version for symbolic-like reasoning, providing the best of both worlds.

Experimental Results

The framework was evaluated on standard benchmarks including Cars3D, Shapes3D, and MPI3D. The results demonstrate a significant leap in performance:

  • State-of-the-Art Disentanglement: Soft TPRs achieved a 74% improvement in DCI scores on the challenging MPI3D dataset compared to baselines like Beta-VAE and Ada-GVAE.
  • Extreme Sample Efficiency: In low-data regimes (e.g., 100 training examples), the model showed a 93% improvement over traditional methods, learning underlying structures far more rapidly.
  • Rapid Convergence: Structured representations begin to form in as few as 100 iterations, whereas baseline models often require thousands to reach the same level of understanding.

Conclusion

Soft TPRs bridge the gap between symbolic logic and connectionist learning. While the current model utilizes weak supervision (match-pairing), it sets the stage for more robust, interpretable, and efficient AI. Future work aims to explore fully unsupervised learning and hierarchical Soft TPRs to represent complex scenes with nested object-part relationships.

Summary updated

BibTeX
@inproceedings{sun2024soft,
  author = {Bethia Sun and Maurice Pagnucco and Yang Song},
  title = {{Soft Tensor Product Representations for Fully Continuous, Compositional Visual Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=oEVsxVdush},
}
Figure