Manuscript Offprint

arXiv:2609.04797

How Faithful Is Attribution for Sales Forecasting? A Counterfactual Study

Glib Kechyn

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

Abstract

Deep models for sales forecasting, such as WaveNet-style dilated convolutional networks, are accurate but opaque: when a single model predicts sales for one of many series, it offers no account of why. We add a post-hoc, architecture-agnostic counterfactual interpretability layer to a multi-series WaveNet forecaster trained on the full Corporación Favorita grocery dataset (174,685 series over 1,688 days). The method decomposes each forecast into contributions that sum exactly to the predicted value, avoiding the allocation artifacts we observed with additive SHAP-style attribution. We evaluate faithfulness with a deletion/insertion protocol and find a statistically significant effect on both tests (deletion gap 0.22, p<0.001p < 0.001; insertion gap 0.27, p<0.01p < 0.01; robust across five background-sampling seeds), establishing that the attributions reflect genuine model behavior rather than plausible-looking artifacts. We then characterize, honestly, where attribution is and is not informative: reliance on the promotion signal is heterogeneous across series (median ratio ≈1.0\approx 1.0, with roughly 20% of series showing a strong effect), and the model captures the shape of the weekly sales cycle (day-of-week r=0.78r=0.78) while systematically under-predicting its amplitude. Our contribution is not improved accuracy but an interpretability layer with a rigorous faithfulness evaluation and a candid account of its limits.

1 Introduction

A sales forecast is not a passive prediction; it is acted upon. Grocery retailers use per-item forecasts to decide how much to order, and the cost of error is concrete and asymmetric: over-order and perishable stock is wasted, under-order and shelves empty and customers leave (Kechyn et al., 2018). When a forecast drives such a decision, the practitioner's next question is rarely just how much? but why?—is this number high because the item is trending, because a promotion is running, or because of a recurring weekly pattern? A model that answers only the first question leaves the decision-maker to trust or distrust it wholesale.

Modern multi-series forecasters answer the first question well and the second poorly. A single deep model trained across a large panel of related series attains strong accuracy (Kechyn et al., 2018), but its output is one opaque number. Architectures that build in interpretability exist—N-BEATS (Oreshkin et al., 2020) and the Temporal Fusion Transformer (Lim et al., 2021) are prominent examples—but they obtain it by design, which requires adopting and retraining into that specific architecture. For a forecaster that is already trained and deployed, that is a steep price merely to ask why it produced yesterday's number.

We take the complementary, post-hoc route: we explain an existing forecaster without changing it. Two ideas do the work. Attribution asks which parts of the input are responsible for a given prediction, decomposing a single forecast into the credit due to, say, the item's baseline level, its recent trend, and an active promotion. Counterfactual attribution obtains that decomposition by asking, for each part of the input, what the model would predict if that part were withheld and replaced by a neutral baseline; the resulting change in the prediction is that part's contribution. Because each contribution is a real, measured difference between model predictions rather than an estimated share of a fixed total, the contributions sum exactly to the forecast being explained.

An explanation is useful only if it is faithful—if it reflects what the model actually computes rather than merely looking plausible. This is our central concern. Using deletion and insertion tests (Petsiuk et al., 2018), we show that the attributions are faithful with high statistical significance (deletion p<0.001p < 0.001, insertion p<0.01p < 0.01), a form of validation that, to our knowledge, remains far less common in multi-series forecasting than in the vision settings where deletion and insertion tests originated. We are equally deliberate about the method's limits: reliance on the promotion signal is heterogeneous across series—pronounced for a minority, negligible for the majority—and the model captures the shape of the weekly cycle while damping its amplitude. We report these as findings, not failures: an interpretability method earns trust by showing where its explanations are informative and where they are not.

We demonstrate the method on the WaveNet-style forecaster of Kechyn et al. (2018) and the full Corporación Favorita grocery dataset, but the attribution construction treats the model as a black box and is not specific to that architecture (Section 2). Our contributions are:

  • A post-hoc, architecture-agnostic counterfactual attribution method for multi-series forecasters, whose contributions sum exactly to the predicted value (Section 5).

  • A faithfulness evaluation via deletion and insertion tests, showing that the attributions reflect genuine model behavior at high significance (Section 6).

  • An honest characterization of when attribution is informative: a heterogeneity analysis of promotion reliance and an analysis of weekly-cycle capture, including where the model falls short (Section 7).

We deliberately make no claim of improved forecast accuracy. Our covariate-augmented model modestly improves on a sales-only baseline (NWRMSLE 0.6137 → 0.6102), reported for completeness; the contribution is interpretability that can be trusted, not a new accuracy record.