ROCS: Request-Oriented Compute Sharing for Efficient Large-Scale Recommendation

Yuxin Chen, Liang Luo, Buyun Zhang, Jian Jiao, Boda Li, Haoyu Wang, Tongyi Tang, Ao Cai, Zijian Shen, Zhengkai Zhang, Wenyi Xie, Ryan Dick, Han Liu, Neng Shi, Bin Yu, Jianbo Xiao, Shuyao Bi, Hongtao Yu, Yuanwei Fang, Zhuoran Zhao, Sijia Chen, Yang Chen, Shuqi Yang, Qianru Li, Zikun Liu, Wei Ling, Sihan Zeng, Longhao Jin, Jiaxin Lu, Yinbin Ma, Jiawei Li, Yichen Ruan, Yong Ler Lee, Birmingham Guan, Zijian Li, Jianbo Sun, Zhengyu Zhang, Zeliang Chen, Xiaohan Wei, Yuchen Hao, Gp Musumeci, Venkatesh Ranganathan, Yantao Yao, Chunqiang Tang, Wenlin Chen, Santanu Kolay, Ellie Dingqiao WenarXiv 2026

TL;DR

ROCS (Request-Oriented Compute Sharing) is a novel modeling and inference paradigm for large-scale recommendation systems that eliminates massive compute redundancy by evaluating request-side features once per user request rather than once per candidate item. By combining architectural constraints with specialized GPU kernel optimizations, ROCS achieves up to a 3× throughput improvement or significant prediction quality gains across production workloads at Meta.

What Problem Does This Paper Address?

Modern recommendation systems face a fundamental structural mismatch during inference. A single user request (containing context like time, location, and user history) is evaluated against hundreds or thousands of candidate items. Ideally, the request-side features should be computed just once and shared across all candidates.

However, state-of-the-art ranking models typically rely on "early fusion"—mixing request and candidate features early in the network to capture complex cross-features and sequence interactions. This forces the system to recompute the entire model separately for every single candidate, leading to massive computational redundancy. While "two-tower" architectures avoid this by completely separating user and item encoding, they sacrifice intermediate feature interactions, severely limiting model expressiveness.

ROCS tackles this challenge by finding a middle ground: preserving deep, expressive request-candidate interactions while mathematically isolating the request-side pathway so it can be computed once and efficiently reused.

Figure 1: Overview of ROCS. (a) Conventional models broadcast request-side inputs and introduce request–candidate interactions early, causing substantial redundant computation across candidates. (b) ROCS maintains a reusable request-side pathway by ROCSifying operators to satisfy a dependency contract and eliminate redundant computation. (c) Deep Cross Attention (DCA) extends ROCS to sequence modeling through deep candidate-conditioned retrieval over shared sequence representations. (d) Detailed view of Generalized Layer Masking (GLM) applied to the Wukong backbone.

Methods

The ROCS paradigm consists of four co-designed modeling and system components:

  1. Generalized Layer Masking (GLM): This defines an operator-level dependency contract ensuring that information flows from the request side to the candidate side, but never vice versa. Implemented as a block lower-triangular mask inside linear layers, factorization machines, and normalization layers, GLM guarantees that request-side representations remain strictly invariant to the candidate item.
  2. Deep Cross Attention (DCA): To handle heavy sequence models (like Transformers evaluating user history), DCA separates the architecture into a candidate-independent sequence encoder and a candidate-conditioned retrieval layer. Instead of injecting candidate signals early into the sequence, DCA computes the sequence representations once per request and uses layer-wise cross-attention to let candidate queries retrieve relevant historical context.
  3. Request-Oriented Resource Reallocation (RRR): Because request-side computation is amortized across thousands of candidates, it is computationally "cheaper" to scale than the candidate side. RRR exploits this asymmetry by reinvesting the compute savings from amortization back into expanding the capacity (e.g., width or depth) of the request-side subgraph, boosting model accuracy within the original compute budget.
  4. In-Kernel Broadcast Optimization (IKBO): A naive implementation of compute sharing would explicitly broadcast (replicate) the request tensors to match the candidate batch size, creating a massive memory bandwidth bottleneck. IKBO keeps request and candidate tensors at their natural batch sizes ($B_r$ and $B_c$) and resolves their association directly inside the GPU kernel epilogue, avoiding unnecessary data movement.
