Hindsight Preference Optimization for Financial Time Series Advisory

Yanwei Cui, Guanghui Wang, Xing Zhang, Peiyang He, Ziyuan Li, Bing Zhu, Qucy Wei Qiu, Xusheng Wang, Zheng Yu, Anqi Xin

TL;DR

This paper introduces Hindsight Preference Optimization (HPO), a novel method for training AI advisors that provide not just predictions but also reasoning and actionable advice for financial time series. By leveraging observed outcomes after predictions are made, HPO uses an LLM judge to create preference pairs for training, enabling a smaller model to outperform a much larger one in both accuracy and advisory quality without human annotation.

What Problem Does This Paper Address?

Traditional time series forecasting models output numerical predictions, which are insufficient for decision-makers who need more context. They require directional signals, clear reasoning behind those signals, confidence levels, actionable suggestions, and an understanding of associated risks. While large language models (LLMs) and vision-language models (VLMs) show promise in generating such structured advisories, a key challenge is evaluating their quality. The true quality of an advisory is only apparent after the predicted outcome has unfolded, making it difficult to train models effectively when the "ground truth" for advisory quality is only known in hindsight. This paper tackles this challenge by developing a method to use these hindsight outcomes to generate training signals for LLMs.

Methods

The core innovation is Hindsight Preference Optimization (HPO), which combines two key ideas:

  1. Retrospective Training Signal: Inspired by reinforcement learning, HPO uses information that becomes available after a prediction is made (the actual market outcome) to generate supervision.
  2. Preference Alignment: This leverages techniques like LLM-as-a-Judge and Direct Preference Optimization (DPO) to train models based on pairwise comparisons of outputs.

Here's how it works:

  • Candidate Generation: A large "teacher" VLM generates multiple candidate advisories for a given financial chart and historical data.
  • Hindsight-Guided Ranking: An LLM judge, equipped with the actual market outcome (e.g., price movement over the next week), ranks these candidate advisories. This ranking goes beyond simple accuracy, considering factors like the quality of reasoning, scenario alignment, and risk estimation.
  • Preference Pair Creation: The top-ranked advisory is designated as the "preferred" output ($y^+$), and the worst-ranked as the "disliked" output ($y^-$). These pairs are then used to train a smaller "student" model.
  • Two-Stage Training:
    • Stage 1: Supervised Fine-Tuning (SFT): The student model is initially fine-tuned to reproduce the best advisories selected by the hindsight judge.
  • Stage 2: Hindsight DPO: The student model is further refined using DPO, optimizing it to generate advisories that are preferred over less-preferred ones, based on the hindsight judge's evaluations. An anchored regularization term is added to prevent degradation of the SFT performance.

Datasets

The study uses historical S&P 500 equity data from 2013-2017.

  • Training Data: Data from 2013-2016 (1,395 samples) was used for training.
  • Testing Data: Data from 2017 (365 samples) was used for evaluation. Each sample consists of a 20-day candlestick chart and the subsequent 5-day price movement. The dataset is characterized by a bullish skew reflective of the 2017 market. No new benchmarks were introduced; existing financial time series data was utilized.

Key Insights and Ideas

  • Hindsight is Crucial for Advisory Quality: Simple accuracy metrics are insufficient for evaluating complex advisories. The ability to look back at outcomes allows for a richer, more nuanced evaluation of reasoning and risk assessment, which is critical for financial advice.
  • LLM Judges Can Go Beyond Scalar Metrics: LLMs, when provided with hindsight, can assess qualitative aspects of advisories (reasoning, scenario calibration) that traditional metrics like MAE or MSE cannot capture.
  • Smaller Models Can Be Empowered: By using a larger model as a teacher and an LLM judge for hindsight-based preference learning, a significantly smaller student model can achieve superior performance, demonstrating efficient knowledge transfer.
  • Preference Learning Without Human Annotation: The method automates the creation of training data by using the LLM judge and observed outcomes, removing the need for costly and time-consuming human annotation for preference labeling.

Key Results

The HPO framework was applied to train a 4B parameter VLM (student) using a 235B parameter VLM (teacher) and an LLM judge.

  • Prediction Accuracy: The HPO-trained 4B model achieved 57.9% directional accuracy and 27.1% top-1 scenario accuracy, significantly outperforming both the zero-shot 4B model and the 235B teacher model (which achieved 51.9% directional accuracy and 23.7% scenario accuracy).
  • Advisory Quality: In pairwise preference evaluations, the HPO-trained 4B model achieved a 71.4% win rate against the zero-shot 4B model and a 52.6% win rate against Claude Sonnet 3.7, indicating superior advisory quality.
  • Efficiency: The 4B model, trained with HPO, outperformed its much larger 235B teacher on both accuracy and advisory quality metrics.

Limitations and Future Work

The authors acknowledge several limitations:

  • Limited Scope: The evaluation was restricted to S&P 500 equities and visual price/volume patterns. Market outcomes are also influenced by news, earnings, and macroeconomic factors not captured by charts.
  • Market Regime Bias: The evaluation window (2013-2017) was predominantly bullish, and performance in volatile or bearish regimes remains untested.
  • LLM Judge Reliance: Both preference construction and evaluation rely on LLM judges without human expert validation. Real-world adoption would require domain expert assessment.
  • Learning Signal Weakness: The current approach uses only the judge's rankings, which provides a weak learning signal for DPO, potentially leading to slow and unstable convergence.

Promising future directions include:

  • Incorporating judge rationales as natural-language reward signals.
  • Disentangling which specific advisory dimensions (scenario calibration, reasoning quality, risk estimation) drive improvement.
  • Extending the framework to other predictive domains where outcomes are eventually observed.

Summary updated

BibTeX
@inproceedings{cui2026hindsight,
  author = {Yanwei CUI and Guanghui Wang and Xing Zhang and Peiyang He and Ziyuan Li and Bing Zhu and Qucy Wei Qiu and Xusheng WANG and Zheng Yu and Anqi Xin},
  title = {{Hindsight Preference Optimization for Financial Time Series Advisory}},
  booktitle = {TSALM @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=nq64r86v3n},
}
Figure