Manuscript Offprint
arXiv:2608.28958CoVA-SFT: A Large-Scale Dataset for Chain of Visual Abstractions
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Chain-of-thought (CoT) reasoning has dramatically improved large language models (LLMs) by allowing them to decompose problems into intermediate steps. While CoT is widely effective for linguistic tasks, text-only CoT forces models to serialize visual problems into awkward prose. Although architectural solutions exist to process visual inputs, the community lacks a massive, multi-step, self-corrected dataset to teach models how to build and maintain internal visual workspaces when solving purely textual reasoning problems. To address this limitation, we introduce CoVA-SFT, a highly structured corpus of 51.9K samples containing over 222K multimodal reasoning steps across 5 distinct layout families and 17 complex tasks, and CoVA-Bench, a companion benchmark of 1,700 held-out test samples spanning the same tasks for reproducible evaluation. By providing explicit rationale formulations, agentic renderings, and verification loops, CoVA-SFT teaches multimodal language models to interleave text and visual abstractions. We validate the dataset by demonstrating that models fine-tuned on CoVA-SFT outperform all interleaved CoT baselines by more than 2× on average on CoVA-Bench, though they still fall short of strong text-only CoT baselines, highlighting open challenges for future work.
1 Introduction & Background
Long chain-of-thought (CoT) reasoning has produced large gains in mathematical problem solving, coding, and other complex tasks (Jaech et al., 2024; Guo et al., 2025), becoming a foundational interface that effectively allows large language models (LLMs) to decompose problems and write intermediate steps before producing an answer. While this interface is effective when the relevant intermediate state is naturally linguistic (such as a mathematical proof), it fails to easily generalize to reasoning

Figure 1: Chain of Visual Abstractions. When solving text-based reasoning problems, standard textual reasoning (left) forces models to serialize naturally visual problems into prose. In contrast, models trained on our CoVA-SFT dataset (right) learn to construct and maintain (latent) visual workspaces during the reasoning process.
problems grounded in non-textual, structured states where serializing into text is inefficient. For example, for humans, reasoning over a picture of an actual chessboard is much easier than interpreting a long algebraic notation of a chess game. Yet, in these cases, text-only chain-of-thought forces models to serialize visual states into an unnatural prosaic representation.
Indeed, recent work has increasingly challenged the assumption that intermediate reasoning must only be expressed in language, extending it beyond text with sketches, generated images, code-rendered plots, and interleaved vision-language traces (Hu et al., 2024; Li et al., 2025c; Su et al., 2025; Deng et al., 2025; Li et al., 2025b; Wang et al., 2025; Bigverdi et al., 2025). For example, in visual question answering, latent-token approaches such as Mirage and CoVT replace parts of the textual reasoning trace with continuous visual representations aligned to features coming from input images in the problem (Qin et al., 2025; Yang et al., 2025b). In natural language domains, models
*Equal contribution.
†Equal advising.
Table 1: Comparison with representative interleaved reasoning datasets. Prior work grounds reasoning in existing images; CoVA-SFT constructs visual workspaces from scratch for text-only inputs.
| Dataset | Task | Input | Visual Role |
|---|---|---|---|
| Zebra-CoT | Vision-language reasoning | Multimodal | Grounded visual observations from input |
| Math-VR | Math reasoning | Text & multimodal | Math-specific plots and diagrams |
| CoVA-SFT (Ours) | Text-only reasoning | Text-only | Visual workspaces constructed during reasoning |
| Table | Graph | Math |
|---|---|---|
| PROMPT\nIn △ABC, AB = AC. Through point A, draw AD ⊥ AC intersecting the ray CB at point D. If △ABD is an isosceles triangle, then the measure of ∠C is ______ degrees. REASONING\nBegin by setting up the first configuration. ABD is isosceles with AB + BD. [...] ∠C = 60°.  Examine the second configuration where triangle ABD is isosceles with AD + BD instead. [...] ∠C = 30°. The answer is 30 or 60. | ||
| Layout | Game | Table Game |
| Table ● ACP (4.9%) ● Logic Puzzle (2.0%) ● Scheduling (4.9%) Graph ● CLUTRR (4.9%) ● Graph Coloring (5.4%) ● GraphInstruct (3.1%) ● ProsQA (3.1%) Math ● MathNet (2.4%) ● Math-VR (32.4%) ● 3D Cube (4.8%) Layout ● Bin Packing (7.2%) ● Seating Arrangement (1.6%) ● SpatialEval (1.8%) |
Figure 2: Overview of CoVA-SFT. We introduce CoVA-SFT, a 51.9K-sample dataset containing over 222K images from 17 data sources. CoVA-SFT spans five visual abstraction types, reflecting how humans often externalize reasoning such as tables for constraint problems, family trees for kinship reasoning, graphs for relational reasoning, symbolic diagrams for spatial reasoning, and geometry plots for math reasoning. Data curation pipeline is in Figure 3 and more dataset examples in 17 tasks are in Appendix C.
can render explicit drawings or executable plotting traces from text queries to use as external scratch-pads for spatial or mathematical reasoning (Menon et al., 2024; Duan et al., 2025). Other efforts, like Zebra-CoT, have contributed interleaved vision-language reasoning data (Li et al., 2025a).
Despite these advances, the community lacks a massive, multi-step, self-corrected dataset to teach models how to build internal visual workspaces. Existing resources are often limited in scale, domain diversity, or the depth of sequential reasoning required. Consequently, researchers studying visual intermediate representations lack a comprehensive benchmark dataset to train and validate models on purely text-based reasoning tasks that require long-horizon structural tracking.
To address this gap, we introduce CoVA-SFT, a highly structured corpus designed to teach multi-modal language models to interleave text and visual abstractions. The dataset comprises 51,904 samples containing 222,046 images across 5 distinct layout families (Game, Graph, Layout, Math, and Table) sourced from 17 complex tasks. We construct this dataset using an agentic generation pipeline that explicitly forces models to articulate the rationale for a visual abstraction, agentically render it, and verify its structural consistency in a self-reflective loop.
To evaluate CoVA-SFT, we also release CoVA-Bench, a held-out benchmark of 1,700 test samples spanning all 17 tasks from the same five layout families, designed to measure logical interleaved-reasoning skills. We fine-tune a base multimodal language model on CoVA-SFT and evaluate on CoVA-Bench, showing that while strong text-only models like Qwen3-Think struggle significantly on complex domains such as Graph reasoning (44.5%) and Game simulation (19.3%), models trained on our dataset can effectively learn to leverage visual abstractions. To sum up, our contributions are:
-
We release CoVA-SFT, a dataset of 51,904 trajectories with 222,046 visual abstraction steps across 17 tasks, constructed via a self-corrective pipeline.
-
We provide a dataset validation baseline, confirming that CoVA-SFT is learnable, challenging, and successfully teaches models to utilize latent visual workspaces without compromising general text reasoning performance.
-
We release CoVA-Bench, a benchmark consisting of 1,700 test samples, including all 17 tasks of CoVA-SFT that require logical interleaved-reasoning skills.
Dataset Construction. We construct CoVA-SFT using Claude 4.5 Sonnet as an agentic generator operating in three stages (Figure 3):
-
Rationale & QA Formulation: The model articulates why a visual workspace is useful for the given task, specifies what should be rendered, and generates the corresponding question–answer pair.
-
Agentic Rendering: The interleaved reasoning trace is generated step by step, with Matplotlib tool calls to programmatically render each visual workspace; the resulting image is fed back to the model as context before continuing.
-
Verification & Self-Correction: The model checks the rendered image for structural consistency against the problem statement and re-enters the rendering loop to redraw when errors are detected.

Figure 3: Data synthesis pipeline. A capable vision-language model generates text reasoning traces and structured intermediate artifacts, renders them into visual workspaces, and verifies the resulting outputs through a reflective feedback loop before continuing downstream reasoning.
The dataset spans five abstraction families (Table, Graph, Layout, Game, and Math) covering 17 tasks in total. In addition to the training set, we also curate the CoVA-Bench, a held-out test benchmark drawn from the same 17 tasks and five abstraction families as CoVA-SFT. It contains 1,700 samples (100 per task) that were withheld from training and verified to require multi-step logical reasoning and maintenance of visual state.
3 Experiments
To validate that CoVA-SFT is learnable and that interleaved visual reasoning provides a meaningful training signal, we fine-tune a multimodal language model on CoVA-SFT and evaluate on CoVA-Bench, our held-out benchmark of 1,700 test samples across all 17 tasks. We compare against text-only and interleaved CoT baselines under zero-shot conditions, where each model receives only the textual problem statement.
Model Design. We fine-tune Qwen3-VL-8B-Thinking (Bai et al., 2025) on CoVA-SFT, adapting it to our interleaved reasoning format where the model must produce not only the final textual answer but also the intermediate latent visual trajectory that grounds the reasoning process. Each interleaved image is encoded using a fixed budget of 128 visual tokens. We optimize with a dual-
Table 2: Dataset Validation Baseline. We compare text-only baselines and external-tool visual reasoning methods against the CoVA-SFT baseline. Text-only serialization heavily degrades performance on Graph and Game tasks.
| CoT Format | Instantiation | Method | Table | Layout | Graph | Game | Math | Avg |
|---|---|---|---|---|---|---|---|---|
| Text-Only | LLM | Qwen3-Think | 67.3 | 69.3 | 44.5 | 19.3 | 25.0 | 45.1 |
| VLM | Qwen3-VL-Instruct | 61.0 | 71.0 | 57.0 | 15.0 | 26.0 | 46.0 | |
| Qwen3-VL-Thinking | 80.3 | 76.3 | 46.5 | 25.5 | 27.3 | 51.2 | ||
| Interleaved | Agentic / UMM | CodePlot-CoT (Duan et al., 2025) | 15.3 | 17.3 | 20.2 | 2.0 | 9.7 | 12.9 |
| TwGI (Chern et al., 2025) | 2.0 | 0.0 | 1.0 | 0.0 | 1.3 | 0.9 | ||
| MathCanvas (Shi et al., 2025) | 14.0 | 22.0 | 35.3 | 0.5 | 12.3 | 16.8 | ||
| Zebra-CoT (Li et al., 2025a) | 9.3 | 13.8 | 26.5 | 0.5 | 5.7 | 11.2 | ||
| Latent Tokens | CoVA-SFT Baseline (Ours) | 47.2 | 53.4 | 62.0 | 20.0 | 8.5 | 38.2 |
objective loss: for text, the standard autoregressive cross-entropy ; for visual tokens, a cosine similarity objective that aligns each normalized predicted latent visual token against its normalized ground-truth target embedding ,
yielding the total objective . This formulation, following Zhang et al. (2025), explicitly supervises both language generation and visual-state evolution, encouraging the model to maintain grounded multimodal representations throughout long reasoning horizons.
Baselines. We evaluate against two categories, selecting open-source models in the 7–8B parameter range to ensure fair comparison under matched capacity. Text-only CoT baselines include pure LLMs, Qwen3-Think (Yang et al., 2025a), as well as VLMs operated in text-only mode: Qwen3-VL-Instruct and Qwen3-VL-Thinking (Bai et al., 2025). Interleaved CoT baselines include methods that produce explicit visual workspaces via external tool calls: CodePlot-CoT (Duan et al., 2025), MathCanvas (Shi et al., 2025), and Zebra-CoT (Li et al., 2025a), and Thinking with Generated Images (Chern et al., 2025), all of which programmatically render or generate visual artifacts and feed them back into the reasoning chain.
Results and Analysis. Table 2 reports performance across our in-domain held-out test sets. CoVA-SFT achieves the highest average score among interleaved CoT baselines by a substantial margin (38.2% vs. 16.8% for the next-best baseline, MathCanvas), although MathCanvas performs better on Math. CodePlot-CoT, MathCanvas, and Zebra-CoT remain substantially weaker overall, as errors in external rendering can propagate into subsequent reasoning with limited opportunity for recovery. By internalizing the visual workspace into the reasoning process, CoVA-SFT avoids this external execution boundary. TwGI (Chern et al., 2025) achieves near-zero performance across domains, as its generated intermediate images are often incoherent and provide little useful grounding over long CoT trajectories.
Against text-only baselines, CoVA-SFT trails on Table (47.2%), Layout (53.4%), and Math (8.5%), but surpasses all text-only models on Graph reasoning (62.0% vs. 57.0%). This advantage is structurally motivated: graphs encode relational information (nodes, edges, reachability) in a form that is naturally visual but laborious to maintain in prose, where a text-only chain-of-thought must re-enumerate adjacency structure at every step. The sharpest gap is on Math (8.5% vs. 27.3%), which we attribute to a representational mismatch: mathematical reasoning is already well-served by symbolic notation that VLMs handle fluently in text, making latent visual tokens an expensive detour rather than a meaningful aid. This suggests that learning continuous latent visual representations may be a more effective inductive bias than discrete token generation in unified multimodal models.
4 Conclusion
In this work, we introduce CoVA-SFT, a large-scale interleaved reasoning dataset designed to address the fundamental limitations of text-only Chain-of-Thought on spatial, structural, and relational tasks. By creating 51,904 trajectories with 222,046 visual abstraction steps across 17 distinct tasks, we hope to provide the community with a resource for teaching multimodal models how to build and maintain internal visual workspaces.
Limitations
A primary limitation of CoVA-SFT is its reliance on the capabilities of the upstream vision-language model (e.g., Claude 4.5 Sonnet) acting as the agentic generator. While our verification and self-correction loops catch many structural inconsistencies, subtle hallucinations in the generated text traces or rendering code can propagate into the training data. Because these trajectories are directly distilled into the dataset, these micro-errors can introduce logic flaws into the training distribution, potentially bounding the upper-limit accuracy of downstream fine-tuned models.
Furthermore, the dataset's visual diversity is currently bounded by the programmatic capabilities of the rendering tools; highly complex, open-world spatial simulations or continuous robotic environments are not yet represented in this taxonomy. Currently, the visual abstractions are constrained to static structured formats such as 2D tables, topological graphs, layout grids, and geometric coordinate plots. Consequently, the visual abstractions learned via CoVA-SFT remain symbolic and schematic rather than continuous or deeply perceptual.
Finally, in addition to data issues, training models to jointly optimize for both textual tokens and continuous or latent visual tokens introduces significant computational overhead compared to standard text-only Supervised Fine-Tuning (SFT). The dual-objective loss function, which forces the model to balance cross-entropy text generation with high-dimensional cosine similarity alignment ( ), requires careful hyperparameter tuning and increased memory bandwidth during training. Furthermore, because highly complex tasks in our dataset scale up to 8 or more sequential visual states, generation during inference demands longer context windows and an increased compute budget to dynamically update and maintain the workspace over long horizons.
Acknowledgments
Sky Computing Lab is supported by gifts from Accenture, AMD, Anyscale, Cisco, Google, IBM, Intel, Intesa Sanpaolo, Lambda, Lightspeed, Mibura, Microsoft, NVIDIA, Samsung SDS, and SAP.
References
Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, and 1 others. 2025. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631.
Mahtab Bigverdi, Zelun Luo, Cheng-Yu Hsieh, Ethan Shen, Dongping Chen, Linda G Shapiro, and Ranjay Krishna. 2025. Perception tokens enhance visual reasoning in multimodal language models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 3836–3845.
Ethan Chern, Zhulin Hu, Steffi Chern, Siqi Kou, Jiadi Su, Yan Ma, Zhijie Deng, and Pengfei Liu. 2025. Thinking with generated images. arXiv preprint arXiv:2505.22525.
Yihe Deng, Hritik Bansal, Fan Yin, Nanyun Peng, Wei Wang, and Kai-Wei Chang. 2025. Openvthinker: Complex vision-language reasoning via iterative sft-rl cycles. arXiv preprint arXiv:2503.17352.
Chengqi Duan, Kaiyue Sun, Rongyao Fang, Manyuan Zhang, Yan Feng, Ying Luo, Yufang Liu, Ke Wang, Peng Pei, Xunliang Cai, and 1 others. 2025. Codeplot-cot: Mathematical visual reasoning by thinking with code-driven images. arXiv preprint arXiv:2510.11718.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, and 1 others. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948.
Yushi Hu, Weijia Shi, Xingyu Fu, Dan Roth, Mari Ostendorf, Luke Zettlemoyer, Noah A Smith, and Ranjay Krishna. 2024. Visual sketchpad: Sketching as a visual chain of thought for multimodal language models. Advances in Neural Information Processing Systems, 37:139348–139379.
Aaron Jaech, Adam Kalai, Adam Lerer, Adam Richardson, Ahmed El-Kishky, Aiden Low, Alec Helyar, Aleksander Madry, Alex Beutel, Alex Carney, and 1 others. 2024. Openai ol system card. arXiv preprint arXiv:2412.16720.
Ang Li, Charles Wang, Kaiyu Yue, Zikui Cai, Ollie Liu, Deqing Fu, Peng Guo, Wang Bill Zhu, Vatsal Sharan, Robin Jia, Willie Neiswanger, Furong Huang, Tom Goldstein, and Micah Goldblum. 2025a. Zebra-cot: A dataset for interleaved vision language reasoning. arXiv preprint arXiv:2507.16746.
Bangzheng Li, Ximeng Sun, Jiang Liu, Ze Wang, Jialian Wu, Xiaodong Yu, Hao Chen, Emad Barsoum, Muhao Chen, and Zicheng Liu. 2025b. Latent visual reasoning. arXiv preprint arXiv:2509.24251.
Chengzu Li, Wenshan Wu, Huanyu Zhang, Yan Xia, Shaoguang Mao, Li Dong, Ivan Vulić, and Furu Wei. 2025c. Imagine while reasoning in space: Multimodal visualization-of-thought. arXiv preprint arXiv:2501.07542.
Sachit Menon, Richard Zemel, and Carl Vondrick. 2024. Whiteboard-of-thought: Thinking step-by-step across modalities. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 20016–20031.
Yiming Qin, Bomin Wei, Jiaxin Ge, Konstantinos Kallidromitis, Stephanie Fu, Trevor Darrell, and XuDong Wang. 2025. Chain-of-visual-thought: Teaching vlms to see and think better with continuous visual tokens. arXiv preprint arXiv:2511.19418.
Weikang Shi, Aldrich Yu, Rongyao Fang, Houxing Ren, Ke Wang, Aojun Zhou, Changyao Tian, Xinyu Fu, Yuxuan Hu, Zimu Lu, and 1 others. 2025. Math-canvas: Intrinsic visual chain-of-thought for multimodal mathematical reasoning. arXiv preprint arXiv:2510.14958.
Zhaochen Su, Linjie Li, Mingyang Song, Yunzhuo Hao, Zhengyuan Yang, Jun Zhang, Guanjie Chen, Jiawei Gu, Juntao Li, Xiaoye Qu, and 1 others. 2025. Openthinking: Learning to think with images via visual tool reinforcement learning. arXiv preprint arXiv:2505.08617.
Dianyi Wang, Wei Song, Yikun Wang, Siyuan Wang, Kaicheng Yu, Zhongyu Wei, and Jiaqi Wang. 2025. Autoregressive semantic visual reconstruction helps vlms understand better. arXiv preprint arXiv:2506.09040.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, and 1 others. 2025a. Qwen3 technical report. arXiv preprint arXiv:2505.09388.
Zeyuan Yang, Xueyang Yu, Delin Chen, Maohao Shen, and Chuang Gan. 2025b. Machine mental imagery: Empower multimodal reasoning with latent visual tokens. arXiv preprint arXiv:2506.17218.
Kaichen Zhang, Keming Wu, Zuhao Yang, Bo Li, Kairui Hu, Bin Wang, Ziwei Liu, Xingxuan Li, and Lidong Bing. 2025. Openmmreasoner: Pushing the frontiers for multimodal reasoning with an open and general recipe. arXiv preprint arXiv:2511.16334.
Appendix
The appendix is organized as follows:
-
Appendix A provides additional performance and evaluation details, including per-task results across the five workspace categories.
-
Appendix B describes the construction of the CoVA-SFT dataset, including programmatically generated examples and examples collected from existing open-source datasets.
-
Appendix C presents representative training data examples across the supported reasoning tasks and visual abstraction types.
-
Appendix D discusses ethics, risks, intended use, artifact licensing, and dataset documentation.
-
Appendix E discusses training hyperparameters for the CoVA baseline.
-
Appendix F discloses the use of AI-based tools during manuscript preparation.
A Performance and Evaluation Details
We additionally report detailed per-task performance results for a more fine-grained evaluation of model capabilities across diverse reasoning domains. The results can be found in Table B.2. Ground truth answers in our test set span diverse formats, including letters, words, names, structured tables, and symbolic expressions. We report the main numbers in the paper using the LLM as a judge (Gemini-2.5-flash) setting, as it provides a more reliable estimate of practical reasoning performance.
B Dataset Construction Details
CoVA-SFT question-answer pairs are either programmatically generated or collected from existing open-source datasets. Below we describe each source.
Seating Arrangement: Tasks are generated using a constraint-satisfaction algorithm over two layout types (straight-line and circular) with 18 seating constraint templates. We sample a random number of seats and iteratively add constraints until a unique valid arrangement remains, discarding any constraint that conflicts with the existing set. Multiple-choice questions are then generated by prompting an LLM on the initial and final arrangements.
Logic Puzzles: Generated from the open-source Zebra Puzzles repository,¹ the pipeline samples a ground-truth world of houses and attributes, then adds weighted clue constraints until a CSP solver yields a unique solution. Each puzzle is rendered into natural language with a JSON answer key.
3D Cube: Connected voxel structures of varying dimensions are procedurally sampled and rendered into 3D visualizations. Tasks cover three question types: total exposed surface area, cubes with a given number of painted faces, and surface-area change after removing a highlighted cube. Ground-truth answers are computed automatically from the voxel geometry.
Others: All remaining data is sourced from existing open-source datasets. We provide source details in Table B.1.
C Training Data Examples
We provide representative interleaved reasoning trajectories from CoVA-SFT in Figure C.1, covering all 17 tasks across the five visual abstraction families.
D Ethics, Risks, and Artifact Documentation
Potential risks. CoVA-SFT is intended as a research dataset for studying interleaved textual and visual reasoning. The dataset may inherit errors from the upstream vision-language model used to generate intermediate reasoning traces and rendered workspaces. Although our verification and self-correction loop is designed to reduce structural inconsistencies, subtle hallucinations, incorrect reasoning steps, or malformed renderings may remain in the released data. Models trained on such data may reproduce these errors or become overconfident in visually grounded reasoning traces. We therefore recommend that CoVA-SFT be used for research and evaluation rather than for high-stakes decision making without additional validation.
Artifact licenses and intended use. CoVA-SFT combines programmatically generated examples
¹https://github.com/alexandrainst/zebra_puzzles
| game | maze |
|---|---|
| Maze solving is the problem of finding a path from a start cell to an end cell through a grid, moving only through open cells (not walls) in four directions: up, down, left, right. | |
| You are given a 5x6 maze grid (width height). Each cell is encoded as: | |
| S = start position | 00000 |
| E = end position | 01110 |
| 0 = open cell (can be traversed) | 0000E |
| 1 = wall (blocked) | Find a path from S to E. If a valid path exists, return the maze grid with every cell on the path (including S and E) replaced by 2, and all other cells unchanged. If no path exists, return exactly: UNSOLVABLE |
| Maze: | Answer: 50001 |
| S0001 | 20000 |
| 00000 | 20001 |
| 00001 | 20000 |
| 00001 | 21110 |
| CoVA | 2222E |
| To solve a maze problem, it would be great to think it visually. Let me try to visualize the current status and try to solve it on the image. I will draw the grid where black cells represent walls and light-colored cells are open corridors. The start position 'S' is marked in green, and the goal 'E' is marked in red. I will trace the path in blue with arrows indicating the direction of movement. If a path is blocked, I will highlight the frontier of walls in orange, and junctions for backtracking will be highlighted in pink. The path must move through open cells from S to E without crossing any wall. | Extend the route through r5c1, r2c1. Each new cell is open and adjacent to the previous path cell. |
|  | Extend the route through r5c1, r4c1. Each new cell is open and adjacent to the previous path cell. |
| Extend the route through r5c1, r6c1. Each new cell is open and adjacent to the previous path cell. | |
| Extend the route through r5c1, r6c1. Each new cell is open and adjacent to the previous path cell. | |
| Extend the route through r6c2, r6c3. Each new cell is open and adjacent to the previous path cell. | |
| Extend the route through r6c4, r6c5. Each new cell is open and adjacent to the previous path cell. | |
| Therefore, the final answer is: 50001 20000 20001 20000 21110 2222E | |
game chess
Given a chess position in FEN (Forsyth-Edwards Notation), find the best move for the side to move.
UCI move format: a move is written as the source square followed immediately by the destination square, using file (a-h) and rank (1-8). Examples: e2e4 (pawn from e2 to e4), g1f3 (knight from g1 to f3), e1g1 (king-side casting). For pawn promotion, append the piece letter: e7e8q (promote to queen). There are no spaces, no piece names, no captures symbol
— just source and destination squares.
Position (FEN): 5fr1/p1p1kpb1/Pp1p1n2/Q3p1Pp/4P1b1/P2P2PP/1BP2KB1/RN4NR w -- 1 21
Side to move: White
Return the best move in UCI format only, with no explanation.
Answer: g5f6
CoVA
Start by drawing the board from the FEN position and identifying the side to move.

Highlight the engine-labeled best move g5f6 (gx6+). The source label gives this as the ground-truth move for the position.

Therefore, the final answer is: g5f6
Figure C.1: Training data examples.
game arc You will be provided with the input/output pairs demonstrating the nature of the task. Then, you will see the current test input grid. Your task is to infer rules from the task demonstrations and apply it to the test input to predict the output grid. Color mapping for matrices: 0: black 1: blue 2: red 3: green 4: yellow 5: grey 6: fuschia 7: orange 8: teal 9: brown Here are the task demonstrations: Task Demonstration 1: Input grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 3, 0, 0, 0, 0, 0], [0, 0, 0, 4, 0, 4, 0, 0, 0, 0], [0, 0, 3, 0, 4, 0, 3, 0, 0, 0], [0, 0, 0, 4, 0, 4, 0, 0, 0, 0], [0, 0, 0, 0, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Output grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 3, 0, 2, 0, 0, 0], [0, 0, 0, 4, 0, 4, 0, 0, 0, 0], [0, 0, 3, 0, 4, 0, 3, 0, 0, 0], [0, 0, 0, 4, 0, 4, 0, 0, 0, 0], [0, 0, 2, 0, 3, 0, 2, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Task Demonstration 2: Input grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 3, 0, 8, 0, 0, 0, 0, 0], [0, 0, 0, 2, 0, 2, 0, 0, 0, 0], [0, 0, 8, 0, 3, 0, 8, 0, 0, 0], [0, 0, 0, 2, 0, 2, 0, 0, 0, 0], [0, 0, 0, 0, 8, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Output grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 3, 0, 8, 0, 3, 0, 0, 0], [0, 0, 0, 2, 0, 2, 0, 0, 0, 0], [0, 0, 8, 0, 3, 0, 8, 0, 0, 0], [0, 0, 0, 2, 0, 2, 0, 0, 0, 0], [0, 0, 3, 0, 8, 0, 3, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Task Demonstration 3: Input grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 8, 0, 8, 0, 8, 0, 0], [0, 0, 0, 0, 4, 0, 0, 0, 0, 0], [0, 0, 0, 8, 0, 1, 0, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 8, 0, 8, 0, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Output grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 8, 0, 8, 0, 8, 0, 0], [0, 0, 0, 0, 4, 0, 4, 0, 0, 0], [0, 0, 0, 8, 0, 1, 0, 8, 0, 0], [0, 0, 0, 0, 4, 0, 4, 0, 0, 0], [0, 0, 0, 8, 0, 8, 0, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Here are the test inputs: Test Input 1: Input grid: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 4, 0, 1, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] Answer: Test Input 1 Output: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 4, 0, 1, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 0, 0, 0], [0, 4, 0, 1, 0, 4, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 0, 0, 0], [0, 1, 0, 4, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, CoVA Step 1 — Hypothesis from Demo 1. The bounding box of all non-black cells in Demo 1 spans rows 2–6, cols 2–6. Its four corners are (2,2), (2,6), (6,2), (6,6). In the input only (2,2)=red is occupied; in the output all four corners become red=2, while everything else stays the same. Plausible hypothesis: the transformation fills the three empty corners of the bounding box with the colour of the one occupied corner. Step 2 — Verify on Demo 3. Demo 3's bounding box spans rows 1–5, cols 3– 7. Its four corners are (1,3)=teal, (1,7)=teal, (5,3)=teal, (5,7)=teal — all four are already filled! My hypothesis predicts no change at all. But the actual Demo 3 output adds yellow (4) cells at (2,6), (4,4), and (4,6), none of which are corners. That is a direct contradiction. Step 3 — Diagnosis. The corner hypothesis only tracks the extreme corners of the bounding box and ignores interior asymmetric cells; it cannot account for noncorner coloured cells (like the yellow 4 at (2,4) in Demo 3) that also need to be distributed symmetrically. Step 4 — Correct rule. The pattern has 4-fold rotational symmetry around the centre of its bounding box. For every non-black cell at relative offset (r_rel, c_rel) from the centre, the three rotated positions — 90° CW: (centre_r + c_rel, centre_c − r_rel); 180°: (centre_r − r_rel, centre_c − c_rel); 270° CW: (centre_r − c_rel, centre_c + r_rel) — are filled with the same colour if currently black. Step 5 — Re-verify on Demo 3. Demo 3 centre = (3, 5). The only asymmetric cell is yellow=4 at (2,4), giving r_rel = −1, c_rel = −1.
- 90° CW → (3+(−1), 5−(−1)) = (2, 6) = 4 ✓
- 180° → (3−(−1), 5−(−1)) = (4, 6) = 4 ✓
- 270° CW → (3−(−1), 5+(−1)) = (4, 4) = 4 ✓ All teal-8 corners already have their rotational counterparts, so they generate no new cells. This matches the actual output exactly. Step 6 — Apply to the test input. Bounding box: rows 2–6, cols 1–5 → centre (4, 3). Checking each non-black cell:
- (2,1)=1, r_rel=−2, c_rel=−2: rotations land at (2,5), (6,5), (6,1) — all already blue=1. No additions.
- (2,3)=4, r_rel=−2, c_rel=0: 90° CW → ** (4,5)=4**; 180° → (6,3)=4; 270° CW → ** (4,1)=4**. All three are black in the input → fill yellow.
- (3,2)=2, r_rel=−1, c_rel=−1: rotations land at (3,4), (5,4), (5,2) — all already red=2.
- (4,3)=1, r_rel=0, c_rel=0: maps to itself.
- Remaining cells similarly already have their symmetric counterparts. Three cells are added: (4,1)=4, (4,5)=4, (6,3)=4. Answer: The output equals the test input with three yellow (4) cells added — at row 4 col 1, row 4 col 5, and row 6 col 3 — completing the 4-fold rotational symmetry of the pattern around centre (4, 3). Figure C.1: Training data examples (continued). 9

graph clutrr
[Sarah] is a sister of [Curtis]. [Desiree] has a brother named [Jeremy]. [Curtis] is [Jeremy]'s brother. How is [Desiree] related to [Sarah] ?
Answer: sister
CoVA
Let's solve this complicated relationship problem with a family tree. Before drawing, I will use the colors consistently: red marks the newly added relationship in the current image, gray marks relationships that were already checked in earlier images, and green marks the two queried people in the final image. I will first state the evidence and drawing plan, then inspect the rendered image before deciding whether to continue or redraw.
We need to establish the family relationships step by step. The story tells us: (1) Sarah is a sister of Curtis, (2) Desiree has a brother named Jeremy, (3) Curtis is Jeremy's brother. We must determine how Desiree relates to Sarah. The key insight is that if Curtis and Jeremy are brothers, and Sarah is Curtis's sister, then Sarah and Jeremy are also siblings. If Desiree has Jeremy as a brother, then Desiree and Sarah must be sisters. We'll draw the family tree to show these sibling relationships connecting all four people. Evidence: 'Sarah is a sister of Curtis.' This establishes that Sarah and Curtis are siblings. We'll draw a horizontal sibling edge between Sarah and Curtis, with both at the same generation level. This is our first connection.

The image correctly shows Sarah and Curtis as siblings connected by a horizontal red line labeled 'sister', matching the evidence 'Sarah is a sister of Curtis'. Both are positioned at the same generation level, confirming proper hierarchy. Desiree is also present in the image. The required edge is present with the correct kinship label and connects the correct pair of people. Evidence: 'Desiree has a brother named Jeremy.' This establishes that Desiree and Jeremy are siblings. We'll draw a horizontal sibling edge between Desiree and Jeremy, with both at the same generation level. This connects Desiree to Jeremy, and since Jeremy is Curtis's brother, we can then link the two sibling pairs together.

The image displays four people on the same generation row: Sarah, Desiree, Curtis, and Jeremy, all horizontally aligned. Two sibling edges are present: a gray edge labeled 'sister' connecting Sarah to Desiree (though the label placement suggests this may be bridging between them), and a red edge labeled 'sister' connecting Desiree to Jeremy. However, examining the edges more carefully, the first gray 'sister' edge appears to connect Sarah and Desiree, but the specification requires an edge between Sarah and Curtis labeled 'sister'. The red 'sister' edge correctly connects Desiree and Jeremy as required by this step. The hierarchy is correct with all four people on the same generation level, which is appropriate for siblings. The new edge for this step (Desiree-Jeremy sister relationship) is present and labeled correctly.
All needed rules are now on the family tree, so I draw one final image with the two queried people highlighted in green before making the conclusion.

The family tree visualization shows four people on the same generation level: Sarah, Desiree, Curtis, and Jeremy. The chain of relations connecting Desiree to Sarah has been established through the following: (1) Sarah is a sister of Curtis (first gray 'sister' edge from Sarah to Desiree, then continuing); (2) Desiree has a brother named Jeremy (second gray 'sister' edge from Desiree to Curtis, then to Jeremy). The key connecting link is that Curtis appears in both sibling groups—he is Sarah's brother and also Jeremy's brother. This means Sarah, Curtis, Jeremy, and Desiree are all siblings in the same family unit. The final rendered image correctly displays all four individuals at the same generation level with appropriate sibling edges. The images were checked after drawing and no redraws were needed. The final family-tree chain of relations is: Sarah-Curtis (siblings) and Desiree-Jeremy (siblings), with Curtis being the common brother linking both pairs. Since Curtis connects both pairs and all four people share the same parents (implied by the sibling relationships), Desiree and Sarah are sisters.
graph prosqa
Every rempus is a terpus. Jack is a gwompus. Every terpus is a gwompus. Every yimpus is a zumpus. Every yimpus is a fompus. Every worpus is a kerpus. Every timpus is a rempus. Every fompus is a gerpus. Every yimpus is a ropus. Jack is a boompus. Jack is a dumpus. Every zumpus is a boompus. Jack is a brimpus. Every dumpus is a vumpus. Every quimpus is a gwompus. Every zumpus is a dumpus. Every fompus is a dumpus. Every timpus is a
vumpus. Every rempus is a scrompus. Every rompus is a kerpus. Every worpus is a rompus. Every worpus is a wumpus. Max is a kerpus. Every rempus is a quimpus. Jack is a timpus. Jack is a yimpus. Max is a worpus. Every zumpus is a gwompus. Every yimpus is a timpus. Is Jack a scrompus or wumpus?
Answer: Jack is a scrompus.
CoVA
We are told directly that Jack is a timpus, so we can start the inference chain from Jack to timpus.

Also given: every timpus is a rempus. Since Jack is a timpus, Jack is therefore a rempus.

We have: every rempus is a scrompus. Since Jack is a rempus, Jack must be a scrompus.

Conclusion: the chain Jack → timpus → rempus → scrompus proves Jack is a scrompus (so the correct choice is scrompus).
Figure C.1: Training data examples (continued).
graph graphinstruct
Find the maximum flow between two nodes in a directed graph. In a directed graph, means that node i and node j are connected with an directed edge from node i to node j with weight k. Given a graph and a pair of nodes, you need to output the maximum flow between the two nodes. Q: The nodes are numbered from 0 to 7, and the edges are: . What is the maximum flow from node 2 to node 6?
Answer: 8.
CoVA
We first list all nodes mentioned: they are numbered 0 through 7. Next, we include every directed edge with its capacity as given. The source is node 2 and the target (sink) is node 6, so we highlight those two nodes.

We need the maximum possible flow that can be sent from source node 2 to sink node 6 while respecting all directed edge capacities. To start building an augmenting path toward node 6, we can examine an outgoing edge from the source. A natural first candidate is edge 2→3 with capacity 9, since node 3 connects onward toward node 5 and then to node 6.

Any flow from 2 to 6 must pass through node 5 because the only incoming edge to 6 is 5→6 (capacity 8). The total capacity into node 5 from nodes reachable from 2 is 3→5 (5) plus 4→5 (3), totaling 8, so 8 is achievable and also an upper bound. One valid decomposition is sending 5 units along 2→3→5→6 and 3 units along 2→4→5→6.

The sink 6 has only one incoming edge, 5→6 with capacity 8, so the max flow cannot exceed 8. From source 2, we can supply node 5 with up to 5 via 2→3→5 and up to 3 via 2→4→5, totaling 8, which then fully uses 5→6. Therefore the maximum flow from 2 to 6 is 8. So the answer is 8.
graph graph_coloring
Graph coloring is the problem of assigning a color to each vertex of a graph such that no two adjacent vertices (connected by an edge) share the same color.
You are given a graph with vertices 0 through 9. Your task is to assign each vertex a color using only the integer color labels 3, 4, or 5, such that no two vertices connected by an edge have the same color.
Edges (pairs of adjacent vertices):
[(0, 2), (0, 8), (0, 9), (1, 2), (1, 3), (1, 4), (1, 7), (1, 8), (1, 9), (2, 6), (2, 8), (3, 4), (3, 6), (3, 9), (4, 6), (5, 8), (5, 9), (8, 9)]
Return your answer as a JSON object mapping each vertex id (as a string) to its integer color label. Example format: {"0": "3", "1": "4", ...}
Answer: {"0": "3", "1": "3", "2": "4", "3": "5", "4": "4", "5": "3", "6": "3", "7": "4", "8": "5", "9": "4"}
CoVA
Let's begin by visualizing the uncolored graph, where edges indicate that connected vertices must have different colors according to the graph adjacency rule.

First, I'll assign color 3 to vertex 1 and color 5 to vertex 8. These initial assignments are valid as there are no colored neighbors yet to conflict with the graph adjacency rule.
Next, I'll assign color 4 to vertex 9, which is valid because its colored neighbors vertex 1 (color 3) and vertex 8 (color 5) are different. Then, I'll assign color 4 to vertex 2, as its colored neighbors vertex 1 (color 3) and vertex 8 (color 5) also allow this choice, adhering to the graph adjacency rule.
Now, I'll assign color 5 to vertex 3, which is required because its neighbors vertex 1 (color 3) and vertex 9 (color 4) rule out those options by the graph adjacency rule. Similarly, vertex 0 must be color 3 because its neighbors vertex 2 (color 4), vertex 8 (color 5), and vertex 9 (color 4) prevent it from being 4 or 5.
Continuing, vertex 4 must be color 4 because its neighbors vertex 1 (color 3) and vertex 3 (color 5) leave 4 as the only option, following the graph adjacency rule. Vertex 6 also must be color 3, as its neighbors vertex 2 (color 4), vertex 3 (color 5), and vertex 4 (color 4) rule out 4 and 5.
Finally, vertex 5 is assigned color 3, which is valid since its neighbors vertex 8 (color 5) and vertex 9 (color 4) are different. Vertex 7 can be assigned color 4, as its only colored neighbor vertex 1 (color 3) does not conflict with the graph adjacency rule.
All vertices have been colored such that no two adjacent vertices share the same color. The final coloring is: {"0": "3", "1": "3", "2": "4", "3": "5", "4": "4", "5": "3", "6": "3", "7": "4", "8": "5", "9": "4"}
Figure C.1: Training data examples (continued).
layout spatiallevel
You have been given an equilateral triangular tile map consisting of 3 rows, where the first row has one tile, the second row has three tiles, and so on, so that the i-th row has 2*i-1 tiles. Starting from a vertex, you will move along the edges of these tiles. Initially, you are positioned at the bottom right corner of the map, where you find a titi. You move up-left by one step, where you find a ram. You move down-left by one step, where you find a holster.
You move left by one step, where you find a spider web. You move up-left by one step, where you find a tusker. You move up-right by one step, where you find a hatchet. You move up-right by one step, where you find a clogs. You move down-right by one step, where you find a lighthouse. You move left by one step. What will you find?
Answer: hatchet
CoVA
We model the triangular map as a subset of a triangular lattice of vertices (axial coordinates x,y) with 6 edge directions: left, right, up-left, up-right, down-left, down-right. The finite region is the corner triangle with corners at (0,0), (-3,0), and (0,-3); (0,0) is the bottom-right corner. Items are attached to the specific vertices encountered on the given path. Okay, I've got a position — the current spot is titit. Let me draw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom. I'll color titit in red and add a top legend marking red = current position and green = previous position (nothing in green yet).

From the bottom-right corner, moving up-left applies the delta (0, -1) to reach the adjacent vertex. Okay, new step — the current position is ram and I just came from titit. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color ram in red and titit in green, with a legend at the top.
From (0, -1), a down-left step adds (-1, 1) to reach (-1, 0). Okay, new step — the current position is holster and I just came from ram. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color holster in red and ram in green, with a legend at the top.
From (-1, 0), a left step adds (-1, 0) to arrive at (-2, 0). Okay, new step — the current position is spider web and I just came from holster. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color spider web in red and holster in green, with a legend at the top.
From (-2, 0), an up-left step adds (0, -1) to reach (-2, -1). Okay, new step — the current position is tusker and I just came from spider web. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color tusker in red and spider web in green, with a legend at the top.
From (-2, -1), an up-right step adds (1, -1) to reach (-1, -2). Okay, new step — the current position is hatchet and I just came from tusker. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color hatchet in red and tusker in green, with a legend at the top.
From (-1, -2), another up-right step adds (1, -1) to reach (0, -3). Okay, new step — the current position is clogs and I just came from hatchet. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color clogs in red and hatchet in green, with a legend at the top.

From (0, -3), a down-right step adds (0, 1) to return to (0, -2). Okay, new step — the current position is lighthouse and I just came from clogs. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color lighthouse in red and clogs in green, with a legend at the top.
From (0, -2), a left step adds (-1, 0) to land on (-1, -2), returning to the hatchet vertex. Okay, new step — the current position is hatchet and I just came from lighthouse. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color hatchet in red and lighthouse in green, with a legend at the top.
From (0, -2), a left step adds (-1, 0) to land on (-1, -2), returning to the hatchet vertex. Okay, new step — the current position is hatchet and I just came from lighthouse. Time to redraw the picture: 3 rows of triangular tiles (1, 3, and 5 tiles per row), giving 10 vertices arranged in 4 rows of 1, 2, 3, 4 from top to bottom; I'll color hatchet in red and lighthouse in green, with a legend at the top.
So the final answer is hatchet.
layout binpacking
You are given a list of items. Each item has an identifier and an associated weight. Determine the minimum number of bins (each with a capacity of 6) needed to pack all items without exceeding the capacity of any bin. Return a Python list of lists, where each inner list contains the IDs of items assigned to a bin.
Capacity: 6
Items: [[0, 1], (1, 1), (2, 5), (3, 3), (4, 5), (5, 3), (6, 3), (7, 3)]
Constraints: each item ID must appear exactly once; the sum of weights in each bin must not exceed capacity; use the minimum number of bins.
Answer: [[5, 6], [0, 4], [1, 2], [3, 7]]
CoVA
We are tasked with packing items into bins with a maximum capacity of 6. We will process the items according to the optimal bin assignments.
For Bin 1, we include item 5 (3), Item 6 (3). The combined weight is 3 + 3 = 6, which is within the capacity of 6.

For Bin 2, we include item 0 (1), Item 4 (5). The combined weight is 1 + 5 = 6, which is within the capacity of 6.
For Bin 3, we include item 1 (1), Item 2 (5). The combined weight is 1 + 5 = 6, which is within the capacity of 6.
For Bin 4, we include item 3 (3), Item 7 (3). The combined weight is 3 + 3 = 6, which is within the capacity of 6.
Therefore, the final answer is: [[5, 6], [0, 4], [1, 2], [3, 7]]
Figure C.1: Training data examples (continued).
layout seating_arrangement
Six persons - George, Suresh, Walter, Faith, Mithun and Nicholas - are sitting in a straight line facing north, but not necessarily in the same order. Mithun is not an immediate neighbour of Nicholas. George does not sit at any of the extreme ends. Walter is on the left of George but not on the immediate left. George is on the left of Mithun but not on the immediate left. Walter is not an immediate neighbour of Nicholas. Faith is on the left of George but not on the immediate left. Who sits to the immediate right of George? A. Walter | B. Faith | C. Nicholas | D. Suresh | E. Mithun
Answer: D
CoVA
George does not sit at the extreme ends, so he must be in seats 2, 3, 4, or 5. Walter is on the left of George but not immediately, so Walter cannot be in seat 1. Let's place Walter in seat 2 and George in seat 4 to satisfy Walter not being immediately left and Faith being on the left of George but not immediately.

Faith is on the left of George but not immediately, so Faith must be in seat 1. Mithun is on the right of George but not immediately, so Mithun must be in seat 6.

Nicholas cannot be adjacent to Mithun, so Nicholas must be in seat 3. This leaves seat 5 for Suresh.

All constraints are satisfied: George is not at the ends, Walter is on the left of George, and Faith is on the left of George. Mithun is not adjacent to Nicholas. The arrangement is valid, and Suresh is to the immediate right of George. So the answer is D.
math 3d_cube
A solid is made by stacking unit cubes on a 3 by 5 grid. Each number below gives the height of the stack at that grid cell. A 0 means the cell is empty. The rows are listed from front to back, and within each row the numbers go from left to right.
front row 1: 1 1 1 1 1
front row 2: 1 1 1 1 1
front row 3: 1 0 0 1 1
Suppose the entire outside of the solid is painted, including the bottom faces that touch the table. After painting, how many unit cubes have exactly 4 painted faces?
Answer: 4
CoVA
The solid is a single layer of unit cubes on a 3x5 grid. I will first model the grid heights and then determine the number of painted faces for each cube. Since all cubes are height 1, each has its top and bottom faces painted. The number of painted side faces depends on how many horizontal neighbors it has. A cube with exactly 4 painted faces must have exactly 2 horizontal neighbors (6 - 2 = 4). I will identify all cubes and count their horizontal neighbors.
I will start by visualizing the solid's layout based on the provided height grid to understand its overall shape and identify all 13 cubes.

The solid consists of 13 cubes. Row 1 (front) and Row 2 (middle) are full with 5 cubes each. Row 3 (back) has cubes only at positions (2,0), (2,3), and (2,4). This forms a 2x5 block with three additional cubes attached at the back.
Now I will examine the top surface to identify the positions of all cubes and prepare for neighbor counting.

From the top view, we see 13 orange patches. The cubes are at (0,0-4), (1,0-4), (2,0), (2,3), and (2,4). Each of these has at least a top and bottom face painted.
I will now calculate the number of horizontal neighbors for each cube. A cube has 4 painted faces if it has exactly 2 neighbors.

Counting neighbors for each cube:
-
(0,0): Neighbors (0,1), (1,0) -> 2 neighbors (4 faces)
-
(0,1-3): 3 neighbors each (3 faces)
-
(0,4): Neighbors (0,3), (1,4) -> 2 neighbors (4 faces)
-
(1,0): Neighbors (0,0), (1,1), (2,0) -> 3 neighbors (3 faces)
-
(1,1-2): 3 neighbors each (3 faces, as (2,1) and (2,2) are empty)
-
(1,3): Neighbors (0,3), (1,2), (1,4), (2,3) -> 4 neighbors (2 faces)
-
(1,4): Neighbors (0,4), (1,3), (2,4) -> 3 neighbors (3 faces)
-
(2,0): Neighbor (1,0) -> 1 neighbor (5 faces)
-
(2,3): Neighbors (1,3), (2,4) -> 2 neighbors (4 faces)
-
(2,4): Neighbors (1,4), (2,3) -> 2 neighbors (4 faces)
verification:* The total surface area can be calculated as Top(13) + Bottom(13) + Front(5) + Back(5) + Left(4) + Right(4) = 44. Summing the individual cube faces: 4(4) + 7(3) + 1(2) + 1(5) = 16 + 21 + 2 + 5 = 44. Both methods yield the same total surface area, confirming the neighbor counts are correct.
The cubes with exactly 2 horizontal neighbors (and thus exactly 4 painted faces) are located at (0,0), (0,4), (2,3), and (2,4). There are 4 such cubes in total.
math mathnet
There were two parallel railways, on the first of which are n stations and on the other are m stations. A company constructed a new station between the railways and connected by railways the new station with the old ones. From an economical point of view, the company decided to close some railways between stations to have only n + m railways. How many ways can it be arranged so that one could make a journey from any station to any other station?
(proposed by B. Horoldagwa)
Answer:
CoVA
Let C denote the new station and let the A₁,...,An and B₁,...,Bm be the stations on the two original parallel railways. Because there are no edges joining the A-stations to the B-stations except through C, the choices of which rails to keep on the A-side and on the B-side are independent; therefore the total number of admissible configurations factors as (number of admissible configurations on the A-side) times (the analogous number on the B-side). I will concentrate on the A-side and denote by u_n the number of ways to keep exactly n edges among the edges incident to the A-side (that is, among the n spokes C-Ai and the n-1 edges along the A-rail) so that the subgraph induced by C and A₁,...,An is connected. The same count u_m applies to the B-side, so the final answer will be u_n-u_m.

A connected subgraph on the vertex set {C,A₁,...,An} with exactly n edges is a tree on n+1 vertices. Look at the edges that remain along the A-rail: they partition the ordered list A₁A₂,...,An into contiguous blocks (parts). If the partition has i parts of sizes d₁,d₂,...,d_l (so d₁+...+d_l = n and each d_i ≥ 1), then in a tree there must be exactly one edge from C to each part; otherwise either the part would be disconnected from C or we would create a cycle. Moreover, for a given part of length d the single edge from C to that part may attach to any one of the d stations in the part, giving d choices for that part. Consequently, for a fixed ordered composition (d₁,...,d_l) of n the number of trees realizing that composition is d₁d₂,...,d_l. Summing over all ordered compositions of n gives u_n: it is the sum, over all sequences of positive integers (d₁,...,d_l) with sum n, of the product π d.

To encode this sum, consider the generating function for a single part: the weight of a part of size d is d, so the one-part generating function is F(x) = ∑_d(dx) d x^d. This series sums to F(x) = x/(1-x)^2.
A composition of n into k parts contributes the coefficient of x^n in F(x)^k, and u_n is the sum over all k≤1 of those coefficients. Hence if S(x) = ∑{n≥1} u_n x^n we have formally S(x) = ∑{k≤1} F(x)^k.
Now expand F(x)^k = x^n k/(1-x)^2 (2k). Using the binomial series 1/(1-x)^2(2k) = ∑{i=0} binom(2k+i-1,i) x^i, the coefficient of x^n in F(x)^k is obtained by writing n = k + i, i = n-k, yielding coef{-}(x^n) F(x)^k = binom(2k+(n-k)-1, n-k) = binom(k+n-1, n-k). Therefore u_n = ∑{k=1}^{k=1} (n) binom(k+n-1, n-k). By the multiplicative independence noted at the start, the number of admissible global configurations is u_n-u_m, i.e. u_n-u_m = (∑{k=1}^{k=1} (n) binom(k+n-1, n-k)) · (∑_{i=1}^{k} (m) binom(i+m-1, m-1)).
Finally, this quantity can be written in closed form as (1/5) · ((3+√5)/2)^n - ((3-√5)/2)^n · ((3+√5)/2)^m - ((3-√5)/2)^m).
Figure C.1: Training data examples (continued).
math math_vr
Given the real-coefficient equation in : , with one root in and the other root in , the area of the region where the point lies is ___.
Answer:
CoVA
Let me define to analyze when the quadratic has roots in the required intervals.

