EasyRec: An easy-to-use, extendable and efficient framework for building industrial recommendation systems

Mengli Cheng, Yue Gao, Guoqiang Liu, HongSheng Jin, Xiaowen Zhang · DOI

Abstract

We present EasyRec, an easy-to-use, extendable and efficient recommendation framework for building industrial recommendation systems. Our EasyRec framework is superior in the following aspects: first, EasyRec adopts a modular and pluggable design pattern to reduce the efforts to build custom models; second, EasyRec implements hyper-parameter optimization and feature selection algorithms to improve model performance automatically; third, EasyRec applies online learning to fast adapt to the ever-changing data distribution. The code is released: https://github.com/alibaba/EasyRec.

Introduction

Building an industrial recommendation system (RS) is notoriously difficult. It isn't just about picking a "good" model; it involves managing a multi-stage "funnel" (candidate matching, pre-ranking, ranking, and re-ranking) where each stage requires its own specialized models and data pipelines.

The authors identify three primary pain points in current workflows:

  1. Engineering Friction: Building custom models from scratch is labor-intensive and error-prone.
  2. Feature Inconsistency: "Training-serving skew" occurs when the feature generation logic used during offline training differs from the logic used in the real-time serving environment.
  3. Static Models in Dynamic Worlds: Data distributions in e-commerce change by the minute, but traditional deep learning models are often too bulky to update in real-time.

System Architecture and Methods

EasyRec tackles these challenges through a highly modular and optimized architecture designed to bridge the gap between complex recommendation research and large-scale industrial deployment.

System architecture of EasyRec, illustrating the modular components of the EasyRecEstimator and the deployment workflow.

Modular & Pluggable Design

Every component—data loading, feature generation, model architecture, and loss functions—is a pluggable module configured via Protobuf. This allows developers to swap components or add new models (over 20 SOTA models are already integrated) without rewriting the entire pipeline. The framework extends the TensorFlow Estimator to support seamless distributed training across various platforms, including Alibaba’s PAI, Kubernetes (via Kubeflow), and Apache Hadoop YARN.

Consistent Feature Operations

To solve the training-serving skew, EasyRec implements core feature generation in C++ and wraps it as TensorFlow operators. This ensures the exact same code runs during both offline training and online serving. Furthermore, it utilizes NVIDIA’s Sparse Operation Kit (SOK) to speed up training and employs vector instructions (SIMD) to accelerate embedding lookups during serving.

Automated Optimization and Online Learning

It integrates Microsoft’s NNI for hyper-parameter optimization (HPO) and uses Variational Dropout for automated feature selection, helping to prune redundant features that increase latency without adding value. For real-time adaptation, EasyRec uses a Flink-based pipeline to generate real-time samples and pushes only the changed parameters (incremental updates) to the serving layer via message queues.

Evaluation

The paper validates the framework's performance using the Criteo Display Ad Challenge Dataset for benchmarking training speed and Internal Industrial Datasets to demonstrate the effectiveness of feature selection and online serving optimizations.

Key Results

  • Training Speedup: By leveraging the Sparse Operation Kit, EasyRec achieved a 3x speedup in training on the Criteo dataset.
  • Serving Latency: Through optimizations like LRU caching and interleaved feature execution, the Request Time (RT) for online serving was reduced to 1/4 of the original implementation.
  • Feature Pruning: By using variational dropout to identify and remove low-importance features, the authors were able to cut the feature set in half while doubling inference speed without degrading model performance.
  • Online Learning Efficiency: The incremental update strategy reduced the volume of updated parameters to less than 5% of the total model size, allowing updates to be applied within seconds.

Conclusion

EasyRec treats the recommendation system as a full lifecycle—from raw data ingestion in Hive/Kafka to low-latency serving. While the framework is most deeply integrated with the Alibaba Cloud ecosystem, it remains a powerful open-source tool for reducing the engineering overhead of high-performance recommendation funnels. Future work will focus on expanding the library with more state-of-the-art models and further refining pipeline automation.

Summary updated

Abstract

We present EasyRec, an easy-to-use, extendable and efficient recommendation framework for building industrial recommendation systems. Our EasyRec framework is superior in the following aspects: first, EasyRec adopts a modular and pluggable design pattern to reduce the efforts to build custom models; second, EasyRec implements hyper-parameter optimization and feature selection algorithms to improve model performance automatically; third, EasyRec applies online learning to fast adapt to the ever-changing data distribution. The code is released: https://github.com/alibaba/EasyRec.
BibTeX
@misc{cheng2022easyrec,
  author = {Mengli Cheng and Yue Gao and Guoqiang Liu and HongSheng Jin and Xiaowen Zhang},
  title = {{EasyRec: An easy-to-use, extendable and efficient framework for building industrial recommendation systems}},
  year = {2022},
  eprint = {2209.12766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.12766},
}
Figure