TensorX
返回文献探索

Paper · arXiv 2406.09308

Transformers meet Neural Algorithmic Reasoners

Wilfried Bounsi, Borja Ibarz, Andrew Dudzik, Jessica B. Hamrick, Larisa Markeeva, Alex Vitvitskyi, Razvan Pascanu, Petar Veličković

44 upvotesJune 13, 2024arXiv 预印本
AI 摘要

A novel TransNAR model combines Transformer-based language understanding with graph neural network solvers to enhance algorithmic reasoning.

Transformersnatural language understandinggraph neural networkneural algorithmic reasonersembeddingscross-attentionTransNARCLRS-TextCLRS-30 benchmarkalgorithmic reasoning

Abstract

Transformers have revolutionized machine learning with their simple yet effective architecture. Pre-training Transformers on massive text datasets from the Internet has led to unmatched generalization for natural language understanding (NLU) tasks. However, such language models remain fragile when tasked with algorithmic forms of reasoning, where computations must be precise and robust. To address this limitation, we propose a novel approach that combines the Transformer's language understanding with the robustness of graph neural network (GNN)-based neural algorithmic reasoners (NARs). Such NARs proved effective as generic solvers for algorithmic tasks, when specified in graph form. To make their embeddings accessible to a Transformer, we propose a hybrid architecture with a two-phase training procedure, allowing the tokens in the language model to cross-attend to the node embeddings from the NAR. We evaluate our resulting TransNAR model on CLRS-Text, the text-based version of the CLRS-30 benchmark, and demonstrate significant gains over Transformer-only models for algorithmic reasoning, both in and out of distribution.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号