CogCoM: A Visual Language Model with Chain-of-Manipulations Reasoning

Ji Qi, Ming Ding, Weihan Wang, Yushi Bai, Qingsong Lv, Wenyi Hong, Bin Xu, Lei Hou, Juanzi Li, Yuxiao Dong, Jie Tang

TL;DR

CogCoM introduces a "Chain of Manipulations" (CoM) framework that allows Vision-Language Models (VLMs) to solve complex visual tasks by performing a sequence of internal actions like zooming, grounding, and OCR. By training on a new 70K-sample reasoning dataset, the 17B-parameter model achieves state-of-the-art performance across 9 benchmarks, significantly reducing hallucinations and improving interpretability.

What Problem Does This Paper Address?

Current Vision-Language Models are often "hasty." Because they are typically trained to map an entire image directly to a text response, they frequently overlook fine-grained details. For example, if asked what is written on a distant sign, a standard VLM might hallucinate a common phrase based on the general context of the room rather than actually "reading" the sign.

The authors argue that VLMs lack intermediate visual reasoning. Humans don't just glance at a complex scene to answer a difficult question; we point, we zoom in, we count, and we cross-reference. This paper aims to bridge that gap by giving VLMs a structured way to manipulate their own visual input during the reasoning process.

Methods: The Chain of Manipulations Framework

The core contribution is the Chain of Manipulations (CoM) mechanism. Instead of a single-turn response, the model generates a sequence of "manipulations" followed by their results.

Overview of the Chain of Manipulations (CoM) framework, demonstrating how CogCoM tackles diverse visual tasks like detailed recognition, counting, and geometry through step-by-step reasoning.

1. Atomic Manipulations

The researchers identified six fundamental actions that cover most visual reasoning needs:

  • Grounding: Locating specific objects and returning bounding boxes.
  • OCR: Recognizing text within a specific region.
  • CropZoomIn: Cropping a region of interest and re-inputting it at higher resolution.
  • Counting: Determining the number of identified objects.
  • Calculate: Performing mathematical operations on identified values.
  • Line: Drawing auxiliary lines (crucial for geometry problems).

2. The CogCoM Architecture

The model is based on CogVLM (17B). To handle CoM, it uses a memory-based multi-turn structure. Each manipulation step is treated as a "turn" in a conversation, where the model maintains a Key-Value (KV) memory of previous steps and images, allowing it to "remember" what it saw in a zoomed-in crop while formulating the final answer.

3. Automated Data Generation

To train the model, the authors built a "cascading" pipeline:

  1. Linguistic Annotation: GPT-4 generates step-by-step solving plans for existing VQA datasets.
  2. Visual Annotation: Specialized models (like GroundingDINO and PaddleOCR) execute those steps to provide actual coordinates and text.
  3. DFS Filtering: A Depth First Search (DFS) traversal ensures that only "positive paths"—sequences of actions that actually lead to the correct ground-truth answer—are kept for training.

Datasets

The authors utilized several data sources to build their training corpus:

  • 70K CoM Samples: Automatically generated from TextVQA, ST-VQA, and TDIUC.
  • 7K Graphical Math Samples: A newly introduced, manually annotated dataset for challenging geometry and chart problems (derived from MathVista and ChartQA).
  • General Alignment Data: 570K samples from MultiInstruct, LLaVAR, and ShareGPT4V to maintain general conversational abilities.

Key Insights and Ideas

  • Intrinsic vs. External Tools: Unlike "tool-augmented" LLMs that call external APIs, CogCoM learns to perform these manipulations intrinsically. The "tools" are part of its own learned reasoning chain.
  • The Power of Zoom: The CropZoomIn manipulation is a game-changer for "small object" problems. By re-inputting a high-resolution crop, the model overcomes the fixed-resolution limitations of standard vision encoders.
An example of CogCoM using the CropZoomIn manipulation to read the time on a distant clock, overcoming the fixed-resolution limits of standard vision encoders.
  • Interpretability by Design: Because the model must output its reasoning chain (e.g., "I am grounding the clock... the region is [x,y]... zooming in..."), users can see exactly where a model's logic succeeds or fails. This makes the model "evidential" rather than a black box.
  • Reducing Bias: By forcing the model to find visual evidence before answering, CogCoM relies less on linguistic priors (guessing based on text) and more on actual visual features.

Key Results

CogCoM achieved SOTA results across the board:

  • Detailed VQA: Improved accuracy by 9.0 points on TextVQA and 5.97 points on GQA compared to the CogVLM baseline.
  • Visual Grounding: Outperformed specialist SOTA models on 6 out of 8 sub-sets of RefCOCO, showing that a generalist model can beat task-specific ones when given reasoning capabilities.
  • Hallucination: Scored 87.8 on the POPE benchmark, indicating a significant reduction in unfaithful responses.
  • Math Reasoning: Achieved a notable boost on MathVista (+0.9), proving that drawing auxiliary lines and step-by-step calculation helps with "graphical math."

Limitations and Future Work

  • Diversity of Reasoning: The automated pipeline currently relies on GPT-4, which can sometimes produce formulaic or repetitive reasoning steps.
  • Tool Dependency: The quality of the training data is capped by the accuracy of the visual annotators (GroundingDINO/PaddleOCR). Errors in these tools during data generation create "negative paths" that must be filtered out.
  • Inference Latency: Multi-turn reasoning is naturally slower than single-turn. While the authors noted an average of 9 seconds per query, this may still be too slow for real-time applications without further optimization.
  • Future Direction: The authors suggest exploring backtracking—allowing the model to realize a manipulation path is a dead end and try a different action mid-reasoning.

Summary updated

BibTeX
@inproceedings{qi2025cogcom,
  author = {Ji Qi and Ming Ding and Weihan Wang and Yushi Bai and Qingsong Lv and Wenyi Hong and Bin Xu and Lei Hou and Juanzi Li and Yuxiao Dong and Jie Tang},
  title = {{CogCoM: A Visual Language Model with Chain-of-Manipulations Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Fg0eo2AkST},
}
Figure