Prospective Compression in Human Abstraction Learning

Leonardo Hernandez Cano, Ivan Zareski, Luisa El Amouri, Pinzhe Zhao, Max Mascini, Emanuele Sansone, Yewen Pu, Bonan Zhao, Marta KryvenarXiv 2026

TL;DR

Human abstraction learning is fundamentally forward-looking. By evaluating human behavior on a visual program synthesis task, this paper demonstrates that people don't just create abstractions to compress past experiences (retrospective compression); instead, they infer the latent structure of their environment to form abstractions that optimize future problem-solving (prospective compression), outperforming current retrospective algorithms and LLM-based models.

What Problem Does This Paper Address?

When faced with complex problems, humans excel at breaking them down into reusable chunks—a process formalized in computer science as library learning. For instance, when learning to code or play an instrument, we create reusable sub-routines or motifs.

However, standard library learning algorithms (like DreamCoder) operate under a major assumption: that the distribution of tasks is static. They rely on retrospective compression, looking back at a corpus of already-solved tasks to find the most efficient abstractions. But the real world is non-stationary; rules and task demands change over time.

The authors of this paper ask a fundamental question: How do humans decide which abstractions to learn in dynamic environments? They hypothesize that human library learning is prospective—meaning we actively infer the underlying generative process of the environment to select abstractions that will compress and simplify future tasks.

Methods

To test this hypothesis, the authors developed the Pattern Builder Task (PBT), a visual program synthesis environment.

Figure 2: Example tasks in the The Pattern Builder. A Learners are given an initial set of 5 geometric primitives (green box) and seven fixed operations (blue box). Primitives can be combined using operations, and any new patterns can be saved as ‘helpers’ (e.g., the diagonal cross highlighted in green). Helpers carry over to subsequent tasks. B Example helper-creating strategies across models. Green highlighting indicates abstractions (helpers) promoted to the learned library by each model. Inductive biases in helper creation select for plausible regular geometric patterns (as modeled by LLM program synthesis). Probabilistic library learning stochastically promotes steps in MDL solutions. Retrospective (DreamCoder-style) compression promotes helpers that maximize compression of tasks observed in the past. Greedy compression always promotes the most recent solution, maximizing compression on the current trial. Helpers promoted prospectively derive from predicting the distribution over future programs.

In PBT, participants reconstruct $10 \times 10$ binary geometric patterns using a Domain-Specific Language (DSL) consisting of 6 basic primitives (like lines and triangles) and 7 transformation operators (like ADD, SUBTRACT, INVERT, and reflections). Crucially, players can save any intermediate pattern they construct as a "helper" (an abstraction) to reuse in subsequent trials.

The researchers designed two distinct latent task sequences (curricula) to dissociate prospective from retrospective strategies:

  1. Sequential Curriculum (Experiment 1): Tasks build incrementally on top of the immediately preceding task. Here, looking backward (retrospective compression) is highly effective.
  2. Operator-Group Curriculum (Experiment 2): Tasks are clustered into groups of four that share a hidden, latent helper pattern but look completely different on the surface. To solve these efficiently, a learner must look ahead, infer the group structure, and form helpers prospectively.

The authors evaluated human performance against six computational models, including:

  • No Library Baseline: Solves each task independently via bottom-up search.
  • Retrospective Compression (RC): A DreamCoder-style model that optimizes compression over past tasks.
  • LLM-Based Program Synthesis (with and without history): Models that leverage the pre-trained inductive biases of large language models (GPT-4 variant) to select clean, regular geometric patterns.

Datasets

The paper introduces a new behavioral dataset collected via the Pattern Builder Task interface. The study evaluated 60 human participants recruited through Prolific Academic (30 participants for Experiment 1 and 30 for Experiment 2). The primary evaluation metric was corpus compression utility—how well a chosen set of helpers compresses the entire, held-out task corpus.

Key Insights and Ideas

  • Humans Look Forward, Algorithms Look Backward: In environments with changing rules, traditional retrospective algorithms get stuck optimizing for the past. Humans, by contrast, treat abstraction as an act of future preparation.
  • Inductive Bias is Insufficient: One might argue humans succeed simply because we prefer symmetrical, "canonical" geometric shapes. However, the LLM-based models (which capture this exact geometric inductive bias) failed to match human efficiency because they do not dynamically adapt to the evolving curriculum.
  • Structure Tracking: Human abstraction learning is tightly coupled with anticipatory structure modeling. We don't just compress data; we build an internal model of how the environment generates new tasks.

Key Results

  • PBT is Highly Tractable: Humans easily understood the task, achieving high completion success rates ($92.4\%$ in Experiment 1 and $81.9\%$ in Experiment 2).
  • Libraries Keep Complexity Flat: Without libraries, the program length required to solve later tasks grows exponentially. With libraries, humans kept their solution steps flat (around 3–5 steps), proving that abstraction successfully bounds cognitive load.
  • Humans Match the "Oracle": In Experiment 1 (sequential), the retrospective model (RC) matched human performance. However, in Experiment 2 (operator-group), human corpus compression significantly outperformed both the retrospective and LLM models, closely tracking an "oracle" model that possessed perfect foresight of future tasks.
Figure 1: Existing library learning algorithms compress past tasks retrospectively (left). Human abstraction learning is better characterized as prospective compression over the task-generating process to select abstractions that transfer to future tasks (right).

Limitations and Future Work

While the study provides strong evidence for prospective compression, it features a few limitations:

  • Constrained Domain: The experiments were conducted entirely within a 2D grid-based visual domain. Future work needs to explore whether prospective abstraction applies to other domains like language, planning, or number sequences.
  • Algorithmic Gap: The authors demonstrated that humans perform prospective compression, but they did not implement a fully automated machine learning algorithm that can replicate this behavior dynamically. The next major step is to build a computational model capable of joint inference over both the learned library and the non-stationary task-generating process.

Summary updated

BibTeX
@misc{cano2026prospective,
  author = {Leonardo Hernandez Cano and Ivan Zareski and Luisa El Amouri and Pinzhe Zhao and Max Mascini and Emanuele Sansone and Yewen Pu and Bonan Zhao and Marta Kryven},
  title = {{Prospective Compression in Human Abstraction Learning}},
  year = {2026},
  eprint = {2605.09985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.09985},
}

Loading related content...

Figure