TDI-SF: Trustworthy Dynamic Inference via Uncertainty-Gated Retrieval and Similarity-Gated Strict Fallback

Retrieval-time augmentation can correct hard test samples but may also introduce harmful interference when retrieved neighbors are unreliable. We propose TDI-SF (trustworthy dynamic inference via similarity-gated strict fallback), a safety-oriented dynamic inference strategy that intervenes only when needed and falls back to a frozen baseline when retrieval quality is insufficient. Uncertainty-gated selective retrieval triggers on a hard subset, defined by high entropy or low margin predictions (q=0.3), and similarity-gated fusion weights neighbor evidence by maximum similarity with a strict fallback threshold (alpha-mode=maxsim, min_maxsim). We evaluate on ImageNet-100 (ResNet-50) and CICIDS2017 (MLP) and report overall accuracy, hard-subset accuracy, calibration, negative flips, and risk–coverage behavior alongside efficiency. Comprehensive evaluation under both clean and degraded retrieval conditions demonstrates the value of each component. On ImageNet-100, TDI-SF improves hard-subset accuracy by 0.92% and overall accuracy by 0.30%, applying retrieval to only 32.6% of samples with 1.38 ms overhead per triggered sample. On CICIDS2017, the same mechanism yields +1.30% hard-subset gains with only 0.43 ms/hard overhead. These results show a simple, auditable recipe for safer retrieval-augmented inference across heterogeneous domains.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-02-18
DOI
https://doi.org/10.3390/app16042023
Primary Topic
Domain Adaptation and Few-Shot Learning
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TDI-SF: Trustworthy Dynamic Inference via Uncertainty-Gated Retrieval and Similarity-Gated Strict Fallback

Songze Li, Pengfei Liu, Zhouxiang Yu, Jiahao Hu et al.
Applied Sciences
Domain Adaptation and Few-Shot Learning
article

TDI-SF: Trustworthy Dynamic Inference via Uncertainty-Gated Retrieval and Similarity-Gated Strict Fallback

Songze Li, Pengfei Liu, Zhouxiang Yu, Jiahao Hu, Yiyi Xu
article en

Abstract

Retrieval-time augmentation can correct hard test samples but may also introduce harmful interference when retrieved neighbors are unreliable. We propose TDI-SF (trustworthy dynamic inference via similarity-gated strict fallback), a safety-oriented dynamic inference strategy that intervenes only when needed and falls back to a frozen baseline when retrieval quality is insufficient. Uncertainty-gated selective retrieval triggers on a hard subset, defined by high entropy or low margin predictions (q=0.3), and similarity-gated fusion weights neighbor evidence by maximum similarity with a strict fallback threshold (alpha-mode=maxsim, min_maxsim). We evaluate on ImageNet-100 (ResNet-50) and CICIDS2017 (MLP) and report overall accuracy, hard-subset accuracy, calibration, negative flips, and risk–coverage behavior alongside efficiency. Comprehensive evaluation under both clean and degraded retrieval conditions demonstrates the value of each component. On ImageNet-100, TDI-SF improves hard-subset accuracy by 0.92% and overall accuracy by 0.30%, applying retrieval to only 32.6% of samples with 1.38 ms overhead per triggered sample. On CICIDS2017, the same mechanism yields +1.30% hard-subset gains with only 0.43 ms/hard overhead. These results show a simple, auditable recipe for safer retrieval-augmented inference across heterogeneous domains.

Applied SciencesVol. 16(4)
Guangxi University of Science and Technology (CN), Naval University of Engineering (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 54%
Domain Adaptation and Few-Shot Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.