← Latest papers
💬 NLP

Text-to-Distribution Prediction with Quantile Tokens and Neighbor Context

This paper introduces Quantile Token Regression, a novel approach that inserts dedicated quantile tokens into input sequences and augments them with retrieval-based neighbor context to enable direct input-output pathways and local grounding, thereby significantly outperforming existing baselines in LLM-based distributional regression tasks.

Original authors: Yilun Zhu, Yuan Zhuang, Nikhita Vedula, Dushyanta Dhyani, Shaoyuan Xu, Moyan Li, Mohsen Bayati, Bryan Wang, Shervin Malmasi

Published 2026-04-23
📖 4 min read☕ Coffee break read

Original authors: Yilun Zhu, Yuan Zhuang, Nikhita Vedula, Dushyanta Dhyani, Shaoyuan Xu, Moyan Li, Mohsen Bayati, Bryan Wang, Shervin Malmasi

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 trying to guess the price of a house you've never seen before, just by reading its description.

The Old Way (The "Single Guess" Problem):
Most AI models today act like a nervous real estate agent who gives you just one number. "This house is worth $500,000." But what if the market is crazy? What if it could be $400k or $600k? The old AI doesn't tell you that. It just gives a single point estimate, ignoring the uncertainty.

Even newer AI models that try to guess a range of prices often use a "bottleneck" approach. Imagine the AI reads the house description, compresses all that information into a single, tiny mental note, and then tries to guess 99 different prices (from the cheapest to the most expensive) based only on that one tiny note. It's like trying to paint a masterpiece using only one drop of paint. The connection between the house details and the specific price guesses is weak and indirect.

The New Way (The "Quantile Token" Approach):
This paper introduces a smarter way to teach AI how to predict a full range of possibilities (a distribution) instead of just one number. They use two main tricks:

1. The "Specialized Interns" (Quantile Tokens)

Instead of making the AI guess all 99 prices from one tiny mental note, the authors give the AI 99 specialized interns.

  • Each intern is assigned a specific job: one guesses the 10th percentile (the "cheap" price), one guesses the 50th (the "median" price), and one guesses the 90th (the "expensive" price).
  • The Magic: These interns can all talk to the house description directly. The "cheap price" intern looks at the description and thinks, "Oh, this house is small and in a bad neighborhood, so I'll guess low." The "expensive price" intern looks at the same description but thinks, "But it has a great view and new appliances, so I'll guess high."
  • Why it works: They don't have to squeeze everything into one note. Each intern builds their own specific understanding of the house to make their specific guess. This creates a much clearer, more accurate picture of the whole price range.

2. The "Neighborhood Watch" (Retrieval-Augmented Context)

Humans don't guess prices in a vacuum. If you want to know what a house is worth, you look at similar houses nearby.

  • The authors teach the AI to do the same. Before guessing, the AI searches its database for 8 houses that look very similar to the one you asked about.
  • The Twist: It doesn't just look at the price of those similar houses. It looks at the entire history of their prices. It sees that similar houses in this neighborhood usually sell between $450k and $550k, with a few outliers going up to $600k.
  • Why it works: This gives the AI "local evidence." It grounds its prediction in reality. If the AI sees that similar houses have a wide price range, it knows to predict a wide range for your house too. If similar houses are very stable, it predicts a narrow range.

The Result: Sharper, Smarter Predictions

When they tested this on real-world data (like Airbnb listings and Stack Overflow questions about how long it takes to get an answer), the results were impressive:

  • More Accurate: The AI's guesses were much closer to the truth.
  • Tighter Ranges: Instead of saying "The price is between $100 and $1,000,000" (which is technically true but useless), the AI said, "The price is likely between $480k and $520k."
  • Better for Small Data: This method shined especially when there wasn't a lot of data to learn from. It was like a smart student who could ace a test even with a small textbook because they knew how to use their "interns" and "neighbors" effectively.

The "Loss Function" Lesson (The Scorecard)

The paper also figured out the best way to grade the AI.

  • Some teachers (loss functions) only care if the AI gets the average right, ignoring the extremes.
  • The authors found a better "scorecard" (called Wasserstein loss) that rewards the AI for getting the whole shape of the distribution right. It's like grading a student not just on their final exam score, but on how well they understood the entire course material, including the tricky parts.

In a Nutshell

This paper teaches AI to stop guessing single numbers and start predicting full stories of possibility. It does this by giving the AI specialized experts for every part of the story and letting them consult a neighborhood of similar examples to make sure their guesses are grounded in reality. The result is a model that understands uncertainty better and gives you much more useful, precise predictions.

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 →