Abstract
One of the core challenges in building general reasoning systems lies in generating diverse, human-aligned solution trajectories—different yet valid paths by which a problem can be solved. Prior approaches often rely on handcrafted templates, rule-based augmentations, or human demonstrations, which are limited in scalability and stylistic diversity. To address this, we explore the use of Generative Flow Networks (GFlowNets) for automated solution augmentation in reasoning tasks. We propose a framework that learns to generate diverse reasoning trajectories with probabilities proportional to their quality, guided by a human-inspired reward function and a novel geometric forward policy. This enables the generation of multiple plausible solution paths without relying on manual supervision. Moreover, our method supports efficient test-time augmentation from input-output examples alone, without access to ground-truth programs or external demonstrations—making it suitable for zero-shot settings. We evaluate our framework on the Abstraction and Reasoning Corpus (ARC-AGI), a benchmark designed to test compositional and abstract reasoning. Our results show that GFlowNets can effectively explore the space of valid reasoning processes, producing a variety of plausible reasoning trajectories, similar to how different individuals might solve the same problem using different intermediate steps. These trajectories are generated at scale-over 100k per task in under an hour, and follow a logarithmic yield trend, enabling practical tradeoffs between augmentation volume and novelty. Furthermore, fine-tuning a large language model (LLaMA 3.1 Instruct 8B) on these synthetic trajectories leads to a 28.6% improvement in reasoning accuracy on ARC tasks, demonstrating the downstream utility of our method. These findings suggest that GFlowNets offer a promising foundation for modeling structured reasoning in automated trajectory generation.
Introduction
The Abstraction and Reasoning Corpus (ARC-AGI) is a premier benchmark for measuring human-like general intelligence in AI, requiring models to solve novel visual puzzles from just a few examples. A significant hurdle in mastering ARC is the lack of large-scale data detailing the reasoning process—the sequence of abstract steps like rotations, flips, or color changes—rather than just the final output. Human demonstrations are scarce and expensive, while rule-based augmentations often lack the creative diversity seen in human problem-solving. This research addresses this data scarcity by automating the generation of diverse, plausible solution trajectories.
Methodology: GFlowNets for Trajectory Generation
The framework utilizes Generative Flow Networks (GFlowNets) to sample diverse reasoning paths with probabilities proportional to a defined reward. Unlike standard Reinforcement Learning, which converges on a single optimal path, GFlowNets are designed for exploration, discovering multiple valid ways to reach a goal.
Key innovations include:
- Geometric Forward Policy: A Geometric distribution is used for action sampling, prioritizing shorter, more efficient reasoning paths by treating each action as a probabilistic attempt toward success.
- Human-Inspired Reward Design: The reward function penalizes redundant cycles, encourages brevity through discount factors, and rewards a formal "Submit" action, mirroring human-like biases.
- Asymmetric Policy Design (G-C): The authors found that a Geometric policy for forward exploration combined with a Categorical policy for backward flow stabilization significantly improves performance.
Experimental Setup
The primary evaluation is conducted on the ARC-AGI benchmark, focusing on whole-grid transformation tasks. The study leverages human trajectory data from the O2ARC 3.0 dataset to refine reward design and uses LLaMA 3.1 8B Instruct for downstream evaluation.
Key Insights and Results
The GFlowNet approach demonstrates that diversity of reasoning is more valuable than raw data volume. In comparisons with "ReARC-style" augmentation—which varies input grids but uses single solution paths—the GFlowNet method proved superior. Even with seven times less data, models trained on diverse solution paths generalized better.
Performance and Scalability
- Accuracy Improvement: Fine-tuning a LLaMA 3.1 8B model on GFlowNet-generated trajectories boosted its accuracy from 0% to 28.6% on tested ARC tasks.
- High-Speed Generation: The system is highly scalable, capable of generating over 100,000 valid trajectories per task in under an hour on a single GPU.
- Optimal Reasoning Depth: There is a "Goldilocks" zone for reasoning length; too short a budget prevents finding complex solutions, while too long a budget dilutes the learning signal.
Conclusion and Future Work
While effective for whole-grid operations, the current method faces challenges with "sub-grid" manipulations due to the exponentially larger action space. Future work will explore adaptive exploration depths and hybrid on/off-policy training to reduce sensitivity to initial samples. Overall, GFlowNets provide a robust foundation for modeling structured reasoning through automated trajectory generation.
Summary updated