Flow-Corrected Thompson Sampling for Non-Stationary Contextual Bandits
This paper introduces Flow-Corrected Thompson Sampling (fcTS), a Bayesian algorithm for non-stationary linear contextual bandits that improves sample efficiency by explicitly modeling and transporting past rewards to the present with confidence-weighted corrections, thereby outperforming traditional forgetting-based methods in environments with structured temporal drift.
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 a chef trying to perfect a recipe for a soup that changes its flavor slightly every day. Maybe the tomatoes are a bit sweeter today, or the broth is saltier tomorrow.
In the world of computer science, this is called a Contextual Bandit problem. The computer (the chef) has to choose an action (a soup recipe) based on the current situation (the ingredients available) to get the best reward (the tastiest soup).
The big problem is Non-Stationarity: The rules of the game keep changing. In the old days, computers would just throw away their old notes. They'd say, "That recipe worked yesterday, but today is different, so I'll forget everything I learned and start fresh." This is like a chef throwing out their entire cookbook every time the weather changes. It's safe, but it's incredibly inefficient because they have to relearn everything from scratch.
This paper introduces a new method called Flow-Corrected Thompson Sampling (FC-TS). Instead of throwing away old notes, FC-TS says: "Let's keep the old notes, but translate them to make sense for today."
Here is how it works, using three simple analogies:
1. The "Time Traveling Translator" (Linear Drift)
Imagine the soup gets slightly saltier every single day.
- The Old Way: If you tasted a soup from 10 days ago, you'd say, "That's too salty for today!" and ignore the lesson.
- The FC-TS Way: You look at the old note: "10 days ago, this recipe needed 1 spoon of salt." You know the soup has been getting saltier by 0.1 spoons a day. So, you do the math: "Okay, if I add 1 spoon of salt to that old recipe, it would have been perfect today."
- The Result: You don't throw away the old data; you "transport" it forward in time. You use the old lesson, but you adjust it so it fits the present moment.
2. The "Seasonal Calendar" (Periodic Variation)
Imagine the soup tastes different depending on the season. In winter, it needs more pepper; in summer, less.
- The Old Way: A computer might only look at the last few days of data. If it's currently summer, it forgets what it learned about winter, even though winter is coming back next year.
- The FC-TS Way: It realizes, "Hey, today is the same day of the year as it was last year!" It looks at the notes from last year's summer and says, "This data is still valid because the season is the same." It reuses old data that matches the current "phase" of the cycle.
3. The "Switching Rooms" (Recurring Regimes)
Imagine you are cooking in a kitchen that has three different rooms (Regime A, B, and C). Sometimes you are in Room A, then you switch to Room B, and later you go back to Room A.
- The Old Way: When you leave Room A, you wipe the chalkboard clean. When you come back to Room A later, you have to start drawing the recipe from zero.
- The FC-TS Way: It keeps a separate chalkboard for each room. When you leave Room A, it saves the board. When you walk back into Room A, it pulls out the saved board and says, "Ah, I remember how to cook in here!" It doesn't forget; it just pauses and switches files.
The Secret Sauce: Confidence Weights
The paper also mentions a safety feature. What if the computer guesses the "translation" wrong? What if it thinks the soup gets saltier, but actually, it gets sweeter?
- FC-TS assigns a Confidence Weight to every old note. If the computer is very sure about the translation, it trusts the old note completely. If it's unsure, it treats the old note as "fuzzy" or "noisy" and listens to it less. This prevents the computer from getting confused by bad guesses.
Why is this better?
The authors tested this against the "throw away everything" methods (like sliding windows or restarting).
- The Result: In almost every test, FC-TS made fewer mistakes (lower "regret").
- The Big Win: It shines brightest when the changes are structured. If the world changes in a predictable pattern (like a steady drift, a repeating cycle, or switching between known states), FC-TS is a master at reusing its past. It learns faster because it doesn't waste time relearning things it already knows, provided it can "translate" that knowledge to the present.
In short: Instead of treating history as trash to be discarded, FC-TS treats history as a library. It doesn't just read the books; it translates them so they make sense for today, allowing the computer to learn much faster and smarter.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.