LinkModel: uncertainty-guided hybrid inference between small and large language models for out-of-distribution generalization
Large language models (LLMs) exhibit strong generalization capability, but their inference cost is high and they are not always superior on supervised tasks to locally deployed small language models (SLMs) fine-tuned on labeled data. In contrast, SLMs can achieve strong in-domain performance with efficient deployment, yet often degrade under out-of-distribution (OOD) or cross-domain shifts. Although prior work has studied hybrid inference that invokes LLMs on demand, most approaches rely on trained routers and are primarily designed for generative tasks; under supervised classification with the ID-to-OOD transfer setting, stable and interpretable collaboration without additional router training remains underexplored. To this end, we propose LinkModel, an uncertainty-guided hybrid inference framework. LinkModel follows a Prediction–Estimation–Prediction mechanism: a locally fine-tuned SLM first produces a prediction and estimates uncertainty to obtain a risk signal, and a threshold-gated policy then defers high-risk samples to an LLM for a second-pass prediction. This design improves accuracy and robustness while controlling the LLM invocation ratio and the overall cost. We conduct systematic evaluation and mechanism analysis under the GLUE-X OOD generalization setting; results show that LinkModel achieves consistent end-to-end gains across multiple train–test transfer combinations and substantially mitigates OOD performance degradation.
Authors
- Wentao Bai (ORCID: https://orcid.org/0009-0008-1502-1126)
- Yue Qin Cao (ORCID: https://orcid.org/0000-0002-5433-284X)
- Fan Guo (ORCID: https://orcid.org/0000-0002-9545-0092)
- Jiale Song
Institutions
- East China University of Science and Technology (CN)
- Donghua University (CN)
- Nanjing Institute of Technology (CN)
- Suzhou Polytechnic Institute of Agriculture (CN)
- Key Laboratory of Smart Manufacturing in Energy Chemical Process, Ministry of Education (CN)
Publication Details
- Journal
- Complex & Intelligent Systems
- Published
- 2026-11-16
- DOI
- https://doi.org/10.1007/s40747-026-02583-y
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Natural Science Research of Jiangsu Higher Education Institutions of China