arXiv:2610.40160cs.LGOct 2026

Manuscript Offprint

arXiv:2610.40160

FARE: Factor-Aware Retrieval with Error-Guided Fusion for Retail Forecasting

Chenghao Gu, Zhuokang Shen, Shenghao Wu, Tingxuan Zhu, Weiyi Luo, Haifeng Tang

Chenghao Gu 1∗^{1*}, Zhuokang Shen 1∗^{1*}, Shenghao Wu 1^{1}, Tingxuan Zhu 1^{1}, Weiyi Luo 2^{2}, Haifeng Tang 2^{2},

1^{1} East China Normal University, Shanghai, China

2^{2} China Merchants Bank Credit Card Center, Shanghai, China

10245101426@stu.ecnu.edu.cn, 10235101553@stu.ecnu.edu.cn

Abstract. Retail sales forecasting underpins inventory planning, yet promotions and calendar events reshape short-term demand. Although each factor usually has historical occurrences, the complete factor combination of a target week often has few precedents. The challenge is therefore to retrieve informative partial matches and weight them by their reliability, which varies across series. We propose FARE (Factor-Aware Retrieval with Error-Guided Fusion), which ranks historical weeks separately for each known target-week factor and merges the selected weeks into a factor reference under a fixed budget. Guided by shrunk errors from completed development weeks and the current disagreement among candidates, a first gate mixes this factor reference with a shape reference from similar sales histories, and a second gate controls how strongly the mixture corrects a backbone forecast. Both gates remain fixed during testing. On Favorita, M5, Rossmann, and Rohlik, FARE reduces the weighted absolute percentage error (WAPE) of five backbones by 11.46%, 4.06%, 14.63%, and 10.16% on average. With Chronos-2 frozen, FARE also outperforms conventional and existing enhancement methods, including supervised residual correction and retrieval augmentation. Code is available at https://github.com/HousonGu/FARE.

Keywords: Time series forecasting · Factor-conditioned retrieval · Historical prediction errors · Retail sales forecasting

1 Introduction

Retail sales forecasts [8] support inventory replenishment and supply-chain planning, where errors affect product availability and cause excess stock. Promotions and calendar events change product-level sales over short horizons, so their known future schedules are relevant to the forecast. The difficulty sharpens when each factor has occurred historically but their complete combination in the target week has few precedents, and the forecaster must reuse observations whose factors only partially agree with the target week.

Existing methods use these signals in three ways. Covariate models such as TFT [14] and DD-CZFormer [20] condition the forecast on known factors, retrieval methods such as SARAF [28], PFRP [7], PIR [16], and RAF [25] supply observed historical

∗^{*} Equal contribution.

C. Gu et al.

Figure

Fig. 1. Previous methods versus FARE (illustrative example). FARE retrieves partial precedents for each known target-week factor and fuses candidates with gates guided by their historical errors.

trajectories, and combination methods [2,17,22] weight candidate forecasts by past errors or current features.

When precedents for complete factor combinations are scarce, retrieval and combination face two linked challenges. First, similar past sales do not guarantee that a retrieved trajectory reflects the promotion or calendar conditions of the target week, yet requiring complete factor agreement discards useful partial precedents. Second, partial references may disagree with one another and with the backbone, and their reliability varies across series and is hard to estimate from limited error records.

We address these challenges with FARE, which couples factor-conditioned reference construction with error-guided two-level fusion. FARE ranks historical weeks separately for each target-week factor by sales-shape distance and agreement on that factor, and merges the selected weeks into a factor reference through alternating selection and deduplication. It then shrinks candidate-specific errors from completed development weeks toward a global mean and combines them with current prediction disagreements as inputs to two gates, which separately set the composition of the reference mixture and its correction strength on the backbone.

As illustrated in Fig. 1, FARE constructs factor references and allocates their contributions. Our contributions are threefold:

  1. Factor-conditioned partial references. Separate factor rankings build an eight-window reference through alternating selection and deduplication under a fixed retrieval budget.

  2. Historical error-guided two-level fusion. Shrunk per-candidate error histories and current disagreements guide separate gates for reference composition and correction strength, with convex weights that return continuously to the backbone.

  3. Evaluation of reference selection and allocation. Experiments on Favorita, M5, Rossmann, and Rohlik with five backbones assess both designs through ablations and matched-candidate comparisons.

References (26)