← Latest papers
🤖 AI

LERA: LLM-Enhanced RAG for Ad Auction in Generative Chatbots

This paper proposes LERA, a two-stage retrieve-then-generate auction framework for LLM-based chatbots that enhances ad selection accuracy and diversity by combining embedding-based coarse filtering with LLM-derived organic relevance scores within a truthful payment mechanism.

Original authors: Haoran Sun, Xinrui Song, Xinyu Zhang, Zhaohua Chen, Xu Chu, Zhilin Zhang, Chuan Yu, Jian Xu, Bo Zheng, Xiaotie Deng

Published 2026-05-19
📖 4 min read☕ Coffee break read

Original authors: Haoran Sun, Xinrui Song, Xinyu Zhang, Zhaohua Chen, Xu Chu, Zhilin Zhang, Chuan Yu, Jian Xu, Bo Zheng, Xiaotie Deng

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 chatting with a very smart, helpful librarian (an AI chatbot). You ask for book recommendations, and the librarian wants to make money by suggesting specific publishers or bookstores (advertisers).

The big problem is: How do you pick the right advertiser without annoying the user or slowing down the conversation?

If the librarian just picks the highest bidder, they might recommend a sci-fi bookstore when you asked for romance novels. That’s bad for you and bad for the business. If the librarian tries to think too hard about every single bookstore in the world before answering, the conversation will take forever.

This paper introduces LERA, a clever two-step system to solve this "speed vs. quality" dilemma. Here is how it works, using a simple analogy:

The Problem: The "Too Many Choices" Trap

Previously, there were two main ways to handle ads in chatbots:

  1. The "Quick Glance" Method (Embedding-Only): The system looks at your question and quickly scans a list of advertisers based on keyword similarity. It’s fast, but it’s dumb. It might match the word "apple" to an electronics store when you meant fruit.
  2. The "Deep Thinker" Method (LLM-Only): The AI reads your question and thinks deeply about every single advertiser in the database. It’s accurate, but it’s incredibly slow and expensive. It’s like asking a genius to read 10,000 resumes before hiring one person.

The Solution: LERA’s Two-Stage "Shortlist" Strategy

LERA combines the best of both worlds. Think of it like a talent show audition process.

Stage 1: The Quick Filter (The "Gatekeeper")
When you ask a question, LERA doesn’t look at all 10,000 advertisers. Instead, it uses a fast, simple tool to quickly scan the crowd and pick out just 5 or 10 candidates that might be relevant.

  • Analogy: Imagine a casting director quickly scanning a line of 1,000 actors and picking out the 10 who look like they fit the role. This is fast and cheap.

Stage 2: The Expert Review (The "Judge")
Now, LERA takes those 10 shortlisted candidates and shows them to the smart AI (the LLM). The AI doesn’t have to read 1,000 profiles; it only has to compare these 10. It uses its deep understanding of context to decide: "Which of these 10 is the best fit? Or should we not show an ad at all?"

  • Analogy: The 10 actors get a proper audition with the director. The director uses their expertise to pick the winner. This is high-quality but only takes a little time because the group is small.

The Payment Rule: The "Critical Value"

In advertising auctions, the winner doesn’t always pay their full bid. They pay the minimum amount needed to win. LERA has a special rule for this two-stage process:

  • To win, an advertiser must be strong enough to get past the Gatekeeper (Stage 1) AND strong enough to beat the other finalists in the Expert Review (Stage 2).
  • The winner pays the higher of the two "thresholds" they had to cross. This ensures advertisers bid truthfully because they know exactly what it costs to get in.

Why Is This Better?

The paper tested LERA against the old methods and found:

  1. Better Accuracy: LERA picked the right ads much more often, especially when user questions were tricky (e.g., "I don't want X, I want Y").
  2. Better Diversity: In long conversations, LERA was better at showing different types of ads rather than repeating the same one.
  3. Controlled Speed: While it’s slightly slower than the "Quick Glance" method, it is much faster than the "Deep Thinker" method. It strikes a balance where the conversation doesn’t feel laggy, but the ads are actually relevant.

In Summary

LERA is like a smart bouncer at a club. First, the bouncer quickly checks IDs to let in a small group of likely candidates (Stage 1). Then, the club manager personally interviews that small group to pick the best guest (Stage 2). This ensures the right people get in without keeping everyone outside waiting for hours.

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 →