How Auction Timing and Latency Work When the Ad Slot Is a Streaming Chat Response
Splitting generation from the auction keeps chat ads inside a 300ms budget.

AI app publishers need monetization infrastructure built for conversations, with intent matching, real-time auctions, publisher controls, and strict timeouts. Serving ads in a streaming chat response requires a split pipeline, with the LLM generating the answer while a parallel system retrieves and auctions ads. That separation explains the channel’s constraints, from contextual targeting to the infrastructure advertisers and publishers need.
Why serving an ad inside a streaming chat response is a structurally different problem from search advertising
Search advertising has a predefined, fixed slot, while a streaming chat interface must identify, auction, and fill an opportunity as the answer is being written. The slot is therefore a timed event. Its relevance depends on where the conversation is going, while its availability depends on whether the ad system can finish before the interface commits to rendering the answer. Placement and auction timing cannot be treated as separate problems.
Xu et al.’s Ad Insertion in LLM-Generated Responses shows how hard this can be with the example of a family vacation to New York City. A single response may move through attractions, accommodations, transportation, and budget. Each shift changes which advertiser could be useful. A static keyword cannot capture all those shifts, and semantic relevance alone is not enough. The system must also avoid perceptible delay, preserve privacy, and disclose the commercial placement without confusing it with the assistant’s answer.
The three-way tradeoff that forces a split architecture
The design must balance three competing pressures: relevance, auction economics, and speed. Relevance requires enough context to distinguish a useful offer from a merely related one. Auction economics requires a mechanism that rewards truthful bidding and allocates opportunities efficiently. Speed limits how much work the system can do toward either goal. A design that improves contextual judgment through more model computation may miss the moment when its result can be shown.
The economic tension exists even before inference costs enter the picture. The formal literature described in the brief identifies settings where first-price auctions allocate efficiently but delay ad delivery, while second-price auctions avoid that delay but allocate inefficiently. Advertisers must make their strategic choices at time zero. There is no cost-free choice among these objectives. The architectural response is to separate conversational work from commercial execution, rather than ask one generation process to satisfy every constraint.
How the split pipeline separates LLM generation from auction execution

The split assigns conversation, persona, and reply text to the LLM, while a parallel, rule-based pipeline handles intent classification, candidate retrieval, auction execution, and insertion. The server first receives the user’s message and classifies its commercial intent. It then launches two concurrent calls, which are the LLM stream and the ad request. The ad unit renders when the stream completes. The answer does not wait for an ad fetch.
That ordering gives the commercial system its own controls. Hard floors, block lists, per-user restrictions, freshness requirements, and timeout logic can operate independently of generated prose. The split also creates a disclosure boundary because the sponsored unit is structurally distinct from the answer. OpenAI’s ChatGPT implementation provides the production anchor for this pattern, with a labeled card below the response.
The latency budget and why the ad request must have a hard timeout
In the production context described here, the parallel ad request must resolve in roughly 200–300ms. An ad service that sometimes returns a strong match but regularly exceeds the timeout cannot reliably serve the placement. Blocking the answer on that service would transfer commercial latency directly into the conversation, undermining the reason for running the two paths concurrently.
The auction calculation may not be the step that costs the most. Ranking every advertiser with full LLM logits for every query is prohibitively costly under high-throughput inference. The distinction changes where optimization effort belongs. Faster payment calculation cannot compensate for an unbounded scoring workload, and a theoretically attractive allocation rule does not make that workload disappear. The timeout therefore constrains both how many candidates reach model-based evaluation and how quickly the auction chooses among already scored ads.
How two-stage retrieval makes real-time scoring tractable
LERA: LLM-Enhanced RAG for Ad Auction in Generative Chatbots addresses this bottleneck through two-stage retrieval. A fast embedding-based filter reduces the full advertiser pool to a small candidate set, after which a targeted LLM pass scores those candidates. The model judges a shortlist. This preserves contextual evaluation while containing inference cost, making the approach compatible with existing LLM infrastructure rather than requiring full model scoring across all advertisers.
LERA also addresses weaknesses in embedding-only matching, including commercial misinterpretation and repetitive insertions. Its fine stage includes a “no-insertion” option, so the model can judge that no advertisement belongs in the response. The framework offers a substantial improvement over the embedding-only baseline and extends to multiple slots in a long response and to changing dialogue flows.
A candidate can be eliminated at either the coarse filter or the fine scoring stage, so a critical-value payment must account for both cutoffs. Otherwise, truthful bidding would not be protected across the whole pipeline. The design therefore treats retrieval as part of the auction mechanism, rather than as a neutral preprocessing step whose effects can be ignored when determining payment.
Three competing auction paradigms and what each one trades away
Token-level bidding places the auction closest to generation, allowing advertisers to bid turn by turn to influence individual words. Its attraction is precise contextual placement. Its cost is repeated prompting during generation, which introduces latency structurally incompatible with the split pipeline’s hard timeout. Query/response-level bidding moves in the opposite direction by inserting predefined ads after the full response is generated. That avoids stepping in repeatedly at the token level but gives up precision within the response and still needs a post-generation insertion pass.
Xu et al. propose a different unit to bid on, called a genre, which is a high-level semantic cluster. Advertisers bid on categories that stay the same. This reduces computation and limits exposure of conversational data, while preserving approximate dominant-strategy incentive compatibility and individual rationality guarantees under VCG. The tradeoff is deliberate abstraction from the individual query. Genre-based bidding and two-stage retrieval both offer routes that can operate on existing LLM infrastructure.
Neuron auctions introduce a further boundary in this design space. They are elegant in theory but need control of model weights, so only vertically integrated operators can use them. That requirement separates them from approaches available to publishers using existing models. These paradigms are not a simple ranking from better to worse. Each places the auction at a different point in the system and gives up some combination of granularity, speed, privacy, or deployment flexibility.

What OpenAI's production implementation reveals about which tradeoffs were chosen
OpenAI launched its ChatGPT ad stack on February 9, 2026. Its LLM orchestrator reads the conversation, nominates candidates, coordinates the auction, and enforces latency cutoffs, while the commercial result appears as a labeled sponsored card below the answer. Orchestration preserves the separation between answer generation and commercial execution, with that placement making the ad label clear while keeping sponsored language separate from the answer itself.
The stack’s short context hint illustrates how constrained the matching input can be. A compact description must convey useful semantic information. The absence of keyword bidding follows from the targeting unit, which is the conversation thread. These choices reveal an emphasis on contextual nomination within bounded execution time. They do not imply that every theoretically possible insertion method is available to buyers.
OpenAI’s Sponsored Agents format extends the commercial interaction beyond the card. After a click, the user chats with a brand-sponsored agent whose knowledge base the brand controls. The conversation remains inside the platform’s commercial environment. This introduces a separate supply-side question, because no ad request leaves the platform for a publisher to floor, block, or attach deal terms to.
What the conversation thread reveals about intent that a keyword never could
A conversation exposes constraints that a keyword leaves unstated. Earlier turns may show what the user prefers, their budget, what they have already compared, and why they ruled out other options. The final question inherits that context. For an advertiser, this can make commercial intent legible during comparison or shortlist building, before the user types a conventional buying query. The opportunity is not simply a more detailed version of keyword matching, but access to a different stage of the decision.
That richness also makes eligibility harder to inspect. Two users can ask the same final question and receive different eligible ads because their earlier turns differ. A keyword-level audit cannot fully explain that difference. Sharing the raw thread with advertisers would create a privacy problem. Genre-based bidding therefore separates commercial bids from specific conversations.
For advertisers, the practical consequence is that useful product information must be legible to a semantic matching system. Product facts, supported use cases, constraints, and trust signals help tell an offer that fits apart from one that just uses the same words as the discussion. Bid price cannot supply missing product meaning. Nor can keyword density explain whether an offer satisfies the requirements the user has already stated.
What monetization infrastructure do AI app publishers need to run ads?
Publishers operating chatbots or LLM interfaces need supply-side infrastructure for conversational inventory. These interactions create new opportunities to monetize. An LLM supply-side platform must find moments in the conversation that are eligible for ads, run real-time auctions, and connect those opportunities to demand before the parallel pipeline’s deadline. Its defining requirements are contextual matching, timeout compliance, disclosure support, and publisher control over floors, blocks, and deals.
The relevant comparison is between infrastructure categories. A closed platform stack can interpret conversations within its own surface, but it may leave an outside publisher without an auction request to control. LLM supply-side infrastructure built for this purpose runs the auction and connects conversational inventory to demand. Cross-surface demand-side infrastructure has a different job: it connects buyers to multiple AI environments through direct supply relationships with publishers.
Sponsored Agents shows where the publisher’s control can disappear. Because the post-click interaction routes directly to a brand-controlled agent inside the platform, the publisher’s floor, block, and deal mechanisms have no request on which to operate. A cross-surface DSP with direct publisher relationships is structurally positioned to preserve those controls instead of routing all demand through one closed stack. Cross-surface buying is therefore a publisher protection as well as a demand-side convenience.
What the architecture means for how advertisers should think about buying in this channel
Latency compliance is a buying criterion because a late result cannot win a usable placement, regardless of its relevance or bid. A clear context hint makes the offer understandable within the available matching input. Campaign design should therefore express product facts, constraint handling, use cases, and entities precisely.
Platform selection then depends on two distinct capabilities. A generalist DSP has reach but lacks conversational context, while a single-surface AI ad network can understand its own conversations but has no cross-surface reach. A context-aware, cross-surface DSP must do both and keep the supply relationships that let publishers retain their controls. Reach alone is not the full buying proposition. The useful test is whether the platform can understand the thread, execute within its timing window, and transact through infrastructure designed for that conversational opportunity.
Sources
- Ad Insertion in LLM-Generated Responses
- [2601.19435] Ad Insertion in LLM-Generated Responses
- LERA: LLM-Enhanced RAG for Ad Auction in Generative Chatbots
- LLM Advertisement based on Neuron Auctions Peiran Yun∗ Tsinghua University
- Online Advertisements with LLMs: Opportunities and Challenges SOHEIL FEIZI,
- Ads in Conversations
- Integrate Ads Into LLM Chat — 2026


