Neural Execution Engines: Learning to Execute Subroutines
원문 초록
A significant effort has been made to train neural networks that replicate algorithmic reasoning, but they often fail to learn the abstract concepts underlying these algorithms. This is evidenced by their inability to generalize to data distributions that are outside of their restricted training sets, namely larger inputs and unseen data. We study these generalization issues at the level of numerical subroutines that comprise common algorithms like sorting, shortest paths, and minimum spanning trees. First, we observe that transformer-based sequence-to-sequence models can learn subroutines like sorting a list of numbers, but their performance rapidly degrades as the length of lists grows beyond those found in the training set. We demonstrate that this is due to attention weights that lose fidelity with longer sequences, particularly when the input numbers are numerically similar. To address the issue, we propose a learned conditional masking mechanism, which enables the model to strongly generalize far outside of its training range with near-perfect accuracy on a variety of algorithms. Second, to generalize to unseen data, we show that encoding numbers with a binary representation leads to embeddings with rich structure once trained on downstream tasks like addition or multiplication. This allows the embedding to handle missing data by faithfully interpolating numbers not seen during training.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
EchoPrompt: Instructing the Model to Rephrase Queries for Improved In-context Learning
Latent Space Representations of Neural Algorithmic Reasoners
Unveiling Transformers with LEGO: a synthetic reasoning task
The CLRS Algorithmic Reasoning Benchmark
Learning to Execute Actions or Ask Clarification Questions
Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptions
토론
이 논문과 연결된 포럼 글이 아직 없습니다.