PGT: Procedurally Generated Tasks for improving visual grounding in MLLMs

Rim Assouel, Amir Bar, Michal Drozdzal, Adriana Romero-Soriano

TL;DR

This paper introduces Procedurally Generated Tasks (PGT), a novel data-driven framework that overlays simple geometric primitives onto existing images to train Multimodal Large Language Models (MLLMs) in fine-grained visual understanding. PGT significantly boosts performance on spatial reasoning tasks without requiring costly human annotations, demonstrating that MLLMs' fine-grained perception deficits often stem from insufficient supervision rather than architectural limitations.

What Problem Does This Paper Address?

Despite impressive advancements in Multimodal Large Language Models (MLLMs) for high-level tasks like image captioning and question answering, they often falter on fine-grained spatial understanding. This includes tasks like precisely counting objects, determining relative depth, or understanding spatial relationships like "left" or "right." These limitations are often masked by strong general perception capabilities, leading to a fundamental deficiency in spatial intelligence. Existing solutions either involve complex model-centric improvements or expensive, large-scale human-annotated datasets, which can be computationally demanding and prone to overfitting. The authors aim to address this by providing a cost-effective, data-centric approach to improve MLLMs' spatial reasoning.

Methods

The core innovation is Procedurally Generated Tasks (PGT). This framework works by overlaying unambiguous geometric primitives (like colored bounding boxes, labeled points, and colored circles) onto existing training images. These overlays are used to generate new question-answer pairs that specifically target spatial reasoning. The key idea is to create tasks where linguistic priors (e.g., "sky" is usually "up") are insufficient, forcing the model to rely on actual image geometry.

The PGT framework includes three main task types:

  1. Spatial Relationship Understanding: Overlaying two bounding boxes and asking for their relative positions (e.g., "green box relative to red box") or their normalized coordinates.
  2. Abstract Counting: Projecting semi-transparent colored circles and asking the model to count only those of a specific color, decoupling counting from semantic object recognition.
  3. Analogy and Relative Distance Estimation: Using labeled points to estimate distances or identify analogous colored objects.

The generation pipeline is fully automated, requiring no human annotation. PGT data is integrated directly into existing instruction-tuning datasets, augmenting them without increasing the total number of samples.

Datasets

The paper utilizes several datasets for training and evaluation:

  • Training Data:
    • LLaVA-v1.5-Instruct: Used as the base semantic training data, augmented with PGT.
  • Cambrian-7M: Used for scaling experiments.
  • Uniformly gray images: Used for finetuning state-of-the-art MLLMs to isolate the effect of PGT.
  • Evaluation Benchmarks:
    • Relational Reasoning: What'sUp-COCO, CV-Bench-2D, VSR.
  • Vision-Centric/3D Understanding: CV-Bench-3D, TallyQA, MMVP, RealworldQA, BLINK (spatial, depth, relational, localization subsets), SEED.
  • General Perception: MMSTAR, GQA, POPE, AI2D.
  • Specialized Mix (for comparison): Constructed from TallyQA (counting), VSR (relational), and the distance-estimation subset of Spatial-Ladder-26k.

Key Insights and Ideas

  • PGT as a Diagnostic Tool: The authors propose PGT not just as a training method but also as a low-cost diagnostic tool to identify the root cause of perception failures in MLLMs. If a model's performance significantly improves with PGT, it suggests the necessary visual capabilities were present but dormant due to insufficient grounding signals.
  • Emergent 3D Capabilities from 2D Tasks: Remarkably, training on 2D PGT tasks led to improvements in 3D understanding (e.g., CV-Bench-3D), suggesting that 2D relative distance estimation can reinforce a shared distance estimation circuit that benefits 3D perception.
  • Disentangling Visual Grounding from Semantic Priors: By using abstract geometric primitives, PGT forces models to rely on actual geometry rather than semantic shortcuts or linguistic correlations, effectively disentangling visual grounding from semantic priors.
  • Cost-Effectiveness: PGT offers a significant advantage by generating dense, verifiable supervision signals without the need for expensive human annotation or increasing the overall dataset size.

Key Results

  • Instruction Tuning: Augmenting LLaVA-v1.5-Instruct with PGT data led to substantial improvements:
  • Up to +20% on the What'sUp benchmark.
  • Up to +13.3% on CV-Bench-2D.
  • Up to +9.7% on CV-Bench-3D (emergent 3D capabilities).
  • Finetuning SOTA MLLMs: Finetuning advanced models (Qwen-2.5-VL, InternVL3) with PGT data resulted in boosts of up to +5.5% on What'sUp and +8.3% on CV-Bench-2D.
  • Generalization: PGT showed consistent gains across diverse LLM backbones, indicating it addresses a fundamental modality alignment bottleneck.
  • Ablation Studies: Removing specific PGT tasks (e.g., relational understanding, distance estimation) significantly degraded performance on corresponding benchmarks, highlighting the importance of each task. The "distance estimation" task was particularly crucial for 3D/Depth understanding.
  • Scaling: PGT provided significant benefits even when applied to a small fraction (5%) of the training data, and its effectiveness persisted even with larger real-world datasets.

Limitations and Future Work

  • Task Saturation: While PGT is effective, injecting too many distinct PGT overlays per image can lead to clutter and degrade performance, particularly in 3D understanding.
  • Future Work:
    • 3D Geometric Primitives: Extending PGT to generate 3D geometric primitives to directly target 3D spatial understanding.
  • Temporal Reasoning in Video: Adapting PGT for video data to improve object permanence and temporal grounding.
  • Multi-Step Reasoning: Developing PGT for more complex reasoning tasks like pathfinding on topological maps or systematic visual search, acting as a bridge between basic grounding and advanced spatial logic.

Summary updated

BibTeX
@inproceedings{assouel2026pgt,
  author = {Rim Assouel and Amir Bar and Michal Drozdzal and Adriana Romero-Soriano},
  title = {{PGT: Procedurally Generated Tasks for improving visual grounding in MLLMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=PrM9JAYDF6},
}
Figure