Manuscript Offprint

arXiv:2609.31045

KuaFu: Compressing Long User Behavior into Understanding at Billion Scale

Jiahao Hui, Lin Zhu, Yishen Hu, Jingdong Shu, Zetai Jiang, Xining Ran, Ben Tan, Yeshou Cai, Gong Chen, Haijie Gu, Jie Jiang

Jiahao Hui*, Lin Zhu*✉, Yishen Hu, Jingdong Shu, Zetai Jiang, Xining Ran, Ben Tan, Yeshou Cai, Gong Chen, Haijie Gu, Jie Jiang

Tencent Inc., Shenzhen, China

{jiahahui, techzhu, eastonhu, breezeshu, zetaijiang, xiningran, bentan, showcai, natchen, jerrickgu, zeus}@tencent.com

Conversational agents, generative recommenders, and personalized advertising systems all rest on the same capability: understanding each user from raw behavior logs. The prevailing industrial practice is task-specific: for each profiling task, a task-relevant subsequence is first extracted from the full behavior history, and a dedicated understanding model is then trained on it. In production, however, this pragmatic route runs into two bottlenecks. First, even after filtering, a single-task sequence remains extremely long: content-interest summarization reads several hundred behavior items per user on average and over a thousand at the tail, which already amounts to tens of thousands of tokens once serialized as prompt text. Second, profiles must be refreshed routinely. We recompute profiles for a billion users every week, requiring roughly 100K QPM in aggregate; under a fixed GPU budget, this sets a hard lower bound on the per-GPU throughput that must be sustained. Compression therefore becomes mandatory. Yet truncation or coarse-grained compression can silently distort the resulting profile and introduce four types of hallucination—fabrication, omission, date misattribution, and broken logic—which, absent any way to evaluate the compressed representation itself, surface only as diffuse degradation in downstream business metrics. We present KuaFu, a unified behavior-compression layer whose minimal unit is a single behavior item. A two-axis projector compresses each item into 2–4 tokens of width 128–256—about 10× compression along the token axis and 20× along the width axis, cutting the per-item cache from 10 KB to 0.5 KB—combined with fidelity-oriented four-stage training and a layered intermediate evaluation protocol. Across four production profiling tasks, the compressed model matches or exceeds the uncompressed single-task production models on all five headline metrics, increases per-GPU throughput by 37%–350%, and saves 190 GPUs. On public benchmarks, KuaFu is almost uniformly better than existing compressors at the same compression ratio (up to +17.7 EM on out-of-domain MRQA); on RecBench, a 4B model surpasses its 8B counterpart by 1.90 points. KuaFu has been fully deployed on the Tencent advertising and recommendation platform for ten months, with a 1.37% lift in overall GMV.

Keywords: user modeling, context compression, large language models, generative recommendation, industrial deployment

  • Equal contribution. ✉ Corresponding author.

1 Introduction

References (20)