TL;DR
This paper introduces 360Brew, a 150B parameter decoder-only foundation model that unifies ranking and recommendation tasks at LinkedIn. By leveraging natural language prompts, 360Brew significantly reduces the need for manual feature engineering and complex model architectures, achieving performance comparable to or exceeding existing specialized models across over 30 tasks.
What Problem Does This Paper Address?
Traditional recommendation systems (RS) at platforms like LinkedIn are built on complex, multi-layered architectures with thousands of predictive models. Maintaining and enhancing these models is a labor-intensive process, heavily reliant on extensive feature engineering. This not only accumulates technical debt but also hinders innovation and the ability to adapt these systems to new problem domains or surfaces. The paper aims to address these challenges by proposing a single, powerful foundation model that can handle diverse ranking and recommendation tasks through a natural language interface, thereby simplifying development and accelerating iteration.
Methods
The core of the proposed solution is 360Brew, a 150B parameter decoder-only foundation model. The approach leverages the power of large language models (LLMs) with a textual interface for ranking and recommendation. Instead of traditional ID-based features and manual feature engineering, 360Brew uses natural language prompts to define tasks and describe member behaviors and social connections. This allows for:
- Unified Model: A single model capable of managing multiple predictive tasks across different LinkedIn services.
- Zero-Shot Generalization: The model can generalize to new recommendation surfaces and out-of-domain ranking/retrieval tasks with simple prompts, enabling product designers to iterate easily.
- Prompt Engineering: Replaces complex feature engineering and directed acyclic graphs (DAGs) of model dependencies with centralized prompt engineering.
The model is built upon the Mixtral 8x22B architecture and undergoes several training stages: Continuous Pre-training (CPT), Instruction Fine-Tuning (IFT), and Supervised Fine-Tuning (SFT). The paper also details infrastructure scaling, including distributed training with FSDP, mixed-precision training, and efficient inference engines like VLLM.
Datasets
The paper primarily uses LinkedIn's internal, first-party data for training and evaluation. This data is diverse, coming from various LinkedIn products and surfaces, and includes:
- Member interactions (job applications, feed activity, notifications, etc.).
- Raw entity data (member profiles, job descriptions, posts, articles).
- Network data (member-to-member connections, follower information).
The data is primarily from the United States and in English. For evaluation, the paper categorizes tasks into:
- T1 (in-domain): Tasks where recommendation data from past periods is used in training, with a temporal gap between training and benchmark data.
- T2 (out-of-domain): Tasks and surfaces not encountered during training, testing the model's generalization capabilities.
Key Insights and Ideas
- Natural Language as a Unifying Interface: The paper strongly advocates for using natural language as a universal interface for complex recommendation tasks, effectively democratizing access for product designers and reducing reliance on specialized ML engineers for feature engineering.
- LLMs as General-Purpose Recommenders: Demonstrates that LLMs, particularly decoder-only models, can move beyond traditional NLP tasks to excel at structured prediction problems like ranking and recommendation, even outperforming specialized models without task-specific fine-tuning.
- Prompt Engineering's Power: Highlights the significant shift from intricate feature engineering to the more agile and intuitive process of prompt engineering for defining and solving recommendation problems.
- Scalability Through Foundation Models: The approach of building a single foundation model offers substantial benefits in terms of development time, maintenance, and the ability to rapidly iterate on new features and products across the platform.
- Context Length Matters (and is Challenging): While longer context windows generally improve performance, the paper identifies challenges in maintaining this generalization as context length increases, suggesting ongoing research areas.
Key Results
- Performance: 360Brew V1.0, a 150B parameter model, achieves performance comparable to or exceeding current production systems on over 30 predictive tasks across various LinkedIn segments, without task-specific fine-tuning.
- Out-of-Domain Generalization: The model demonstrates strong performance on T2 (out-of-domain) tasks, competitive with or better than production models, showcasing its ability to generalize to unseen surfaces and tasks.
- Cold-Start Performance: 360Brew shows a larger performance gap over production models for members with fewer interactions, indicating improved cold-start capabilities.
- Temporal Robustness: The model's performance is less affected by temporal shifts in data compared to baselines, suggesting reduced maintenance needs.
- Data Scaling: Performance on T1 tasks improves significantly with increased data size, with no apparent flattening of the improvement curve, indicating potential for further gains.
- Model Scaling: Increasing model size (parameters) leads to improved performance across various tasks.
Limitations and Future Work
- Context Length Generalization: The paper notes that while the model can handle long contexts, performance can degrade beyond certain lengths (e.g., 30K tokens), especially for tasks requiring fine-grained understanding. Solutions like inference-time RoPE scaling are explored, but further work is needed to fully address this.
- Computational Cost: Training and fine-tuning such large models are computationally intensive, requiring significant GPU resources.
- Data Minimization and Privacy: While efforts are made to minimize personalized data, ensuring complete anonymization and privacy remains an ongoing consideration.
- Future Work: The authors suggest exploring retrieval tasks with the same foundation model, further improving long-context generalization, and continuing to scale the model and data. They also plan to investigate more advanced prompt engineering techniques and explore the model's capabilities in other domains beyond ranking and recommendation.
Summary updated