Towards a Densing Law for User Representation Learning at Billion-Scale Capacity

Bin Dou, Junru Zhang, Zhaoyi Yuan, Wuliang Huang, Letian Gong, Baokun Wang, Huan Li, Yu Cheng, Weiqiang WangarXiv 2026

TL;DR

In large-scale user representation learning, brute-force scaling of raw behavioral data quickly hits a performance ceiling due to massive information redundancy. This paper introduces the User Behavioral Densing Law, a quantitative framework that dictates how to scale discrete tokenization capacity rather than raw data volume. By applying their novel Adaptive-Length-Gated Network (ALGN), the authors demonstrate that compressing user histories into compact, variable-length semantic tokens bypasses traditional scaling walls, improving downstream accuracy while slashing representation capacity by over 13%.

What Problem Does This Paper Address?

In industrial systems (like recommendation engines, ad targeting, and fraud detection), the standard recipe for better performance has long been "more is better": more users, longer historical windows, and larger models. However, user behavior logs are heavily shaped by daily routines and repeated habits. Consequently, as you collect more raw data, the actual volume grows exponentially, but the amount of novel, task-relevant information grows much more slowly.

The authors show that this discrepancy leads to a raw behavioral scaling wall—a point of diminishing returns where adding more raw data or scaling up model parameters fails to improve downstream task performance. Furthermore, there has been a lack of quantitative guidance on how to properly compress (tokenize) this data to maximize information density. This paper aims to replace volume-oriented scaling with density-oriented scaling.

The pipeline of billion-scale user representation learning and the performance saturation of raw data versus tokenized data scaling.

Methods

The authors tackle the scaling wall through a process they call behavioral densing—transforming long, redundant raw histories into compact, discrete representations.

  1. The Behavioral Densing Law: The authors derive a power-law relationship to identify the minimum sufficient tokenization capacity ($C^*$) needed for a given data scale ($s$). On a logarithmic scale, this relationship is approximately linear: $$\ln C^* = \beta + \alpha \ln(s/s_0)$$ The scaling slope ($\alpha$) is determined by the tokenization method's redundancy and the uniqueness of the underlying data source.

  2. Adaptive-Length-Gated Network (ALGN): Standard tokenization methods (like VQ-VAE or RQ-VAE) assign a fixed code length to all behavioral sequences, ignoring the fact that some user histories are highly complex while others are entirely predictable. ALGN introduces an instance-level realization of the Densing Law. At each quantization layer, a gating mechanism decides whether to continue adding residual codes based on two signals:

  3. Residual Norm: Measures how much behavioral information remains unexplained by the current code path.
  4. Code Uncertainty (Entropy): Measures how ambiguous or complex the current semantic assignment is.

If the history is simple and predictable, the tokenizer stops early, saving valuable embedding space.

Datasets

The study was conducted using massive, real-world production datasets from Alipay, scaling up to 2 billion users and up to 270 days of history. The data spans three distinct sources:

  • PayBill: Transaction and payment logs.
  • Super Position Model (SPM): User interface interaction records.
  • MiniProgram: Usage descriptions and actions within mini-apps.

For downstream evaluation, the authors used a robust protocol consisting of 50 classification datasets, 22 text-based retrieval datasets, and 22 user-to-user (U2U) retrieval datasets to ensure generalizability.

Key Insights and Ideas

  • The "Loss-Quality Dissociation": One of the most striking findings is that when scaling a raw data encoder from 0.2B to 0.4B parameters, the larger model successfully achieves lower pre-training loss but yields zero improvement in downstream accuracy. The model simply overfits redundant behavioral details rather than extracting useful signals.
  • Information Density is the True Bottleneck: Expressivity isn't the issue; the low information density of raw sequences is. Tokenization acts as a density operator, allowing smaller encoders operating on shorter inputs to outperform massive models trained on raw data.
  • The Slope-Uniqueness Correlation: The scaling slope ($\alpha$) of the Densing Law is directly proportional to the squared value of the data source's intra-datasource uniqueness ($U_d$). This allows engineers to calibrate the optimal tokenization configuration using lightweight statistics before running expensive, large-scale training runs.
Scaling model parameters under fixed raw data vs. tokenized data demonstrates severe saturation for raw data beyond 0.2B parameters.

Key Results

  • Breaking the Scaling Wall: While raw data performance completely plateaus as sequence lengths exceed 60 days or user counts pass 30 million, tokenized data continues to deliver sustained performance gains.
  • ALGN Superiority: In direct comparison with state-of-the-art tokenization baselines (like SARQ and RQ-VAE) on a fixed budget of 180 days of history and 100M users, ALGN achieved the highest downstream accuracy while being the most efficient.
  • Capacity Savings: ALGN outperformed the best baseline (SARQ) by 1.07% in AUC and 2.03% in KS score, while simultaneously saving 13.23% in representation capacity due to its variable-length gating mechanism.

Limitations and Future Work

While the empirical validation is massive, it is currently limited to a single platform (Alipay) and primarily text-based behavioral modalities. The authors acknowledge that the generalizability of the Behavioral Densing Law still needs to be validated on other diverse behavioral modalities, such as video consumption streams or open-source public benchmark datasets. Future work will focus on multi-modal density estimation and exploring adaptive tokenization strategies across different industrial ecosystems.

Summary updated

BibTeX
@misc{dou2026towards,
  author = {Bin Dou and Junru Zhang and Zhaoyi Yuan and Wuliang Huang and Letian Gong and Baokun Wang and Huan Li and Yu Cheng and Weiqiang Wang},
  title = {{Towards a Densing Law for User Representation Learning at Billion-Scale Capacity}},
  year = {2026},
  eprint = {2608.23392},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.23392},
}
Figure