arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.01116cs.LG
收藏

通过强化学习激发时间序列分析的链式推理

Eliciting Chain-of-Thought Reasoning for Time Series Analysis using Reinforcement Learning

Felix Parker, Nimeesha Chan, Chi Zhang, Kimia Ghobadi

AI总结:

本文提出COUNTS框架,通过强化学习训练LLM进行时间序列任务的链式推理,提升复杂时间数据处理能力。

摘要:

复杂的时间序列分析往往需要多步推理能力,而现有模型难以满足。医疗诊断和天气预报等任务需要包括反事实分析、逻辑推断、知识应用和多模态上下文整合等过程。尽管近期研究表明大语言模型(LLM)可通过强化学习(RL)实现复杂的链式推理(CoT),但这些进展主要集中在数学和编程领域,LLM在时间序列任务上表现仍差。我们引入Chain Of thought for Understanding Numerical Time Series(COUNTS),首个通过RL训练LLM进行多样的时间序列任务链式推理的框架。我们的方法采用残差向量量化变分自编码器(VAE)生成高保真离散标记,无缝整合到预训练LLM的词汇表中。COUNTS经历两阶段训练:首先在时间序列分析任务上进行监督微调以掌握新表示,随后通过组相对策略优化训练可验证问题,使用提示策略鼓励在生成最终答案前进行显式推理步骤。实验表明,这种具有中间CoT推理的RL方法显著提升了LLM在各种时间序列分析任务上的性能,为复杂时间数据推理开辟了新可能。

英文摘要:

Complex numerical time series analysis often demands multi-step reasoning capabilities beyond current models' reach. Tasks like medical diagnosis and weather forecasting require sequential reasoning processes - including counterfactual analysis, logical deduction, knowledge application, and multi-modal contextual integration - that existing time series models cannot explicitly perform. While recent research has shown large language models (LLMs) can achieve sophisticated Chain-of-Thought (CoT) reasoning through reinforcement learning (RL), these advances have primarily focused on mathematical and coding domains, with LLMs still demonstrating poor performance on time series tasks. We introduce Chain Of thought for Understanding Numerical Time Series (COUNTS), the first framework that trains LLMs to perform CoT reasoning across diverse time series tasks using RL with verifiable rewards. Our approach employs a Residual Vector-Quantized VAE to create high-fidelity discrete tokens that seamlessly integrate into a pre-trained LLM's vocabulary. COUNTS undergoes a two-stage training process: first, supervised fine-tuning on time series analysis tasks to master our novel representations, followed by Group Relative Policy Optimization training on verifiable problems using prompting strategies that encourage explicit reasoning steps before producing final answers. Our experiments demonstrate that this RL-driven approach with intermediate CoT reasoning significantly enhances LLM performance across various time series analysis tasks, opening new possibilities for complex temporal data reasoning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