2021

Investigating the Limitations of Transformers with Simple Arithmetic Tasks

Nogueira, Rodrigo, Jiang, Zhiying, Lin, Jimmy

Understand

The ability to perform arithmetic tasks is a remarkable trait of human intelligence and might form a critical component of more complex reasoning tasks.

  • In this work, we investigate if the surface form of a number has any influence on how sequence-to-sequence language models learn simple arithmetic tasks such as addition and subtraction across a wide range of values.
  • We find that how a number is represented in its surface form has a strong influence on the model's accuracy.
  • In particular, the model fails to learn addition of five-digit numbers when using subwords (e.g., "32"), and it struggles to learn with character-level representations (e.g., "3 2").

Reading the bibliography…