Introduction
Explainable AI (XAI) has traditionally focused on classification tasks, where decision boundaries provide natural reference points for interpretation. However, regression models—predicting continuous values—present a unique challenge. In regression, the output is a spectrum, making it difficult to define a meaningful baseline for explanation. Standard attribution methods like Layer-wise Relevance Propagation (LRP) or Integrated Gradients (IG) often produce a single, global explanation that averages out the model's behavior across the entire output range. This "one-size-fits-all" approach can obscure critical structural changes in a model's strategy; for instance, a model might rely on entirely different features to predict low versus high values.
XpertAI is a novel framework designed to address this "wild west" of regression interpretability. By decomposing a model's output into "range experts," XpertAI enables fine-grained, query-specific explanations. This allows users to ask nuanced questions such as "What sets apart a good wine from an excellent one?" rather than the generic "Why is this wine good?"
Methodology: The Range Expert Framework
The core innovation of XpertAI lies in its ability to disentangle a model's internal logic across different output sub-manifolds. This is achieved through a two-step process involving the introduction of virtual "range experts."
1. Thermometer Coding and Range Experts
The continuous output $y$ of a regression model is decomposed into a set of additive basis functions, $z_m$. This is analogous to a thermometer: as the predicted value increases, it "fills up" successive segments. Each segment represents a "range expert" responsible for a specific slice of the total output range.
2. Structural Disentanglement and Surrogate Modeling
To ensure that explanations are not bottlenecked by the single-dimensional output $y$, XpertAI employs a surrogate model. This surrogate maps the internal activations of the original model directly to the range experts. This step is crucial because it ensures the resulting attribution captures the actual internal logic used for a specific output range, rather than just a projection of the final output.
3. Query-Based Explanations
Once the experts are established, users can formulate an "explanandum" (the specific phenomenon to be explained) as a linear combination of these experts. This allows for precise, comparative queries. For example, in a wind turbine monitoring scenario, one might query the difference between expected and actual power production to identify specific mechanical failures.
Experimental Validation
The authors evaluated XpertAI across several domains, ranging from synthetic benchmarks to real-world industrial data:
- rMNIST: A regression variant of the MNIST dataset where digits are mapped to a continuous scale based on identity and rotation.
- Facial Age Estimation: Predicting biological age from a dataset of 20,000 images.
- Spanish Red Wine Quality: A tabular dataset using chemical and economic features to predict quality scores.
- Wind Turbine SCADA Data: Real-world sensor data used to attribute energy losses to mechanical issues like yaw-misalignment.
Key Insights and Results
XpertAI's granular approach revealed several "strategy shifts" that standard XAI methods missed.
Strategy Shifts in Wine Quality
In the study of Spanish red wines, standard XAI suggested that price was the dominant factor for high-quality ratings. However, XpertAI revealed a more complex reality: while price is the primary indicator for distinguishing "bad" wine from "average" wine, the model's logic shifts for "excellent" wines. For the highest quality tier, features like acidity and body become the primary drivers of the model's prediction, a nuance hidden by global attribution methods.
Ground-Truth Alignment in Industrial Monitoring
In the wind turbine case study, XpertAI demonstrated superior faithfulness to physical reality. When attributing energy losses to yaw-misalignment, XpertAI's results closely matched the actual ground-truth losses. In contrast, standard LRP tended to systematically overestimate these losses, providing less actionable information for maintenance teams.
Quantitative Performance
XpertAI consistently outperformed naive XAI methods on the Area Between the Curves (ABC) metric, which quantifies faithfulness by measuring the drop in model output when important features are removed. On the rMNIST dataset, XpertAI achieved a +50.7% improvement in faithfulness for LRP-based explanations.
Conclusion and Future Directions
XpertAI represents a significant step forward in making regression models interpretable and actionable. By allowing users to define local reference points, it provides context-aware explanations that are far more useful to domain experts than global averages.
While the framework is robust, future work will address the computational overhead of training surrogate models and the challenge of automatically determining the optimal number of range experts. Additionally, the authors aim to extend XpertAI to more complex outputs, such as time-series forecasting and multi-target regression, and to test its scalability on large-scale foundation models.
Summary updated