
User Interest Clustering for Recommendation Systems
Pinterest evolved its user journey inference system by replacing a multi-stage clustering pipeline with a fine-tuned 4-billion-parameter LLM. This generative approach directly infers a ranked list of journey names from chronological activity logs, improving specificity, coherence, and handling of multilingual contexts. The system leverages supervised fine-tuning and LoRA on open-weight models, with the 4B parameter student offering the best balance of quality and throughput. Serving optimizations for batch processing at notification scale include PagedAttention and continuous batching.
Timeline








