In-Context Learning for Data-Driven Censored Inventory Control
This paper proposes In-Context Generative Posterior Sampling (ICGPS), a framework that leverages meta-trained generative models to perform oracle actions on learned latent demand completions, thereby achieving sublinear Bayesian regret and robustness to prior mismatch in data-driven censored inventory control problems like the repeated newsvendor.
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 running a lemonade stand. Every morning, you have to decide how many cups of lemonade to make before you know how many people will actually show up.
If you make too few, you run out of lemonade (a "stockout"). If you make too many, you waste money on leftover lemonade. This is the classic "Newsvendor Problem."
Now, imagine a twist: You can never see the true demand.
- If you make 10 cups and 15 people show up, you sell 10 and run out. You know demand was at least 10, but you don't know if it was 11, 20, or 100. The data is "censored" (cut off).
- If you make 20 cups and only 5 people show up, you see exactly 5. The data is clear.
The challenge is: How do you learn to make the perfect amount of lemonade when your most valuable learning moments (running out of stock) hide the truth from you?
The Old Ways vs. The New Way
The paper explains that previous methods tried to solve this in two ways, both with flaws:
- The "Gut Feeling" Method (Parametric Thompson Sampling): You guess a specific shape for the demand curve (e.g., "It's always a bell curve"). If your guess is wrong, your whole strategy fails.
- The "Backfill" Method (Offline Imputation): You try to guess the missing numbers after the fact using old data. But this often fails when you try to use it in real-time, live situations.
The authors propose a new approach called In-Context Generative Posterior Sampling (ICGPS).
The Creative Analogy: The "Dreaming" Chef
Think of the new method as a Chef who learns by dreaming.
Instead of trying to guess a mathematical formula for demand, the Chef has a powerful Dream Generator (a modern AI model).
- The Training Phase (Offline): The Chef watches thousands of videos of other lemonade stands. Some days they ran out; some days they had leftovers. The Chef learns to fill in the blanks. If a video shows a stand selling 10 cups and then running out, the Chef's Dream Generator learns to imagine plausible scenarios: "Maybe 12 people came? Maybe 15? Maybe 50?" It learns to fill in the missing demand numbers in a way that makes sense with the history.
- The Dreaming Phase (Online): Every morning, before making lemonade, the Chef doesn't just guess. They dream up a complete day.
- They look at their history (what happened yesterday, the day before).
- They ask the Dream Generator: "Given what happened before, what could the full day have looked like?"
- The Generator creates a complete, fake day where the demand is fully revealed (no censoring). It fills in the missing numbers with plausible guesses.
- The Decision: The Chef looks at this dreamed-up complete day and asks, "If this were real, how much lemonade would I have made to be perfect?" They take that action.
- The Reality Check: They make the lemonade, sell it, and see the actual result (which might be censored again). They add this new real data to their history and repeat the process.
The magic is that the Chef doesn't need to retrain the Dream Generator every day. They just use the context of the current day's history to guide the dream. This is called "In-Context Learning."
The Secret Sauce: ChronosFlow
To make this "Dream Generator" fast and accurate, the authors built a specific architecture called ChronosFlow.
- The Backbone (Chronos): Think of this as a super-smart librarian who has read every time-series book ever written. It understands patterns in time (like "lemonade sales go up on hot days").
- The Head (Flow): This is the part that actually fills in the missing numbers. It's designed to respect the rules of the game. If the history says "We sold out at 10 cups," the Dream Generator is forced to imagine a demand higher than 10. It can't imagine a demand of 5 if we know we ran out.
What the Paper Found
The authors tested this "Dreaming Chef" against the old methods:
- It matches the experts: When the demand follows a simple, predictable pattern, the Dreaming Chef performs just as well as the best theoretical experts (Thompson Sampling).
- It's robust: If the real world changes (e.g., the demand pattern shifts from a bell curve to something weird), the Dreaming Chef adapts quickly. The old "Gut Feeling" methods often crash because their formulas were wrong.
- It handles heavy censorship: When the lemonade stand runs out of stock a lot (hiding the true demand), the Dreaming Chef shines. It uses its training to guess the missing numbers better than methods that try to guess without a "dream" generator.
- Real-world success: They tested this on real sales data from a "SuperStore." Even with messy, real-world data where stockouts were frequent, the Dreaming Chef (specifically the "Meta" version, which learned from other stores first) made better decisions than the competition.
The Bottom Line
The paper claims that by treating missing data as a "dream" that can be generated by an AI, rather than a math problem to be solved with a rigid formula, we can make better inventory decisions. The system learns from past experiences, fills in the gaps of the present, and makes a decision based on a "what-if" scenario that respects the rules of the game.
Key Takeaway: You don't need to know the exact future to make a good decision; you just need to be able to imagine a few plausible futures that fit the clues you have, and act as if the best one is real.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.