Skip to main content
QUICK REVIEW

[Paper Review] Learning to Reason with Third-Order Tensor Products

Imanol Schlag, Jürgen Schmidhuber|arXiv (Cornell University)|Nov 29, 2018
Topic ModelingComputer Science29 citations
TL;DR

This paper proposes an RNN-TPR architecture that learns combinatorial, symbolic-like representations from natural language using third-order tensor product representations (TPRs), enabling systematic generalization in reasoning tasks. Trained end-to-end via backpropagation, it achieves state-of-the-art performance on bAbI tasks, especially under systematic distributional shift, outperforming prior models in both single-task and multi-task settings.

ABSTRACT

We combine Recurrent Neural Networks with Tensor Product Representations to learn combinatorial representations of sequential data. This improves symbolic interpretation and systematic generalisation. Our architecture is trained end-to-end through gradient descent on a variety of simple natural language reasoning tasks, significantly outperforming the latest state-of-the-art models in single-task and all-tasks settings. We also augment a subset of the data such that training and test data exhibit large systematic differences and show that our approach generalises better than the previous state-of-the-art.

Motivation & Objective

  • To improve systematic generalization in neural networks for natural language reasoning (NLR), where standard RNNs fail under distributional shift between training and test data.
  • To enable end-to-end learning of symbolic-like, combinatorial representations from raw sequential data using differentiable tensor product representations (TPRs).
  • To overcome the limitations of standard RNNs in extrapolating rules beyond seen examples by disentangling entities and relations through TPRs.
  • To demonstrate that TPR-enhanced RNNs can generalize better than prior state-of-the-art models when training and test data exhibit systematic differences.
  • To explore the interpretability and data efficiency of learned distributed representations in a neuro-symbolic framework.

Proposed method

  • The model combines a recurrent neural network (RNN) with third-order tensor product representations (TPRs) to embed symbolic structures—such as entity-relation bindings—into a continuous vector space.
  • Each sentence is decomposed into filler (entity) and role (relation) components, which are encoded as vectors in separate vector spaces.
  • The TPR representation is formed via the tensor product of filler and role vectors, creating a superposition that encodes bindings like 'Mary is a person' or 'Daniel holds milk'.
  • The system uses differentiable unbinding operations to retrieve specific components (e.g., identify who is holding what) through inner products with unbinding vectors.
  • The entire architecture is trained end-to-end via backpropagation through time, with gradients computed using RTRL-style computation to handle the complex, time-varying variables in the TPR mechanism.
  • The architecture is inspired by Fast Weight memories, enabling dynamic, attentional control over memory access and enhancing memory capacity and reasoning capability.

Experimental results

Research questions

  • RQ1Can a differentiable, end-to-end trainable RNN-TPR model learn combinatorial representations that support systematic generalization in natural language reasoning?
  • RQ2How does the TPR-based architecture perform under systematic distributional shift, where test examples involve unseen entity-task combinations?
  • RQ3To what extent are the learned representations interpretable and disentangled, allowing for rule-like reasoning beyond training data?
  • RQ4Does the integration of TPRs into RNNs improve performance on benchmark NLR tasks such as bAbI compared to prior state-of-the-art models?
  • RQ5What is the impact of architectural design choices—such as third-order TPRs and unbinding mechanisms—on model stability and learning efficiency?

Key findings

  • The proposed RNN-TPR model achieves state-of-the-art performance on the bAbI benchmark, outperforming previous SOTA models in both single-task and all-tasks evaluation settings.
  • On tasks with systematic distributional shift—where test data includes entity-task pairs not seen during training—the model generalizes significantly better than prior models, indicating robust rule-like extrapolation.
  • The model maintains high accuracy (over 90% on average) on unseen entity-task combinations, demonstrating strong systematic generalization due to disentangled entity and relation representations.
  • Analysis of the learned representations reveals that TPRs produce interpretable, combinatorial structures that support modular reasoning and data efficiency.
  • The model shows improved stability and performance even when training data excludes certain entity-task combinations, confirming that it learns generalizable symbolic patterns rather than memorizing specific examples.
  • Despite higher memory and computational costs due to the TPR mechanism, the model's performance gains and interpretability justify its use for combinatorial reasoning tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.