Building and Training Reasoning Vision-Language Models: Architecture, Data, SFT, and RL

    This article provides a practical overview of how reasoning-oriented vision-language models are built and trained. It explains the gap between perception, understanding, and reasoning; the standard ViT-MLP-LLM architecture; data preparation; pretraining; supervised fine-tuning with chain-of-thought examples; and reinforcement learning with verifiable rewards and curriculum sampling. It also summarizes typical evaluation patterns, cross-domain generalization, and the key engineering considerations for developing reasoning-capable multimodal systems.

    1. Background: Capability Levels and the Reasoning Gap in VLMs

    Vision-language models (VLMs) have made rapid progress over the past few years, moving from basic image captioning to more interactive visual question answering. Their capabilities can be viewed as a progression from simpler to more advanced skills:

    • Perception: Recognizing basic visual elements such as objects, scenes, text, and spatial relationships. For example, identifying that there is a cat in an image.
    • Understanding: Interpreting semantic relationships, intent, and sentiment based on perceived elements. For example, explaining why a person in an image appears happy.
    • Reasoning: Performing multi-step logical inference beyond what is directly visible in the image, often by combining visual evidence, world knowledge, and intermediate conclusions.

    In practice, most VLMs are strongest at perception and understanding. They can usually answer questions such as “What is in the image?” or “What does this text say?” However, they often struggle with tasks that require multi-step reasoning, such as solving science problems that depend on diagrammatic clues, answering questions that require connecting multiple visual cues into a causal explanation, or completing action-oriented tasks such as GUI agents.

    A useful analogy comes from the development of text-only large language models (LLMs). The leap in LLM reasoning ability has largely come from two approaches:

    1. Chain-of-Thought (CoT): Prompting or training models to explicitly generate intermediate reasoning steps before producing a final answer.
    2. Reinforcement Learning (RL): Using verifiable reward signals to encourage models to explore better reasoning paths.

    Bringing these ideas into the vision-language domain is the central strategy behind building reasoning-oriented VLMs.

    2. Model Architecture: The ViT-MLP-LLM Paradigm

    Most mainstream reasoning-oriented VLMs follow a classic three-part structure: visual encoder, projection layer, and language model.

    1. Image input
    2. │
    3. ▼
    4. [Visual encoder ViT] — Extracts visual features from image patches
    5. │
    6. ▼
    7. [MLP projection layer] — Aligns visual features with the language model's token embedding space
    8. │
    9. ▼
    10. [Language model LLM] — Processes visual tokens and text tokens together, then generates reasoning results

    The roles of the components are as follows:

    1. Visual encoder: Usually a Vision Transformer (ViT) that splits an image into patches and encodes them into high-dimensional visual features. This component provides the basic ability to “see.”
    2. Projection layer (MLP): A multilayer perceptron that maps visual features into the same dimensional and distributional space as the language model’s text embeddings. It bridges visual representations and language representations, making visual content “readable” by the language model.
    3. Language model: Takes the combined sequence of visual tokens and text tokens and performs understanding, reasoning, and generation within a unified autoregressive framework.

    In this paradigm, the key engineering challenge is no longer simply increasing model size. Instead, high-quality data and effective optimization strategies are used to transfer the language model’s reasoning ability into the visual channel. When the model processes visual input, its internal reasoning process is fundamentally similar to its reasoning process on text-only input. This is why mature LLM techniques such as CoT and RL can be reasonably transferred to VLMs.

    3. Data Preparation: The Foundation of Reasoning Ability

    Data quality is one of the most important factors determining the upper bound of a reasoning-oriented VLM. A typical training data system includes several major categories, with an emphasis on fine-grained image-text alignment and diversity.

    1. Image caption data: Provides large-scale, loosely aligned image-text pairs. It helps the model build an initial mapping between visual content and semantic meaning.
    2. Interleaved image-text data: Includes multiple related images within continuous text passages. This simulates realistic multi-image contexts and helps the model learn cross-image association and long-context understanding.
    3. OCR data: Covers printed text, handwritten text, scene text, charts, and similar visual text content. It is essential for document understanding, receipt analysis, screenshot interpretation, and related tasks.
    4. Grounding data: Teaches the model to associate language descriptions with specific regions in an image, such as bounding boxes. This is important for tasks that require precise localization rather than only image-level understanding.
    5. Video data: Introduces temporal information through keyframe sequences, enabling the model to understand dynamic content across frames.
    6. Instruction tuning data: Organizes different tasks into instruction-response formats, allowing the model to follow natural-language instructions and generalize across diverse tasks.

    Three principles are especially important in data design:

    • Multi-source coverage: Include text, OCR, grounding, video, documents, and other broad scenarios.
    • Fine-grained alignment: Image-text relationships should be aligned at the region level when possible, not only at the image level.
    • Progressive difficulty: Include samples that range from simple to complex so that the model can develop reasoning abilities gradually.

    4. Pretraining: Building the Visual Foundation

    The goal of pretraining is to build a general and robust visual foundation. Using large-scale self-supervised or weakly supervised training over diverse data, the model acquires broad multimodal perception and understanding capabilities.

    At this stage, the focus is not yet on advanced reasoning. Instead, the model is laying the groundwork by learning to see and understand a wide variety of visual inputs. At the same time, the visual encoder and projection layer are aligned with the language model so that later stages can inject reasoning capabilities more effectively.

    In short, pretraining first exposes the model to a large and diverse visual world. After that, later training stages teach the model how to think more carefully and solve problems step by step.

    5. Supervised Fine-Tuning: Teaching the Model How to Think

    After pretraining, the model can understand and generate content, but it does not necessarily perform multi-step reasoning by default. Supervised fine-tuning (SFT) is designed to address this gap by introducing high-quality reasoning data and standardizing reasoning behavior.

    5.1 High-Quality Chain-of-Thought Data

    CoT data is the core fuel for SFT. Ideally, it should satisfy the following requirements:

    • Verifiable reasoning process: The intermediate steps should be logically sound and lead to reliable conclusions, rather than appearing arbitrary or unsupported.
    • Traceable visual evidence: Visual evidence referenced during reasoning should correspond to specific regions or content in the image.
    • Broad task coverage: The data should cover STEM problem solving, content recognition, visual grounding, GUI operation, long-document understanding, and other relevant tasks.

    5.2 Standardized Response Format

    To make training and inference parsing more reliable, model outputs are often structured in a fixed format, such as:

    1. [Thinking] First, observe the known conditions in the image and reason step by step...
    2. [Final Answer] Based on the reasoning above, the correct answer is...

    A consistent format reduces training difficulty and makes it easier for downstream systems to extract final answers and intermediate reasoning steps using regular expressions or structured parsing.

    5.3 Data Quality Management and Iterative Improvement

    Data quality management should be a closed-loop process:

    • Filter and deduplicate initial SFT data.
    • Stratify samples by difficulty.
    • Remove incorrect reasoning chains through human annotation or automated validation.
    • Continuously supplement weak areas through training-evaluation-feedback cycles.

    This iterative improvement process is often more decisive than a single large-scale annotation effort.

    6. Reinforcement Learning: Unlocking Reasoning Potential

    SFT teaches the model how to follow a reasoning format, but the major leap in reasoning ability often occurs during reinforcement learning. The core idea is to let the model interact with reward signals and autonomously explore reasoning strategies that go beyond the demonstrations provided in the SFT data.

    6.1 Reward System

    For tasks with verifiable outcomes, rule-based rewards can be used. Examples include mathematical problem solving, OCR matching, and grounding-coordinate accuracy. If the final answer matches the ground truth, the model receives a positive reward. This type of reward is simple, stable, and less susceptible to reward hacking.

    For more open-ended tasks, more flexible reward mechanisms, such as model-based scoring, may be used as a supplement. Verifiable rewards are especially important for stabilizing RL training in reasoning-oriented VLMs.

    6.2 Reinforcement Learning with Curriculum Sampling (RLCS)

    Applying RL directly to all samples without difficulty control can be inefficient and unstable. A more robust approach is curriculum sampling.

    The idea is to group samples by difficulty and dynamically select tasks that match the model’s current ability. As the model improves, the difficulty of sampled tasks gradually increases.

    The following pseudocode illustrates the sampling logic:

    1. # Curriculum sampling pseudocode: select sample difficulty based on the model's current pass rate
    2. def curriculum_sample(model, pool, target_pass_rate=0.5):
    3. selected = []
    4. for task in pool:
    5. pass_rate = estimate_pass_rate(model, task) # Current pass rate
    6. # Prefer tasks that are challenging but achievable: pass rates near the target value
    7. if 0.1 < pass_rate < 0.9:
    8. weight = 1.0 - abs(pass_rate - target_pass_rate)
    9. selected.append((task, weight))
    10. return weighted_resample(selected)

    The intuition behind curriculum sampling is straightforward:

    • Samples that are too easy provide limited learning signal.
    • Samples that are too difficult may have very low pass rates and also provide limited useful gradient.
    • Samples with medium pass rates often contain the richest learning information.

    By continuously exposing the model to tasks within its “zone of proximal development,” RLCS can improve both training efficiency and stability.

    6.3 Engineering Optimization Details

    In addition to the algorithmic design, engineering optimization is also critical. Important considerations include:

    • Sampling efficiency during training and inference.
    • Throughput of reward computation.
    • Stability of large-scale model parallel training.

    These details may not appear directly in the algorithm description, but they often determine whether a method can be implemented effectively in practice.

    7. Experimental Results and Cross-Domain Generalization

    A high-quality reasoning VLM project is usually evaluated systematically across dozens of public benchmarks. Two key conclusions often emerge:

    1. Competitive performance at similar scale: Compared with models of similar parameter size, reasoning-oriented VLMs often perform better across a broad range of tasks. This validates the combination of high-quality data, precise rewards, and efficient RL.
    2. Strong cost-effectiveness across scales: Because reasoning ability comes from methodology rather than only from increasing parameters, these models can sometimes match or outperform much larger models on challenging tasks, and may also perform competitively with some closed-source general-purpose models.

    A more important phenomenon is cross-domain generalization. Reasoning ability gained through RL is not limited to the domains seen during training. It can transfer to unseen tasks such as video understanding, document understanding, and GUI agents.

    This suggests that reasoning behaves more like a meta-capability: once acquired, it can generate positive feedback across multiple visual tasks. For engineering teams, this implies that it is often more valuable to invest in transferable reasoning ability than to repeatedly optimize for a single narrow task.

    8. Conclusion: Contributions, Limitations, and Future Directions

    The main contributions of reasoning-oriented VLM training can be summarized in three points:

    1. It introduces a reasoning-centered training framework for VLMs by bringing CoT and RL into the vision-language domain.
    2. It shows that medium-sized or smaller models can achieve competitive performance through effective methods such as RLCS, rather than relying only on parameter scaling.
    3. It emphasizes the combined importance of data quality, reward design, and training strategy.

    However, several challenges remain:

    • Reward systems for open-ended and subjective tasks are still not fine-grained enough.
    • Error accumulation and hallucination in complex multi-step reasoning have not been fully solved.
    • Efficient modeling of very long contexts, such as long videos and long documents, still has room for improvement.

    Future directions include:

    • Designing more verifiable and finer-grained reward mechanisms.
    • Improving multi-turn interaction and tool-use capabilities.
    • Increasing reasoning efficiency under fixed compute budgets.

    For enterprises and developers, the practical implication is that building reasoning-capable multimodal applications depends not only on access to general vision-language capabilities, but also on the quality of domain data, the precision of task-specific reward design, and the maturity of the training-evaluation-feedback loop. With general-purpose infrastructure such as object storage, data-processing pipelines, model serving, and monitoring and alerting, teams can focus more on data and strategy and build multimodal reasoning applications tailored to their own business scenarios.