Manuscript Offprint
arXiv:2610.13278MHR-Router: Multimodal Heterogeneous Retrieval-Enhanced Adaptive Routing for VLM Inference
ABSTRACT
Vision-language models (VLMs) exhibit complementary capabilities, yet selecting the most suitable expert for a given image-question query remains challenging due to heterogeneous multimodal inputs and varying expert strengths. Existing routing approaches rely on text-based cues or static model profiles, failing to capture fine-grained visual evidence and expert-specific failure patterns. To address this, we propose MHR-Router, a multimodal heterogeneous retrieval-enhanced adaptive routing framework for VLM inference. It accurately dispatches each multimodal query to the most suitable VLM expert via local retrieval evidence. MHR-Router consists of two stages: (1) Multimodal Routing Representation, which fuses frozen multimodal features into a comprehensive query representation; and (2) Heterogeneous Retrieval-Enhanced Adaptive Routing, which retrieves expert-specific success and failure memories as local evidence and employs a shared scorer to adaptively select the optimal expert. Experiments show that MHR-Router effectively achieves heterogeneous modality routing and consistently improves accuracy over traditional baselines.
Index Terms— Multimodal routing, vision-language models, heterogeneous retrieval, adaptive expert selection
1. INTRODUCTION
Vision-language models (VLMs) have rapidly evolved into general-purpose interfaces for visual perception and reasoning [1]. Experts with different architectures, scales, and training data exhibit complementary strengths across object recognition, OCR, spatial reasoning, fine-grained recognition, and anomaly detection[2]. Because competence varies across tasks and individual inputs, an expert that performs well for one image-question pair may be less suitable for another. A fixed expert therefore leaves complementary capabilities unexploited, whereas evaluating every candidate requires invoking the entire expert pool for each query [3, 4]. VLM routing addresses this trade-off by selecting a single expert for each query. Its central challenge is to estimate expert suitability from the joint image-question evidence before invoking any candidate expert[5].
Most existing model-routing methods, however, were developed for text-only LLMs and estimate expert suitability primarily from prompt semantics or preference data [6, 7, 8]. As illustrated in Fig. 1, text-only LLM routing selects an expert based on prompt semantics alone, whereas multimodal VLM routing jointly considers visual evidence and question semantics to select an expert for the specific image-question pair. This comparison highlights why text-only routing signals are insufficient for VLM selection. Routing-relevant information may reside in the image and be absent from the question

Fig. 1. Comparison between text-only LLM routing and multimodal VLM routing. (a) A text-only router selects an LLM expert primarily from prompt semantics. (b) A multimodal router selects a VLM expert by jointly considering visual evidence and question intent.
text. Recent work has begun to incorporate multimodal queries and model profiles into VLM selection [9]. A multimodal query representation makes both the image and question available to the router, while a model profile supplies a candidate-level summary[10]. Nevertheless, because a single global profile is shared across heterogeneous queries[11], it may obscure neighborhoods of the multimodal query space in which the same expert succeeds on some inputs but fails on others.
To address this, we propose MHR-Router, a query-adaptive VLM selection framework that estimates expert suitability from multimodal queries and local outcome evidence. Our main contributions are as follows:
• We propose MHR-Router, a query-adaptive VLM selection framework that fuses frozen image-text features into a unified multimodal routing representation, overcoming the reliance of prior routers on text-based cues or static model profiles.
• We introduce a heterogeneous retrieval-enhanced routing mechanism with expert-specific success and failure memories, whose retrieved local evidence enables a shared scorer to capture fine-grained expert competence beyond global profiles.
• Experiments on 6,400 queries spanning eight visual abilities and eight open-source VLMs show that MHR-Router achieves routing accuracy, exceeding the development-selected best single expert by 7.36% and a matched retrieval-free multimodal router by 1.22%.
- Corresponding author.

