← Latest papers
🤖 AI

Kunlun: Establishing Scaling Laws for Massive-Scale Recommendation Systems through Unified Architecture Design

The paper introduces Kunlun, a unified architecture for massive-scale recommendation systems that establishes predictable scaling laws by addressing poor scaling efficiency through low-level optimizations like Generalized Dot-Product Attention and Hierarchical Seed Pooling, alongside high-level innovations such as Computation Skip, thereby doubling scaling efficiency and achieving significant production impact in Meta Ads.

Original authors: Bojian Hou, Xiaolong Liu, Xiaoyi Liu, Jiaqi Xu, Yasmine Badr, Mengyue Hang, Sudhanshu Chanpuriya, Junqing Zhou, Yuhang Yang, Han Xu, Qiuling Suo, Laming Chen, Yuxi Hu, Jiasheng Zhang, Huaqing Xiong, Y
Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Bojian Hou, Xiaolong Liu, Xiaoyi Liu, Jiaqi Xu, Yasmine Badr, Mengyue Hang, Sudhanshu Chanpuriya, Junqing Zhou, Yuhang Yang, Han Xu, Qiuling Suo, Laming Chen, Yuxi Hu, Jiasheng Zhang, Huaqing Xiong, Yuzhen Huang, Chao Chen, Yue Dong, Yi Yang, Shuo Chang, Xiaorui Gan, Wenlin Chen, Santanu Kolay, Darren Liu, Jade Nie, Chunzhi Yang, Ellie Wen, Jiyan Yang, Huayu Li

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 running a massive, high-speed digital marketplace (like the one Meta uses for its ads). Every second, millions of people are scrolling, and the system has to guess which ad each person will click on. To make these guesses, the system uses a "brain" (a machine learning model) that looks at two types of clues:

  1. The Story (Sequence): What the user did recently (e.g., "I clicked on a shoe, then a hat, then a backpack").
  2. The Snapshot (Context): Who the user is right now (e.g., "It's raining," "They are in New York," "They are 25 years old").

For a long time, building a "brain" that could handle both the story and the snapshot efficiently was like trying to drive a race car with square wheels. It worked, but it was incredibly slow and wasted a lot of fuel (computing power). The researchers call this problem "poor scaling efficiency." Basically, when they tried to make the brain bigger to get smarter, it didn't get smarter fast enough to justify the extra cost.

Enter Kunlun. Named after a mountain range that unifies diverse peaks, Kunlun is a new architecture designed to fix these square wheels. The paper claims it solves the problem by optimizing the system at two levels: the "nuts and bolts" (low-level) and the "traffic management" (high-level).

Here is how Kunlun works, using everyday analogies:

1. The Low-Level Fixes: Fixing the Engine

The old systems had parts that were inefficient, causing the computer's "engine" (the GPU) to sit idle while waiting for data. Kunlun replaces these with high-performance parts:

  • GDPA (The Personalized Translator):
    • The Problem: The old system tried to translate the "Story" based on the "Snapshot" using a clumsy, step-by-step process that wasted time.
    • The Fix: Kunlun uses GDPA (Generalized Dot-Product Attention). Think of this as a translator who doesn't just translate word-for-word but instantly understands the context of the whole sentence. It fuses steps together so the computer doesn't have to stop and start, making the engine run much smoother.
  • HSP (The Summarizer):
    • The Problem: Users have long histories (thousands of clicks). The old system tried to read every single click individually, which was overwhelming.
    • The Fix: HSP (Hierarchical Seed Pooling) is like a smart editor. Instead of reading a 500-page biography, it reads the book, writes a 10-page summary, and then a 1-page abstract. It condenses the long history into a compact, powerful summary that the system can actually use without getting bogged down.
  • Sliding Window Attention (The Local Focus):
    • The Problem: The old system tried to compare the very first thing a user ever did with what they are doing right now. But usually, what you did last week matters way more than what you did last year.
    • The Fix: Sliding Window Attention tells the system, "Don't look at the whole history; just look at the last few pages." It focuses on recent interactions, which saves a massive amount of computing power while keeping the predictions accurate.

2. The High-Level Fixes: Smart Traffic Control

Even with a great engine, you can waste fuel if you drive the wrong way or stop at every red light. Kunlun changes how resources are distributed:

  • CompSkip (The Express Lane):
    • The Problem: The old system forced the brain to do the exact same heavy lifting at every single step, even when it didn't need to.
    • The Fix: CompSkip is like a smart traffic light system. It realizes that some steps don't need a full "self-check" (Self-Attention) and some don't need a full "summary" (HSP). It skips the unnecessary steps on alternating layers. If the car is going straight, it doesn't need to check the rearview mirror every second. This saves huge amounts of energy.
  • Event-Level Personalization (The VIP Treatment):
    • The Problem: The old system treated a "click" (a strong signal) the same as an "impression" (just seeing an ad). It wasted resources on low-value events.
    • The Fix: Kunlun gives VIP treatment to important events. If a user is about to buy something (a high-value event), the system allocates more computing power and deeper analysis. If it's just a casual browse, it uses a lighter, faster approach. It's like a restaurant giving a full tasting menu to a VIP guest and a quick coffee to someone just passing by.

The Result: The "Scaling Law"

The paper claims that by combining these fixes, Kunlun achieves something the industry struggled with: Predictable Scaling Laws.

In the past, doubling the computing power didn't always double the intelligence. With Kunlun, the relationship is predictable and efficient.

  • Efficiency Boost: On the latest super-computers (NVIDIA B200 GPUs), Kunlun uses the hardware twice as efficiently as previous methods (jumping from 17% utilization to 37%).
  • Real-World Impact: This isn't just a lab experiment. Meta has deployed Kunlun in its major advertising models. The result? A 1.2% improvement in top business metrics. In the world of ads, where billions of decisions are made daily, that small percentage is a massive win.

In summary: Kunlun is a smarter, leaner, and more organized way to build recommendation systems. It stops wasting fuel on square wheels, skips unnecessary stops, and gives VIP treatment to the most important clues, allowing the system to get significantly smarter as it gets bigger.

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 →