Abstract Visual Reasoning Enabled by Language

Giacomo Camposampiero, Loïc Houmard, Benjamin Estermann, Joël Mathys, Roger Wattenhofer

Abstract

The Abstraction and Reasoning Corpus (ARC) serves as a benchmark for general intelligence, requiring AI systems to solve novel visual puzzles with minimal examples. Traditional approaches rely on rigid Domain-Specific Languages (DSLs) that struggle with concepts outside their predefined rules. This paper presents a framework that bypasses these limitations by translating visual ARC tasks into natural language. By leveraging the implicit human priors embedded in Large Language Models (LLMs) like GPT-3 and BLOOM, the system demonstrates an ability to reason through abstract patterns zero-shot. Our results show that reasoning performance scales log-linearly with model size, with the largest models achieving nearly 20% accuracy without task-specific engineering.

Introduction

The Abstraction and Reasoning Corpus (ARC), introduced by François Chollet, is designed to measure an AI's ability to acquire new concepts from just a few examples—a hallmark of human intelligence. Unlike standard deep learning tasks that require massive datasets, ARC puzzles provide only 2–6 input-output pairs. Solving them requires understanding fundamental concepts like objecthood, counting, geometry, and symmetry.

Current state-of-the-art methods typically employ program synthesis within a Domain-Specific Language (DSL). While effective for tasks covered by the DSL's primitives, these systems are inherently brittle. If a task requires a concept not explicitly programmed by the human designer, the system fails. To address this, we explore whether the vast "implicit human priors" contained within Large Language Models (LLMs) can be harnessed for abstract visual reasoning.

Methodology

The proposed system utilizes a modular pipeline that shifts the problem from the visual domain to the linguistic domain, allowing the LLM to act as a general-purpose reasoner.

The modular pipeline translates visual grids into text descriptions for LLM processing and decodes the textual output back into a grid.

The Modular Pipeline

  1. Vision Module (The Encoder): This component processes the raw pixel grids. It identifies the background and extracts discrete objects based on color and spatial contiguity. These objects are then serialized into a text-based description, detailing their properties such as color, size, and coordinates (e.g., "a 3x3 monochromatic cyan object at position 1,7").
  2. Language Module (The Reasoner): The serialized descriptions of the training examples are formatted into a prompt for a pre-trained LLM. We tested models including GPT-3 and BLOOM in a zero-shot setting. The LLM is tasked with predicting the textual description of the output grid for a given test input.
  3. Decoder: Finally, the text-based prediction generated by the LLM is parsed and converted back into a visual grid format to produce the final solution.

Key Results and Scaling

A primary finding of this research is that abstract reasoning capability is a function of model scale. We evaluated various LLMs on the ARC training set to observe how parameter count influences performance.

Accuracy on ARC tasks improves log-linearly as the number of LLM parameters increases, with GPT-3 significantly outperforming smaller BLOOM variants.

Performance Scaling

As shown in the results, reasoning performance follows a consistent improvement trend. The largest model, GPT-3 (text-davinci-003 with 175B parameters), achieved approximately 20% accuracy. While this is currently lower than the ~30% accuracy of the best handcrafted DSL ensembles, the LLM approach is significantly more flexible. It requires no manual engineering of task-specific rules and can solve puzzles that stumped previous systems by drawing on "fuzzy" human-like intuitions about symmetry and rotation.

Zero-Shot Reasoning

The success of these models in a zero-shot context—where they have never seen an ARC task during training—suggests that the ability to reason about abstract spatial relationships is a transferable skill derived from general language understanding. Natural language serves as an efficient repository for human cognitive priors, which the models can apply to novel visual domains.

Discussion and Limitations

Despite the promise of this approach, several bottlenecks remain. The "Vision Module" currently relies on heuristic rules; if it fails to correctly identify or describe a complex overlapping shape, the LLM receives flawed data. Furthermore, the context window of current LLMs limits the complexity and size of the grids that can be processed.

Future work will focus on developing a fully learned, end-to-end pipeline. Replacing the heuristic encoder with a learned image captioner specifically trained for abstract scenes could mitigate the vision bottleneck. Additionally, fine-tuning LLMs on reasoning-heavy datasets may further bridge the gap toward human-level performance on the ARC benchmark.

Summary updated

BibTeX
@inproceedings{camposampiero2023abstract,
  author = {Giacomo Camposampiero and Loïc Houmard and Benjamin Estermann and Joël Mathys and Roger Wattenhofer},
  title = {{Abstract Visual Reasoning Enabled by Language}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
  doi = {10.1109/cvprw59228.2023.00264},
}
Figure