The role of positional encodings in the ARC benchmark

Guilherme H. Bandeira Costa, Miguel Freire, Arlindo L. OliveiraarXiv 2025 · DOI

Abstract

Standard Transformer architectures often struggle with the Abstraction and Reasoning Corpus (ARC) due to a fundamental mismatch between their 1D sequential processing and the 2D spatial nature of the tasks. This paper demonstrates that 2D positional encodings significantly enhance a model's ability to capture vertical and complex spatial relationships, allowing smaller models with proper spatial priors to outperform much larger models using standard 1D encodings.

Introduction

The Abstraction and Reasoning Corpus (ARC) is a benchmark designed to measure "fluid intelligence" in AI by requiring models to infer transformation rules from a few examples. Most modern Large Language Models (LLMs) treat these 2D grids as flattened 1D sequences, which obscures vertical adjacency and spatial structure. This "spatial amnesia" forces models to expend significant computational resources to reconstruct basic grid concepts.

Examples of ARC tasks requiring spatial reasoning and pattern recognition across multiple input-output pairs.

Methodology

The researchers isolated the effect of positional encodings (PE) through several experiments:

  1. Rotation Sensitivity: A case study using CodeT5+ revealed that performance on horizontal tasks plummeted when the same tasks were rotated 90 degrees, indicating a reliance on token proximity rather than spatial logic.
  2. Architectural Variations: Transformers of varying sizes were built to test different PE strategies, including 1D Sinusoidal, 2D Sinusoidal (independent X and Y encoding), Rotary Position Embedding (RoPE), and Learned Embeddings.
  3. Synthetic Data Augmentation: To overcome the small size of the original ARC dataset, a procedural generator was used to create 100,000 examples for 10 distinct task types to ensure statistical significance.

Results and Key Insights

The study yielded several critical findings regarding spatial awareness in Transformers:

  • The Primacy of 2D Encoding: 2D positional encoding proved more influential than model scale. A "Small" model equipped with 2D encoding achieved results competitive with "Large" models using 1D encoding.
  • Data Efficiency: In data-constrained scenarios (10,000 examples), 2D encoding acted as a vital "spatial prior," enabling the model to reason about shapes immediately without first learning the grid structure.
  • Decoder-Only Performance: Even without the global view of an encoder, decoder-only models reached approximately 90% accuracy on the tested tasks when using 2D encodings.
A specific ARC task example illustrating the challenge of mapping an input grid to a transformed output grid based on inferred rules.

Discussion and Limitations

While 2D positional encodings provide a significant boost, challenges remain. Current models often treat ARC tasks as independent mapping problems rather than performing "group-based reasoning" across all provided examples in a task. Furthermore, the experiments focused on 10 specific ARC tasks; the full benchmark contains hundreds of diverse logic types. Future research should focus on architectures that can explicitly compare multiple demonstration pairs to synthesize a unified transformation rule.

Conclusion

The findings suggest that the "secret sauce" for solving ARC-like spatial reasoning tasks lies in architectural priors that respect the 2D geometry of the data. Transitioning from 1D sequential encodings to 2D spatial encodings is a crucial step toward more robust and efficient fluid intelligence in AI.

Citation: Bandeira Costa, G. H., Freire, M., & Oliveira, A. L. (2025). The Role of Positional Encodings in the ARC Benchmark. arXiv:2502.00174v1 [cs.AI].

Summary updated

BibTeX
@misc{costa2025role,
  author = {Guilherme H. Bandeira Costa and Miguel Freire and Arlindo L. Oliveira},
  title = {{The role of positional encodings in the ARC benchmark}},
  year = {2025},
  eprint = {2502.00174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.00174},
}
Figure