On the Out-of-Distribution Generalization of Reasoning in Multimodal LLMs for Simple Visual Planning Tasks
Organizations: Tübingen AI Center – University of Tübingen · EPFL · ELLIS Institute Finland – Aalto University
Abstract
Integrating reasoning in large language models and large vision-language models has recently led to significant improvement of their capabilities. However, the generalization of reasoning models is still vaguely defined and poorly understood. In this work, we present an evaluation framework to rigorously examine how well chain-of-thought (CoT) approaches generalize on a simple planning task. Specifically, we consider a grid-based navigation task in which a model is provided with a map and must output a sequence of moves that guides a player from a start position to a goal while avoiding obstacles. The versatility of the task and its data allows us to fine-tune model variants using different input representations (visual and textual) and CoT reasoning strategies, and systematically evaluate them under both in-distribution (ID) and out-of-distribution (OOD) test conditions. Our experiments show that, while CoT reasoning improves in-distribution generalization across all representations, out-of-distribution generalization (e.g., to larger maps) remains very limited in most cases when controlling for trivial matches with the ID data. Surprisingly, we find that reasoning traces which combine multiple text formats yield the best (and non-trivial) OOD generalization. Finally, purely text-based models consistently outperform those utilizing image-based inputs, including a recently proposed approach relying on latent space reasoning.
Figures & tables
| Input format | CoT format | ID test maps ( ) | OOD maps (random ) | OOD maps ( ) | ||||||||||||
| 3x3 | 4x4 | 5x5 | 6x6 | Avg | 7x7 | 8x8 | 9x9 | 10x10 | Avg | 7x7 | 8x8 | 9x9 | 10x10 | Avg | ||
| zero-shot | 0.14 | 0.05 | 0.03 | 0.02 | 0.06 | 0.02 | 0.02 | 0.01 | 0.01 | 0.01 | 0.01 | 0.00 | 0.00 | 0.00 | 0.00 | |
| Image | no CoT | 0.89 | 0.84 | 0.72 | 0.52 | 0.74 | 0.51 | 0.37 | 0.23 | 0.12 | 0.31 | 0.02 | 0.00 | 0.00 | 0.00 | 0.01 |
| Descr. | 0.95 | 0.87 | 0.76 | 0.62 | 0.80 | 0.47 | 0.35 | 0.21 | 0.14 | 0.29 | 0.07 | 0.03 | 0.00 | 0.01 | 0.03 | |
| Descr. | zero-shot | 0.41 | 0.25 | 0.23 | 0.13 | 0.26 | 0.12 | 0.14 | 0.10 | 0.10 | 0.12 | 0.01 | 0.06 | 0.04 | 0.03 | 0.03 |
| no CoT | 0.92 | 0.91 | 0.86 | 0.64 | 0.83 | 0.65 | 0.55 | 0.49 | 0.41 | 0.52 | 0.19 | 0.08 | 0.04 | 0.02 | 0.08 | |
| ID test maps ( ) | OOD maps (random ) | OOD maps ( ) | ||||||||||
| 3x3 | 4x4 | 5x5 | 6x6 | 7x7 | 8x8 | 9x9 | 10x10 | 7x7 | 8x8 | 9x9 | 10x10 | |
| Mean | 1.50 | 1.79 | 2.16 | 2.75 | 3.27 | 3.66 | 4.01 | 4.47 | 6.00 | 6.35 | 6.72 | 7.00 |
| Input format | CoT format | ID test maps ( ) | OOD maps ( ) | ||||||||
| 2 | 3 | 4 | 5 | Avg | 6 | 7 | 8 | 9 | Avg | ||
| Image | no CoT | 0.70 | 0.46 | 0.21 | 0.03 | 0.35 | 0.03 | 0.01 | 0.00 | 0.00 | 0.01 |
| Descr. | 0.69 | 0.41 | 0.16 | 0.06 | 0.33 | 0.01 | 0.00 | 0.00 | 0.00 | 0.00 | |
| Descr. | no CoT | 0.82 | 0.75 | 0.57 | 0.34 | 0.62 | 0.01 | 0.01 | 0.00 | 0.00 | 0.01 |
| Descr. | 0.89 | 0.80 | 0.68 | 0.41 | 0.69 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| Grid | 0.82 | 0.76 | 0.67 | 0.49 | 0.69 | 0.34 | 0.20 | 0.10 | 0.04 | 0.17 | |
| Model | ID test maps ( ) | ||||
| 3x3 | 4x4 | 5x5 | 6x6 | Avg | |
| Direct SFT ( Yang et al., 2025 ) | 0.88 | 0.81 | 0.73 | 0.47 | 0.72 |
| CoT SFT ( Yang et al., 2025 ) | 0.68 | 0.53 | 0.35 | 0.31 | 0.47 |
| Mirage Direct ( Yang et al., 2025 ) | 0.93 | 0.83 | 0.76 | 0.51 | 0.76 |
| Mirage Direct (retrained) | 0.91 | 0.82 | 0.79 | 0.51 | 0.76 |
| Mirage Direct shuffled | 0.92 | 0.85 | 0.82 | 0.5 | 0.77 |
| Input format | CoT format | ID maps | OOD maps (random ) | OOD maps ( ) |
| Image | zero-shot | 328 | 562 | 564 |
| no CoT | 10 | 11 | 19 | |
| Descr. | 65 | 69 | 192 | |
| Descr. | zero-shot | 383 | 732 | 870 |
| no CoT | 10 | 13 | 20 | |
| Descr. | 69 | 89 | 141 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | ID test maps ( ) | OOD maps (random ) | OOD maps ( ) | ||||||||||||
| 3x3 | 4x4 | 5x5 | 6x6 | Avg | 7x7 | 8x8 | 9x9 | 10x10 | Avg | 7x7 | 8x8 | 9x9 | 10x10 | Avg | |
| Direct SFT ( Yang et al., 2025 ) | 0.88 | 0.81 | 0.73 | 0.47 | 0.72 | - | - | - | - | - | - | - | - | - | - |
| CoT SFT ( Yang et al., 2025 ) | 0.68 | 0.53 | 0.35 | 0.31 | 0.47 | - | - | - | - | - | - | - | - | - | - |
| Mirage Direct ( Yang et al., 2025 ) | 0.93 | 0.83 | 0.76 | 0.51 | 0.76 | - | - | - | - | - | - | - | - | - | - |
| Mirage Direct (retrained) | 0.91 | 0.82 | 0.79 | 0.51 | 0.76 | 0.45 | 0.35 | 0.22 | 0.15 | 0.29 | 0.01 | 0.01 | 0.01 | 0.00 | 0.00 |
| Mirage Direct shuffled | 0.92 | 0.85 | 0.82 | 0.5 | 0.77 | 0.46 | 0.41 | 0.26 | 0.14 | 0.31 | 0.05 | 0.06 | 0.02 | 0.00 | 0.03 |
| 3x3 | 4x4 | 5x5 | 6x6 | Total | |
| Number of samples | 100 | 200 | 300 | 400 | 1000 |
| Mean | 1.40 | 1.80 | 2.23 | 2.72 | 2.26 |
| Mean solution length | 2.03 | 2.65 | 3.58 | 4.18 | 3.48 |
| Hyperparameter | Value |
| epochs | 10 |
| per_device_train_batch_size | 1 |
| gradient_accumulation_steps | 1 |
| warmup_steps | 10 |
| learning rate | 1e-5 |
| weight_decay | 0.01 |
| Model | ID test maps ( ) | ||||
| 3x3 | 4x4 | 5x5 | 6x6 | Avg | |
| Gemini-1.0 ( Xu et al., 2025 ) | 0.31 | 0.26 | 0.15 | 0.06 | 0.20 |
| Claude-3 ( Xu et al., 2025 ) | 0.52 | 0.33 | 0.16 | 0.15 | 0.29 |
| GPT-4o ( Xu et al., 2025 ) | 0.68 | 0.58 | 0.35 | 0.24 | 0.46 |
| Anole Direct ( Li et al., 2025 ) | 0.83 | 0.80 | 0.75 | 0.75 | 0.78 |
| Anole CoT ( Li et al., 2025 ) | 0.94 | 0.72 | 0.50 | 0.39 | 0.64 |
| Input format | CoT format | ID test maps ( ) | OOD maps (random ) | OOD maps ( ) | ||||||||||||
| 3x3 | 4x4 | 5x5 | 6x6 | Avg | 7x7 | 8x8 | 9x9 | 10x10 | Avg | 7x7 | 8x8 | 9x9 | 10x10 | Avg | ||
| zero-shot | 210 | 429 | 309 | 363 | 328 | 450 | 590 | 662 | 547 | 562 | 524 | 457 | 774 | 502 | 564 | |
| Image | no CoT | 9 | 10 | 10 | 11 | 10 | 12 | 11 | 10 | 9 | 11 | 19 | - | - | - | 19 |
| Descr. | 52 | 59 | 64 | 86 | 65 | 81 | 74 | 65 | 54 | 69 | 196 | 217 | - | 162 | 192 | |
| Descr. | zero-shot | 222 | 264 | 505 | 541 | 383 | 588 | 836 | 832 | 675 | 732 | 848 | 791 | 1010 | 833 | 870 |
| no CoT | 9 | 10 | 11 | 12 | 10 | 13 | 13 | 13 | 13 | 13 | 21 | 19 | 18 | 22 | 20 | |
OOD Generalization
Out-of-distribution generalization studies how machine-learning models perform when test data, domains, tasks, or environments differ from training.
See all 384 papers