Extreme Classification in Log Memory using Count-Min Sketch: A Case Study of Amazon Search with 50M Products
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
Citing papers per year: 2021: 16; 2022: 5; 2023: 9; 2024: 4; 2025: 0; 2026: 2.
36 papers.
Sort:
By area:
- 2021ML-Decoder: Scalable and Versatile Classification Headcited by 78
- 2021Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classificationcited by 66
- 2021ECLARE: Extreme Classification with Label Graph Correlationscited by 38
- 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documentscited by 37
- 2021DECAF: Deep Extreme Classification with Label Featurescited by 33
- 2022NGAME: Negative Mining-aware Mini-batching for Extreme Classificationcited by 32
- 2021Learning with Holographic Reduced Representationscited by 25
- 2021Extreme Zero-Shot Learning for Extreme Text Classificationcited by 15
- 2022On Missing Labels, Long-tails and Propensities in Extreme Multi-label Classificationcited by 15
- 2021Large-Scale Training System for 100-Million Classification at Alibabacited by 10
- 2022Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classificationcited by 10
- 2021Propensity-scored Probabilistic Label Treescited by 8
24 more
- 2021Label Disentanglement in Partition-based Extreme Multilabel Classificationcited by 7
- 2022A Survey on Extreme Multi-label Learningcited by 7
- 2023PINA: Leveraging Side Information in eXtreme Multi-label Classification via Predicted Instance Neighborhood Aggregationcited by 7
- 2023Dual-Encoders for Extreme Multi-Label Classificationcited by 7
- 2023SemSup-XC: Semantic Supervision for Zero and Few-shot Extreme Classificationcited by 6
- 2023Generalized test utilities for long-tail performance in extreme multi-label classificationcited by 6
- 2023Towards Memory-Efficient Training for Extremely Large Output Spaces -- Learning with 500k Labels on a Single Commodity GPUcited by 5
- 2021Speeding-up One-vs-All Training for Extreme Classification via Smart Initializationcited by 3
- 2023MatchXML: An Efficient Text-label Matching Framework for Extreme Multi-label Text Classificationcited by 3
- 2023Multi-modal Extreme Classificationcited by 3
- 2024Navigating Extremes: Dynamic Sparsity in Large Output Spacescited by 3
- 2021Federated Multiple Label Hashing (FedMLH): Communication Efficient Federated Learning on Extreme Classification Taskscited by 2
- 2021Adversarial Examples for Extreme Multilabel Text Classificationcited by 2
- 2021On Riemannian Approach for Constrained Optimization Model in Extreme Classification Problemscited by 1
- 2024Graph Regularized Encoder Training for Extreme Classificationcited by 1
- 2021IRLI: Iterative Re-partitioning for Learning to Indexcited by 0
- 2021CARLS: Cross-platform Asynchronous Representation Learning Systemcited by 0
- 2022Physics-Guided Problem Decomposition for Scaling Deep Learning of High-dimensional Eigen-Solvers: The Case of Schr"odinger's Equationcited by 0
- 2023Cross Encoding as Augmentation: Towards Effective Educational Text Classificationcited by 0
- 2023Label Embedding via Low-Coherence Matricescited by 0
- 2024On the Necessity of World Knowledge for Mitigating Missing Labels in Extreme Classificationcited by 0
- 2024Solving Sparse & High-Dimensional-Output Regression via Compressioncited by 0
- 2026Extreme Meta-Classification for Large-Scale Zero-Shot Retrievalcited by 0
- 2026OneShot: Index-in-Ranking with Neural Scoring for Large-Scale Retrievalcited by 0
- 2026OneShot: Index-in-Ranking with Neural Scoring for Large-Scale Retrieval29 Jul 2026
- 2026Extreme Meta-Classification for Large-Scale Zero-Shot Retrieval23 Jun 2026
- 2024Navigating Extremes: Dynamic Sparsity in Large Output Spaces5 Nov 2024
- 2024Solving Sparse & High-Dimensional-Output Regression via Compression21 Oct 2024
- 2024On the Necessity of World Knowledge for Mitigating Missing Labels in Extreme Classification18 Aug 2024
- 2024Graph Regularized Encoder Training for Extreme Classification28 Feb 2024
- 2023Generalized test utilities for long-tail performance in extreme multi-label classification9 Nov 2023
- 2023Dual-Encoders for Extreme Multi-Label Classification16 Oct 2023
- 2023Multi-modal Extreme Classification10 Sep 2023
- 2023MatchXML: An Efficient Text-label Matching Framework for Extreme Multi-label Text Classification25 Aug 2023
- 2023Towards Memory-Efficient Training for Extremely Large Output Spaces -- Learning with 500k Labels on a Single Commodity GPU6 Jun 2023
- 2023Label Embedding via Low-Coherence Matrices31 May 2023
24 more
- 2023Cross Encoding as Augmentation: Towards Effective Educational Text Classification30 May 2023
- 2023PINA: Leveraging Side Information in eXtreme Multi-label Classification via Predicted Instance Neighborhood Aggregation21 May 2023
- 2023SemSup-XC: Semantic Supervision for Zero and Few-shot Extreme Classification26 Jan 2023
- 2022A Survey on Extreme Multi-label Learning8 Oct 2022
- 2022On Missing Labels, Long-tails and Propensities in Extreme Multi-label Classification26 Jul 2022
- 2022NGAME: Negative Mining-aware Mini-batching for Extreme Classification10 Jul 2022
- 2022Physics-Guided Problem Decomposition for Scaling Deep Learning of High-dimensional Eigen-Solvers: The Case of Schr"odinger's Equation12 Feb 2022
- 2022Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classification11 Feb 2022
- 2021Extreme Zero-Shot Learning for Extreme Text Classification16 Dec 2021
- 2021Adversarial Examples for Extreme Multilabel Text Classification14 Dec 2021
- 2021ML-Decoder: Scalable and Versatile Classification Head25 Nov 2021
- 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documents12 Nov 2021
- 2021Federated Multiple Label Hashing (FedMLH): Communication Efficient Federated Learning on Extreme Classification Tasks23 Oct 2021
- 2021Propensity-scored Probabilistic Label Trees20 Oct 2021
- 2021Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classification1 Oct 2021
- 2021On Riemannian Approach for Constrained Optimization Model in Extreme Classification Problems30 Sep 2021
- 2021Speeding-up One-vs-All Training for Extreme Classification via Smart Initialization27 Sep 2021
- 2021Learning with Holographic Reduced Representations5 Sep 2021
- 2021DECAF: Deep Extreme Classification with Label Features1 Aug 2021
- 2021ECLARE: Extreme Classification with Label Graph Correlations31 Jul 2021
- 2021Label Disentanglement in Partition-based Extreme Multilabel Classification24 Jun 2021
- 2021CARLS: Cross-platform Asynchronous Representation Learning System26 May 2021
- 2021IRLI: Iterative Re-partitioning for Learning to Index17 Mar 2021
- 2021Large-Scale Training System for 100-Million Classification at Alibaba9 Feb 2021
- 2021ML-Decoder: Scalable and Versatile Classification Headcited by 78
- 2021Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classificationcited by 66
- 2021ECLARE: Extreme Classification with Label Graph Correlationscited by 38
- 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documentscited by 37
- 2021DECAF: Deep Extreme Classification with Label Featurescited by 33
- 2022NGAME: Negative Mining-aware Mini-batching for Extreme Classificationcited by 32
- 2021Learning with Holographic Reduced Representationscited by 25
- 2021Extreme Zero-Shot Learning for Extreme Text Classificationcited by 15
- 2022On Missing Labels, Long-tails and Propensities in Extreme Multi-label Classificationcited by 15
- 2021Large-Scale Training System for 100-Million Classification at Alibabacited by 10
- 2022Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classificationcited by 10
- 2021Propensity-scored Probabilistic Label Treescited by 8
12 most cited of 35 All 35 (JSON)
- 2026OneShot: Index-in-Ranking with Neural Scoring for Large-Scale Retrieval29 Jul 2026
- 2026Extreme Meta-Classification for Large-Scale Zero-Shot Retrieval23 Jun 2026
- 2024Navigating Extremes: Dynamic Sparsity in Large Output Spaces5 Nov 2024
- 2024Solving Sparse & High-Dimensional-Output Regression via Compression21 Oct 2024
- 2024On the Necessity of World Knowledge for Mitigating Missing Labels in Extreme Classification18 Aug 2024
- 2024Graph Regularized Encoder Training for Extreme Classification28 Feb 2024
- 2023Generalized test utilities for long-tail performance in extreme multi-label classification9 Nov 2023
- 2023Dual-Encoders for Extreme Multi-Label Classification16 Oct 2023
- 2023Multi-modal Extreme Classification10 Sep 2023
- 2023MatchXML: An Efficient Text-label Matching Framework for Extreme Multi-label Text Classification25 Aug 2023
- 2023Towards Memory-Efficient Training for Extremely Large Output Spaces -- Learning with 500k Labels on a Single Commodity GPU6 Jun 2023
- 2023Label Embedding via Low-Coherence Matrices31 May 2023
12 newest of 35 All 35 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Projection and Quantisation: A Unifying View of Learning to Hash, from Random Projections to the RAG Era
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
- 2025Judge Q: Trainable Queries for Optimized Information Retention in KV Cache Eviction
- 2025HATA: Trainable and Hardware-Efficient Hash-Aware Top-k Attention for Scalable Large Model Inference
- 2024Focus on the Core: Efficient Attention via Pruned Token Compression for Document Classification
- 2021Hash Layers For Large Sparse Models
- 2026On the Recall Scaling Laws in Mamba: A Theoretical and Mechanistic Study via Hashing
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing