توقعات سلسلة زمنية لمامبا مع تقدير عدم اليقين
Mamba time series forecasting with uncertainty quantification

شارك:
المجلة: Machine Learning Science and Technology، المجلد: 6، العدد: 3
DOI: https://doi.org/10.1088/2632-2153/adec3b
PMID: https://pubmed.ncbi.nlm.nih.gov/40703505
تاريخ النشر: 2025-07-04
المؤلف: Pedro Pessoa وآخرون
الموضوع الرئيسي: تقنيات التنبؤ وتطبيقاتها

نظرة عامة

يتناول هذا القسم قيود نموذج مساحة الحالة Mamba في التنبؤ بالسلاسل الزمنية، مع تسليط الضوء بشكل خاص على متوسط أخطائه التي تبلغ حوالي 8% في استهلاك الكهرباء و18% في معايير إشغال المرور. لمعالجة هذه الأخطاء، يقترح المؤلفون إطار عمل مزدوج الشبكة، يسمى Mamba-ProbTSF، والذي يعزز قدرات التنبؤ لـ Mamba من خلال توليد توقعات نقطية وتقدير عدم اليقين التنبؤي من خلال نمذجة التباين. تنفيذ هذا الإطار متاح للجمهور على GitHub.

تقييم Mamba-ProbTSF على كل من مجموعات البيانات الاصطناعية والواقعية يكشف عن انخفاض كبير في تباين كولباك-ليبلر، مما يشير إلى تحسين التوافق بين التوزيعات المتعلمة والبيانات الفعلية. على وجه التحديد، ينخفض التباين إلى ترتيب $10^{-3}$ للبيانات الاصطناعية و$10^{-1}$ لمعايير العالم الحقيقي. علاوة على ذلك، تظل المسارات الحقيقية في كل من استهلاك الكهرباء ومعايير إشغال المرور ضمن فترات عدم اليقين المتوقعة عند مستوى سيغما المزدوجة حوالي 95% من الوقت. يناقش المؤلفون أيضًا القيود المحتملة والتعديلات لتحسين الأداء، خاصة في السياقات التي تتضمن ديناميات عشوائية، مثل الحركة البراونية أو الديناميات الجزيئية.

مقدمة

تناقش مقدمة الورقة المفهوم الأساسي لتنبؤ السلاسل الزمنية (TSF)، والذي ينطوي على توقع العناصر المستقبلية من تسلسل بناءً على بياناته التاريخية. يعتمد TSF على فرضية أن التسلسلات الملاحظة هي تجليات لعمليات ديناميكية أساسية. من خلال تعلم القوانين الحاكمة من الملاحظات السابقة، يصبح من الممكن توسيع التوقعات إلى المستقبل. يتم تأسيس الإطار الرياضي من خلال تعريف أفق العودة للقيم السابقة كـ \( x_{1:P} \) وأفق التنبؤ كـ \( x_{P+1:P+T} \)، مع الهدف من تقريب القيم المستقبلية من خلال دالة التنبؤ \( f_{1:T}(x_{1:P}) \).

في السيناريوهات التي تكون فيها النماذج الديناميكية الصريحة غير متاحة أو معقدة بشكل مفرط، خاصة في مجالات مثل المالية وعلوم المناخ، تؤكد الورقة على فائدة الشبكات العصبية (NNs) كأداة قوية لتعلم هذه النماذج. يمكن أن تلتقط NNs العلاقات المعقدة وعالية الأبعاد داخل البيانات من خلال التدريب على عدة تجسيدات لنفس العملية الديناميكية. تهدف الشبكة إلى تحسين معلماتها الداخلية \( \phi \) لتقليل دالة الخسارة، التي تقيس الفرق بين القيم المستقبلية المتوقعة والفعلية، مما يعزز دقة التوقعات.

طرق

يستعرض قسم “الطرق” في ورقة البحث الإجراءات التجريبية والتحليلية المستخدمة للتحقيق في سؤال البحث. استخدمت الدراسة مجموعة من الأساليب الكمية والنوعية، بما في ذلك التجارب المنضبطة، والتحليلات الإحصائية، وتقنيات النمذجة. تم تنفيذ منهجيات محددة لضمان موثوقية وصدق النتائج، مثل العشوائية في اختيار العينات واستخدام أدوات القياس القياسية.

شملت جمع البيانات ملاحظات منهجية وتطبيق نماذج رياضية ذات صلة لتحليل العلاقات بين المتغيرات. تم استخدام اختبارات إحصائية، بما في ذلك تحليل الانحدار وANOVA، لتقييم دلالة النتائج. يتناول القسم أيضًا أدوات البرمجيات المستخدمة لتحليل البيانات، مما يضمن الشفافية وقابلية إعادة إنتاج النتائج. بشكل عام، تم تصميم الطرق لاختبار الفرضيات بدقة وتقديم استنتاجات قوية بشأن أهداف البحث.

نتائج

في هذا القسم، يتم تقديم نتائج تطبيق بنية S-Mamba لتنبؤ السلاسل الزمنية الاحتمالية (TSF)، مع التركيز على كل من مجموعات البيانات الاصطناعية والواقعية. تكشف التحليلات أنه بينما تؤدي S-Mamba بشكل مشابه لشبكة عصبية متصلة بالكامل على مجموعات البيانات الاصطناعية (الموجات الجيبية وديناميات فان دير بول)، إلا أنها تعاني بشكل كبير مع مجموعات البيانات الواقعية، خاصة في تقدير عدم اليقين. على سبيل المثال، في مجموعة بيانات الكهرباء، تفرط S-Mamba في تقدير عدم اليقين، مما يؤدي إلى حدود خطأ كبيرة بشكل غير واقعي وتباين KL أعلى بمقدارين من النموذج المتصل بالكامل. وبالمثل، في مجموعة بيانات المرور، تؤدي حساسية S-Mamba للت deviations النادرة إلى زيادة كبيرة في تباين KL، مما يشير إلى عدم الاستقرار في تقديرات عدم اليقين.

بالإضافة إلى ذلك، تسلط النتائج الخاصة بمجموعة بيانات الحركة البراونية الضوء على التحديات التي تواجه كل من S-Mamba والشبكة المتصلة بالكامل في التقاط النمو المتوقع لنمو التباين بدقة، والذي يجب أن يتبع العلاقة $\sigma_{\phi \sigma}(\tau) \sim \sqrt{\tau}$. تنتج S-Mamba توزيعات توقعات واسعة للغاية، بينما الشبكة المتصلة بالكامل، على الرغم من أنها تقدم تقديرات أكثر منطقية، إلا أنها لا تزال تفشل في التوافق مع التوزيع النظري. تنحرف البقايا القياسية لكلا النموذجين عن التوزيع الطبيعي القياسي المتوقع، مع تباينات KL قريبة من 1 وتقديرات التباين تصل إلى 5، مما يبرز صعوبة نمذجة العمليات العشوائية البحتة باستخدام الهياكل المستخدمة.

مناقشة

في هذا القسم، يناقش المؤلفون تطوير وتنفيذ نموذج لتنبؤ السلاسل الزمنية الاحتمالية (TSF)، يسمى Mamba-ProbTSF، والذي يبني على بنية Mamba—نموذج مساحة الحالة (SSM) المعروف بكفاءته ودقته في مهام TSF. الابتكار الرئيسي لـ Mamba-ProbTSF هو إدخال بنية شبكة مزدوجة تقوم بتقدير المسار المتوقع وعدم اليقين المرتبط به بشكل منفصل. يسمح هذا النهج بحساب كثافات الاحتمال للقيم المستقبلية المشروطة على البيانات التاريخية، مما يلبي الحاجة الملحة لتقدير عدم اليقين في التنبؤات. يؤكد المؤلفون أنه بينما توفر الشبكات العصبية التقليدية توقعات نقطية، فإنها غالبًا ما تفشل في التقاط عدم اليقين الكامن في الديناميات الأساسية، وهو أمر حاسم للتطبيقات العملية.

يفترض النموذج المقترح توزيعًا شرطيًا غاوسيًا للقيم المستقبلية، مما يمكّن من تقدير كل من المتوسط والتباين للتوقعات. تتضمن عملية التدريب تعظيم الاحتمالية الشرطية للبيانات الملاحظة، مع التركيز على تقليل دالة خسارة مشتركة تتضمن كل من التوقعات وتقديرات عدم اليقين. يتحقق المؤلفون من نموذجهم باستخدام مجموعات بيانات اصطناعية، مثل الموجات الجيبية وديناميات فان دير بول، بالإضافة إلى مجموعات بيانات واقعية، بما في ذلك استهلاك الكهرباء وإشغال المرور. تشير النتائج إلى أن Mamba-ProbTSF تلتقط الديناميات الأساسية بشكل فعال وتوفر تقديرات موثوقة لعدم اليقين، كما يتضح من البقايا القياسية التي تتماشى عن كثب مع توزيع طبيعي قياسي. يظهر النموذج أداءً محسنًا في متوسط الخطأ المطلق مقارنة بالأساليب الحتمية، مما يبرز مزايا دمج التنبؤ الاحتمالي في سيناريوهات معقدة وواقعية.

Journal: Machine Learning Science and Technology, Volume: 6, Issue: 3
DOI: https://doi.org/10.1088/2632-2153/adec3b
PMID: https://pubmed.ncbi.nlm.nih.gov/40703505
Publication Date: 2025-07-04
Author(s): Pedro Pessoa et al.
Primary Topic: Forecasting Techniques and Applications

Overview

The section discusses the limitations of the Mamba state space model in time series forecasting, particularly highlighting its mean errors of approximately 8% in electricity consumption and 18% in traffic occupancy benchmarks. To address these inaccuracies, the authors propose a dual-network framework, termed Mamba-ProbTSF, which enhances Mamba’s forecasting capabilities by generating point forecasts and estimating predictive uncertainty through variance modeling. The implementation of this framework is publicly available on GitHub.

