VisualSphinx: Large-Scale Synthetic Vision Logic Puzzles for RL
Organizations: University of Washington · Western Washington University
Abstract
Vision language models (VLMs) are expected to perform effective multimodal reasoning and make logically coherent decisions, which is critical to tasks such as diagram understanding and spatial problem solving. However, current VLM reasoning lacks large-scale and well-structured training datasets. To bridge this gap, we propose VisualSphinx, a first-of-its-kind large-scale synthetic visual logical reasoning training dataset. To tackle the challenge of image synthesis with grounded answers, we propose a rule-to-image synthesis pipeline that extracts and expands puzzle rules from seed questions and generates executable rendering programs for puzzle assembly. Using standard GRPO with binary correctness rewards as a validation recipe, experiments show that VLMs trained on VisualSphinx benefit from the logical coherence and readability of our dataset and exhibit improved performance on logical reasoning tasks. The enhanced reasoning capabilities developed from VisualSphinx also benefit other reasoning tasks such as algebraic reasoning, arithmetic reasoning and geometry reasoning.
Figures & tables
| Benchmark | Qwen2.5-VL-7B | Qwen2.5-VL-7B | Qwen2.5-VL-3B | Qwen2.5-VL-3B |
|---|---|---|---|---|
| Instruct | VisualSphinx | Instruct | VisualSphinx | |
| Vision – Math | ||||
| Mathverse vision | 27.79 | 34.77 | 23.35 | 22.34 |
| Mathvista mini | 60.00 | 65.30 | 33.60 | 47.60 |
| We-Math mini | 61.21 | 62.30 | 54.20 | 59.20 |
| Vision – Puzzle/Logic | ||||
| Benchmark | Qwen2.5-VL-7B | SFT | SFT | Qwen2.5-VL-7B |
|---|---|---|---|---|
| Instruct | Random | Reject | VisualSphinx | |
| Vision – Math | ||||
| MathVerse vision | 27.79 | 30.20 | 23.35 | 34.77 |
| Mathvista mini | 60.00 | 56.70 | 57.80 | 65.30 |
| We-Math mini | 61.21 | 51.90 | 44.48 | 62.30 |
| Vision – Puzzle | ||||
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage | Output Count | Description |
|---|---|---|
| Seed Questions | 3,904 | Raw visual logic questions |
| Filtered Seed Rules | 2,398 | After rewriting and verification |
| Generated Rules | 60,339 | After rule-level evolution |
| Retained Rules | 41,287 | After deduplication and scoring |
| Style 1 Image Groups | 39,307 | Successfully rendered |
| Style 2 Image Groups | 38,918 | Successfully rendered |
| Visual Pattern | Reasoning Style | Count |
|---|---|---|
| Horizontal square | Deductive | 417 |
| Horizontal square | Inductive | 447 |
| Nine-square grid | Deductive | 107 |
| Nine-square grid | Inductive | 199 |
| Analogy | Deductive | 143 |
| Analogy | Inductive | 118 |
| Hyper-parameter | Value |
|---|---|
| Learning Rate | |
| Evaluated Checkpoint (Step) | |
| Extended 7B Run (Steps) | |
| Number of Devices | |
| Rollout Batch Size | |
| PPO Mini Batch Size |
| Hyper-parameter | Value |
|---|---|
| Effective Batch Size | (= per device GPUs GA ) |
| Per-Device Train Batch Size | |
| Gradient Accumulation Steps | |
| Learning Rate | |
| Epochs | |
| LR Scheduler | cosine |
| Model | Accuracy (%) | vs. Instruct |
|---|---|---|
| Qwen2.5-VL-3B-Instruct | 23.94 | – |
| Qwen2.5-VL-3B-VisualSphinx | 49.30 | +25.36 |
| Qwen2.5-VL-7B-Instruct | 28.17 | – |
| Qwen2.5-VL-7B-VisualSphinx | 56.34 | +28.17 |
| Layout | 3B Instruct | 3B- VisualSphinx | 7B Instruct | 7B- VisualSphinx |
|---|---|---|---|---|
| center_single | 17.15 | 24.90 | 28.55 | 33.65 |
| distribute_four | 11.75 | 17.00 | 18.90 | 21.80 |
| distribute_nine | 11.40 | 13.30 | 15.55 | 16.90 |
| in_center_single_out_center_single | 14.65 | 20.90 | 26.30 | 36.55 |
| in_distribute_four_out_center_single | 13.20 | 22.15 | 23.95 | 33.55 |
| left_center_single_right_center_single | 11.40 | 12.65 | 13.85 | 22.20 |