← Latest papers
💬 NLP

Efficient LLM-based Advertising via Model Compression and Parallel Verification

This paper proposes an Efficient Generative Targeting framework that combines adaptive group quantization, layer-adaptive hierarchical sparsification, and prefix-tree parallel verification to significantly accelerate LLM inference for real-time advertising applications while maintaining acceptable generation quality.

Original authors: Wenxin Dong, Chang Gao, Guanghui Yu, Xuewu Jiao, Mingqing Hu, Qiang Fu, Peng Xu, Penghui Wei, Hui Xu, Yue Xing, Shuanglong Li, Lin Liu

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

Original authors: Wenxin Dong, Chang Gao, Guanghui Yu, Xuewu Jiao, Mingqing Hu, Qiang Fu, Peng Xu, Penghui Wei, Hui Xu, Yue Xing, Shuanglong Li, Lin Liu

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 have a brilliant, super-smart assistant (a Large Language Model, or LLM) who is incredibly good at writing ads and picking the perfect products for customers. The problem is, this assistant is like a giant, heavy encyclopedia: it takes a long time to flip through the pages to find an answer, and it requires a massive amount of energy to keep running. In the fast-paced world of online advertising, where you need an answer in a split second, this "heavy encyclopedia" approach is too slow and expensive.

The authors of this paper, from Baidu, built a new system to make this assistant faster and lighter without making it any less smart. They did this using two main tricks: shrinking the assistant and giving it a shortcut map.

Trick 1: Shrinking the Assistant (Model Compression)

Think of the AI model as a massive library of knowledge. Most of the books in this library are rarely used, and some pages are just filled with numbers that don't change much.

  • The "Smart Packing" (Quantization): Imagine you have a suitcase full of heavy, high-definition photos (the original data). Instead of carrying the heavy originals, the team figured out how to compress them into smaller, lighter JPEGs (lower precision numbers) without losing the picture's clarity. They didn't just compress everything the same way; they were "adaptive." They packed the most important, sensitive parts of the library very carefully, but compressed the less important parts more aggressively. This turned the heavy suitcase into a lightweight backpack.
  • The "Empty Shelf" Strategy (Sparsity): Imagine the library has thousands of empty shelves. The team decided to remove the books from the shelves that no one ever visits. They didn't just randomly remove books; they looked at which shelves were critical (the "sensitive" layers) and kept those full, while clearing out the less important ones. This made the library much smaller and faster to navigate.
  • The Custom Tool: To make sure these compressed and emptied shelves could still be read quickly, they built a custom "scanner" (a specialized computer kernel) that could read these lightweight, sparse books much faster than standard tools could.

Trick 2: The Shortcut Map (Prefix Tree Parallel Verification)

Usually, when the AI generates an ad, it writes it one word at a time, like a person typing a sentence slowly. "I... like... this... car..." This is slow.

  • The Tree Map: The team organized all possible ad options into a giant, branching tree structure (like a family tree or a decision tree). The top of the tree is wide (many options), but as you go down, the branches narrow down to the most likely choices.
  • The "Guess and Check" Race: Instead of writing one word at a time, the AI now looks at the whole tree. It makes a "guess" at several words at once (parallel decoding) and then quickly checks if those guesses make sense on the map.
  • The Timing Switch: The smartest part is knowing when to use this shortcut. The system constantly calculates: "Is it faster to write word-by-word, or to guess a whole bunch and check them?" If the guess-and-check method is faster, it switches to that mode instantly. This allows the AI to "jump" to the end of the sentence in a single step rather than walking there step-by-step.

The Results

The team tested this system in two real-world scenarios:

  1. Writing Ad Creatives: Creating catchy text for ads.
  2. Targeted Advertising: Picking the right ad for a specific user.

The Outcome:

  • Speed: The new system was 1.8 times faster in real-world tests. In some specific tests, the speedup was even higher (over 78% faster).
  • Quality: Despite being much lighter and faster, the ads it generated were still just as good as the heavy, slow version. The "quality" (precision) didn't drop significantly.
  • Real-World Use: This isn't just a theory; it has been deployed on Baidu's actual advertising platform, handling real traffic right now.

In Summary

The paper describes a way to take a slow, heavy AI and turn it into a fast, lightweight one by compressing its memory (making the data smaller) and organizing its thinking process (using a tree map to guess multiple outcomes at once). The result is an advertising system that delivers the right ad to the right person almost instantly, without sacrificing the quality of the recommendation.

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 →