Enhancing the Transformer with Explicit Relational Encoding for Math Problem Solving

By Imanol Schlag, Paul Smolensky, Roland Fernandez, Nebojsa Jojic, J. Urgen Schmidhuber, Jianfeng Gao. 2019

59 citations recorded by the source corpus.

We incorporate Tensor-Product Representations within the Transformer in order to better support the explicit representation of relation structure. Our Tensor-Product Transformer (TP-Transformer) sets a new state of the art on the recently-introduced Mathematics Dataset containing 56 categories of free-form math word-problems. The essential component of the model is a novel attention mechanism, called TP-Attention, which explicitly encodes the relations between each Transformer cell and the other cells from which values have been retrieved by attention. TP-Attention goes beyond linear combination of retrieved values, strengthening representation-building and resolving ambiguities introduced by multiple layers of standard attention. The TP-Transformer's attention maps give better insights into how it is capable of solving the Mathematics Dataset's challenging problems. Pretrained models and code will be made available after publication.

Subfields: Artificial Intelligence, Computer Science Applications, Developmental and Educational Psychology, Natural Language Processing, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Luke S. Zettlemoyer
  3. Quoc V. Le
  4. Mohit Bansal
  5. Percy Liang
  6. Yejin Choi
  7. Sergey Levine
  8. Yoshua Bengio

In Computer Science Applications

  1. Rodrigo Nogueira
  2. Gary F. Marcus
  3. Yuhuai Wu

In Developmental and Educational Psychology

  1. Roger Baker Grosse
  2. Jianfeng Gao
  3. Gary F. Marcus
  4. Xiaodong Liu
  5. Jimmy Ba
  6. John Schulman
  7. Sergey Levine

In Natural Language Processing

  1. Jianfeng Gao
  2. Weizhu Chen
  3. Xiaodong Liu
  4. Pengcheng He
  5. Yuhuai Wu
  6. Markus Norman Rabe
  7. Wenda Li
  8. Yejin Choi

In Model Architectures

  1. Roger Baker Grosse
  2. Alec Radford
  3. Jianfeng Gao
  4. Prafulla Dhariwal
  5. Weizhu Chen
  6. John Schulman
  7. Jimmy Ba
  8. Tom B. Brown

Citations in the corpus