Introduction
In large-scale industrial search and recommendation engines, such as those operated by Amazon or Meituan, the system architecture typically follows a multi-stage "funnel" design to balance computational efficiency with prediction accuracy. This pipeline generally consists of matching, pre-ranking, ranking, and re-ranking. Among these, the pre-ranking stage serves as a critical bridge, narrowing down thousands of candidate items to a few hundred for the final ranking stage.
However, the pre-ranking stage is often a significant bottleneck. It must operate under extreme latency constraints—frequently less than 20ms—while processing a high volume of candidates. Traditionally, this stage relied on simple vector-product models or manually designed "lightweight" deep neural networks. These handcrafted approaches often fail to find the optimal balance between feature complexity and inference speed. This paper introduces AutoFAS, a framework designed to automate the selection of both features and neural architectures specifically for the pre-ranking stage.
The AutoFAS Framework
AutoFAS addresses the limitations of manual design by treating pre-ranking optimization as a joint search problem. Unlike previous methods that optimize feature selection and architecture design sequentially, AutoFAS performs these tasks simultaneously, allowing the model to discover synergies between specific features and network structures.
Key Methodological Components
- Differentiable Feature Selection: To move away from manual feature pruning, AutoFAS employs "feature mask parameters" governed by a Bernoulli distribution. This allows the system to learn the importance of various user, item, and interactive features during training, automatically pruning those that do not contribute significantly to the model's predictive power.
- Neural Architecture Search (NAS) via Mixops: The framework utilizes a search space defined by "Mixed Operations" (Mixops). Each layer in the network can choose from various MLP sizes or a "zero operator" (effectively skipping the layer). By relaxing these discrete choices into continuous parameters, the optimal architecture can be identified using standard gradient descent.
- Latency-Aware Loss: A primary innovation of AutoFAS is the integration of system latency directly into the objective function. The authors developed a differentiable model for both feature retrieval and model inference latency. This enables the training process to optimize for accuracy while adhering to a specific computational "budget," penalizing configurations that exceed latency limits.
- Ranking-Guided Distillation: To ensure the pre-ranking model aligns with the more complex ranking stage, AutoFAS uses knowledge distillation. A larger, more sophisticated "teacher" ranking model supervises the search process, guiding the "student" pre-ranking model to mimic its logic and decision-making.
Experimental Evaluation
The authors evaluated AutoFAS using a massive industrial dataset from Meituan. The dataset comprises over 10 billion display and click logs, involving 20 million users and 400 million clicks collected over a nine-day period. The initial feature set included 500 distinct features, ranging from basic user profiles to complex interactive attributes.
One of the most notable findings from the experiments is that the "optimal" student architecture is highly dependent on the teacher model used. AutoFAS demonstrates that a handcrafted architecture might work for one system but fail for another, whereas an automated framework adapts the student to the specific teacher.
Results and Impact
The experimental results demonstrate that AutoFAS significantly outperforms existing state-of-the-art methods like FSCD and COLD.
- Effectiveness: AutoFAS achieved a 2.04% improvement in AUC and an 11% improvement in Recall.
- Online Impact: In real-world A/B testing on the Meituan platform, the framework delivered a 1.8% lift in Click-Through Rate (CTR). In high-volume recommendation environments, such a lift represents a substantial increase in platform engagement and revenue.
- Efficiency: Crucially, these performance improvements were accompanied by a 10.3% reduction in latency. This proves that the automated search found a more efficient configuration than human-designed models, moving system optimization from manual trial-and-error to automated learning.
Conclusion and Future Work
AutoFAS demonstrates that joint optimization of features and architecture, guided by differentiable latency constraints and knowledge distillation, can effectively bridge the gap between speed and accuracy in pre-ranking. While the framework introduces some training overhead—taking approximately three days compared to two for standard models—the resulting efficiency and accuracy gains justify the investment.
Future research directions include expanding the search space to include more complex operations like cross-features or Transformer-based blocks. Additionally, the authors suggest exploring ways to automatically distribute computational power across all four stages of the retrieval funnel to optimize the entire system end-to-end.
Summary updated