Fig. 2. Overview of MHR-Router. (a) Frozen multimodal features form the routing representation. (b) Expert-specific success and failure memories provide local retrieval evidence for a shared scorer. The selected expert receives the original query.
3. METHOD
We propose MHR-Router, a multimodal heterogeneous retrieval-enhanced adaptive routing framework for VLM inference, as illustrated in Fig. 2. Its objective is to accurately dispatch each multimodal query to the most suitable VLM expert, leveraging local retrieval evidence to overcome the limitations of static or single-modality routing. MHR-Router consists of two stages: (1) Multimodal Routing Representation, which extracts and fuses frozen multimodal features to construct a comprehensive query representation; and (2) Heterogeneous Retrieval-Enhanced Adaptive Routing, which retrieves expert-specific success and failure memories to form local evidence and employs a shared scorer to adaptively rank and select the optimal expert for the original query.
3.1. Multimodal Routing Representation
The first stage of MHR-Router constructs a query representation that supports expert ranking without invoking any candidate VLM. This design is motivated by a practical constraint. Routing must be decided before inference, and therefore the router cannot rely on answer-level signals that are only available after all experts have been queried. Instead, the router must operate on a representation that preserves two complementary sources of evidence: the visual content of the image and the intent expressed in the question.
Let denote a fixed pool of VLM experts, and let denote query , where is the image and is the question. For a training query , we define to indicate whether expert produces a correct answer for . Since multiple experts may succeed on the same query, the routing problem is naturally formulated as a ranking problem over experts rather than a single-label classification problem. The router is trained to assign higher scores to correct experts than to incorrect ones, after which one expert is selected for inference. Formally, we encode each query using a frozen multimodal feature extractor :
where denotes the parameters of the feature extractor and remains frozen throughout router training. Freezing is a deliberate design choice. It prevents the routing representation from drifting toward the answer distributions of specific experts, which would undermine the heterogeneity that the retrieval memories are intended to capture. It also keeps the router lightweight and compatible with a fixed, reusable query index, so that the same representation can be shared by the expert-specific success and failure memories in the second stage.
As shown in Fig. 2(a), the main SigLIP configuration constructs by concatenating an -normalized image embedding and an -normalized text embedding. The CLIP configuration follows the same construction. In the VLM-hidden-state alternative, final-layer hidden states over valid input tokens are first mean-pooled and then -normalized. In all cases, the two modalities are normalized before fusion so that neither modality dominates the concatenated representation by scale alone. One representation configuration is fixed for each experiment, and the parameters remain frozen throughout scorer training. This gives a controlled query representation that isolates the effect of heterogeneous retrieval and adaptive routing from changes in the underlying multimodal encoder. The frozen representation is intentionally modality-complete but expert-agnostic.
3.2. Heterogeneous Retrieval-Enhanced Adaptive Routing
The second stage of MHR-Router injects expert heterogeneity into routing through retrieval. The query representation from Sec. 3.1 is modality-complete but expert-agnostic: it describes the image-question pair without committing to any particular VLM. To decide which expert is most likely to succeed, the router must therefore consult expert-specific evidence. Rather than encoding this evidence in additional learnable expert parameters, we store it nonparametrically as success and failure memories, and retrieve from these memories at inference time. This design keeps the expert pool extensible and allows new experts to be added by populating their memory banks without retraining the shared scorer.
For each expert, ground-truth correctness partitions frozen training representations into success and failure memories:
Here summarizes the region of the representation space in which expert has previously succeeded, while summarizes the region in which it has previously failed. Together they form a non-parametric profile of the expert's competence relative to the frozen query representation.
Independent cosine top-k retrieval forms and , providing local support and risk evidence. Training queries exclude themselves from retrieval, so that the evidence for is always drawn from other queries and never from its own correctness label. Mean and maximum cosine similarity summarize each neighborhood:
(3)
Both and are two-dimensional. The mean similarity measures the average consistency between the current query and the retrieved neighborhood, whereas the maximum similarity measures whether at least one highly similar precedent exists. The difference then contrasts success evidence against failure evidence for the same expert, which is more informative than either neighborhood alone. The six retrieval statistics are packed as
where and . With one-hot expert identity , a shared MLP with two hidden layers scores every candidate:
(5)
The scorer parameters are shared across all experts, while identifies the candidate whose memories provide . We optimize only scorer parameters . Define correct experts and wrong experts . Let collect all expert scores and . For training queries with both outcomes:
(6)
The listwise term assigns uniform target mass to all correct experts, while the pairwise term penalizes correct–incorrect score gaps below . Queries for which all experts are correct or all experts are incorrect provide no ranking supervision and are excluded from scorer optimization. Only is optimized; the feature extractor and memory banks remain fixed. At inference, , the memory banks, and are fixed. For a new query, the router computes , retrieves and evaluates for every expert, and selects . Only the selected expert receives the original image–question pair. No test correctness label, ability label, source-task label, or global expert-accuracy feature is used for routing.
4. EXPERIMENTS
4.1. Experimental Setup
Benchmark and experts. The benchmark contains 6,400 queries drawn from CIFAR-100 [20], Food-101 [21], CLEVR [17], MVTec AD [19], TextVQA [16], ChartQA [22], ScienceQA [18], and A-OKVQA [23], covering eight visual abilities with 800 queries per
(a) Overall accuracy across input modalities

