The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalization
Csordás, Róbert, Irie, Kazuki, Schmidhuber, Jürgen
–arXiv.org Artificial Intelligence
Despite successes across a broad range of applications, Transformers have limited success in systematic generalization. The situation is especially frustrating in the case of algorithmic tasks, where they often fail to find intuitive solutions that route relevant information to the right node/operation at the right time in the grid represented by Transformer columns. To facilitate the learning of useful control flow, we propose two modifications to the Transformer architecture, copy gate and geometric attention. Our novel Neural Data Router (NDR) achieves 100% length generalization accuracy on the classic compositional table lookup task, as well as near-perfect accuracy on the simple arithmetic task and a new variant of ListOps testing for generalization across computational depth. NDR's attention and gating patterns tend to be interpretable as an intuitive form of neural routing. Our code is public.
arXiv.org Artificial Intelligence
Oct-14-2021
- Country:
- South America > Chile
- Oceania > Australia
- New South Wales > Sydney (0.04)
- North America
- Dominican Republic (0.04)
- United States
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- California > Los Angeles County
- Long Beach (0.04)
- Arizona > Maricopa County
- Phoenix (0.04)
- Minnesota > Hennepin County
- Canada > Quebec
- Montreal (0.04)
- Europe
- Switzerland (0.04)
- France (0.04)
- Sweden > Stockholm
- Stockholm (0.04)
- Italy > Tuscany
- Florence (0.04)
- Germany > North Rhine-Westphalia
- Cologne Region > Aachen (0.04)
- Austria > Styria
- Graz (0.04)
- Asia
- Middle East > Saudi Arabia
- Mecca Province > Thuwal (0.04)
- China
- Hong Kong (0.04)
- Guangxi Province > Nanning (0.04)
- Middle East > Saudi Arabia
- Genre:
- Research Report (0.40)
- Technology: