mlsanityData to 14 Oct 2026

FlexiFlow: Bandit-based Model Switching in ML Workflows

arXiv 2610.07286 ↗First posted 5 Oct 2026cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Model optimizations help improve inference performance and accuracy of ML workflows. However, relying on a single model to perform inference across all data batches often fails to maximize accuracy and thus overall performance. In many cases, alternate models could perform better on specific subsets of data where a primary model underperforms. Our experiments with real ML workflows indeed show that switching models improves workflow accuracy by up to 23%. Yet, current systems lack the ability to adaptively switch between models based on performance, forcing users to manually test models in sequence. We present FlexiFlow, a dataflow system that dynamically switches between alternate models when the current model exhibits low accuracy. FlexiFlow learns to rank models using a novel multi-armed bandit approach that accounts for model runtimes, probability of passing user-defined assertions, and the computational structure of the ML workflow. We show that the standard Thompson sampling approach is insufficient for switching models in ML workflows. In contrast, our proposed approaches are effective and scales to complex real-world ML workflows. Experiments show that switching models at runtime while reusing intermediate results provides higher accuracy, but also 48% efficiency gain compared to sequential workflow runs.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 6 of its 51 references that are in the map. First posted on arXiv 5 Oct 2026.

Builds on

6 of 51 references.

References · 6

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
  4. 2017A Tutorial on Thompson Samplingcited by 433
  5. 2023A Survey of Confidence Estimation and Calibration in Large Language Modelscited by 256
  6. 2021MIDV-2020: A Comprehensive Benchmark Dataset for Identity Document Analysiscited by 32

Built on by

Not cited yet.