(b) Overall accuracy across representation sources
(c) Ability-wise accuracy across input modalities
(d) Ability-wise accuracy across representation sources

Fig. 3. Overall and ability-wise routing accuracy across input modalities and representation sources.
ability. The image-disjoint train/dev/test split contains 2,064/516/3,820 queries, yielding 30,560 test query-expert pairs. The eight instruction-tuned experts are Qwen2-VL-2B [14], Qwen2.5-VL-3B/7B [15], LLaVA-OneVision (Qwen2-7B-OV) [24], LLaVA-v1.6 (Mistral-7B) [25], Phi-3.5-Vision [26], and InternVL2.5-2B/4B [27]. Fixed prompting and decoding apply per answer type. Correctness uses normalized short-answer/yes-no matching, numerical equivalence, multiple-choice extraction, or class matching. For each test query, the router selects exactly one expert. Routing accuracy is the percentage of test queries for which the selected expert's stored response is judged correct.
Implementation details. We use per memory and input features. The scorer has two 160-unit hidden layers with GELU, LayerNorm, and dropout 0.45 (274,721 parameters). AdamW [28] training runs for 80 epochs with learning rate , weight decay , , and on one RTX 4090. We report the mean sample standard deviation over seeds 13, 42, and 87, selecting each checkpoint by development accuracy.
4.2. Experimental Results
4.2.1. Effect of Multimodal Query Representations
Fig. 3(a,c) compares SigLIP input modalities using the mean and sample standard deviation across three seeds. Routing with image-plus-question features reaches 71.19%, compared with 67.95% for text-only features. Image-only features capture most of this gain, while adding the question further improves defect anomaly detection, OCR understanding, and visual reasoning. Figs. 3(b,d) compares frozen encoders under the image-plus-question setting. The CLIP, SigLIP, and Qwen2.5-VL representations achieve , , and , respectively. Qwen2.5-VL achieves the highest overall mean and higher ability-level means on OCR understanding and visual reasoning, whereas SigLIP is higher on defect anomaly detection. Thus, no encoder dominates all abilities. We adopt SigLIP because its overall accuracy remains close to that of Qwen2.5-VL while keeping the routing representation independent of the candidate expert pool. The larger modality gap indicates that visual evidence contributes more to routing accuracy than the choice among the evaluated encoders, while question information provides complementary ability-specific gains.
4.2.2. Routing Accuracy
Table 1 compares fixed and group-level references with learned query-level routers. Best Single applies the expert with the highest overall development accuracy to every test query. The per-ability and per-task rows are diagnostic references that use known group labels. The Multimodal Query Router is the matched retrieval-free baseline: it uses the same query embedding, expert identity, scorer architecture, objective, and training schedule as MHR-Router, but sets all six retrieval statistics to zero. MHR-Router achieves , exceeding Best Single by and the Multimodal Query Router by . Under this matched setup, the latter gap measures the observed gain from adding outcome-specific local retrieval statistics. This demonstrates that MHR-Router effectively leverages evidence retrieved from each expert's historical successes and failures to improve query-level expert selection.
Table 1. Main routing accuracy and gains over the development-selected Best Single baseline.
| Method | Acc. (%) | Gain (pp) |
|---|---|---|
| Random Router | 51.21 | -13.00 |
| Best Single (dev-selected) | 64.21 | +0.00 |
| Per-ability Dev Selection | 67.70 | +3.48 |
| Per-task Dev Selection | 67.70 | +3.48 |
| Multimodal Query Router | 70.36±0.38 | +6.14 |
| MHR-Router (Ours) | 71.58±0.02 | +7.36 |
Uses development performance and the known group label only as a diagnostic reference.
Table 2. Ability-wise routing accuracy relative to the development-selected expert for each ability.
| Ability | N | MHR-Router | Dev-best | Gain (pp) |
|---|---|---|---|---|
| Counting | 480 | 96.88±0.00 | 96.88 | +0.00 |
| Defect anomaly | 480 | 27.71±0.75 | 19.17 | +8.54 |
| Fine-grained recog. | 480 | 72.43±0.43 | 50.83 | +21.60 |
| Object recog. | 480 | 11.39±0.32 | 11.04 | +0.35 |
| OCR understanding | 467 | 77.02±2.55 | 79.44 | -2.43 |
| Small-object detection | 480 | 98.33±0.00 | 97.71 | +0.62 |
| Spatial reasoning | 480 | 99.38±0.00 | 99.58 | -0.21 |
| Visual reasoning | 473 | 89.92±1.41 | 87.53 | +2.40 |
Table 2 reports ability-wise routing accuracy on the test set relative to the development-selected expert for each ability, where denotes the number of test queries. MHR-Router improves five of eight abilities, matches counting, and achieves its largest gains in fine-grained recognition (+21.60 pp) and defect anomaly detection (+8.54 pp). These results indicate that MHR-Router can effectively leverage query-level variations to improve routing performance. This suggests that retrieval memories are most useful when global expert accuracy is a poor proxy for per-query competence.
4.2.3. Parameter Sensitivity Analysis
Fig. 4 varies one hyperparameter at a time over three seeds under the same inference setting as MHR-Router, without ability labels, source-task labels, or global expert-accuracy features. Accuracy rises from at to at and changes by at most thereafter. For the loss weight, yields the highest mean and the lowest variation, whereas removing the pairwise term yields . Mean accuracy varies by only across the tested values of . These results support , , and as stable defaults and confirm that routing performance is driven by retrieved query-level evidence rather than by per-group hyperparameter tuning. This is consistent with the design goal of MHR-Router. Routing decisions should be driven by retrieved query-level evidence, not by manually tuned per-group settings.

