Latent Space Representations of Neural Algorithmic Reasoners

Vladimir V. Mirjanić, Razvan Pascanu, Petar Veličković
7/17/2023
cs.LGstat.ML

Official code: mirjanic/nar-latent-spaces (6 stars, Apache-2.0, last commit 2023-09-12).

Abstract

Neural Algorithmic Reasoning (NAR) is a research area focused on designing neural architectures that can reliably capture classical computation, usually by learning to execute algorithms. A typical approach is to rely on Graph Neural Network (GNN) architectures, which encode inputs in high-dimensional latent spaces that are repeatedly transformed during the execution of the algorithm. In this work we perform a detailed analysis of the structure of the latent space induced by the GNN when executing algorithms. We identify two possible failure modes: (i) loss of resolution, making it hard to distinguish similar values; (ii) inability to deal with values outside the range observed during training. We propose to solve the first issue by relying on a softmax aggregator, and propose to decay the latent space in order to deal with out-of-range values. We show that these changes lead to improvements on the majority of algorithms in the standard CLRS-30 benchmark when using the state-of-the-art Triplet-GMPNN processor. Our code is available at https://github.com/mirjanic/nar-latent-spaces

View on arXivView PDF

Code Implementations(1)

Apache-2.0
60Shell, PythonDec 6, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{mirjani2023latent,
  title  = {Latent Space Representations of Neural Algorithmic Reasoners},
  author = {Vladimir V. Mirjanić and Razvan Pascanu and Petar Veličković},
  year   = {2023},
  eprint = {2307.08874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08874v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.08874.svg)](https://codeofpaper.com/paper/2307.08874)

Discussion