Multimodal Visual Reasoning: The Cost Problem and How to Solve It
This article explains why multimodal visual capabilities often arrive late on low-cost LLM platforms, breaking down the three amplification effects that make visual tokens expensive: spatial resolution, attention overhead, and KV cache growth. It then walks through an alternative approach that converts dense image patches into sparse, referenceable visual primitives, the chain-of-thought redesign and self-built data pipeline that this requires, and a four-dimension framework for evaluating cost versus accuracy on your own data. The code, parameters, and dataset figures come from the original method's reported experiments and should be re-measured per distribution.
1. Where the Problem Starts: Why Multimodal Features Ship Late
Over the past year, a pattern has repeated across the industry: a platform’s flagship language model has been in stable production for a long time, its text and code capabilities are mature, yet visual understanding is still not part of the main pipeline. When it does ship, it often carries an experimental suffix, supports static images only, no video, and does not open its weights.
It is tempting to read this as a gap in technical reserves. But looking at the engineering and commercial constraints together, a simpler explanation fits better: the marginal cost of visual input is too high, and a low price point is the core positioning of these platforms. The two are naturally in conflict.
To see why, break the cost structure apart. Text inference is billed in tokens for both input and output; a Chinese character or an English word maps to roughly one to several tokens, so cost is predictable and estimable. Images work differently. The mainstream approach splits an image into fixed-size patches, and each patch maps to one or more visual tokens. A moderately high-resolution image easily produces thousands of tokens, and adding multiple video frames multiplies that count further. For a service whose core competitive advantage is an extremely low unit price, this is not something a single price adjustment can absorb. It is a question of whether the entire pricing model holds up.
So the technical question worth discussing is not “can we do vision,” but: how do we make a model understand images without meaningfully increasing unit cost?
2. Where the Cost Actually Comes From: Three Amplification Effects
Visual tokens are expensive because of three stacked amplification stages. If any one of them gets out of control, the bill stops reflecting reality.
The first is spatial resolution amplification. Vision encoders typically cut images at a fixed patch size, so the larger and sharper the image, the more patches it yields, and token count grows roughly linearly with total pixel count. A photo straight off a phone can cost several times more than a compressed thumbnail.
The second is attention overhead amplification. Standard self-attention scales quadratically with sequence length in both compute and memory. When visual tokens stretch a sequence from a few thousand to tens of thousands, the attention matrix becomes the primary bottleneck, and both time-to-first-token and throughput degrade.
The third is cache amplification. Inference requires caching key-value pairs, and the number of visual tokens directly determines cache size. In multi-turn conversations, re-encoding the same image every turn lets the repeated overhead accumulate.
Once these three effects are clear, one conclusion follows: switching to cheaper hardware or applying quantization only buys constant-factor gains. Order-of-magnitude gains have to come from reducing the token count itself.
3. Choosing a Route: From “Looking at Images” to “Reasoning With Images”
A common industry approach is to raise resolution and stack more parameters into the vision encoder, trading stronger perception for better results. The cost is a steeply rising cost curve. The other route inverts the problem: instead of treating an image as input that must be read in full, treat it as a set of visual primitives that the reasoning process can call on demand.
Visual primitives are explicit representations of the key geometric and semantic elements in an image: points, bounding boxes, region labels, connecting relations, and so on. The model references them in its chain of thought the way it would reference variables. Two benefits follow directly:
- The model no longer scans the image patch by patch. It reasons over a small number of structured elements, which substantially shortens the sequence.
- The reasoning becomes more interpretable. Every conclusion maps back to a concrete spatial location, which makes verification and correction easier.
Combined with compressed sparse attention, the key-value cache for the visual portion can be reduced to a very small size. One order-of-magnitude figure mentioned in the source material: for an input roughly seven hundred-plus pixels square, only a few dozen entries are retained in the visual cache, for an overall compression ratio in the thousands. This needs a caveat: such numbers are experimental results from a specific method on a specific dataset and should not be treated as general benchmarks. What engineering actually requires is re-measuring the curve relating compression ratio to accuracy loss on your own data distribution.
Schematically, the call logic before and after the change can be written as pseudocode to highlight the difference:
# Traditional dense visual input: the whole image is patched, and token count grows linearly with resolutiondef dense_vision(image, patch=14):patches = split_to_patches(image, patch) # possibly thousands of patchesreturn [encode(p) for p in patches] # thousands of visual tokens enter the context# Primitive-based visual input: extract structured elements first, then reference them as reasoning requiresdef primitive_vision(image, detector, max_primitives=64):prims = detector.extract(image) # points, boxes, region labels, etc.prims = rank_and_prune(prims, max_primitives) # sparsify to control sequence lengthreturn [serialize(p) for p in prims] # a few structured tokens enter the context# Reference on demand during reasoning to avoid re-encoding the same imagedef reason(question, image, cache):if image.id not in cache:cache[image.id] = primitive_vision(image, detector)return chain_of_thought(question, cache[image.id])
4. The Overlooked Cost: Chain-of-Thought Redesign and the Data Pipeline
The primitive-based route is not cheap. It shifts cost from the inference side to the R&D side, and that has to be stated plainly, or the route decision will be wrong.
The chain of thought has to be rewritten. The conventional visual QA chain is “look at the image, describe it, answer.” Primitive-based reasoning requires the model to learn “locate, reference, combine, verify.” This is not merely a prompt-level change; it involves redesigning the training objective so the model emits parseable spatial references when generating reasoning steps, and so those references stay consistent with the image content.
The data pipeline has to be built in-house. General image-text alignment corpora cannot support primitive-based training directly; detection data with precise geometric annotations is needed. The approach given in the source material is a self-built pipeline that collected on the order of one hundred thousand object detection samples and kept a little over thirty thousand usable samples after two rounds of filtering. Three lessons matter here:
- Annotation quality comes before quantity. Bounding box jitter directly contaminates the reasoning chain, so filtering criteria should include hard rules on size plausibility, occlusion ratio, and label consistency.
- Sample by difficulty tier. Small objects, dense objects, and low-light samples need their own proportions, or the model only learns easy scenes.
- Negative samples are not optional. Samples where “the element does not exist in the image” are needed to suppress hallucinated references to primitives that are not there.
A practical filtering flow looks roughly like this:
def build_dataset(raw):stage1 = [s for s in raw if valid_bbox(s) and not heavy_occlusion(s)]stage2 = [s for s in stage1 if consistent_label(s) and reasonable_scale(s)]return balance(stage2, hard_ratio=0.3, negative_ratio=0.15)
5. Balancing Quality and Cost: A Reusable Evaluation Framework
To decide whether a visual reasoning route is worth the investment, evaluate it along four quantitative dimensions rather than leaderboard scores alone.
- Unit cost: average number of tokens per image once it enters the context, multiplied by the input unit price, gives a per-query cost baseline.
- Time to first token and throughput: whether sparsification actually relieves the attention bottleneck has to be load-tested at the target concurrency.
- Accuracy retention: the gap before and after compression on your own evaluation set, with particular attention to small objects and dense scenes.
- Cache hit rate: the share of repeated encoding in multi-turn scenarios, which directly determines long-term cost.
A few general engineering practices also pay off clearly: apply adaptive resolution and quality checks at the entry point, rejecting oversized images with no informational value; cache encoding results per image at the session level; persist extracted visual primitives to object storage and use a message queue for asynchronous precomputation; set baseline alerts on token consumption and latency through monitoring so abnormal inputs do not inflate the bill. If a container platform hosts the inference service, autoscaling based on queue length can flatten peak costs.
6. Conclusion
The lag in multimodal visual capability is not fundamentally a missing capability. It is a tension between the cost structure and the product positioning that technical means have not yet resolved. Converting images from a dense token stream into sparse, referenceable visual primitives, then compressing the cache with sparse attention and protecting training quality with a self-built data pipeline, is currently a fairly mainstream and reproducible way to cut costs. For developers, what needs to be mastered is not the parameters of any specific scheme but this methodology of evaluation and optimization: quantify token cost first, then decide how aggressively to compress, and finally verify on your own data whether the accuracy loss is acceptable.
