← Latest papers
🤖 AI

GIFT: LLM-Guided State-Reward Interface for Financial Reinforcement Learning

The paper proposes GIFT, an LLM-guided framework that enhances PPO-based financial reinforcement learning by using large language models to design optimized state features and reward shaping rules based on financial knowledge and risk principles, thereby improving out-of-sample risk-adjusted portfolio performance without requiring LLM intervention during testing.

Original authors: 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

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: 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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to manage a stock portfolio. In the world of Reinforcement Learning (RL), the robot learns by trial and error: it makes a move, gets a result, and adjusts its strategy.

The problem is that in the chaotic world of finance, the "instructions" you give the robot are often too vague or confusing.

  • The State (The View): Usually, the robot just sees raw price charts (Open, High, Low, Close, Volume). It's like showing a chess player only the positions of the pieces but not telling them the rules of the game or the strategy behind the moves. The robot has to figure out complex concepts like "momentum" or "risk" all by itself while trying to win.
  • The Reward (The Score): Usually, the robot gets a score based on how much money it made today. But making money today might mean taking huge risks that will bankrupt the portfolio tomorrow. It's like a student getting an "A" for cheating on a test; the immediate reward is high, but the long-term lesson is terrible.

Enter GIFT.

The authors of this paper propose a new system called GIFT (Guided Interface Design for Financial Trading). Think of GIFT not as the robot trader itself, but as a highly knowledgeable financial coach who uses a super-smart AI (a Large Language Model, or LLM) to rewrite the robot's instruction manual.

Here is how GIFT works, using simple analogies:

1. The Coach Doesn't Play the Game

The most important rule of GIFT is that the AI never makes the actual trades. It doesn't say, "Buy Apple, sell Tesla." Instead, it acts as a designer of the learning environment. It asks: "How should we show the data to the robot? What kind of score should we give it so it learns to be safe and smart?"

2. Three Tools the Coach Uses

GIFT uses three specific tools to upgrade the robot's learning experience:

  • FSE (Factor-guided State Enhancement): The "Highlight Reel"
    Instead of just showing the robot raw, messy price data, the AI coach creates a "highlight reel." It takes the raw numbers and adds special "financial lenses" (like momentum, volatility, or liquidity).

    • Analogy: Imagine teaching a driver. Instead of just showing them the road, you give them a dashboard that highlights "slippery spots," "upcoming curves," and "traffic density." The robot can now "see" the market structure much better.
  • RRS (Risk-rule-guided Reward Shaping): The "Fair Scoring System"
    The AI coach rewrites the scoring system. Instead of just rewarding "money made today," it adds penalties for bad behavior (like taking too much risk or switching stocks too often) and bonuses for good habits (like keeping a diverse portfolio).

    • Analogy: In a video game, if you only get points for killing enemies, you might ignore the health bar and die. The coach changes the rules so you get points for surviving and playing smart, not just for short-term kills.
  • DGR (Diagnostic-guided Refinement): The "Practice Session Review"
    The coach doesn't just guess the best rules. It runs a practice session (a simulation) with the robot. Then, it looks at the robot's performance. Did the robot get confused? Did it take too many risks? Based on this "diagnostic report," the coach tweaks the instruction manual and tries again.

    • Analogy: It's like a sports coach watching game tape, seeing that the player keeps missing left-handed shots, and then adjusting the training drills specifically to fix that weakness before the real game starts.

3. The "Freeze" Rule

Once the coach has designed the perfect instruction manual and scoring system through these practice sessions, it freezes them.

  • When the robot goes into the "real world" (the actual market test), the coach steps away. No more AI queries, no more rule changes. The robot plays the game using the fixed, optimized rules the coach designed. This ensures the robot isn't cheating by using future information to change its rules mid-game.

What Did They Find?

The researchers tested this system across different market conditions (bull markets, bear markets, and chaotic times) using real stock data.

  • The Result: Robots trained with the GIFT-designed instructions performed significantly better than robots with the standard, raw instructions.
  • The Key Win: They didn't just make more money; they made money more safely. They lost less money during bad market crashes (lower "drawdown") and had a better balance of risk and reward.
  • Why it worked: The "Free-form" AI (an AI that just guesses rules without financial guidance) failed. But the "Guided" AI (GIFT), which was forced to stick to real financial principles, succeeded.

The Bottom Line

GIFT proves that you don't need an AI to be the trader. Instead, you can use an AI as a master architect to build a better learning environment for a traditional trading robot. By giving the robot better "eyes" (State) and a smarter "scorecard" (Reward), the robot learns to navigate the financial markets much more effectively.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →