GIFT: LLM-Guided State-Reward Interface for Financial Reinforcement Learning
About
Financial portfolio trading is naturally formulated as a reinforcement learning problem, where an agent sequentially rebalances assets under changing market conditions to balance return, risk, and transaction costs. Yet in non-stationary markets, raw OHLCV states and short-horizon return rewards often provide an under-specified learning interface, motivating large language models as a way to inject financial knowledge into state and reward design while constraining open-ended generation. To this end, we propose GIFT, an LLM-guided framework for state-reward interface design in PPO-based financial reinforcement learning. Rather than using the LLM to make trading decisions, GIFT uses Factor-guided State Enhancement to generate state features from financial-factor primitives, Risk-rule-guided Reward Shaping to generate auxiliary rewards from portfolio-risk rules, and Diagnostic-guided Refinement to revise candidate interfaces using PPO rollout diagnostics. After refinement, GIFT fixes the selected state-reward interface before evaluation, with no further LLM queries or interface updates at test time. Comprehensive rolling-window experiments across diverse market regimes and portfolio scenarios demonstrate that GIFT improves learning-signal quality and out-of-sample risk-adjusted portfolio performance over baselines. Code and data are available at: https://github.com/KAG778/GIFT .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Trading | Healthcare (JNJ, LLY, UNH, MRK, PFE) | Return9.35 | 7 | |
| Trading | Technology AAPL MSFT NVDA GOOGL META | Return9.17 | 7 | |
| Trading | Energy (XOM, CVX, COP, SLB, EOG) | Return (%)12.03 | 7 | |
| Trading | Industrials (BA, CAT, UNP, LMT, WM) | Return (%)7.24 | 7 | |
| Trading | Light Mix (TSLA, NFLX, AMZN, MSFT, JNJ) | Return (%)3 | 7 | |
| Trading | Heavy Mix (TSLA, NVDA, XOM, CAT, JNJ) | Return (%)7.26 | 7 | |
| Portfolio Management | S&P 500 Technology sector Window W1 | Return (%)21.61 | 2 | |
| Portfolio Management | S&P 500 Technology sector Window W2 | Return11.15 | 2 | |
| Portfolio Management | S&P 500 Technology sector Window W5 | Return (%)50.45 | 2 | |
| Portfolio Management | S&P 500 Healthcare sector Window W2 | Return16.2 | 2 |