Source-linked AI summary

XAI-Driven Confidence Estimation for OOD-Resilient Runtime Prediction

Mahmoud Sanad, Mohammed Bakr Sikal, Osama Abboud, Heba Khdr, Jörg Henkel

arXiv:2611.13199v1cs.LGcs.AI

TL;DR

Runtime OOD inputs can degrade ML-based resource-management predictions, and global error margins do not distinguish reliable from catastrophic predictions. LEX uses a GMM over learned input embeddings to provide input-specific runtime confidence bounds. Across 34 benchmark applications and hardware configurations, it reports 94% containment and bounds 17% tighter than global baselines, with negligible runtime overhead.

  • Problem

    ML-based resource-management models can encounter OOD inputs at runtime, while a single global margin does not reflect per-input reliability and continuous PMC features make direct similarity comparisons inadequate.

    Source: §1 · p. 1, §1.2 · p. 2
  • Method

    LEX clusters learned input embeddings with a GMM and uses per-cluster historical error estimates to provide runtime bounds for new inputs.

    Source: §3.1 · p. 5
  • Results

    LEX achieves 94% containment rate across 34 benchmark applications and hardware configurations, with confidence bounds 17% tighter than global baselines and negligible runtime overhead.

    Source: §6 · p. 9
  • Takeaways & Limitations

    Input-specific confidence signals provide a way to improve the reliability and OOD resilience of ML-based resource management.

    Source: §6 · p. 9

    Clusters with no assigned training inputs receive an infinite error bound because no historical error estimate is available for that region.

    Source: §3.1 · p. 5

Abstract

from arXiv · show

Machine learning-based resource management (RM) models degrade under out-of-distribution (OOD) inputs at runtime, yet existing approaches in the literature rely on a single global error margin that is overly conservative and fails to distinguish reliablepredictions from catastrophic failures. We propose Lightweight Runtime EXplainability (LEX), the first post-hoc XAI framework for input-specific runtime confidence estimation in ML-based RM. LEX clusters the embeddings of the training input space using a Gaussian Mixture Model and associates per-cluster prediction error bounds to input samples, enabling fine-grained runtime confidence signals without retraining. Evaluated on a state-of-the-art LSTM-based IPS forecasting model on Intel Alder Lake, across 34 benchmark applications, LEX achieves ~94% containment on unseen workloads and produces ~17% tighter per-input confidence bounds than global baselines. With its negligible runtime overhead, LEX advances the field by providing explainable and reliable input-specific confidence signals of ML predictions, thereby making ML-based resource management resilient to OOD at runtime.

1 Introduction

Runtime OOD inputs can cause ML-based resource-management predictions to fail, while global error thresholds do not provide reliable input-specific confidence signals. LEX uses learned embeddings and clustering to estimate input-specific error bounds, reporting tighter bounds than global margins across benchmarks and hardware configurations.

1. Introduction

  • Global mean and p90 MAPE thresholds fail as reliable confidence signals, with often more than 50% of data points exceeding them.The paper argues that global statistics hide catastrophic performance on OOD samples.Source: Figure 1 · p. 1, §1 · p. 1

1.1 Motivational Example

  • Random splits produced mean MAPE of 0.4% and 90th-percentile MAPE of 0.7%, despite per-window errors reaching about 24%.The wide error spread across applications persisted across 50 model trainings and reflected structural sensitivity to input phases.Source: Figure 1 · p. 1, §1.1 · p. 2

1.2 Challenges and Contributions

  • Application-level leave-one-out raised mean MAPE to 0.9% and 90th-percentile MAPE to 2.3%, with per-window errors reaching about 26%.The experiment held out one application entirely for each of 16 model variants.Source: Figure 1 · p. 1, §1.2 · p. 2
  • A scalar prediction gives no reliability signal for whether an input is well covered, while continuous PMC vectors make feature-by-feature similarity inadequate.The paper motivates learned representations to capture structural similarity in model behavior from limited observations.Source: §1.2 · p. 2
  • LEX provides an input-specific error margin by fitting a Gaussian Mixture Model over a learned embedding space that captures execution-phase similarity.The framework derives quantitative margins from statistical error estimates rather than a single global threshold.Source: §1.2 · p. 2
  • LEX performs on par with the best global error margin while providing error bounds up to 10 times tighter across benchmarks and hardware configurations, with negligible runtime overhead.The reported comparison describes LEX's balance between containment rate and error margins.Source: §1.2 · p. 3

2 Generalization Analysis

The analysis finds that model errors are associated with structurally distinct inputs, while single-feature monitoring cannot reliably identify them. Learned embeddings and GMM clusters capture input structure associated with prediction error across applications.

2.1 Structural Determination of Model Failure

  • Model failures occur on inputs with shifted feature distributions, indicating a structurally distinct subset rather than random noise.The analysis uses the 99th-percentile MAPE to distinguish OOD test windows from good windows.Source: §2 · p. 3, §2.1 · p. 3

2 Generalization Analysis

  • No single PMC threshold reliably separates the 99th-percentile OOD test windows from good windows, motivating joint representations of input structure.The red and blue distributions overlap significantly for each individual feature.Source: §2 · p. 3

2.2 Embedding Space Analysis

  • Learned embeddings map inputs to a joint latent space where semantically similar inputs are represented by nearby vectors.For IPS forecasting, this representation combines all PMCs to capture application phase-level characteristics.Source: §2.2 · p. 3

2.2.1 Autoencoder for embeddings extraction.

  • P-core and E-core embeddings form separate sub-clusters, while embeddings across five V/f levels cluster tightly for each application and core type.The representations capture hardware context while preserving behavioral signatures across operating frequencies.Source: §2.2.2 · p. 4

2.3 Cluster-Level Model Performance Analysis using GMM

  • The analysis fits a 32-component GMM to training-phase embeddings and uses each cluster’s 90th-percentile MAPE as its confidence estimate.The goal is to test whether error behavior for a new phase assigned to a cluster is consistent with that cluster’s historical profile.Source: §2.3 · p. 5

2.3.1 Behavioral Fingerprint Map.

  • Low-entropy applications tend to occupy easy clusters and have low MAPE, but compact footprints can still be hard to predict when their clusters are difficult.The map also reports that diffuse applications generally have higher weighted-mean MAPE; ocean_ncp reaches 1.65%.Source: §2.3.1 · p. 5
  • GMM cluster membership reliably predicts model error independently of application identity, adding information beyond a static global threshold.The analysis motivates dynamic per-input estimation of prediction error at runtime.Source: §2.3.1 · p. 5

3 Lightweight Runtime EXplainability (LEX): Embedding- and GMM-based Confidence Estimation

LEX adds input-specific confidence estimates to a pretrained model by grouping learned input embeddings and associating clusters with prediction-error statistics. At runtime, it retrieves the assigned cluster’s estimate to form an interval or trigger a fallback policy.

3 Lightweight Runtime EXplainability (LEX): Embedding- and GMM-based Confidence Estimation

  • LEX adds runtime confidence estimates to a pretrained model without changing its parameters or prediction logic.It groups training embeddings with a GMM and constructs a per-cluster error lookup table.Source: §3 · p. 5

3.1 Design-Time Procedure

  • An encoder maps inputs to embeddings, reusing an accessible internal representation or using a lightweight neural network when needed.The alternative encoder can approximate the target model’s output in the training data.Source: §3.1 · p. 5
  • LEX fits a GMM to training embeddings and constructs a lookup table of representative prediction-error statistics for each cluster.For regression, the statistic can be the 90th-percentile MAPE; for classification, it can be the misclassification rate.Source: §3.1 · p. 5
  • A cluster with no assigned training inputs receives an infinite error estimate because no historical estimate is available for that region.The encoder, fitted GMM, and lookup table are then used at runtime.Source: §3.1 · p. 5

3.2 Runtime Procedure

  • At runtime, LEX assigns the input embedding to its most probable cluster and retrieves that cluster’s error estimate before querying the model.If the resource-management technique’s trust condition is violated, LEX invokes a fallback policy without incurring the cost of a catastrophic inference.Source: §3.2 · p. 6
  • When the trust condition passes, LEX returns the prediction with a symmetric confidence interval that can help reason about worst-case deviation.The interval is based on the input-specific confidence estimate.Source: §3.2 · p. 6

4 Experimental Evaluation

LEX is evaluated against global-MAPE baselines across software and hardware generalization settings. Its input-specific bounds retain containment while adapting their width to the input and execution phase.

