[Paper Review] Automatically Composing Representation Transformations as a Means for Generalization
This paper introduces the Compositional Recursive Learner (CRL), a domain-general framework that automatically composes reusable representation transformations to solve complex problems by reasoning by analogy to prior subproblems. CRL achieves strong zero-shot generalization to longer, more complex problems than seen during training, outperforming non-compositional baselines in symbolic arithmetic and vision tasks by learning modular, hierarchical computation through sparse supervision and curriculum learning.
A generally intelligent learner should generalize to more complex tasks than it has previously encountered, but the two common paradigms in machine learning -- either training a separate learner per task or training a single learner for all tasks -- both have difficulty with such generalization because they do not leverage the compositional structure of the task distribution. This paper introduces the compositional problem graph as a broadly applicable formalism to relate tasks of different complexity in terms of problems with shared subproblems. We propose the compositional generalization problem for measuring how readily old knowledge can be reused and hence built upon. As a first step for tackling compositional generalization, we introduce the compositional recursive learner, a domain-general framework for learning algorithmic procedures for composing representation transformations, producing a learner that reasons about what computation to execute by making analogies to previously seen problems. We show on a symbolic and a high-dimensional domain that our compositional approach can generalize to more complex problems than the learner has previously encountered, whereas baselines that are not explicitly compositional do not.
Motivation & Objective
- To address the challenge of generalizing to more complex tasks than previously seen, especially when prior solutions are not directly applicable.
- To formalize compositional structure across tasks using a compositional problem graph, enabling reuse of sub-solutions.
- To develop a domain-general learning framework that automatically discovers and composes reusable transformation modules.
- To enable meta-reasoning over previously learned transformations to solve novel, more complex problems through analogical reasoning.
- To evaluate generalization beyond training distribution using compositional generalization as a benchmark.
Proposed method
- CRL frames problem-solving as learning algorithmic procedures over representation transformations, where each transformation is a modular computational unit.
- The framework uses a controller to sequentially apply modules in a meta-level Markov decision process (MDP), deciding which transformation to apply at each step.
- Modules are trained with sparse supervision and local task views to encourage task-agnostic, reusable functionality.
- A curriculum training scheme exposes the model to increasingly complex problems, promoting reuse of known sub-solutions.
- The controller uses deep reinforcement learning to learn optimal composition policies, enabling recursion and loop-like behavior.
- Representation transformations are learned end-to-end, with the system re-representing inputs into more familiar forms through iterative module application.
Experimental results
Research questions
- RQ1Can a learner generalize to more complex problems by composing previously learned sub-solutions, even when those problems were not seen during training?
- RQ2How does compositional structure in problem distributions enable better generalization compared to monolithic or task-specific models?
- RQ3To what extent can a model learn to reason by analogy and compose transformations without explicit supervision on composition order?
- RQ4Can a meta-reasoning controller learn to decompose novel problems into known subproblems through self-supervised learning?
- RQ5How robust is the approach to distribution shift and extrapolation to significantly longer or more complex problems?
Key findings
- On multilingual arithmetic problems, CRL achieved 60% accuracy on 100-term problems after training on 2–5 term problems, far exceeding the 10% baseline of random guessing.
- In the MNIST spatial transformation task, CRL generalized to more complex spatial perturbations than seen during training, demonstrating robustness to distribution shift.
- Execution traces showed that CRL learns to compose language translation and arithmetic solving modules in novel ways, such as translating reduced answers into target languages.
- The model successfully applied order-of-operations rules in a flexible manner, sometimes deviating from strict sequence but still arriving at correct results.
- CRL demonstrated strong extrapolation ability, maintaining ~80% accuracy when extrapolating from 10-term to 20-term arithmetic expressions.
- The framework was robust to variations in the number of modules, showing stable performance across different architectural configurations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.