[Paper Review] Categorical Feature Compression via Submodular Optimization
This paper proposes a scalable, distributed algorithm for categorical feature compression that maximizes mutual information with binary labels using submodular optimization. It achieves a guaranteed (1−1/e)≈63% approximation of the optimal solution, with an O(n log n) sequential runtime and logarithmic-round distributed implementation, outperforming heuristics in preserving mutual information and learning performance on the Criteo dataset.
In the era of big data, learning from categorical features with very large vocabularies (e.g., 28 million for the Criteo click prediction dataset) has become a practical challenge for machine learning researchers and practitioners. We design a highly-scalable vocabulary compression algorithm that seeks to maximize the mutual information between the compressed categorical feature and the target binary labels and we furthermore show that its solution is guaranteed to be within a $1-1/e \approx 63\%$ factor of the global optimal solution. To achieve this, we introduce a novel re-parametrization of the mutual information objective, which we prove is submodular, and design a data structure to query the submodular function in amortized $O(\log n )$ time (where $n$ is the input vocabulary size). Our complete algorithm is shown to operate in $O(n \log n )$ time. Additionally, we design a distributed implementation in which the query data structure is decomposed across $O(k)$ machines such that each machine only requires $O(\frac n k)$ space, while still preserving the approximation guarantee and using only logarithmic rounds of computation. We also provide analysis of simple alternative heuristic compression methods to demonstrate they cannot achieve any approximation guarantee. Using the large-scale Criteo learning task, we demonstrate better performance in retaining mutual information and also verify competitive learning performance compared to other baseline methods.
Motivation & Objective
- To address the challenge of training machine learning models on categorical features with extremely large vocabularies, such as the 28 million unique values in the Criteo click prediction dataset.
- To design a scalable and distributed algorithm for vocabulary compression that maximizes mutual information between compressed features and binary labels.
- To provide a theoretical approximation guarantee for the compression quality, ensuring the solution is within 1−1/e ≈ 63% of the global optimum.
- To demonstrate that heuristic methods like frequency-based or bucketing compression lack such guarantees and underperform empirically.
- To validate the method’s effectiveness in both mutual information retention and end-to-end learning performance on real-world datasets.
Proposed method
- Reformulate the mutual information maximization objective as a submodular function through a novel re-parametrization, enabling theoretical approximation guarantees.
- Design a data structure that supports amortized O(log n) time queries for the submodular function, enabling efficient optimization.
- Use the fastest known submodular maximization algorithm (e.g., Badanidiyuru and Vondrák, 2014) to achieve a (1−1/e−ε)-approximation in O(n log n) time.
- Implement a distributed version by decomposing the query oracle across O(k) machines, each storing only O(n/k) space, while preserving the approximation guarantee.
- Enable global vocabulary budget allocation across multiple categorical features by ranking marginal contributions and selecting top-scoring values.
- Integrate the method into end-to-end learning pipelines, comparing performance via log-loss on neural network models.
Experimental results
Research questions
- RQ1Can a scalable algorithm be designed for categorical feature compression that maximizes mutual information with binary labels while guaranteeing a constant-factor approximation of the optimal solution?
- RQ2Is the mutual information objective amenable to submodular optimization after a suitable re-parametrization, and can this lead to efficient algorithms?
- RQ3Can the submodular oracle be queried efficiently in amortized logarithmic time, enabling near-linear time sequential and distributed computation?
- RQ4How does the proposed method compare empirically to heuristic baselines like frequency-based or bucketing compression in terms of mutual information retention and learning performance?
- RQ5Can the algorithm be effectively scaled and distributed across multiple machines without sacrificing approximation quality or requiring full data replication?
Key findings
- The proposed Submodular algorithm achieves a mutual information loss of only 3×10−9 at a 160K vocabulary size on the Criteo dataset, significantly outperforming the Frequency heuristic, which incurs a loss of up to 0.654 at 10K vocabulary size.
- The Submodular method maintains near-optimal mutual information, with losses below 10−6 across all tested budget sizes, while the Divisive method shows higher losses even with optimal allocation strategies.
- The distributed implementation achieves the same (1−1/e−ε)-approximation guarantee as the sequential version, using only O(n/k) space per machine and logarithmic rounds of communication.
- In end-to-end learning, the Submodular-compressed model achieves log-loss comparable to other mutual information-based methods and significantly better than the Frequency heuristic, demonstrating competitive performance in practice.
- Heuristic methods like Frequency, Bucketing, and Divisive fail to provide any theoretical approximation guarantee and empirically underperform in preserving label-related information.
- The algorithm scales to large vocabularies (e.g., 28M values), achieving O(n log n) time complexity, making it practical for real-world industrial-scale machine learning systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.