用于金融K线理解的代码交互视觉推理
Code-Interactive Visual Reasoning for Financial Candlestick Understanding
AI总结:
该研究针对金融K线理解任务,推出基于Qwen3.5-9B的Fin-Thinker模型,通过代码交互获取证据与计算,构建FinKLine-32K数据集并采用三阶段训练,在FinKLineBench上显著提升了答案准确率与依据性。
摘要:
金融K线理解需要定位视觉元素、在不同交易日期和面板间对齐这些元素,并通过数值和金融推理整合观察结果。仅答案准确率无法揭示预测是否有图表证据支持。我们提出代码交互金融K线推理任务,并推出基于Qwen3.5-9B的模型Fin-Thinker,该模型通过生成并执行代码来获取证据和执行计算,利用返回的观察结果指导后续推理。为训练这些能力,我们构建了FinKLine-32K数据集,包含32184条经回放验证的代码-观察轨迹,这些轨迹通过教师引导的学生探索收集,涵盖有错误恢复和无错误恢复的成功解决方案。我们的三阶段训练框架结合了基础视觉-代码微调、成功推理的金融过程监督与修正延续,以及执行反馈强化学习。为评估,我们推出FinKLineBench,包含1200个问题,覆盖138种金融任务类型,可分别评估答案正确性、代码执行和证据依据性。在FinKLineBench上,Fin-Thinker的严格准确率相比评估中表现最佳的直接回答基线和其具备沙箱访问权限的基础模型,分别提升了13.1和33.2个百分点。训练阶段的消融实验进一步表明,金融过程监督和执行反馈强化学习可使答案准确率及GPT-5.6评判的依据性准确率持续提升。
英文摘要:
Financial candlestick understanding requires locating visual elements, aligning them across trading dates and panels, and combining observations through numerical and financial reasoning. Answer accuracy alone does not reveal whether predictions are supported by chart evidence. We introduce Code-Interactive Financial Candlestick Reasoning and present Fin-Thinker, a model based on Qwen3.5-9B that generates and executes code to acquire evidence and perform computations. The model uses the returned observations to guide subsequent reasoning. To train these capabilities, we construct FinKLine-32K with 32,184 replay-verified code-observation trajectories collected through teacher-guided student exploration. These include successful solutions with and without error recovery. Our three-stage training framework combines foundational visual-code fine-tuning, financial process supervision of successful reasoning and corrective continuations, and execution-feedback reinforcement learning. For evaluation, we introduce FinKLineBench with 1,200 questions across 138 financial task types to assess answer correctness, code execution, and evidence grounding separately. On FinKLineBench, Fin-Thinker improves strict accuracy by 13.1 and 33.2 percentage points over the best-performing direct-answer baseline among those evaluated and its base model with sandbox access, respectively. Training-stage ablations further show that financial process supervision and execution-feedback reinforcement learning yield successive improvements in both answer accuracy and GPT-5.6-judged grounded accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。