CEDAR:基于残差分解的受控事件驱动需求预测 CEDAR: Controlled and Event-Driven Demand Forecasting via Residual Decomposition 预印本
原文摘要
查看英文原文摘要
Forecasting in large-scale e-commerce marketplaces is increasingly required to support planning: merchants need to evaluate sales outcomes under future action sequences such as budget schedules, rather than passively predicting what happens next. However, most existing time series forecasting (TSF) approaches remain inherently passive. Even when incorporating operational decisions as auxiliary covariates, they typically optimize for correlation-based extrapolation under historical policies. This design suffers from autoregressive inertia and conflates endogenous market evolution with decision-induced transitions, leading to policy-insensitive rollouts and unreliable counterfactual analysis. To bridge this gap, we propose CEDAR (Controlled and Event-Driven Demand forecasting via Action-aware Residual decomposition), a two-stage framework for robust decision-conditioned simulation. In Stage I, an Action-Interleaved Transformer learns controllable action-conditioned state transitions for rollout under planned interventions. In Stage II, a Residual Correction Module leverages external event signals and LLM-assisted text representations to align noisy event descriptions with product context and correct event-driven deviations. Our study is enabled by a large-scale real-world dataset from Alibaba 1688, comprising approximately 32 million product trajectories with paired state-action sequences and aligned event signals. Extensive offline experiments and online controlled experiments in production demonstrate that CEDAR consistently improves simulation accuracy over strong TSF baselines and delivers practical gains for real-world budget planning.
📚 参考文献 (53 条)
查看全部 53 条
- [1] Taha Aksu, Gerald Woo, Juncheng Liu, Xu Liu, Chenghao Liu, Silvio Savarese, Caiming Xiong, and Doyen Sahoo. [n. d.]. GIFT-Eval: A Benchmark for General Time Series Forecasting Model Evaluation. In NeurIPS Workshop on Time Series in the Age of Large Models.
- [2] Abdul Fatir Ansari, Lorenzo Stella, Ali Caner Turkmen, Xiyuan Zhang, Pedro Mercado, Huibin Shen, Oleksandr Shchur, Syama Sundar Rangapuram, Sebas- tian Pineda Arango, Shubham Kapoor, et al. [n. d.]. Chronos: Learning the Language of Time Series. Transactions on Machine Learning Research ([n. d.]).
- KDD ’26, August 09–13, 2026, Jeju Island, Republic of Korea Junjie Meng et al.
- [3] Salvatore Carta, Andrea Medda, Alessio Pili, Diego Reforgiato Recupero, and Roberto Saia. 2018. Forecasting e-commerce products prices by combining an autoregressive integrated moving average (ARIMA) model and google trends data. Future Internet 11, 1 (2018), 5.
- [4] Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Michael Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. 2021. Decision Transformer: Reinforcement Learning via Sequence Modeling. arXiv:2106.01345 [cs.LG] https://arxiv.org/abs/2106.01345
- [5] Robert B Cleveland, William S Cleveland, Jean E McRae, and Irma Terpenning. 1990. STL: A seasonal-trend decomposition. Journal of official statistics 6, 1 (1990), 3–73.
- [6] Abhimanyu Das, Weihao Kong, Rajat Sen, and Yichen Zhou. 2024. A decoder- only foundation model for time-series forecasting. In Forty-first International Conference on Machine Learning.
- [7] Mononito Goswami, Konrad Szafer, Arjun Choudhry, Yifu Cai, Shuo Li, and Artur Dubrawski. [n. d.]. MOMENT: A Family of Open Time-series Foundation Models. ([n. d.]).
- [8] Shengchao Hu, Li Shen, Ya Zhang, Yixin Chen, and Dacheng Tao. 2024. On transforming reinforcement learning with transformers: The development trajec- tory. IEEE Transactions on Pattern Analysis and Machine Intelligence 46, 12 (2024), 8580–8599.
- [9] Zheqi Hu, Yiwen Hu, and Hanwu Li. 2025. Multi-Task Temporal Fusion Trans- former for Joint Sales and Inventory Forecasting in Amazon E-Commerce Supply Chain. arXiv preprint arXiv:2512.00370 (2025).
- [10] Longyang Huang, Botao Dong, and Weidong Zhang. 2024. Efficient offline reinforcement learning with relaxed conservatism. IEEE Transactions on Pattern Analysis and Machine Intelligence 46, 8 (2024), 5260–5272.
- [11] Michael Janner, Qiyang Li, and Sergey Levine. 2021. Offline reinforcement learning as one big sequence modeling problem. Advances in neural information processing systems 34 (2021), 1273–1286.
- [12] Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. 2020. Conserva- tive q-learning for offline reinforcement learning. Advances in neural information processing systems 33 (2020), 1179–1191.
- [13] Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. 2020. Offline rein- forcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643 (2020).
- [14] Bryan Lim, Sercan Ö Arık, Nicolas Loeff, and Tomas Pfister. 2021. Temporal fusion transformers for interpretable multi-horizon time series forecasting. International journal of forecasting 37, 4 (2021), 1748–1764.
- [15] Shengsheng Lin, Weiwei Lin, Wentai Wu, Songbo Wang, and Yongxiang Wang. 2024. Petformer: Long-term time series forecasting via placeholder-enhanced transformer. IEEE Transactions on Emerging Topics in Computational Intelligence (2024).
- [16] Lingfeng Liu, Yixin Song, Dazhong Shen, Bing Yin, Hao Li, Yanyong Zhang, and Chao Wang. 2026. Rethinking Popularity Bias in Collaborative Filtering via Analytical Vector Decomposition. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 1. 879–890.
- [17] Yong Liu, Tengge Hu, Haoran Zhang, Haixu Wu, Shiyu Wang, Lintao Ma, and Mingsheng Long. 2023. itransformer: Inverted transformers are effective for time series forecasting. arXiv preprint arXiv:2310.06625 (2023).
- [18] Yong Liu, Guo Qin, Xiangdong Huang, Jianmin Wang, and Mingsheng Long. [n. d.]. Timer-XL: Long-Context Transformers for Unified Time Series Forecasting. In The Thirteenth International Conference on Learning Representations.
- [19] Junjie Meng, Ranxu zhang, Wei Wu, Rui Zhang, Chuan Qin, Qi Zhang, Qi Liu, Hui Xiong, and Chao Wang. 2026. Turning Semantics into Topology: LLM-Driven Attribute Augmentation for Collaborative Filtering. arXiv:2602.21099 [cs.IR] https://arxiv.org/abs/2602.21099
- [20] Mitsuhiko Nakamoto, Simon Zhai, Anikait Singh, Max Sobol Mark, Yi Ma, Chelsea Finn, Aviral Kumar, and Sergey Levine. 2023. Cal-ql: Calibrated offline rl pre- training for efficient online fine-tuning. Advances in Neural Information Processing Systems 36 (2023), 62244–62269.
- [21] Brian K Nelson. 1998. Time series analysis using autoregressive integrated moving average (ARIMA) models. Academic emergency medicine 5, 7 (1998), 739–744.
- [22] Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. 2023. A Time Series is Worth 64 Words: Long-term Forecasting with Transformers. arXiv:2211.14730 [cs.LG] https://arxiv.org/abs/2211.14730
- [23] José Manuel Oliveira and Patrícia Ramos. 2024. Evaluating the effectiveness of time series transformers for demand forecasting in retail. Mathematics 12, 17 (2024), 2728.
- [24] Andres Potapczynski, Kin G Olivares, Malcolm Wolff, Andrew Gordon Wilson, Dmitry Efimov, and Vincent Quenneville-Belair. 2024. Effectively leveraging exogenous information across neural forecasters. (2024).
- [25] Santhi Bharath Punati, Sandeep Kanta, Udaya Bhasker Cheerala, Madhusudan G Lanjewar, and Praveen Damacharla. 2025. Temporal Fusion Transformer for Multi-Horizon Probabilistic Forecasting of Weekly Retail Sales. arXiv preprint arXiv:2511.00552 (2025).
- [26] Chuan Qin, Xin Chen, Chengrui Wang, Pengmin Wu, Xi Chen, Yihang Cheng, Jingyi Zhao, Meng Xiao, Xiangchao Dong, Qingqing Long, et al. 2025. Scihorizon: Benchmarking ai-for-science readiness from scientific data to large language mod- els. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 5754–5765.
- [27] Minghui Qiu, Feng-Lin Li, Siyu Wang, Xing Gao, Yan Chen, Weipeng Zhao, Haiqing Chen, Jun Huang, and Wei Chu. 2017. AliMe Chat: A Sequence to Sequence and Rerank based Chatbot Engine. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Pa- pers), Regina Barzilay and Min-Yen Kan (Eds.). Association for Computational Linguistics, Vancouver, Canada, 498–503. doi:10.18653/v1/P17-2079
- [28] Eva Rafetseder, Maria Schwitalla, and Josef Perner. 2013. Counterfactual reason- ing: From childhood to adulthood. Journal of experimental child psychology 114, 3 (2013), 389–404.
- [29] David Salinas, Valentin Flunkert, Jan Gasthaus, and Tim Januschowski. 2020. DeepAR: Probabilistic forecasting with autoregressive recurrent networks. Inter- national journal of forecasting 36, 3 (2020), 1181–1191.
- [30] Chao Wang, Yixin Song, Jinhui Ye, Chuan Qin, Dazhong Shen, Lingfeng Liu, Xiang Wang, and Yanyong Zhang. 2026. Face: A general framework for map- ping collaborative filtering embeddings into llm tokens. Advances in Neural Information Processing Systems 38 (2026), 146012–146039.
- [31] Chao Wang, Hengshu Zhu, Qiming Hao, Keli Xiao, and Hui Xiong. 2021. Vari- able interval time sequence modeling for career trajectory prediction: Deep collaborative perspective. In Proceedings of the Web Conference 2021. 612–623.
- [32] Chao Wang, Hengshu Zhu, Peng Wang, Chen Zhu, Xi Zhang, Enhong Chen, and Hui Xiong. 2021. Personalized and explainable employee training course recom- mendations: A bayesian variational approach. ACM Transactions on Information Systems (TOIS) 40, 4 (2021), 1–32.
- [33] Chao Wang, Hengshu Zhu, Chen Zhu, Chuan Qin, Enhong Chen, and Hui Xiong. 2023. Setrank: A setwise bayesian approach for collaborative ranking in recom- mender system. ACM Transactions on Information Systems 42, 2 (2023), 1–32.
- [34] Jingyuan Wang, Ze Wang, Jianfeng Li, and Junjie Wu. 2018. Multilevel wavelet decomposition network for interpretable time series analysis. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. 2437–2446.
- [35] Qingsong Wen, Jingkun Gao, Xiaomin Song, Liang Sun, Huan Xu, and Shenghuo Zhu. 2019. RobustSTL: A robust seasonal-trend decomposition algorithm for long time series. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 33. 5409–5416.
- [36] Qingsong Wen, Kai He, Liang Sun, Yingying Zhang, Min Ke, and Huan Xu. 2021. RobustPeriod: Time-Frequency Mining for Robust Multiple Periodicity Detection. In Proceedings of the 2021 International Conference on Management of Data (SIGMOD ’21). 205–215.
- [37] Qingsong Wen, Zhe Zhang, Yan Li, and Liang Sun. 2020. Fast RobustSTL: Effi- cient and Robust Seasonal-Trend Decomposition for Time Series with Complex Patterns. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD ’20). 2203–2213.
- [38] Bryan Wilder, Bistra Dilkina, and Milind Tambe. 2019. Melding the data-decisions pipeline: Decision-focused learning for combinatorial optimization. In Proceedings of the AAAI conference on artificial intelligence, Vol. 33. 1658–1665.
- [39] Malcolm Wolff, Kin G Olivares, Boris N Oreshkin, Sunny Ruan, Sitan Yang, Abhinav Katoch, Shankar Ramasubramanian, Youxin Zhang, Michael W Mahoney, Dmitry Efimov, et al. 2024. SPADE Split Peak Attention DEcomposition. In NeurIPS Workshop on Time Series in the Age of Large Models.
- [40] Gerald Woo, Chenghao Liu, Doyen Sahoo, Akshat Kumar, and Steven Hoi. 2022. Etsformer: Exponential smoothing transformers for time-series forecasting. arXiv preprint arXiv:2202.01381 (2022).
- [41] Dongze Wu, Feng Qiu, and Yao Xie. 2025. DoFlow: Causal Generative Flows for Interventional and Counterfactual Time-Series Prediction. arXiv e-prints (2025), arXiv–2511.
- [42] Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. 2021. Autoformer: De- composition Transformers with Auto-Correlation for Long-Term Series Forecast- ing. In Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelz- imer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (Eds.), Vol. 34. Curran Associates, Inc., 22419–22430. https://proceedings.neurips.cc/paper_files/paper/ 2021/file/bcc0d400288793e8bdcd7c19a8ac0c2b-Paper.pdf
- [43] Taku Yamagata, Ahmed Khalil, and Raul Santos-Rodriguez. 2023. Q-learning decision transformer: Leveraging dynamic programming for conditional sequence modelling in offline rl. In International Conference on Machine Learning. PMLR, 38989–39007.
- [44] Jiexia Ye, Weiqi Zhang, Ke Yi, Yongzi Yu, Ziyue Li, Jia Li, and Fugee Tsung. 2024. A Survey of Time Series Foundation Models: Generalizing Time Series Representation with Large Language Model. CoRR (2024).
- [45] Ranxu Zhang, Junjie Meng, Ying Sun, Ziqi Xu, Bing Yin, Hao Li, Yanyong Zhang, and Chao Wang. 2026. MCLMR: A Model-Agnostic Causal Learning Framework for Multi-Behavior Recommendation. In Proceedings of the ACM Web Conference 2026 (United Arab Emirates) (WWW ’26). Association for Computing Machinery, New York, NY, USA, 6481–6492. doi:10.1145/3774904.3792495
- CEDAR: Controlled and Event-Driven Demand Forecasting via Residual Decomposition KDD ’26, August 09–13, 2026, Jeju Island, Republic of Korea
- [46] Hongling Zheng, Li Shen, Yong Luo, Deheng Ye, Shuhan Xu, Bo Du, Jialie Shen, and Dacheng Tao. 2025. Value-Guided Decision Transformer: A Uni- fied Reinforcement Learning Framework for Online and Offline Settings. In The Thirty-ninth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=Ogml5bxDH3
- [47] Qinqing Zheng, Amy Zhang, and Aditya Grover. 2022. Online Decision Trans- former. In Proceedings of the 39th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 162), Kamalika Chaudhuri, Ste- fanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (Eds.). PMLR, 27042–27059. https://proceedings.mlr.press/v162/zheng22c.html
- [48] Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang. 2021. Informer: Beyond Efficient Transformer for Long Se- quence Time-Series Forecasting. Proceedings of the AAAI Conference on Artificial Intelligence 35, 12 (May 2021), 11106–11115. doi:10.1609/aaai.v35i12.17325
- [49] Shiqiao Zhou, Holger Schöner, Huanbo Lyu, Edouard Fouché, and Shuo Wang. 2025. BALM-TSF: Balanced Multimodal Alignment for LLM-Based Time Series Forecasting. In Proceedings of the 34th ACM International Conference on Informa- tion and Knowledge Management. 4498–4508.
- [50] Tian Zhou, Ziqing Ma, Qingsong Wen, Xue Wang, Liang Sun, and Rong Jin. 2022. FEDformer: Frequency Enhanced Decomposed Transformer for Long- term Series Forecasting. In Proceedings of the 39th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 162), Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (Eds.). PMLR, 27268–27286. https://proceedings.mlr.press/v162/zhou22g. html A Details of LLM-based Hotspot Information Extraction In this section, we detail the implementation of the Hotspot Infor- mation Extraction module. Raw social media trends are inherently noisy and often dominated by entertainment gossip, which can mislead forecasting models if used directly. To ensure high-quality semantic representations, we design a two-stage LLM prompt- ing pipeline. The first stage filters noise and extracts commerce- relevant tags, while the second stage synthesizes these tags with calendar events into a single, coherent natural language sentence. A.1 Stage 1: Noise Filtering and Tag Extraction For each forecasting window 𝑡, we first collect raw trending lists T𝑡 from major social platforms (eg.Red notebook and Douyin ) over the past week ([𝑡−7,𝑡−1]). In this stage, the LLM acts as an information filter. We prompt it to discard irrelevant news and extract only keywords (tags) indicative of potential product demand. Prompt 1: Commerce Tag Extraction Role: You are an e-commerce data analyst. Task: Extract product-related keywords from the follow- ing noisy social media trending list. Input: • Raw Trends: {Raw_Trend_List} Instructions: 1. Ignore all entertainment gossip, celebrity news, and non-commercial events. 2. Identify trends that could trigger consumer purchases (e.g., sudden weather changes, viral outdoor activities). 3. Extract concise prod- uct tags or categories related to these trends. Output Format: A comma-separated list of tags (e.g., "camping tents, down jackets, traditional gifts"). Let the output of this first stage be a set of filtered commerce tags, denoted as K𝑡. A.2 Stage 2: Semantic Synthesis with Calendar Events Simply embedding a list of isolated tags K𝑡fails to capture the underlying market narrative and temporal context. Therefore, in the second stage, we fuse K𝑡with a structured list of upcoming calendar events E𝑡(e.g., public holidays, shopping festivals) occurring within the target window 𝑡. The LLM is instructed to synthesize these elements into semantically complete sentences 𝑆𝑡. Prompt 2: Narrative Synthesis Role: You are a senior market strategist. Task: Synthesize the extracted product tags and upcoming holidays into a concise market summary. Inputs: • Extracted Product Tags: {K𝑡} • Upcoming Holidays/Events: {E𝑡} Instructions: 1. First talks about the upcoming event and holidays. 2. Combine all information into semantically complete sentences that describes the overarching mar- ket demand drivers for the next week. Constraint: You must output exactly follow instruction. Do not use bullet points or lists. Output Example: "Driven by the upcoming Mid-Autumn Festival and the recent viral outdoor trend, the current market demand is highly concentrated on traditional gift boxes and premium camping gear." A.3 Context Embedding Generation The output of Stage 2 ars fluent sentences 𝑆𝑡that encapsulates the macro-environmental factors and market dynamics. Finally, we employ a pre-trained text encoder to transform 𝑆𝑡into a dense vector representation: h𝑡= Encoder(𝑆𝑡) ∈R𝑑ℎ where 𝑑ℎis the embedding dimension. This dense hotspot embed- ding h𝑡serves as a critical global exogenous context signal for our framework, empowering the model to adjust its predictions based on a semantic understanding of concurrent external drivers. B Causal Identifiability and Structural Invariance Analysis of CEDAR From the perspective of Structural Causal Models (SCM), the e- commerce sales system is formalized as a controlled stochastic process. We posit that the underlying data generation process fol- lows an Additive Noise Model defined as: 𝑆𝑡+1 := 𝑓𝜃(𝑆≤𝑡,𝐴𝑡+1) + E(𝑍𝑡+1,𝑈𝑡) (9) where 𝑆denotes endogenous states, 𝐴represents merchant inter- ventions, 𝑍represents observed exogenous events, and 𝑈denotes unobserved noise. The CEDAR framework leverages this structural equation to achieve an effective approximation of the interventional distribu- tion 𝑃(𝑆𝑡+1 | 𝑑𝑜(𝐴𝑡+1),𝑆≤𝑡) through architectural causal disen- tanglement. Specifically: (1) Learning Action-Conditioned Tran- sition Operators: The AIT module in the first stage leverages an
- KDD ’26, August 09–13, 2026, Jeju Island, Republic of Korea Junjie Meng et al. Table 5: Long-horizon rollout performance on Alibaba 1688 measured by MSE. All settings use 10 weeks of historical observations as input. Horizon CEDAR PatchTST PETFormer next 5 0.182 0.424 0.434 next 10 0.414 0.849 0.743 next 15 0.734 1.526 1.382 next 20 1.103 2.173 1.945 next 25 1.612 2.847 2.561 Table 4: Wall-clock cost analysis of CEDAR and representa- tive baselines. The LLM-based event embedding generation is a one-time offline preprocessing cost. Component Time / Epoch Epochs Total Time Notes CEDAR Stage I ≈11 min 14 154 min (2h 34m) Base-stage training CEDAR Stage II ≈16 min 5 80 min (1h 20m) Residual correction training Event embedding generation – – ≈4h One-time offline cost PatchTST ≈7 min 17 119 min (1h 59m) Baseline reference PETFormer ≈21 min 31 651 min (10h 51m) Baseline reference interleaved sequence structure to explicitly model the endogenous mechanism 𝑓𝜃. This approximation relies on the assumption of Se- quential Ignorability, which posits that potential outcomes 𝑆(𝑎) are conditionally independent of the current action given the history H𝑡= {𝑆≤𝑡,𝑍≤𝑡+1}: 𝑆𝑡+1(𝑎) ⊥⊥𝐴𝑡+1 | H𝑡, ∀𝑎∈A (10) (2) Orthogonal Decomposition of Exogenous Shocks: The residual correction module in the second stage explicitly captures the ex- ogenous term E. By incorporating LLM-enhanced event semantics 𝑍, the model effectively blocks back-door paths induced by latent confounders such as market trends. This separated modeling of Endogenous Mechanism + Exoge- nous Perturbation fundamentally ensures the Structural Invari- ance of the model during Counterfactual Simulation. It enables robust estimation of the marginal causal effects derived from hy- pothetical budget strategies, thereby overcoming the confounding bias inherent in traditional correlation-based models. C Time Cost Analysis The wall-clock cost analysis is reported in Table 4. Compared with standard forecasting baselines, CEDAR introduces additional com- putation mainly from the two-stage training pipeline and the LLM- based event embedding construction. Specifically, Stage I takes about 154 minutes to train, while Stage II adds another 80 min- utes for learning the residual correction module. The total training time of CEDAR is therefore approximately 234 minutes, which is higher than PatchTST but substantially lower than PETFormer in our implementation. The event embedding generation requires around 4 hours; however, this step is performed only once as offline preprocessing and the resulting embeddings can be reused across downstream training and inference. Therefore, its cost is amortized over all products, time windows, and subsequent model updates. Considering the consistent improvements in both short-horizon and long-horizon forecasting accuracy, the additional computa- tional overhead is acceptable for large-scale industrial deployment, especially in budget planning scenarios where simulation quality is more critical than one-time preprocessing cost. D Long-horizon Performance Comparison To further examine rollout stability, we extend the evaluation hori- zon from next-5 and next-10 to next-15, next-20, and next-25, using the same 10-week historical input. As shown in Table 5, all models exhibit larger errors as the horizon increases, which is expected due to autoregressive error accumulation. Nevertheless, CEDAR degrades more gracefully than the strongest baselines. At next-25, CEDAR obtains an MSE of 1.612, substantially lower than PatchTST 2.847 and PETFormer 2.561. This result suggests that explicitly modeling action-conditioned transitions and event-driven residuals improves not only short-horizon accuracy but also the fidelity of long-horizon counterfactual rollouts.