(a) Number of retrieved neighbors k
(b) Pairwise-loss weight
(c) Pairwise-ranking margin
Fig. 4. Parameter sensitivity analysis of MHR-Router.
4.3. Ablation Study
We retrain three matched feature-group ablations using the same data split, frozen SigLIP representations, seeds, 1,550-dimensional scorer input, architecture, and optimization protocol as the full model. To preserve input size and scorer capacity, the ablation without positive evidence sets the positive-memory mean and maximum cosine similarities and both positive-negative difference features to zero. The ablation without negative evidence analogously sets the negative-memory mean and maximum cosine similarities and the same difference features to zero. MHR-Router achieves , compared with without positive evidence, without negative evidence, and without retrieval evidence. These correspond to decreases of , , and , respectively. The full model exceeds every ablation in all three seeds, supporting the joint use of success, failure, and contrast evidence.
5. CONCLUSION
This paper presents MHR-Router, a retrieval-augmented framework for adaptive VLM selection that combines frozen multimodal representations with expert-specific success and failure memories. By leveraging complementary evidence from successful and failed cases, MHR-Router enables input-dependent expert selection without requiring ability or source-task labels at inference time. Experiments across eight abilities and eight experts demonstrate that MHR-Router outperforms the best single expert selected on the development set by and the matched retrieval-free Multimodal Query Router by .
6. REFERENCES
[1] Xinyuan Gui, Shaowen Wang, Sheng Sun, Zijian Wang, Zishu Yu, and Zheming Yang, “Pro-router: Token-aware progressive model routing with adaptive edge-cloud collaboration for efficient multimodal llm inference,” arXiv preprint arXiv:2608.28726, 2026.
[2] Yuhao Tian and Zheming Yang, “Saec: scene-aware enhanced edge-cloud collaborative industrial vision inspection with multimodal llm,” in ICASSP 2026-2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2026, pp. 19747–19751.
[3] Jun Zhang, Yicheng Ji, Feiyang Ren, Yihang Li, Bowen Zeng, Zonghao Chen, Ke Chen, Lidan Shou, Gang Chen, and Huan Li, “Efficient inference for large vision-language models: Bottlenecks, techniques, and prospects,” in Findings of the Association for Computational Linguistics: ACL 2026, 2026, pp. 21036–21066.
[4] Zheming Yang, Qi Guo, Yunqing Hu, Chang Zhao, Chang Zhang, Jian Zhao, and Wen Ji, “Moa-off: Adaptive heterogeneous modality-aware offloading with edge-cloud collaboration for efficient multimodal llm inference,” arXiv preprint arXiv:2509.16995, 2025.
[5] Ahmed Šabanović, Paul Joe Maliakel, and Ivona Brandić, “Inar-vl: Input-aware routing for edge-cloud vision-language inference,” in Proceedings of the 24th Annual International Conference on Mobile Systems, Applications and Services Workshops, 2026, pp. 328–335.
[6] L. Chen, M. Zaharia, and J. Zou, “FrugalGPT: How to use large language models while reducing cost and improving performance,” Transactions on Machine Learning Research, 2024, [Online]. Available: https://openreview.net/forum?id=cSimKw5p6R.
[7] I. Ong et al., “RouteLLM: Learning to route LLMs with preference data,” in Proc. Int. Conf. Learning Representations (ICLR), 2025.
[8] C. Wang et al., “ICL-Router: In-context learned model representations for LLM routing,” in Proc. AAAI Conf. Artificial Intelligence, 2026, vol. 40, pp. 33413–33421.
[9] C. Wang, S. Wang, B. Zhang, Z. Tu, and D. Chu, “An effective router for vision-language model selection,” arXiv preprint arXiv:2606.08970, 2026.
[10] Zhehao Huang, Baijiong Lin, Jingyuan Zhang, Jingying Wang, Yuhang Liu, Ning Lu, Tao Li, and Xiaolin Huang, “Vl-routerbench: A benchmark for vision-language model routing,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026, pp. 9512–9523.
[11] Yunqing Hu, Zheming Yang, Chang Zhao, and Wen Ji, “Adaptive guidance semantically enhanced via multimodal llm for edge-cloud object detection,” in ICASSP 2026-2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2026, pp. 12962–12966.
[12] A. Radford et al., “Learning transferable visual models from natural language supervision,” in Proc. Int. Conf. Machine Learning (ICML), 2021, vol. 139 of Proceedings of Machine Learning Research, pp. 8748–8763.
[13] X. Zhai, B. Mustafa, A. Kolesnikov, and L. Beyer, “Sigmoid loss for language image pre-training,” in Proc. IEEE/CVF Int. Conf. Computer Vision (ICCV), 2023, pp. 11975–11986.
[14] P. Wang et al., “Qwen2-VL: Enhancing vision-language model’s perception of the world at any resolution,” arXiv preprint arXiv:2409.12191, 2024.
[15] S. Bai et al., “Qwen2.5-VL technical report,” arXiv preprint arXiv:2502.13923, 2025.
[16] A. Singh et al., “Towards VQA models that can read,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2019, pp. 8317–8326.
[17] J. Johnson, B. Hariharan, L. van der Maaten, L. Fei-Fei, C. L. Zitnick, and R. Girshick, “CLEVR: A diagnostic dataset for compositional language and elementary visual reasoning,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2017, pp. 2901–2910.
[18] P. Lu et al., “Learn to explain: Multimodal reasoning via thought chains for science question answering,” in Advances in Neural Information Processing Systems, 2022, vol. 35, pp. 2507–2521.
[19] P. Bergmann, M. Fauser, D. Sattlegger, and C. Steger, “MVTec AD – a comprehensive real-world dataset for unsupervised anomaly detection,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2019, pp. 9592–9600.
[20] A. Krizhevsky, “Learning multiple layers of features from tiny images,” Tech. Rep., University of Toronto, 2009.
[21] L. Bossard, M. Guillaumin, and L. Van Gool, “Food-101 – mining discriminative components with random forests,” in Proc. European Conf. Computer Vision (ECCV), 2014, vol. 8694 of Lecture Notes in Computer Science, pp. 446–461.
[22] A. Masry, D. X. Long, J. Q. Tan, S. Joty, and E. Hoque, "ChartQA: A benchmark for question answering about charts with visual and logical reasoning," in Findings of the Association for Computational Linguistics: ACL 2022, 2022, pp. 2263–2279.
[23] D. Schwenk, A. Khandelwal, C. Clark, K. Marino, and R. Mottaghi, “A-OKVQA: A benchmark for visual question answering using world knowledge,” in Proc. European Conf. Computer Vision (ECCV), 2022, pp. 146–162.
[24] B. Li et al., “LLaVA-OneVision: Easy visual task transfer,” Transactions on Machine Learning Research, 2025, [Online]. Available: https://openreview.net/forum?id=zKv8qULV6n.
[25] H. Liu et al., “LLaVA-NeXT: Improved reasoning, OCR, and world knowledge,” LLaVA project blog, 2024, [Online]. Available: https://llava-vl.github.io/blog/2024-01-30-llava-next/. Accessed: Sep. 13, 2026.
[26] Microsoft, “Phi-3.5-vision-instruct,” Hugging Face model card, 2024, [Online]. Available: https://huggingface.co/microsoft/Phi-3.5-vision-instruct. Accessed: Sep. 13, 2026.
[27] Z. Chen et al., “Expanding performance boundaries of open-source multimodal models with model, data, and test-time scaling,” arXiv preprint arXiv:2412.05271, 2024.
[28] I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in Proc. Int. Conf. Learning Representations (ICLR), 2019.