mlsanityData to 14 Oct 2026

Efficient Clustering with Quality Guardrails for LLM-based Recommender Systems at Industry Scale

arXiv 2607.19704 ↗First posted 22 Jul 2026cs.LG stat.MLcited by 0

Not on the map. Why?

Abstract (arXiv)

LLMs can be prohibitively expensive and slow to run at scale, especially for applications that invoke an LLM per sample over millions of inputs. A natural way to scale is to cluster the inputs, run the LLM only on cluster representatives, and propagate the outputs to other cluster members. However, the outputs a member receives are only as good as its match to the representative. Off-the-shelf clustering methods optimize an aggregate objective, targeting average-case quality without per-sample guardrails. As a result, members can be assigned to poorly-matched representatives, and the inherited outputs -- though appropriate for the representative -- may be irrelevant or even unsafe for the member. For example, a parent of a toddler grouped with parents of older children could receive age-inappropriate recommendations. Most clustering methods also scale poorly to millions of inputs in runtime and memory, limiting their use at industry scale. We propose a scalable two-stage clustering algorithm with provable per-sample guardrails: every sample is guaranteed to share a user-specified minimal embedding similarity and exact attribute match with its representative. The algorithm first generates initial clusters with Mini-batch K-Means, then greedily selects representatives within each to satisfy the guardrails. We provide theoretical guarantees, complexity analysis, and benchmarks against common methods on internal and public datasets. Our method delivers per-sample guardrails while running substantially faster and scaling to data sizes where most standard methods become intractable. We demonstrate its impact in a real-world deployment clustering 38 million customers, reducing downstream LLM cost and runtime by 50-fold while preserving personalization. This unblocked the launch of a persona-based recommender system that delivers significant gains in revenue and engagement in an A/B test.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 34 references that are in the map. First posted on arXiv 22 Jul 2026.

Builds on

12 of 34 references.

References · 12

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  4. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
  5. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  6. 2023SemDeDup: Data-efficient learning at web-scale through semantic deduplicationcited by 303
  7. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
  8. 2024NanoFlow: Towards Optimal Large Language Model Serving Throughputcited by 90
  9. 2023Large Language Model based Long-tail Query Rewriting in Taobao Searchcited by 62
  10. 2023EcomGPT: Instruction-tuning Large Language Models with Chain-of-Task Tasks for E-commercecited by 49
  11. 2024LLM-Ensemble: Optimal Large Language Model Ensemble Method for E-commerce Product Attribute Value Extractioncited by 39
  12. 2025Throughput-Optimal Scheduling Algorithms for LLM Inference and AI Agentscited by 18

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026RAILS: Retrieval-Augmented Incremental LLM Clustering at Scale
  2. 2026Lightweight Fairness for LLM-Based Recommendations via Kernelized Projection and Gated Adapters
  3. 2023Embedding in Recommender Systems: A Survey
  4. 2025Efficient Latent Semantic Clustering for Scaling Test-Time Computation of LLMs
  5. 2024LLM4Rerank: LLM-based Auto-Reranking Framework for Recommendations
  6. 2025Scaling Down, Serving Fast: Compressing and Deploying Efficient LLMs for Recommendation Systems
  7. 2021On component interactions in two-stage recommender systems
  8. 2026Principled Synthetic Data Enables the First Scaling Laws for LLMs in Recommendation