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
TL;DR
OneTrans proposes a unified Transformer backbone that jointly handles user-behavior sequence modeling and feature interaction for industrial recommender systems. By unifying sequential and non-sequential features into a single token sequence and employing a pyramid stack with mixed parameterization, it enables bidirectional information exchange and efficient scaling. Cross-request KV caching and LLMS-style optimizations (FlashAttention, mixed precision) deliver substantial runtime and memory savings, while experiments show consistent performance gains and significant online Lift in GMV and orders with maintained latency. The approach establishes a practical scaling paradigm for RecSys by reusing mature LLM engineering techniques within a unified, production-friendly architecture.
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.
