NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Uni-cot: Towards Unified Chain-of-Thought Reasoning Across Text and Vision

Luozheng Qin, Jia Gong, Yuqing Sun, Tianjiao Li, Mengping Yang, Xiaomeng Yang, Chao Qu, Zhiyu Tan, Hao Li · DOI

Introduction

The success of Chain-of-Thought (CoT) reasoning in Large Language Models (LLMs) has set a high bar for complex problem-solving. However, extending this capability to Large Multimodal Models (LMMs) introduces unique challenges. Reasoning in a multimodal context often requires managing visual state transitions—such as the intermediate steps of a puzzle or the iterative refinement of an image—which are difficult to capture through text alone. Furthermore, the computational cost of processing high-resolution visual tokens across long reasoning chains leads to a "token tax" that scales quadratically, making deep multimodal reasoning prohibitively expensive.

Uni-CoT addresses these challenges by introducing a hierarchical framework that unifies text and vision reasoning. By decomposing tasks into macro-level plans and micro-level self-reflections, Uni-CoT enables models to perform step-by-step reasoning while maintaining computational efficiency and state-of-the-art performance across image generation and understanding tasks.

Overview of the Uni-CoT framework across image editing, generation, and understanding tasks.

Methodology: Macro-Micro Hierarchical Reasoning

Uni-CoT is built upon BAGEL, a unified model designed for both image understanding and generation. The framework's core innovation lies in its hierarchical structure, which separates high-level strategy from low-level execution.

Macro-Level Planning

At the macro level, a "Planner" module analyzes the user prompt and decomposes it into a sequence of manageable subgoals. This high-level decomposition ensures that the model maintains a clear roadmap for complex tasks. Once the subtasks are executed, a "Summarizer" aggregates the intermediate results into a final output.

Micro-Level Execution and Self-Reflection

Each subtask identified by the planner is treated as a Markov Decision Process (MDP). In this micro-level stage, the model focuses exclusively on the current visual state and the specific instruction for that subtask. To ensure high-quality outputs, Uni-CoT employs a self-reflection mechanism. The model generates an initial result, evaluates it for logical or visual discrepancies, and iteratively refines it until the desired outcome is achieved.

Efficient Attention Masking

To mitigate the computational "token tax," Uni-CoT utilizes specialized attention masks. The Macro Mask isolates the global planner from the detailed internal reasoning of individual subtasks, while the Micro Mask enforces the MDP structure by limiting the model's focus to the immediate state. This architectural choice shifts the computational complexity from quadratic ($O(T^2)$) to near-linear ($O(T)$), allowing for significantly longer reasoning chains.

The hierarchical architecture of Uni-CoT, highlighting the interaction between macro/micro levels and the attention masking mechanism.

Experimental Evaluation

The researchers evaluated Uni-CoT using a newly constructed dataset of 30,000 multimodal reasoning samples, covering planning, synthesis, and refinement. Evaluation benchmarks included GenEval and WISE for image generation, and MME, MMMU, MathVista, and Jigsaw-R1 for image understanding.

Image Generation and Understanding Performance

Uni-CoT demonstrated state-of-the-art performance across several benchmarks:

  • Image Generation: On the WISE benchmark, Uni-CoT achieved a score of 0.75, rivaling leading closed-source models. It also reached 0.83 on GenEval.
  • Image Understanding: The model excelled on the Jigsaw-R1 benchmark, which tests structured visual reasoning through puzzle-solving. It significantly outperformed existing open-source competitors in perception-heavy tasks.

Computational Efficiency

The hierarchical design proved highly effective in reducing overhead. For reasoning chains involving 10 steps, Uni-CoT reduced token interaction counts by up to 11.26x compared to non-hierarchical baselines. Additionally, the model exhibited faster convergence during training, reaching stable loss in 6,000 steps—half the time required by standard non-hierarchical approaches.

Discussion and Future Work

Uni-CoT represents a significant step toward unified multimodal reasoning. By treating visual transitions as integral parts of the reasoning chain and employing a hierarchical structure, it overcomes the primary hurdles of state management and computational cost.

While the current results are promising, the reliance on synthetic data suggests a need for larger, more diverse datasets. Future research may focus on improving pixel-level consistency in long edit chains and grounding the model's reasoning in real-world physical environments, such as robotics and autonomous navigation.

Summary updated

BibTeX
@inproceedings{qin2026uni,
  author = {Luozheng Qin and Jia Gong and Yuqing Sun and Tianjiao Li and Mengping Yang and Xiaomeng Yang and Chao Qu and Zhiyu Tan and Hao Li},
  title = {{Uni-cot: Towards Unified Chain-of-Thought Reasoning Across Text and Vision}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=5nevWRoNjn},
}
Figure