OneTrans: Unified Feature Interaction and Sequence Modeling with One Transformer in Industrial Recommender

Zhaoqi Zhang, Haolei Pei, Jun Guo, Tianyu Wang, Yufei Feng, Hui Sun, Shaowei Liu, Aixin Sun · OpenReview

Abstract

In recommendation systems, scaling up feature-interaction modules or user-behavior sequence modules has achieved notable success. However, these efforts typically proceed on separate tracks, which not only hinders bidirectional information exchange but also prevents unified optimization and scaling. In this paper, we propose OneTrans, a unified Transformer backbone that simultaneously performs user-behavior sequence modeling and feature interaction. OneTrans employs a unified tokenizer to convert both sequential and non-sequential attributes into a single token sequence. The stacked OneTrans blocks share parameters across similar sequential tokens while assigning token-specific parameters to non-sequential tokens. Through causal attention and cross-request KV caching, OneTrans enables precomputation and caching of intermediate representations, significantly reducing computational costs during both training and inference. Experimental results on industrial-scale datasets demonstrate that OneTrans scales efficiently with increasing parameters, consistently outperforms strong baselines, and yields a 5.68% lift in per-user GMV in online A/B tests.

Introduction: Breaking the Information Bottleneck

Modern ranking models in industrial recommendation systems typically rely on a two-stage "encode-then-interaction" pipeline. In this paradigm, a sequence module (e.g., DIN, SASRec) first compresses a user’s historical behavior into a fixed-length vector. Subsequently, a feature interaction module (e.g., DCN, RankMixer) combines this representation with static features like user demographics and item attributes.

This status quo suffers from two major flaws:

  1. Information Bottleneck: Compressing the sequence before it interacts with static features prevents the model from using current context to dynamically interpret history. For instance, a user's interest in "outdoor gear" might be irrelevant during a rainstorm, but a compressed vector cannot easily be "re-weighted" by real-time weather features.
  2. Scaling Fragmentation: The separate tracks for sequence and interaction modules make it difficult to apply the predictable scaling laws seen in Large Language Models (LLMs). Predictable performance gains from increasing model size are hindered by this patchwork architecture.

The OneTrans Architecture

OneTrans replaces the traditional patchwork with a single, unified Transformer stack. Its design is centered around four key architectural innovations that enable both efficiency and deep feature interaction.

The OneTrans framework featuring the Pyramid Stack, Block design, and Mixed Parameterization.
  • Unified Tokenizer: OneTrans treats all inputs as tokens. Sequential behaviors (S-tokens) and non-sequential attributes (NS-tokens) are concatenated into a single long sequence, allowing every feature to attend to every other feature from the very first layer.
  • Mixed Parameterization: While standard Transformers share weights across all positions, OneTrans recognizes that user behaviors are "homogeneous" while static features like "User ID" are "heterogeneous." It assigns token-specific parameters to non-sequential features to preserve their distinct semantics while maintaining shared weights for the sequence.
  • Pyramid Stacking: To manage computational complexity, the model employs a "pyramid" schedule. As data moves deeper into the stack, the number of sequential tokens is progressively pruned. This is effective because causal attention naturally concentrates information toward the end of the sequence.
  • Cross-Request KV Caching: In production, a single user request involves scoring hundreds of items. Since the user’s history is constant across these candidates, OneTrans caches the "Key" and "Value" states of the user history. This allows the heavy lifting of sequence modeling to be performed only once per request.

Experimental Evaluation

The model was evaluated on a massive industrial-scale dataset from ByteDance production logs, comprising 29.1 Billion impressions and over 27 Million unique users. The primary tasks were predicting Click-Through Rate (CTR) and Post-Click Conversion Rate (CVR).

OneTrans was compared against industry standards including DCNv2, Wukong, RankMixer, and LONGER. In offline tests, the largest variant (OneTransL) outperformed the best baselines across all metrics, showing a +1.53% lift in CTR AUC and a +2.79% lift in UAUC. In industrial contexts, even a 0.1% lift is considered highly significant.

Key Insights: Scaling Laws and Efficiency

A central finding of this research is that recommendation models follow scaling laws similar to LLMs. As model width, depth, and sequence length increase, performance improves in a predictable, log-linear fashion relative to compute (TFLOPs).

Scaling properties of OneTrans vs. RankMixer, showing log-linear performance gains with increased compute.

Crucially, efficiency optimizations like Pyramid Stacking and KV Caching allow OneTrans to scale without a prohibitive latency penalty. A 330-million parameter OneTrans model achieved latency comparable to a 10-million parameter baseline, proving that unified architectures can be deployed at scale.

Online Results and Impact

In live A/B tests on a major feeds platform, OneTrans delivered substantial business impact:

  • +7.74% Clicks per user
  • +4.35% Orders per user
  • +5.68% GMV per user (Gross Merchandise Value)

Despite the massive increase in parameter count, end-to-end system latency actually decreased by ~3-4% compared to the previous production model, validating the effectiveness of the architectural optimizations.

Conclusion and Future Work

OneTrans demonstrates that unifying sequence modeling and feature interaction into a single Transformer backbone unlocks significant performance gains and predictable scaling. While the model currently handles general user history exceptionally well, future work will focus on integrating "candidate-specific" sequences (e.g., a user's specific history with a brand) more deeply into the unified sequence without sacrificing the efficiency of the KV cache. Additionally, the authors aim to push beyond the 330M parameter regime through further system-model co-optimization.

Summary updated

Abstract

In recommendation systems, scaling up feature-interaction modules (e.g., Wukong, RankMixer) or user-behavior sequence modules (e.g., LONGER) has achieved notable success. However, these efforts typically proceed on separate tracks, which not only hinders bidirectional information exchange but also prevents unified optimization and scaling. In this paper, we propose OneTrans, a unified Transformer backbone that simultaneously performs user-behavior sequence modeling and feature interaction. OneTrans employs a unified tokenizer to convert both sequential and non-sequential attributes into a single token sequence. The stacked OneTrans blocks share parameters across similar sequential tokens while assigning token-specific parameters to non-sequential tokens. Through causal attention and cross-request KV caching, OneTrans enables precomputation and caching of intermediate representations, significantly reducing computational costs during both training and inference. Experimental results on industrial-scale datasets demonstrate that OneTrans scales efficiently with increasing parameters, consistently outperforms strong baselines, and yields a 5.68% lift in per-user GMV in online A/B tests.
BibTeX
@misc{zhang2025onetrans,
  author = {Zhaoqi Zhang and Haolei Pei and Jun Guo and Tianyu Wang and Yufei Feng and Hui Sun and Shaowei Liu and Aixin Sun},
  title = {{OneTrans: Unified Feature Interaction and Sequence Modeling with One Transformer in Industrial Recommender}},
  year = {2025},
  eprint = {2510.26104},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.26104},
}
Figure