Unraveling the ARC Puzzle: Mimicking Human Solutions with Object-Centric Decision Transformer

Jaehyun Park, Jaegyun Im, Sanha Hwang, Mintaek Lim, Sabina Ualibekova, Sejin Kim, Sundong Kim

TL;DR

To tackle the challenging visual reasoning puzzles in the Abstraction and Reasoning Corpus (ARC), the authors reframe ARC solving as an imitation learning problem using a Decision Transformer (DT). By pairing human problem-solving traces with a custom, force-directed graph algorithm called Push and Pull (PnP) clustering for object detection, the proposed Object-Centric Decision Transformer boosts task accuracy by an average of 13.6% over standalone DT models.

What Problem Does This Paper Address?

The Abstraction and Reasoning Corpus (ARC) is a benchmark designed to measure artificial general intelligence (AGI) through human-like few-shot reasoning on visual grids. While humans intuitively extract abstract rules and manipulate discrete objects, modern machine learning approaches struggle, rarely surpassing ~30% accuracy in open competitions and often relying heavily on hard-coded heuristics or exhaustive program search.

Current deep learning architectures struggle with ARC because grids are tiny (typically $1 \times 1$ to $30 \times 30$), discrete, and require rapid adaptation to novel rules from just a few examples. This paper asks: Can an AI learn to solve ARC tasks by imitating the sequential action traces that human experts use, combined with explicit object-centric inductive biases?

Methods

The authors introduce a two-part framework that models ARC solving as a sequential decision-making process:

  1. Human Demonstration & Trace Augmentation: Using the interactive O2ARC interface, the authors collected human step-by-step traces (e.g., using domain-specific actions like rotate, reflect_x, translate, select_fill). They filtered out suboptimal actions (such as single-pixel manual edits or cyclical steps) to create "expert traces," which were then programmatically applied to randomly generated grids to produce 10,000 training and 2,000 evaluation episodes per task.
  2. Push and Pull (PnP) Clustering (Object Detection):
  3. Graph Abstraction ($f$): Treats non-background pixels as graph nodes. Edges connect adjacent pixels, weighted by physical proximity and color similarity (e.g., adjacent same-color = weight 1; diagonal different-color = weight 5).
  4. Force Simulation ($g$): Edges exert attractive ("pull") or repulsive ("push") forces based on $\text{Force} = (\text{Distance} - 3) / 2$, pulling same-color adjacent pixels together and pushing different colors apart.
  5. Cluster Assignment: DBSCAN groups the shifted nodes into distinct object IDs without needing the cluster count specified upfront.
  6. Object-Centric Decision Transformer:
  7. The Decision Transformer is adapted to take token sequences consisting of return-to-go ($r$), current state ($s$, embedded pixel-by-pixel), action ($a$), and the newly introduced object cluster map ($p$, produced by PnP).
  8. Unlike standard DT implementations that only predict actions, this model predicts next-state, next-action, and return-to-go simultaneously, optimized using a combination of Cross-Entropy (for discrete states and actions) and Mean Squared Error (for return-to-go).

Datasets

  • Mini-ARC: A simplified ARC variant featuring fixed $5 \times 5$ grids (adjusted to $7 \times 7$ for the gravity task), containing 150 tasks designed to ease model training.
  • Evaluated Tasks: Four representative tasks were tackled: diagonal flip, tetris, gravity, and stretch.
  • ARC Benchmark Analysis: The authors reviewed all 400 original ARC problems, categorizing 128 as strictly object-centric to evaluate the standalone performance of their PnP object detection algorithm.

Key Insights and Ideas

  • Pixel-Level Prediction Needs Object Priors: Standard Decision Transformers often predict the correct transformation action (e.g., "translate down") but make fine-grained pixel errors when updating the grid. Supplying explicit object masks via the PnP algorithm resolves ambiguity, improving the model's spatial manipulation.
  • ARC Solving as Trajectory Modeling: Rather than treating ARC strictly as a program synthesis or image-to-image translation task, viewing it as a sequence of discrete DSL actions modeled via an autoregressive transformer offers a viable path toward emulating human problem-solving traces.
  • Return-to-Go Isn't Always Necessary: In some tasks (tetris and gravity), Behavioral Cloning without return-to-go conditioning performed comparably or slightly better than vanilla DT. The authors hypothesize that naive equidistant reward distributions can penalize non-uniform problem-solving speeds.

Key Results

  • PnP Clustering Performance: Achieved an 88% recall across 128 ARC object-centric tasks, reaching 96% recall on tasks composed of directly adjacent, same-color components.
  • Task Accuracy Comparison:
  • No DT Baseline (transformer without traces): 0.00% across all tasks.
  • Diagonal Flip: DT achieved 76.51% $\rightarrow$ DT + PnP reached 89.96% (+13.45%).
  • Tetris: DT achieved 71.51% $\rightarrow$ DT + PnP reached 83.80% (+12.29%).
  • Gravity: DT achieved 46.72% $\rightarrow$ DT + PnP reached 59.00% (+12.28%).
  • Stretch: DT achieved 69.98% $\rightarrow$ DT + PnP reached 86.41% (+16.43%).

Overall, adding the PnP object representations provided a consistent ~12–16% absolute accuracy boost across all evaluated tasks.

Limitations and Future Work

  • Task-Specific Training: Each model was trained and evaluated on a single task with synthetic variants, rather than testing open-set, zero-shot generalization across unseen ARC problems.
  • Fixed Lattice Sizes: Experiments relied on Mini-ARC ($5 \times 5$ and $7 \times 7$), leaving variable grid sizes (up to $30 \times 30$) unaddressed.
  • PnP Failure Cases: PnP struggled when objects overlapped (65% recall) or shared diagonal adjacencies with differing colors (62% recall).
  • Future Directions: Developing a meta-classifier to categorize unseen ARC tasks before dispatching them to specialized transformers, integrating prompt-based Decision Transformers (e.g., Prompt DT), and refining human trace collection interfaces.

Summary updated

BibTeX
@inproceedings{park2023unraveling,
  author = {Jaehyun Park and Jaegyun Im and Sanha Hwang and Mintaek Lim and Sabina Ualibekova and Sejin Kim and Sundong Kim},
  title = {{Unraveling the ARC Puzzle: Mimicking Human Solutions with Object-Centric Decision Transformer}},
  booktitle = {ILHF @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=F9QfmL6IjZ},
}
Figure