Figure 2: Construction of GLM modules, illustrated with two-group scenario where group 0 is request-side and group 1 is candidate-side. (a) linear and linear compression. (b) group-local operators. (c) factorization machine. (d) GLM invariant is preserved under composition.

Datasets

The authors evaluated ROCS on both public benchmarks and massive internal production datasets:

  • Public Benchmarks: KuaiRand, KuaiVideo, and KKBox (processed via the RecZoo repository) to test generality across different model backbones (DCNv2, FinalMLP, Wukong).
  • Production Workloads: Three internal Meta datasets spanning ads retrieval, short-form video ranking, and ads ranking, each containing over 100 billion training examples.

Key Insights and Ideas

  • The Amortization Asymmetry: The core "aha moment" is that scaling the request-side pathway is incredibly cheap in production. If a request is matched against 1,000 candidates, adding 1,000 FLOPs to the request tower costs only 1 FLOP per candidate score. ROCS turns this mathematical asymmetry into a lever for model accuracy via RRR.
  • Compositional Invariance: The authors prove that the GLM invariant is closed under composition. This means engineers can stack ROCSified MLPs, normalization layers, and attention blocks together, and the entire composite network is guaranteed to maintain a clean, reusable request-side pathway.
  • Hardware-Software Co-design is Mandatory: Simply changing the model architecture isn't enough. Without IKBO fusing the logical broadcast into the GPU GEMM and attention epilogues, memory traffic from tensor replication completely wipes out the algorithmic FLOP savings.

Key Results

ROCS demonstrates massive end-to-end efficiency and quality improvements when deployed at scale:

  • Retrieval Models: Achieved up to a 3× Queries Per Second (QPS) improvement on production ads retrieval workloads with zero degradation in recommendation quality.
  • Ranking Models: On a short-form video ranking model, ROCS delivered a 0.5% relative LogLoss improvement (a highly significant gain in production click-through rate modeling) alongside a 50% QPS gain.
  • Production Deployment: ROCS has been successfully deployed across tens of large-scale recommendation systems at Meta, handling organic and ads surfaces across two orders of magnitude in inference complexity.

Limitations and Future Work

The primary limitation of ROCS is that its benefits scale with candidate multiplicity. If a model is evaluated in a setting where each request only scores a few candidates (such as the final re-ranking stage or during standard model training), the amortization effect diminishes. Additionally, the current highly optimized IKBO implementation relies heavily on hardware primitives specific to modern NVIDIA GPUs (like TMA and WGMMA in Hopper architectures), meaning porting these exact performance gains to other hardware accelerators remains future work.

Summary updated

BibTeX
@misc{chen2026rocs,
  author = {Yuxin Chen and Liang Luo and Buyun Zhang and Jian Jiao and Boda Li and Haoyu Wang and Tongyi Tang and Ao Cai and Zijian Shen and Zhengkai Zhang and Wenyi Xie and Ryan Dick and Han Liu and Neng Shi and Bin Yu and Jianbo Xiao and Shuyao Bi and Hongtao Yu and Yuanwei Fang and Zhuoran Zhao and Sijia Chen and Yang Chen and Shuqi Yang and Qianru Li and Zikun Liu and Wei Ling and Sihan Zeng and Longhao Jin and Jiaxin Lu and Yinbin Ma and Jiawei Li and Yichen Ruan and Yong Ler Lee and Birmingham Guan and Zijian Li and Jianbo Sun and Zhengyu Zhang and Zeliang Chen and Xiaohan Wei and Yuchen Hao and GP Musumeci and Venkatesh Ranganathan and Yantao Yao and Chunqiang Tang and Wenlin Chen and Santanu Kolay and Ellie Dingqiao Wen},
  title = {{ROCS: Request-Oriented Compute Sharing for Efficient Large-Scale Recommendation}},
  year = {2026},
  eprint = {2607.27744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.27744},
}
Figure