Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

When can transformers reason with abstract symbols? (2310.09753v2)

Published 15 Oct 2023 in cs.CL, cs.AI, and cs.LG

Abstract: We investigate the capabilities of transformer models on relational reasoning tasks. In these tasks, models are trained on a set of strings encoding abstract relations, and are then tested out-of-distribution on data that contains symbols that did not appear in the training dataset. We prove that for any relational reasoning task in a large family of tasks, transformers learn the abstract relations and generalize to the test set when trained by gradient descent on sufficiently large quantities of training data. This is in contrast to classical fully-connected networks, which we prove fail to learn to reason. Our results inspire modifications of the transformer architecture that add only two trainable parameters per head, and that we empirically demonstrate improve data efficiency for learning to reason.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Enric Boix-Adsera (22 papers)
  2. Omid Saremi (15 papers)
  3. Emmanuel Abbe (84 papers)
  4. Samy Bengio (75 papers)
  5. Etai Littwin (25 papers)
  6. Joshua Susskind (13 papers)
Citations (7)

Summary

We haven't generated a summary for this paper yet.

Youtube Logo Streamline Icon: https://streamlinehq.com

HackerNews