[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82478-en":3,"doc-seo-82478-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82478,1099513958762,"Logic","https://ap-avatar.wpscdn.com/avatar/1000023916a998db790?x-image-process=image/resize,m_fixed,w_180,h_180&k=1784791008015729253",8,"Research & Report","StateFlow Dual-State Recurrent Modeling for Long-Horizon Time Series Forecasting","Long-horizon multivariate time series forecasting remains difficult because non-stationarity, regime shifts, and compounding errors destabilize extrapolation. A Variability-Aware Recursive Neural Network (VARNN) was proposed to track variability using a residual-memory state driven by one-step prediction errors, but it was restricted to one-step sequence regression. StateFlow extends VARNN for long-horizon multi-step forecasting by building dual-state recurrent trajectories and using a chunk-based decoder plus two-stage optimization. Experiments on standard benchmarks show competitive results with compact recurrent modeling.","arXiv :2607 .00197v1 [ cs .LG] 30 Jun 2026  \nSTATEFLOW: DUAL-STATE RECURRENT MODELING FOR LONGHORIZON TIME SERIES FORECASTING  \nHaroon Gharwi1* Yue Dai2* Kai Shu3+  \n*Department of Computer Science, Illinois Institute of Technology, Chicago, IL, USA +Department of Computer Science, Emory University, Atlanta, GA, USA  \n[1](1 hgharwi@hawk.illinoistech.edu 2 ydai21@illinoistech.edu 3 kai.shu@emory.edu)[ hgharwi@hawk.illinoistech.edu](1 hgharwi@hawk.illinoistech.edu 2 ydai21@illinoistech.edu 3 kai.shu@emory.edu)[ 2](1 hgharwi@hawk.illinoistech.edu 2 ydai21@illinoistech.edu 3 kai.shu@emory.edu)[ ydai21@illinoistech.edu](1 hgharwi@hawk.illinoistech.edu 2 ydai21@illinoistech.edu 3 kai.shu@emory.edu)[ 3](1 hgharwi@hawk.illinoistech.edu 2 ydai21@illinoistech.edu 3 kai.shu@emory.edu)[ kai.shu@emory.edu](1 hgharwi@hawk.illinoistech.edu 2 ydai21@illinoistech.edu 3 kai.shu@emory.edu)  \nABSTRACT  \nLong-horizon multivariate time series forecasting (LTSF) remains challenging due to non-stationarity, regime shifts, and error accumulation. The Variability-Aware Recursive Neural Network (VARNN) was recently introduced to track such variability by maintaining a residual-memory state driven by one-step prediction errors. However, its original formulation is limited to one-step sequence regression and does not directly support multi-step forecasting. In this work, we extend VARNN to long-horizon forecasting and introduce StateFlow, a recurrent forecasting framework that uses VARNN as a dual-state recurrent backbone to capture two complementary signals from the lookback sequence: a hidden-state trajectory representing primary temporal dynamics, including trend, seasonality, level changes, and recurring patterns, and a residual-memory trajectory representing structured local prediction deviations, driven from a nonlinear recurrent transformation of errors between one-step base predictions and observed values. A chunk-based decoder separately summarizes these trajectories and maps them to the future horizon for direct multi-step forecasting. We further employ a two-stage optimization strategy that first trains the VARNN encoder through a one-step base prediction objective to optimize the internal representations over the lookback sequence, and then trains a horizon-specific decoder for direct multi-step forecasting. Experiments on standard LTSF benchmarks show that StateFlow achieves competitive performance against strong linear, recurrent, convolutional, and Transformer-based baselines while preserving linear recurrent encoding and a compact model design.  \nKeywords— Time Series Forecasting, non-stationarity, residual learning, recurrent neural networks, distribution shift.  \n1 INTRODUCTION  \nLong-horizon multivariate time series forecasting (LTSF) is a fundamental problem in applications such as energy demand prediction, traffic flow analysis, financial modeling, and environmental monitoring (Hyndman & Athanasopoulos, 2021; Brockwell & Davis, 2002; De Gooijer & Hyndman, 2006) . LTSF requires modeling extended temporal dependencies while remaining robust to non-stationarity, distribution shift, and evolving seasonal structure (Lim & Zohren, 2021; Baidya & Lee, 2024) . As the prediction horizon increases, modeling errors tend to accumulate, making stable long-term extrapolation particularly challenging (Lim et al., 2019; Oreshkin et al., 2020; Benidis et al., 2023) .  \nRecent progress in LTSF has been largely driven by Transformer-based architectures that leverage self-attention to capture long-range dependencies. Patch-based tokenization strategies and channel-wise attention mechanisms have demonstrated strong empirical performance on standard benchmarks (Nie et al., 2023; Liu et al., 2024) . However, attention-based models generally exhibit quadratic complexity with respect to input length and often rely on global interaction patterns that may introduce computational overhead when long lookback windows are required.  \nRecurrent architectures, in con","cbCaia43JLDP6vCx","https://ap.wps.com/l/cbCaia43JLDP6vCx","pdf",561775,1,14,"English","en",105,"# Introduction\n## Problem of long-horizon multivariate forecasting\n## Limitations of transformer and conventional recurrent models\n## Extending VARNN and introducing StateFlow","[{\"question\":\"What makes long-horizon multivariate time series forecasting challenging?\",\"answer\":\"It is challenging due to non-stationarity, regime shifts, and error accumulation across prediction steps, which makes long-term extrapolation unstable.\"},{\"question\":\"How does StateFlow extend the original VARNN approach?\",\"answer\":\"StateFlow extends VARNN to support long-horizon direct multi-step forecasting by using a dual-state recurrent backbone and mapping dual trajectories to the future horizon with a chunk-based decoder.\"},{\"question\":\"What two complementary signals does StateFlow capture from the lookback sequence?\",\"answer\":\"It captures a hidden-state trajectory for primary temporal dynamics (trend, seasonality, level changes, recurring patterns) and a residual-memory trajectory for structured local prediction deviations driven by error transformations.\"}]",1784180784,35,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"stateflow-dual-state-recurrent-modeling-for-long-horizon-time-series-forecasting","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/stateflow-dual-state-recurrent-modeling-for-long-horizon-time-series-forecasting/82478/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-18","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What makes long-horizon multivariate time series forecasting challenging?","Question",{"text":75,"@type":76},"It is challenging due to non-stationarity, regime shifts, and error accumulation across prediction steps, which makes long-term extrapolation unstable.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does StateFlow extend the original VARNN approach?",{"text":80,"@type":76},"StateFlow extends VARNN to support long-horizon direct multi-step forecasting by using a dual-state recurrent backbone and mapping dual trajectories to the future horizon with a chunk-based decoder.",{"name":82,"@type":73,"acceptedAnswer":83},"What two complementary signals does StateFlow capture from the lookback sequence?",{"text":84,"@type":76},"It captures a hidden-state trajectory for primary temporal dynamics (trend, seasonality, level changes, recurring patterns) and a residual-memory trajectory for structured local prediction deviations driven by error transformations.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":45,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":45,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":45,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":45,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]