Token-Level Advertising

Hanbing Liu, Bowei Zhang, Changyuan Yu, Yinyu Ye, Qi QiarXiv 2026

TL;DR

Traditional advertising relies on predefined "slots," but generative AI interfaces synthesize content dynamically, making static ad placements obsolete. This paper introduces the Latent Advertiser Mixture Auction (LAMA), a novel mechanism that embeds advertiser influence directly into the token-by-token text generation process. LAMA dynamically balances user experience with monetization while guaranteeing that advertisers are incentivized to bid truthfully at every step of the generation trajectory.

What Problem Does This Paper Address?

For decades, online advertising has relied on the abstraction of the "slot"—predefined spaces like sponsored search results or banner placements. However, as users transition from traditional search engines to generative AI interfaces (like LLM-powered chatbots), content is synthesized dynamically on the fly.

In a generative setting, an advertising opportunity is endogenous—it emerges naturally based on how the text unfolds. Mentioning a product or brand too early might feel jarring, while mentioning it later might feel completely organic depending on the direction of the explanation. Traditional ad auctions separate what space is available from who gets it. Generative AI requires a unified paradigm where the generation process itself shapes and creates the advertising opportunity.

Figure 1: In generation-native advertising, ad opportunities are no longer predefined slots: when they emerge, which advertisers are shown, and how they are presented jointly shape user experience and marketing effectiveness.

Methods

The authors propose the Latent Advertiser Mixture Auction (LAMA) for a single-winner setting (e.g., determining which advertiser gets a hyperlink or brand mention in the text).

The LAMA Mechanism

  1. Token-Level Reports: At each non-terminal prefix during text generation, advertisers submit local reports (child-value vectors) representing their continuation values for the next possible tokens.
  2. Latent Mixture Sampling: The platform maintains an allocation posterior (mixture weights) over the advertisers. It samples a latent advertiser from this posterior and generates the next token using that specific advertiser's induced policy.
  3. Bayesian Update: Once the token is generated, the platform updates its allocation posterior using Bayes' rule. This elegantly links the text trajectory directly to the final ad allocation.
  4. Randomized Settlement: When generation terminates, a final winner is sampled from the posterior. Payments are calculated using a telescoped trajectory-level rule that charges advertisers when a token transition benefits them and subsidizes them when it doesn't.
Figure 2: Overview of the Latent Advertiser Mixture Auction (LAMA). (1) Report: Advertisers report soft values for the current child states, and the platform verifies Bellman consistency against the value stored in its ledger. (2) Next-token generation: The platform samples an advertiser from its current belief, whose optimal policy generates the next token. (3) Update: After the context changes, the platform updates the ledger and its belief over the optimal advertiser via Bayes’ rule. (4) Settlement: Once the response is complete, the platform samples a winning advertiser from the posterior; the winner pays the corresponding charge and receives the hyperlink placement. See Figure 3 for additional impression formats.

Practical Implementation

Because expecting advertisers to compute complex token-tree rollouts in real time is impractical, the platform provides reporting as a learned service. LAMA decomposes the value function into two parts:

  • Local Soft Advantages: Learned from pairwise response comparisons using a Bradley-Terry preference model.
  • Root Values: Anchored separately using terminal rewards.

This is deployed via a single shared pretrained backbone model where advertiser-specific information enters through a conditioning prompt (using trained LoRA heads), keeping online serving lightweight.

Datasets

The authors evaluated LAMA using real-world commercial search query splits from the Webis Generated Native Ads 2024 dataset. They focused on three distinct advertising verticals:

  • Workout (291 queries)
  • Vacation (456 queries)
  • Car (492 queries)

The experiments utilized Qwen3-14B as the base reference language model, augmented with trained LoRA heads to simulate the advertiser-conditioned reporting service.

Key Insights and Ideas

  • Generation as Bayesian Inference: LAMA cleverly reframes token generation as a sequential decision-making process that uncovers which advertiser values the current text trajectory the most.
  • Mid-Generation Subsidies: To maintain incentive compatibility (Markov DSIC) throughout the sequence, the payment rule dynamically subsidizes advertisers if a generated token hurts their prospects, ensuring they don't strategically manipulate future reports.
  • Welfare-Preserving Smoothness: LAMA optimizes a KL-regularized social welfare objective. The parameter $\beta$ acts as a literal dial balancing monetization against text naturalness (user experience).

Key Results

LAMA was compared against several strong incentive-compatible baselines, including heuristic methods that allocate ads strictly before or after generation, and MOSAIC, a response-level aggregation mechanism.

As shown in the empirical evaluation, LAMA achieved the top performance across all primary dimensions:

  • Platform Welfare: Reached 0.5205, outperforming the best post-generation baseline (0.5080).
  • Revenue: Generated 0.8305, a significant leap over standard policy-based auctions (0.7501).
  • User Quality: Maintained a score of 66.5239, proving that token-level ad integration does not degrade the actual user experience or text fluency compared to organic generation.

Limitations and Future Work

  • Single-Winner Constraint: The current formulation of LAMA is restricted to a single winning advertiser per response. Extending this to multi-winner scenarios (e.g., multiple different brand links in a single long-form answer) remains an open theoretical challenge.
  • Computational Overhead: Although the candidate advertiser set is small, LAMA still requires a constant-factor overhead in LLM forward passes proportional to the number of active bidders ($|N| + 1$).
  • Funnel Integration: The mechanism assumes a candidate set of advertisers has already been retrieved. Future work will need to address how to seamlessly blend token-level generation with the initial retrieval and filtering stages of the ad funnel.

Summary updated

BibTeX
@misc{liu2026token,
  author = {Hanbing Liu and Bowei Zhang and Changyuan Yu and Yinyu Ye and Qi Qi},
  title = {{Token-Level Advertising}},
  year = {2026},
  eprint = {2608.27382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.27382},
}
Figure