mlsanityData to 7 Oct 2026

Extreme Classification in Log Memory using Count-Min Sketch: A Case Study of Amazon Search with 50M Products

arXiv 1910.13830 ↗First posted 28 Oct 2019cs.LG cs.DS cs.IRcited by 36

On the map: Mixture-of-experts → MoE large language models

Abstract (arXiv)

In the last decade, it has been shown that many hard AI tasks, especially in NLP, can be naturally modeled as extreme classification problems leading to improved precision. However, such models are prohibitively expensive to train due to the memory blow-up in the last layer. For example, a reasonable softmax layer for the dataset of interest in this paper can easily reach well beyond 100 billion parameters (>400 GB memory). To alleviate this problem, we present Merged-Average Classifiers via Hashing (MACH), a generic K-classification algorithm where memory provably scales at O(logK) without any strong assumption on the classes. MACH is subtly a count-min sketch structure in disguise, which uses universal hashing to reduce classification with a large number of classes to few embarrassingly parallel and independent classification tasks with a small (constant) number of classes. MACH naturally provides a technique for zero communication model parallelism. We experiment with 6 datasets; some multiclass and some multilabel, and show consistent improvement over respective state-of-the-art baselines. In particular, we train an end-to-end deep classifier on a private product search dataset sampled from Amazon Search Engine with 70 million queries and 49.46 million products. MACH outperforms, by a significant margin,the state-of-the-art extreme classification models deployed on commercial search engines: Parabel and dense embedding models. Our largest model has 6.4 billion parameters and trains in less than 35 hours on a single p3.16x machine. Our training times are 7-10x faster, and our memory footprints are 2-4x smaller than the best baselines. This training time is also significantly lower than the one reported by Google's mixture of experts (MoE) language model on a comparable model size and hardware.

Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. First posted on arXiv 28 Oct 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 16; 2022: 5; 2023: 9; 2024: 4; 2025: 0; 2026: 2.

36 papers.

Sort:

By area:

  1. 2021ML-Decoder: Scalable and Versatile Classification Headcited by 78
  2. 2021Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classificationcited by 66
  3. 2021ECLARE: Extreme Classification with Label Graph Correlationscited by 38
  4. 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documentscited by 37
  5. 2021DECAF: Deep Extreme Classification with Label Featurescited by 33
  6. 2022NGAME: Negative Mining-aware Mini-batching for Extreme Classificationcited by 32
  7. 2021Learning with Holographic Reduced Representationscited by 25
  8. 2021Extreme Zero-Shot Learning for Extreme Text Classificationcited by 15
  9. 2022On Missing Labels, Long-tails and Propensities in Extreme Multi-label Classificationcited by 15
  10. 2021Large-Scale Training System for 100-Million Classification at Alibabacited by 10
  11. 2022Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classificationcited by 10
  12. 2021Propensity-scored Probabilistic Label Treescited by 8
24 more
  1. 2021Label Disentanglement in Partition-based Extreme Multilabel Classificationcited by 7
  2. 2022A Survey on Extreme Multi-label Learningcited by 7
  3. 2023PINA: Leveraging Side Information in eXtreme Multi-label Classification via Predicted Instance Neighborhood Aggregationcited by 7
  4. 2023Dual-Encoders for Extreme Multi-Label Classificationcited by 7
  5. 2023SemSup-XC: Semantic Supervision for Zero and Few-shot Extreme Classificationcited by 6
  6. 2023Generalized test utilities for long-tail performance in extreme multi-label classificationcited by 6
  7. 2023Towards Memory-Efficient Training for Extremely Large Output Spaces -- Learning with 500k Labels on a Single Commodity GPUcited by 5
  8. 2021Speeding-up One-vs-All Training for Extreme Classification via Smart Initializationcited by 3
  9. 2023MatchXML: An Efficient Text-label Matching Framework for Extreme Multi-label Text Classificationcited by 3
  10. 2023Multi-modal Extreme Classificationcited by 3
  11. 2024Navigating Extremes: Dynamic Sparsity in Large Output Spacescited by 3
  12. 2021Federated Multiple Label Hashing (FedMLH): Communication Efficient Federated Learning on Extreme Classification Taskscited by 2
  13. 2021Adversarial Examples for Extreme Multilabel Text Classificationcited by 2
  14. 2021On Riemannian Approach for Constrained Optimization Model in Extreme Classification Problemscited by 1
  15. 2024Graph Regularized Encoder Training for Extreme Classificationcited by 1
  16. 2021IRLI: Iterative Re-partitioning for Learning to Indexcited by 0
  17. 2021CARLS: Cross-platform Asynchronous Representation Learning Systemcited by 0
  18. 2022Physics-Guided Problem Decomposition for Scaling Deep Learning of High-dimensional Eigen-Solvers: The Case of Schr"odinger's Equationcited by 0
  19. 2023Cross Encoding as Augmentation: Towards Effective Educational Text Classificationcited by 0
  20. 2023Label Embedding via Low-Coherence Matricescited by 0
  21. 2024On the Necessity of World Knowledge for Mitigating Missing Labels in Extreme Classificationcited by 0
  22. 2024Solving Sparse & High-Dimensional-Output Regression via Compressioncited by 0
  23. 2026Extreme Meta-Classification for Large-Scale Zero-Shot Retrievalcited by 0
  24. 2026OneShot: Index-in-Ranking with Neural Scoring for Large-Scale Retrievalcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Projection and Quantisation: A Unifying View of Learning to Hash, from Random Projections to the RAG Era
  2. 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
  3. 2025Judge Q: Trainable Queries for Optimized Information Retention in KV Cache Eviction
  4. 2025HATA: Trainable and Hardware-Efficient Hash-Aware Top-k Attention for Scalable Large Model Inference
  5. 2024Focus on the Core: Efficient Attention via Pruned Token Compression for Document Classification
  6. 2021Hash Layers For Large Sparse Models
  7. 2026On the Recall Scaling Laws in Mamba: A Theoretical and Mechanistic Study via Hashing
  8. 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing