TL;DR
Adaptive Patching (AdaPatch) is a novel strategy that dynamically adjusts the patch size of vision encoders in Multimodal Large Language Models (MLLMs) based on an image's resolution and information density. By moving away from rigid, fixed-size patching, AdaPatch stabilizes model performance across extreme resolutions and can be seamlessly "plugged in" to existing pre-trained models without any additional training.
The Problem: The "One-Size-Fits-All" Fallacy
Most modern MLLMs (like Qwen2.5-VL or LLaVA) process images by dividing them into fixed-size patches (e.g., 14x14 pixels). While recent "AnyRes" techniques allow these models to handle various aspect ratios via sequence packing, researchers have discovered a hidden instability: model performance fluctuates wildly depending on the input resolution.
Even state-of-the-art models suffer significant performance degradation at both very low and very high resolutions. The authors argue that a rigid patch size is the primary culprit. In low-resolution or information-dense images (like a complex chart), a standard patch is too coarse, losing fine-grained details. Conversely, in high-resolution or sparse images, small patches become "overly local," generating massive token sequences that explode computational costs while failing to capture the global context.
The Solution: Adaptive Patching (AdaPatch)
To address this, the authors propose AdaPatch, a framework that adapts the patch size to the specific needs of the input image. It consists of three main components:
- Information Density Estimation: The model performs a lightweight check to see how much information is lost when an image is downsampled. This "density" score helps determine if an image needs fine-grained (small patch) or coarse (large patch) processing.
- The Patching Law: A simple power-law formula maps the image's resolution and density to an optimal patch size. The core principle is straightforward: Higher resolution requires larger patches; higher information density requires smaller patches.
- Weight-Preserving Conversion (PI-resize): To make this work with existing models without retraining, the authors use a Moore-Penrose pseudo-inverse method to "resize" the weights of the pre-trained patch embedding layer. This allows a model trained exclusively on 14x14 patches to suddenly understand 28x28 or 7x7 patches at inference time.
For those willing to spend some compute, the authors also offer Multi-Scale Patch Embedding (MSPE), a training-based version where the model explicitly learns to handle multiple patch sizes simultaneously.
Key Insights and Results
The researchers evaluated AdaPatch across a massive suite of benchmarks (including MME, MMMU, ChartQA, and DocVQA) using models ranging from 2B to 34B parameters.
- Training-Free Gains: One of the most impressive findings is that the "PI-resize" method works remarkably well out of the box. You can take a "frozen" model and improve its OCR capabilities just by changing how it patches the image at inference time. For instance, on OCRBench, Qwen2.5-VL-3B saw a jump from 821 to 845 points without any extra training.
- Density vs. Resolution: AdaPatch recognizes that an image of a cat at 1024p and a dense legal document at 1024p should not be treated the same. The document requires smaller patches to preserve text legibility, while the cat can be processed with larger patches to save compute.
- Efficiency and Stability: While vanilla models' performance drops at high resolutions, AdaPatch remains stable or improves. Furthermore, because AdaPatch selects larger patch sizes for high-resolution, low-density images, it significantly reduces the number of visual tokens sent to the LLM, leading to substantial inference speedups.
Limitations and Future Work
While highly effective, AdaPatch relies on a "Patching Law" governed by hyperparameters that require some initial tuning. Additionally, the information density estimation adds a small computational overhead before the main forward pass.
Looking ahead, the authors suggest that future work could involve more sophisticated "thinking-with-images" models, where the MLLM iteratively decides which specific regions of an image require higher-resolution patching, moving toward truly dynamic visual processing.
Summary updated