Positional Attention: Out-of-Distribution Generalization and Expressivity for Neural Algorithmic Reasoning
<|reference_start|>Positional Attention: Out-of-Distribution Generalization and Expressivity for Neural Algorithmic Reasoning: There has been a growing interest in the ability of neural networks to solve algorithmic tasks, such as arithmetic, summary statistics, and sorting. While state-of-the-art models like Transformers have demonstrated good generalization performance on in-distribution tasks, their out-of-distribution (OOD) performance is poor when trained end-to-end. In this paper, we focus on value generalization, a common instance of OOD generalization where the test distribution has the same input sequence length as the training distribution, but the value ranges in the training and test distributions do not necessarily overlap. To address this issue, we propose that using fixed positional encodings to determine attention weights-referred to as positional attention-enhances empirical OOD performance while maintaining expressivity. We support our claim about expressivity by proving that Transformers with positional attention can effectively simulate parallel algorithms.<|reference_end|>
@article{de luca2024positional,
    title={Positional Attention: Out-of-Distribution Generalization and
  Expressivity for Neural Algorithmic Reasoning},
    author={Artur Back de Luca, George Giapitzakis, Shenghao Yang, Petar
  Veliv{c}kovi'c, Kimon Fountoulakis},
    journal={arXiv preprint arXiv:2410.01686},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.01686},
    primaryClass={cs.LG cs.AI cs.DS}
}