4.2 Comparison Baselines

  • LEX encodes and clusters input windows, assigning per-cluster 90th-percentile MAPE bounds, whereas baseline_max, baseline_mean, and baseline_P90 apply one global training-set error metric to every window.The evaluation uses LOO testing and compares software-level generalization within or across benchmark suites and hardware-level generalization across P-core and P- plus E-core settings.Source: §4.2 · p. 6, §4 · p. 6, §4.1 · p. 6

4.1 Evaluation Strategy

  • Across four experiments, LEX achieves ~94% average performance, on par with the most pessimistic Max baseline, while providing ~17% tighter error margins.Figure 6 compares normalized performance with Max, Mean, P90, and LEX; triangle markers show absolute MAPE thresholds.Source: Figure 6 · p. 7
  • On P-core measurements, LEX's average containment rate is 96%; its 2.87% mean error margin compares with 20.28% for baseline_max, while baseline_P90 reduces ρ from 96% to 47%.The first experiment evaluates generalization across applications on the same core type.Source: §4.2 · p. 6, §4.1 · p. 7
  • With both P- and E-core measurements, LEX achieves 92% average ρ and a narrow error margin, though canneal falls below 50% accuracy, with the challenge attributed likely to atypical E-core behavior.The baselines also struggle on this application; diffuse applications were assigned across multiple clusters, with none exceeding 40% occupancy.Source: §4.1 · pp. 7–8
  • Figure 7 plots mean phase embeddings for each application and configuration, using filled circles for P-core executions and triangles for E-core executions.The evaluation strategy also uses t-SNE to visualize the phase-level embeddings.Source: Figure 7 · p. 8
  • LEX reaches 95% average accuracy with a 3.65% adaptive mean error margin on unseen SPEC CPU2006 P-core workloads, and 93% average ρ with a 2.49% average mean MAPE bound on heterogeneous SPEC CPU2006 workloads.The latter experiment combines P- and E-core measurements and is described as the most challenging evaluation.Source: §4.1 · p. 8
  • LEX assigns smaller error margins in water_spatial phases I, II, and IV, but broadens the bound in Phase III, where predicted IPS is approximately 10 times worse than in Phase II.It also allocates larger bounds to transition phases, which usually show greater variability and prediction inaccuracy.Source: §4.1 · p. 8

5 Related Work

Prior work evaluates generalization and estimates confidence in different ways, but the cited approaches leave gaps in testing unseen workloads, phase-level variation, or input-specific confidence.

5 Related Work

  • Random train/test splits, including 70/15/15 and 70/30 splits, do not demonstrate generalization to unseen workloads,,,.This is the first category of approaches described in the review.Source: §5 · p. 8
  • Ten-fold cross-validation does not ensure unseen applications in test folds, while application-held-out evaluations,, still overlook phase-level variability.The review notes that this omission risks performance degradation.Source: §5 · p. 8
  • Global training-data error bounds, and a per-operating-condition lookup table [25] are contrasted with evidence that global confidence mechanisms require highly pessimistic margins.The review concludes that input-specific confidence estimation is needed.Source: §5 · p. 8
  • Embedding-based confidence work includes semantic-distance rejection, hidden-representation confidence estimation, GMM-based OOD detection [24], and itemset-based explanations.The cited studies are presented as using embeddings or discretized features for confidence, reliability, or explanation.Source: §5 · p. 8, §4.3 · p. 9

6 Conclusion

The conclusion presents LEX as a post-hoc approach to input-specific confidence estimation for ML-based resource management under distribution shifts. Its evaluation reports tighter confidence bounds and high containment across benchmark applications and hardware configurations.

6 Conclusion

  • LEX addresses the failure of global error margins to capture input-dependent variation in ML-based resource management under distribution shifts.The conclusion describes LEX as a post-hoc XAI framework that clusters an embedding space with a GMM and uses statistical error estimates for input-specific confidence signals.Source: §6 · p. 9
  • Across 34 benchmark applications and hardware configurations, LEX achieves 94% containment and provides 17% tighter confidence bounds than global baselines, with negligible runtime overhead.The evaluation uses a state-of-the-art LSTM-based IPS forecasting model.Source: §6 · p. 9
  • The conclusion presents input-dependent confidence estimation as a way to enhance the reliability of ML-based resource management.Source: §6 · p. 9
Loading 2611.13199v1…