Vision-language models turn an image into hundreds or thousands of "visual tokens" and feed them to a language model. Because attention cost grows with the square of sequence length, almost every system first squeezes these tokens through a small hand-designed module. Examples include a fixed set of 64 or 128 learned queries, or a rule that merges every 2×2 neighborhood into one token. In specialized domains such as chest X-rays or crop disease photos, the useful signal often sits in a tiny lesion or a few pustules on a leaf. Spending the token budget evenly across the image is then a guess about where information lives. This proposal asks whether that guess is costing accuracy. We fix the number of tokens the language model sees and run a constrained automatic search over how those tokens are produced: which vision-encoder layers they come from, how much of the budget goes to salient regions versus background, and which compression operator fills each part. We then measure whether the best design depends on the domain and on whether the encoder and language model were pre-trained on domain data.
The central bet is narrow and falsifiable. At a matched token budget, a searched compression bridge should beat the best uniform module, even when that module's size and ratio have been tuned with the same compute. The searched structure should also differ across domains in ways that transplanting a bridge from one domain to another exposes. If a tuned query count matches the searched bridge, that is a useful negative result. It would mean token count, not connector topology, is what matters, and the field's habit of picking 64 or 128 is close enough.
Core Claim and Why It Is Not Already Done
Domain multimodal systems compress with fixed, hand-chosen bottlenecks:
- Flamingo introduced a 64-query Perceiver Resampler, a cross-attention module in which a fixed set of learned queries summarizes a variable number of image features.
- AgriPerceiver compresses 3,645 tile tokens into exactly 128 latents for structured crop-disease reports.
- HistoGPT pushes gigapixel slide features through a fixed resampler into BioGPT.
- Dense Connector taps intermediate encoder layers with manually chosen groupings and applies uniform 4× bilinear downsampling, matching full LLaVA-1.5 with 75% fewer tokens.
All four motivate this work, because they show compression is necessary and that connector design choices matter. None searches the design.
Architecture search work supplies the method but has never touched this interface. SCNAS uses Gumbel-Softmax sampling (a way to make discrete operator choices trainable by gradient) to search 3D segmentation cells, beating a hand-designed 3D U-ResNet on brain tumors (72.92% versus 66.89% Dice). AgentNAS runs regularized evolution over "slots" in an architecture template. AdaBERT searches compressed text-only BERTs. All three search single-modality backbones; we search only the bridge between a frozen vision encoder and a language model.
AgentNAS also constrains our design. Its discovered models overfit validation on the DeepSea genomics task, so we keep a search-validation split separate from the reported test split.
Finally, domain pre-training work suggests the optimum should move with the backbone. BERTHop gained 6.46% AUC on chest X-ray diagnosis by swapping BERT for clinically pre-trained BlueBERT and argued that diffuse textural findings need low-level features. DermFM-Zero shows a 304M-parameter domain encoder beating far larger general ones. Our hypothesis is concrete: a domain-pre-trained encoder packs diagnostic information into fewer, more localized features. If so, a domain-pre-trained system should lose less accuracy as the token budget shrinks.
Research Program
The bridge template. The vision encoder and language model are frozen except for LoRA adapters (small low-rank weight updates) in the language model. The bridge takes encoder features and must output exactly $B$ tokens, with $B \in \{64, 144, 256\}$. Fixing the output length keeps sequence lengths regular, which avoids the kernel-efficiency problems that the token compression survey attributes to irregular pruning.
The template has three slots:
- Layer taps. A subset of six depth groups of the encoder is selected and fused by channel concatenation or summation. This generalizes Dense Connector's manual grouping.
- Spatial allocation. The budget is split into a fine tier and a coarse tier. A small learned scorer picks the top-scoring regions for the fine tier, and everything else is pooled into the coarse tier. The fine-tier fraction $\rho$ ranges from 0, which is plain uniform compression, to 0.75.
- Operator per tier. Each tier uses one of pixel shuffle (folding a 2×2 neighborhood into one token's channels), bilinear resizing, or a resampler with the corresponding number of queries.
Every published uniform module is a point in this space. The search can therefore only find something better if non-uniformity or layer selection helps.
The search. We use regularized evolution, following AgentNAS's final phase. Each candidate's fitness is its score on a held-out search split after short connector-plus-LoRA training on a fixed data subset. Because only the bridge and adapters train, a candidate costs a small fraction of a full run. We cap the search at a fixed number of GPU-hours per domain and budget, and report that cap.
Backbone conditions. We run the search twice per domain. One run uses a general encoder and language model (SigLIP and Phi-3-mini, as in AgriPerceiver). The other uses domain-pre-trained counterparts where available, such as a dermatology encoder in the style of DermFM-Zero, or BioGPT as the text side for reports. Running both lets us ask whether domain pre-training changes the searched optimum, not just the absolute score.
Baselines
Naive reference. The do-nothing reference feeds the language model uncompressed tokens wherever memory allows. On a single 24GB GPU, AgriPerceiver reports that this is infeasible for its 3,645 multi-tile tokens, so we use the uncompressed single-crop 576-token input instead. A second weak reference resizes the whole image to fit the budget. These references bound how much any compression costs.
Strongest existing methods.
- Crop phenotyping (PlantVillage-derived). We use AgriPerceiver's 128-latent resampler. The paper reports a composite score of 0.810, severity mean absolute error of 0.067, and 99.7% schema compliance. We re-run its configuration in our pipeline so data, training steps and seeds match, and report the reproduced number alongside the published one.
- MIMIC-CXR report generation. The published reference is RIHA, which reports BLEU-1 of 0.385 and clinical finding F1 of 0.375. RIHA is a different, uncompressed architecture, so it serves as context rather than a budget-matched competitor.
- General-domain control. Dense Connector's efficient variant is the reference: parity with LLaVA-1.5 at 144 tokens.
Tuned uniform baseline. The fairest and most dangerous baseline is a grid search over uniform modules. It covers resampler, pixel shuffle, bilinear, and Dense-Connector-style multi-layer integration, sweeping query count and downsampling ratio at each budget. It receives exactly the same GPU-hours, search split, and training recipe as the evolutionary search, and the winner is selected on the search split.
What counts as winning. The searched bridge must beat this tuned uniform winner on the test split by more than the spread across three seeds. The win must show on fine-grained metrics: severity error and lesion-location fields for crops, and clinical finding F1 for X-rays. Gains only in fluency metrics do not count.
Ablations isolating the key ingredient. Two ablations separate the effect of the search from the effect of the search space. The first is random search over the same space at equal compute, which tells us whether the evolution matters. The second is a hand-designed non-uniform bridge with a 50% fine tier and final-layer taps, which tells us whether non-uniform allocation alone explains any gain.
Why not just…?
Why not just tune the number of resampler queries or the pooling ratio? This is the main threat, and the proposal is built so it cannot be dodged. The tuned uniform baseline receives the full search compute. If it ties the searched bridge, we report that topology does not matter at a fixed budget. The evidence for expecting a gap is indirect. The token compression survey documents that uniform aggressive compression fails on fine-grained perception, and diagnostic signal in these domains occupies small regions. But nobody has run the budget-matched comparison, which is the point of the experiment.
Why not just prune tokens without training, using the language model's attention scores or similarity-based merging? These methods cost nothing to try and are part of the survey's taxonomy, so we include attention-score pruning and similarity merging at each budget as further baselines. Two concerns are specific to these domains. They produce irregular lengths, which the survey notes erodes real speedups. And The Verbose Context Problem in Medical Records found that generic, domain-agnostic compression strips pivotal clinical signal, although that finding concerns text. If training-free pruning matches the searched bridge on clinical F1, the search is not worth its cost.
Why not just use a domain-pre-trained encoder with a standard connector and stop? This is plausible, since the file's strongest gains come from swapping in domain backbones: BERTHop's +6.46% AUC, and AgriPerceiver beating Qwen2-VL and InternVL2 at roughly 0.61. Our two backbone conditions test it directly. If the searched bridge helps only with general backbones and the gap vanishes with domain backbones, then domain pre-training substitutes for bridge search, and we would say so.
Why not just feed everything to a long-context model? AgriPerceiver's 24GB constraint makes this infeasible at the scale we target. The PopMedQA study also reports reasoning decay as context grows, although it gives no numeric values for that decay. The uncompressed reference measures how much accuracy compression actually costs on our tasks.
Proposed Experiments and Decisive Checks
Domains and benchmarks.
- Primary domains: the PlantVillage-derived crop phenotyping set, OpenI, and MIMIC-CXR.
- General-domain control: ScienceQA, MMBench, and TextVQA from the Dense Connector suite.
- Optional third domain: the dermatology benchmarks HAM-10000 and PAD-UFES-20 if compute allows.
- Scientific figures: VeriSciQA as a stress test for text-heavy figures. No reported result was found on Lacuna for VeriSciQA, so we establish our own baselines there.
First check: budget-matched win. Does the searched bridge beat the tuned uniform winner at 64 and 144 tokens on fine-grained metrics? We expect the margin to grow as the budget shrinks.
Second check: domain specificity. We transplant bridges across domains, running the crop-searched bridge on chest X-rays, the X-ray-searched bridge on crops, and both on the general suite. If the bridges are interchangeable, the search is learning generic compression rather than domain structure.
Third check: domain pre-training. We plot accuracy against token budget for general and domain backbones. Our hypothesis predicts a flatter curve for domain backbones. We also compare the searched layer taps under the two conditions. BERTHop's texture argument predicts that X-ray bridges with general encoders select earlier layers.
Fourth check: overfitting control. Every searched result is reported on the untouched test split, alongside its search-split score. A large gap between the two would repeat AgentNAS's DeepSea failure.
Kill criterion. The project stops if, after these checks, the tuned uniform baseline ties the searched bridge and transplanted bridges do as well as native ones. The conclusion would then be that a fixed visual token budget can be spent uniformly in these domains.
References
- Flamingo: a Visual Language Model for Few-Shot Learning
- AgriPerceiver: A Parameter-Efficient Vision-Language Model for Structured Macroscopic Crop Phenotyping
- Generating dermatopathology reports from gigapixel whole slide images with HistoGPT
- Dense Connector for MLLMs
- Scalable Neural Architecture Search for 3D Medical Image Segmentation
- Agentic Neural Architecture Search
- AdaBERT: Task-Adaptive BERT Compression with Differentiable Neural Architecture Search
- BERTHop: An Effective Vision-and-Language Model for Chest X-ray Disease Diagnosis
- A Vision-Language Foundation Model for Zero-shot Clinical Collaboration and Automated Concept Discovery in Dermatology
- A Survey of Token Compression for Efficient Multimodal Large Language Models
- RIHA: Report-Image Hierarchical Alignment for Radiology Report Generation
- The Verbose Context Problem in Medical Records