Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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 .

Yanyan Wu, Boyi Zhang, Yanlin Liu, Xinyu Fang, Jining Luan, Meiqi Zhang, Jiacheng Liu, Hao Zeng, Dexu Yu, Chang Liu, Hanwen Du, Yongxin Ni, Youhua Li• 2026

Related benchmarks

TaskDatasetResultRank
TradingHealthcare (JNJ, LLY, UNH, MRK, PFE)
Return9.35
7
TradingTechnology AAPL MSFT NVDA GOOGL META
Return9.17
7
TradingEnergy (XOM, CVX, COP, SLB, EOG)
Return (%)12.03
7
TradingIndustrials (BA, CAT, UNP, LMT, WM)
Return (%)7.24
7
TradingLight Mix (TSLA, NFLX, AMZN, MSFT, JNJ)
Return (%)3
7
TradingHeavy Mix (TSLA, NVDA, XOM, CAT, JNJ)
Return (%)7.26
7
Portfolio ManagementS&P 500 Technology sector Window W1
Return (%)21.61
2
Portfolio ManagementS&P 500 Technology sector Window W2
Return11.15
2
Portfolio ManagementS&P 500 Technology sector Window W5
Return (%)50.45
2
Portfolio ManagementS&P 500 Healthcare sector Window W2
Return16.2
2
Showing 10 of 42 rows

Other info

Follow for update