TL;DR
CogFlow introduces a cognitive-inspired "knowledge internalization" stage to bridge the gap between visual perception and logical reasoning in Multimodal Large Language Models (MLLMs). By explicitly modeling the flow as Perception $\rightarrow$ Internalization $\rightarrow$ Reasoning and using a novel visual-gated reinforcement learning strategy, it significantly reduces "reasoning drift"—the tendency for models to hallucinate logic that contradicts the visual evidence.
What Problem Does This Paper Address?
Despite the rapid advancement of MLLMs, visual mathematical problem solving remains a major bottleneck. The authors identify a phenomenon called "reasoning drift": even when a model correctly identifies visual elements (like points, lines, or circles in a geometry diagram), it often fails to faithfully integrate these facts into its multi-step reasoning.
Existing approaches either interleave perception and reasoning in an unstructured way (leading to messy errors) or decouple them entirely (where the reasoning engine "drifts" away from the perceptual data). CogFlow aims to fix this by ensuring that visual cues are not just extracted, but "internalized" into a structured, reasoning-ready state that anchors the entire logical chain.
Methods
The authors propose a three-stage framework supported by a unified reinforcement learning (RL) pipeline:
- Synergistic Visual Rewards (SynVRs): To ensure high-fidelity perception, CogFlow uses two complementary rewards:
- Visual Parameterized Reward (VPR): Measures the geometric accuracy of primitives (points, lines, circles) in a coordinate space.
- Visual Semantic Reward (VSR): Uses a frozen CLIP encoder to compare the original image with a re-rendered version of the model's perception, ensuring global layout and style consistency.
- Knowledge Internalization Reward (IntlzR): A dedicated reward model trained to detect five specific failure modes in internalization, such as omitting perceived primitives, introducing nonexistent facts, or contradicting geometric constraints.
- Visual-Gated Policy Optimization (VGPO): This is the core training strategy. It introduces a "visual gate" that filters out low-quality perception trajectories during the RL process. If the perception is poor, the model is forced to re-generate it before proceeding to reasoning, effectively teaching the model that accurate perception is a non-negotiable foundation for logic.
Datasets
The researchers introduce MATHCOG, a large-scale dataset containing over 120K high-quality samples. Unlike standard datasets, MATHCOG disentangles the "watching" (perception) and "thinking" (reasoning) stages, providing aligned annotations for both.
For evaluation, they tested CogFlow against a battery of competitive benchmarks:
- FlowVerse and MathVerse (for flow-based reasoning).
- MathVista (general visual math).
- WeMath, LogicVista, and DynaMath (complex logical and dynamic reasoning).
Key Insights and Ideas
- Internalization is the "Missing Link": The paper argues that the jump from raw pixels to abstract logic is too large. Internalization acts as a buffer that transforms low-level signals into semantically grounded knowledge (e.g., "Line AB is a diameter, therefore $\angle ACB = 90^\circ$").
- The Power of the Visual Gate: By using the visual gate during training, the model's policy is shaped to prioritize perceptual accuracy. The authors found that this "gate" is also beneficial during inference, providing a better computation-performance trade-off than simply generating multiple full answers and picking one.
- Error Compensation: A fascinating finding was that improved internalization can help a model "recover" from minor perception errors. If a model is trained to internalize well, it can sometimes ignore a single misidentified coordinate if the rest of the perceived structure remains logically consistent.
Key Results
CogFlow-7B (built on Qwen2.5-VL) achieves state-of-the-art results among open-source models and rivals much larger closed-source systems:
- FlowVerse: Achieved 66.0% accuracy, outperforming GPT-4V (58.7%) and Claude-3.5-Sonnet (45.1%).
- MathVista: Reached 76.8%, showing consistent superiority across various sub-tasks like geometry and visual question answering.
- Reasoning Quality: Qualitative analysis showed that CogFlow produces more structurally accurate and semantically consistent reasoning chains compared to "decoupled" baselines that often suffer from logical hallucinations.
Limitations and Future Work
- Computational Cost: The training procedure is resource-intensive, requiring significant GPU power (the authors used 16 NVIDIA A100s) to achieve stable improvements.
- Domain Specificity: While highly effective for math and geometry, the current method relies on extracting specific "primitives." The authors suggest that future work should expand this to "general scenes" by using object detection or segmentation models to create a more universal primitive schema.
- Scaling: While they showed CogFlow scales well from 2B to 8B parameters, testing on ultra-large-scale models (70B+) remains an open area for exploration.
Summary updated