Evaluation of Mamba-ProbTSF on both synthetic and real-world datasets reveals a significant reduction in Kullback-Leibler divergence, indicating improved alignment between the learned distributions and the actual data. Specifically, the divergence decreases to the order of $10^{-3}$ for synthetic data and $10^{-1}$ for real-world benchmarks. Furthermore, the true trajectories in both electricity consumption and traffic occupancy benchmarks remain within the predicted uncertainty intervals at the two-sigma level approximately 95% of the time. The authors also discuss potential limitations and adjustments for enhancing performance, particularly in contexts involving stochastic dynamics, such as Brownian motion or molecular dynamics.

Introduction

The introduction of the paper discusses the fundamental concept of time series forecasting (TSF), which involves predicting future elements of a sequence based on its historical data. TSF is predicated on the assumption that observed sequences are manifestations of underlying dynamical processes. By learning the governing laws from past observations, it becomes possible to extend predictions into the future. The mathematical framework is established by defining the lookback horizon of past values as \( x_{1:P} \) and the forecast horizon as \( x_{P+1:P+T} \), with the goal of approximating future values through a forecast function \( f_{1:T}(x_{1:P}) \).

In scenarios where explicit dynamical models are unavailable or overly complex, particularly in fields like finance and climate science, the paper emphasizes the utility of neural networks (NNs) as a powerful tool for learning these models. NNs can capture intricate, high-dimensional relationships within the data by training on multiple realizations of the same dynamical process. The network aims to optimize its internal parameters \( \phi \) to minimize the loss function, which quantifies the difference between predicted and actual future values, thereby enhancing the accuracy of the forecasts.

Methods

The “Methods” section of the research paper outlines the experimental and analytical procedures employed to investigate the research question. The study utilized a combination of quantitative and qualitative approaches, including controlled experiments, statistical analyses, and modeling techniques. Specific methodologies were implemented to ensure the reliability and validity of the results, such as randomization in sample selection and the use of standardized measurement tools.

Data collection involved systematic observations and the application of relevant mathematical models to analyze the relationships between variables. Statistical tests, including regression analysis and ANOVA, were employed to assess the significance of the findings. The section also details the software tools used for data analysis, ensuring transparency and reproducibility of the results. Overall, the methods were designed to rigorously test the hypotheses and provide robust conclusions regarding the research objectives.

Results

In this section, the results of applying the S-Mamba architecture for probabilistic time series forecasting (TSF) are presented, focusing on both synthetic and real datasets. The analysis reveals that while S-Mamba performs comparably to a fully connected neural network on synthetic datasets (sines and Van der Pol), it struggles significantly with real-world datasets, particularly in estimating uncertainty. For instance, in the electricity dataset, S-Mamba overestimates uncertainty, resulting in unrealistically large error bounds and a KL divergence two orders of magnitude higher than the fully connected model. Similarly, in the traffic dataset, S-Mamba’s sensitivity to rare deviations leads to a substantial increase in KL divergence, indicating instability in uncertainty estimates.

Additionally, the results for the Brownian motion dataset highlight the challenges faced by both S-Mamba and the fully connected network in accurately capturing the expected variance growth, which should follow the relationship $\sigma_{\phi \sigma}(\tau) \sim \sqrt{\tau}$. S-Mamba produces overly broad forecast distributions, while the fully connected network, although yielding more reasonable estimates, still fails to align with the theoretical distribution. The standardized residuals for both models deviate from the expected standard normal distribution, with KL divergences close to 1 and variance estimates reaching up to 5, underscoring the difficulty of modeling purely stochastic processes with the employed architectures.

Discussion

In this section, the authors discuss the development and implementation of a probabilistic time series forecasting (TSF) model, termed Mamba-ProbTSF, which builds upon the Mamba architecture—a state-space model (SSM) known for its efficiency and accuracy in TSF tasks. The key innovation of Mamba-ProbTSF is the introduction of a dual-network architecture that separately estimates the forecasted trajectory and its associated uncertainty. This approach allows for the calculation of probability densities of future values conditioned on historical data, addressing the critical need for uncertainty quantification in predictions. The authors emphasize that while traditional neural networks provide point predictions, they often fail to capture the uncertainty inherent in the underlying dynamics, which is crucial for practical applications.

The proposed model assumes a Gaussian conditional distribution for future values, enabling the estimation of both the mean and variance of predictions. The training process involves maximizing the conditional likelihood of observed data, with a focus on minimizing a joint loss function that incorporates both the forecast and uncertainty estimates. The authors validate their model using synthetic datasets, such as sine waves and van der Pol dynamics, as well as real-world datasets, including electricity consumption and traffic occupancy. Results indicate that Mamba-ProbTSF effectively captures the underlying dynamics and provides reliable uncertainty estimates, as evidenced by standardized residuals that align closely with a standard normal distribution. The model demonstrates improved performance in mean absolute error compared to deterministic approaches, highlighting the advantages of incorporating probabilistic forecasting in complex, real-world scenarios.