← Latest papers
🤖 machine learning

State Representation Matters in Deep Reinforcement Learning: Application to Energy Trading

This paper demonstrates that in deep reinforcement learning for energy trading, robust policy performance and transferability across different market zones critically depend on combining absolute price scales, relative historical context, and short-horizon forecast features within the state representation, rather than relying on any single feature family.

Original authors: Jesper Klicks, Sander Vržina, Vincent François-Lavet

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

Original authors: Jesper Klicks, Sander Vržina, Vincent François-Lavet

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 managing a giant water battery (a pumped-storage dam). Your job is simple: pump water up when electricity is cheap and release it to generate power when electricity is expensive. The goal is to make as much money as possible.

To do this, you hire a super-smart AI robot (a Deep Reinforcement Learning agent) to make the decisions for you. But here's the catch: What you tell the robot matters more than how smart the robot is.

This paper is like a cooking competition where the chef (the robot) and the kitchen (the trading environment) stay exactly the same. The only thing the researchers change is the list of ingredients (the data) they give the chef to decide when to cook.

Here is what they found, broken down into everyday concepts:

1. The Three Types of "Ingredients" (State Representations)

The researchers tested three different ways to describe the electricity market to the robot:

  • The "Absolute" Menu (The Literal Price):

    • What it is: Telling the robot, "The price is exactly €50 right now, and it's Tuesday."
    • The Problem: The robot memorized that €50 is "expensive" because that's what it saw during training. But when the market changed (e.g., prices dropped to €10 or spiked to €200), the robot got confused. It was like a student who memorized the answer key for a specific test but failed when the questions changed slightly.
    • Result: It looked great in practice tests but failed miserably in the real world.
  • The "Relative" Menu (The Context):

    • What it is: Telling the robot, "The price is lower than it was 24 hours ago, but higher than it was last week." It doesn't care about the exact number, just the trend.
    • The Problem: While this helps the robot adapt to new price levels, it hides the size of the opportunity. A tiny profit and a massive profit might look the same if you only look at the percentage change.
    • Result: It was too vague to make big money.
  • The "Forecast" Menu (The Crystal Ball):

    • What it is: Giving the robot a prediction of what prices will do in the next 24 hours.
    • The Problem: Even with a crystal ball, the robot struggled if it didn't understand the current situation or the scale of the market.
    • Result: Better than the first two alone, but still not the winner.

2. The Winning Strategy: The "Full Buffet"

The researchers discovered that the robot only became a champion when you gave it all three types of ingredients at once.

  • The Mix: "The price is €50 (Absolute), it's cheaper than yesterday (Relative), and we think it will go up tomorrow (Forecast)."
  • The Analogy: Imagine driving a car.
    • Absolute is looking at the speedometer (50 mph).
    • Relative is looking at the car ahead of you (they are slowing down).
    • Forecast is looking at the GPS traffic report (accident ahead).
    • If you only look at the speedometer, you might crash. If you only look at the GPS, you might not know how fast you're going. You need all three to drive safely and efficiently.

3. The Results: From "Failing" to "Winning"

The researchers tested these robots in two ways:

  1. Same Market, Later Time: Testing on data from 2012–2025 after training on 2007–2011.
  2. Different Markets: Testing the same robot on 39 other European countries it had never seen before.

The Outcome:

  • The "Absolute" Robot: Looked like a genius during training but scored only 28% of the possible profit in the real world. It was like a student who studied for the wrong exam.
  • The "Relative" and "Forecast" Robots: Scored even lower on their own.
  • The "Full Buffet" Robot: When combined, the robot captured 55% of the possible profit. It was robust enough to handle wild market swings, negative prices, and completely different countries.

4. The Big Takeaway

The paper concludes that in the world of AI trading, how you describe the problem to the AI is just as important as the AI itself.

You can't just throw raw numbers at a robot and expect it to figure out the market. You have to teach it:

  1. The Scale: How big are the numbers?
  2. The Context: Is this price high or low compared to recent history?
  3. The Future: What is likely to happen next?

If you leave out any of these, the robot will likely fail when the market changes. But if you give it the full picture, it can learn a strategy that works not just in one specific time or place, but across different markets and times.

In short: Don't just give your AI the price tag; give it the story behind the price, the trend, and the prediction. That's the secret to making it a reliable trader.

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 →