Manuscript Offprint

arXiv:2609.11295

A Hilbert-Valued Functional Decomposition Framework for Explaining Time-Dependent Outputs

Sophie Hanna Langbein, Niklas Koenen, Marvin N. Wright, Julia Herbinger

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Feature-based explanations quantify features' influence on model predictions, but are primarily designed for scalar outputs. In many applications, however, outputs are functional or multivariate, such as time-dependent trajectories in demand forecasting. Consequently, existing approaches typically explain each output location independently, ignoring dependencies across the output components. We address this limitation by developing a unified framework for feature-based explanations of time-dependent outputs. Specifically, we generalize functional decomposition to Hilbert-valued prediction functions and extend an existing feature-based explanation framework to this setting. Our framework introduces kernel-based output representations that enable time-dependency-aware explanations at multiple levels of temporal granularity, including time-specific, time-resolved, and time-aggregated, while providing a unified view in which existing methods arise as special cases. We validate our framework on synthetic and real-world data, including intraday financial market volatility prediction and energy demand forecasting.

1 Introduction

Machine learning models achieve strong predictive performance across many applications, but are widely considered black boxes. However, in high-stakes settings such as healthcare, finance, or policy making, understanding how predictions are formed is crucial [39, 3, 48]. This has led to the development of explainable artificial intelligence (XAI), including a large class of feature-based methods that quantify how input features influence model predictions, either locally (individual predictions) [31, 17] or globally (model behavior across the data distribution) [4, 12, 7]. Given the large number of such methods, recent work has focused on unifying perspectives that reveal connections between them [8, 32, 9, 15]. In particular, the framework proposed by [15] formalizes feature-based explanations through a common set of operators, providing a general view on existing approaches.

However, these methods and their unifying formulations are predominantly developed for scalar-valued outputs, as encountered in standard regression or classification tasks. In many applications, models instead produce multivariate or functional outputs, such as time-dependent trajectories [40, 6]. In practice, XAI methods are routinely applied pointwise to functional outputs, explaining each output location in isolation [49, 34, 20, 24, 50, 10]. This has two limitations: it ignores dependencies across the output domain, treating each output location as if it were unrelated to its neighbors, and it offers no principled mechanism for aggregating feature effects across time. The result is a gap between the natural structure of time-dependent outputs and the levels of temporal granularity at which they can be meaningfully explained.

To illustrate these limitations, consider a patient in intensive care where a biomarker (e.g., blood lactate) is monitored over time. A model FF predicts a 24h trajectory (i.e., F(x)F(\mathbf{x}) is a function over tt)

Preprint.

(Fig. 1, top right), where X1X_{1} controls the recovery trend, and X2X_{2}, X3X_{3} represent clinically meaningful, early shock ( t=10ht = 10h) and late deterioration ( t=18ht = 18h) events, respectively. A natural goal is to understand how each feature influences the trajectory. Pointwise explanations attribute feature effects independently at each t. Yet, the influence of X2X_{2} is not confined to t=10ht = 10h, but spreads over a temporal neighborhood, and clinicians may care less about attribution at a single moment than about the aggregate influence over a clinically meaningful phase. Pointwise methods support neither: they ignore dependencies across the output domain and lack principled basis for aggregation.

This highlights the need for explanation methods that account for dependencies across time in the output and support different levels of aggregation. To address this, we propose the Hilbert-valued explanation framework, which extends feature-based explanations to multivariate and functional outcomes while taking into account the outcomes' dependence structure through kernel-based aggregation. Fig. 1 illustrates this contrast: an identity kernel produces isolated pointwise attributions, while a time-dependency-aware kernel (correlation kernel) yields phase-aware effects examined at a specific time, across the trajectory, or aggregated into a single importance.

References (45)