The parabola illustrated here shows a typical upward-opening quadratic. For the roots to satisfy our conditions —one in and one in —the parabola must cross the -axis once between and , and once between and .
For the real-coefficient equation to have one root in and the other in , since the parabola opens upward, we need the function values at the boundary points to satisfy specific sign conditions:
gives , so .
gives , so .
gives , so .
Now I should visualize the constraints in the parameter plane. Let me plot the three boundary lines derived from the conditions above:

The region is bounded by the line (the -axis), the line , and the line . The feasible region lies above the -axis, below the line , and above the line . From the figure, the vertices of this triangular region are at points , and .
To find the vertices, I solve pairs of boundary equations. The intersection of and is found by subtracting: , so . Substituting back, gives . Thus .
The intersection of and is , giving point .
The intersection of and is , giving point .
From the figure I observe that the feasible region forms a triangle with vertices at , , and . The base of this triangle lies on the -axis from to , with length 1, and the height extends vertically to .
Therefore, the area of the region where lies is .
The answer is .
table acp
This is a visitall domain where a robot in a grid must visit all the cells or places in the grid. There are some unavailable places in the grid. The grid size is , and the location cell names are of the form loc-xi-yj (e.g., loc-x0-y2 or loc-x1-y1). The grid cells are connected to their available neighbors. The unavailable cells are loc-x3-y3, loc-x3-y1, loc-x0-y2, and loc-x1-y0. Currently, the robot is in place loc-x2-y3. The following places have been visited: loc-x1-y1, loc-x0-y3, loc-x1-y3, loc-x2-y0, loc-x0-y1, loc-x2-y3, loc-x1-y2, loc-x0-y0, loc-
x2-y2, loc-x2-y1, and loc-x3-y0.
Question: Which of the following actions will be applicable in this state? A. go to loc-x2-y1 from loc-x2-y0. B. go to loc-x2-y2 from loc-x2-y3. C. go to loc-x0-y0 from loc-x0-y1. D. go to loc-x2-y2 from loc-x3-y2.
The final answer should be the single letter of the correct option (A, B, C, or D).
Answer: B
CoVA
To determine which actions are applicable, we first need to understand the current state of the robot and the grid. The table below summarizes the robot's current location (Robot Loc), the cells that are unavailable (Unavail), and the cells that have already been visited (Visited). This information is crucial for checking the preconditions of the 'go' action, which typically requires the robot to be at the 'from' location, and the 'to' location to be available and connected to the 'from' location.
| Fact Type | Details |
|---|---|
| Robot Loc | loc-x2-y3 |
| Unavail | loc-x3-y3, loc-x3-y1, loc-x0-y2, loc-x1-y0 |
| Visited | loc-x1-y1, loc-x0-y3, loc-x0-y2, loc-x1-y3, loc-x2-y0 |
The robot is currently at loc-x2-y3. We will now evaluate each candidate action based on these facts and the connectivity rules of the grid (cells are connected to available neighbors). Now we check each candidate action for applicability. An action 'go to ?to from ?from' is applicable if: 1) The robot is at ?from (Robot Loc = ?from). 2) ?from and ?to are connected (Connected ? from ?to). 3) ?to is an available cell (not in Unavail). The table below checks these preconditions for each option. 'Act' is the action, 'Rob@From' checks if the robot is at the 'from' location, 'Conn' checks if 'from' and 'to' are connected, and 'ToAvail' checks if 'to' is available. 'OK' means the precondition holds, 'X' means it fails.
| Act | Rob@From | Conn |
|---|---|---|
| A. go loc-x2-y1 | X (loc-x2-y3 = loc-x2-y0) | OK |
| B. go loc-x2-y2 | OK (loc-x2-y3) | OK |
| C. go loc-x0-y0 | X (loc-x2-y3 = loc-x0-y1) | OK |
| D. go loc-x2-y2 | X (loc-x2-y3 = loc-x3-y2) | OK |
Based on the checks, only action B satisfies all preconditions. For actions A, C, and D, the robot is not at the specified 'from' location, making them inapplicable. Action B is applicable because the robot is at loc-x2-y3, loc-x2-y3 is connected to loc-x2-y2, and loc-x2-y2 is an available cell. The fact that loc-x2-y2 has already been visited does not prevent the 'go' action from being applicable, as visiting status is not a precondition for movement in this domain. The final answer is B.
Final answer: B
table logicpuzzle
A row of houses have numbers 1 to 2 from left to right.
In each house lives a person with unique attributes in each of the following categories:
Nationalities: Italy and Sweden.
Hobbies: crocheting and football.
We also know the following:
The Italian lives to the left of the person who plays football.
Who has which attributes and lives in which house?
Please submit your answer as a JSON dictionary in the format below. Each row must begin with object_X where X is the house number. Each column represents a category, and they should be in the same order as in the list of categories above.
{
"object_1": [
"nationalities_1",
"hobbies_1"
],
"object_2": [
"nationalities_2",
"hobbies_2"
]
}
Answer: {"object_1": ["Italy", "crocheting"], "object_2": ["Sweden", "football"]}
CoVA
I'll begin with an empty table (all cells are ?).
| object 1 | object 2 |
|---|---|
| ? | ? |
| ? | ? |
Clue: "The Italian lives to the left of the person who plays football". With only 2 houses, the Italian must be in house 1, and the football player must be in house 2.
| object 1 | object 2 |
|---|---|
| Italy | ? |
| ? | football |
Now fill remaining unique attributes: the remaining nationality (Sweden) goes to house 2, and the remaining hobby (crocheting) goes to house 1.
| object 1 | object 2 |
|---|---|
| Italy | Sweden |
| crocheting | football |
All attributes are now mapped. The final complete table is shown below.
| ? | House 1 | House 2 |
|---|---|---|
| Nationalities | Italy | Sweden |
| Hobbies | crocheting | football |
Let me verify each clue against the solution:
- "The Italian lives to the left of the person who plays football." — Italian in house 1, football player in house 2; house 1 is left of house 2. ✓
All constraints satisfied.
...json
{
"object_1": [
"Italy",
"crocheting"
],
"object_2": [
"Sweden",
"football"
]
}
...
Figure C.1: Training data examples (continued).
| Source Repository / URL | |
|---|---|
| ARC Interleaved | https://huggingface.co/datasets/multimodal-reasoning-lab/Zebra-CoT |
| GraphInstruct | https://huggingface.co/datasets/GraphWiz/GraphInstruct |
| CLUTRR | https://huggingface.co/datasets/CLUTRR/v1 |
| SpatialEval | https://huggingface.co/datasets/yyamada/SpatialEvalLLM |
| ProsQA | https://github.com/facebookresearch/coconut/tree/main/data |
| Math-VR | https://huggingface.co/datasets/gogoduan/Math-VR-train |
| MathNet | https://huggingface.co/datasets/ShadenA/MathNet |
| ACP Bench | https://huggingface.co/datasets/ibm-research/acp_bench |
| Bin Packing | https://huggingface.co/datasets/mideavalwisard/ACCORD |
| Scheduling CSP | https://huggingface.co/datasets/strickvl/constraint-sat-1000 |
| GRAM Graph Coloring | https://huggingface.co/datasets/brozonoyer/gram-graph-coloring |
| Puzzle-Bench Sudoku | https://huggingface.co/datasets/zeyuzy/puzzle-bench |
| 2D Maze Dataset | https://huggingface.co/datasets/achinta3/2d_maze_dataset_with_grid_size |
| Chess Dataset | https://huggingface.co/datasets/aac43t34ty34ty34/chess-dataset |
Table B.1: Source datasets used for constructing the interleaved reasoning corpus.
with examples derived from existing open-source datasets. The original portions of CoVA-SFT created by us will be released under the CC BY 4.0 License. For each external source used in the dataset, we list the original dataset name and URL in Table B.1; any examples derived from these sources remain subject to the applicable licenses and usage restrictions specified by their original creators. We use these artifacts for research purposes consistent with their intended use, including constructing and evaluating reasoning tasks involving graphs, games, layouts, tables, and mathematical reasoning. We do not intentionally include private, personally identifiable, or offensive content.
E Experimental Hyperparameters
This appendix provides additional details regarding the hyperparameter configurations and hardware infrastructure used during the training of CoVA.
Hardware and Infrastructure. All experiments were conducted on a cluster of NVIDIA H200 (80GB) GPUs. SFT training was distributed across 8 H200 GPUs using Fully Sharded Data Parallel (FSDP2) in mixed-precision bfloat16. Training utilized FlashAttention v2 and Liger Kernel fused operations to optimize throughput and memory efficiency.
Optimization Details. The hyperparameter settings are summarized in Table E.1. During SFT we optimized the joint text and latent visual token objective. The visual encoder was unfrozen to allow for better representation alignment with the soft visual tokens. The training corpus of 51.9K interleaved samples was trained for 2 epochs.
F AI Use Disclosure
The authors used AI-based tools to assist with code generation, editing, and writing during the preparation of this paper. Specifically, AI assistance was used to help draft and revise portions of the manuscript for clarity, grammar, and organization, and to support the development, debugging, and refinement of code used in the research workflow. All AI-generated or AI-assisted content, code, analyses, and interpretations were reviewed, verified, and, where necessary, modified by the authors. The authors take full responsibility for the accuracy, integrity, originality, and final content of the paper, including any code or text developed with AI assistance.
| Workspace | Method | Task type | |||
|---|---|---|---|---|---|
| ARC | Chess | Maze | Sudoku | ||
| Game | Qwen3-Think (Yang et al., 2025a) | 7.0 | 7.0 | 48.0 | 15.0 |
| Qwen3-VL-Thinking (Bai et al., 2025) | 23.0 | 9.0 | 50.0 | 20.0 | |
| CoVA-SFT (Ours) | 3.3 | 0.0 | 77.0 | 0.0 | |
| Graph | CLUTRR | GraphColor | GraphInst. | ProsQA | |
| Qwen3-Think (Yang et al., 2025a) | 37.0 | 21.0 | 97.0 | 23.0 | |
| Qwen3-VL-Thinking (Bai et al., 2025) | 39.0 | 16.0 | 100.0 | 31.0 | |
| CoVA-SFT (Ours) | 83.6 | 12.5 | 82.0 | 93.8 | |
| Layout | BinPack | SeatingArr | SpatialEval | — | |
| Qwen3-Think (Yang et al., 2025a) | 60.0 | 70.0 | 78.0 | — | |
| Qwen3-VL-Thinking (Bai et al., 2025) | 67.0 | 78.0 | 84.0 | — | |
| CoVA-SFT (Ours) | 37.5 | 49.2 | 73.4 | — | |
| Math | 3D-Cube | MathVR | MathNet | — | |
| Qwen3-Think (Yang et al., 2025a) | 18.0 | 25.0 | 32.0 | — | |
| Qwen3-VL-Thinking (Bai et al., 2025) | 19.0 | 31.0 | 32.0 | — | |
| CoVA-SFT (Ours) | 9.8 | 10.9 | 4.9 | — | |
| Table | ACP | LogicPuzzle | Scheduling | — | |
| Qwen3-Think (Yang et al., 2025a) | 60.0 | 49.0 | 93.0 | — | |
| Qwen3-VL-Thinking (Bai et al., 2025) | 62.0 | 84.0 | 95.0 | — | |
| CoVA-SFT (Ours) | 56.2 | 50.8 | 34.5 | — | |
Table B.2: Per-category reasoning performance (%).
Table E.1: Training hyperparameters for the SFT phase.
| Hyperparameter | SFT |
|---|---|
| Backbone Model | Qwen3-VL-8B-Thinking |
| Optimizer | AdamW |
| Learning Rate | |
| LR Schedule | Cosine |
| Warmup Steps | 50 |
| Global Batch Size | 16 |
| Epochs | 2 |
| Visual Tokens per Image | 128 |
| SFT Loss Weight () | 1.0 |
| Max Response Length | 32,768 |