TL;DR
This paper introduces a novel score function estimator for $k$-subset sampling, offering exact samples and unbiased gradients, which is crucial for optimizing models where gradients are otherwise unavailable. By leveraging discrete Fourier transforms for efficient score computation and control variates for variance reduction, their method achieves competitive results in feature selection tasks, even with non-differentiable downstream models.
What Problem Does This Paper Address?
Many machine learning tasks, such as feature selection, optimal sensor placement, and system identification, require sampling subsets of data or features. However, directly optimizing these subset selection processes using gradient-based methods is challenging because sampling discrete subsets is not inherently differentiable. Traditional approaches rely on either "relaxed sampling" (which produces approximate samples) or "pathwise gradient estimators" (which can lead to biased gradients). This paper aims to bridge this gap by revisiting score function estimators, a technique well-established in variational inference and reinforcement learning, and adapting it for $k$-subset sampling. The goal is to provide a method that yields both exact samples and unbiased gradients, making it applicable even when the downstream model's gradient is unavailable or computationally expensive.
Methods
The core contribution of this paper is the development of a score function estimator for $k$-subset sampling, termed SFESS. The authors tackle two main challenges:
- Efficient Score Function Computation: The $k$-subset distribution's score function involves a term related to the sum of Bernoulli variables, which follows a Poisson binomial distribution. To efficiently compute this, they employ a discrete Fourier transform (DFT), leveraging its $O(n \log n)$ time complexity. This allows for exact computation of the score function, which is a significant improvement over approximations.
- Variance Reduction: Vanilla score function estimators are known for their high variance, which can hinder training. To address this, the authors incorporate control variates, a technique that uses multiple samples to reduce variance while maintaining unbiasedness. This leads to a more stable and effective estimator, SFESS-V.
The paper also discusses how the subset size $k$ can be annealed during training, allowing for a gradual transition from larger to smaller subsets.
Datasets
The paper evaluates its proposed method on three standard image datasets:
- MNIST
- Fashion-MNIST
- KMNIST
These datasets were split into training, validation, and test sets. The experiments focused on feature selection for both reconstruction and classification tasks. No new benchmarks were introduced; instead, the authors used existing datasets to demonstrate the effectiveness of their approach against established baselines.
Key Insights and Ideas
- Score Function Estimators are Viable for Discrete Sampling: The paper demonstrates that score function estimators, often overlooked for discrete sampling problems like $k$-subset sampling, can be a powerful and effective alternative to pathwise or relaxed methods.
- DFT for Efficient Score Calculation: The use of discrete Fourier transforms to efficiently compute the score function of a Poisson binomial distribution is a key technical innovation, enabling exact calculations where approximations were previously necessary.
- Control Variates are Crucial for Performance: The significant improvement in results when using control variates (SFESS-V) highlights the detrimental impact of high variance in score function estimators and the effectiveness of this variance reduction technique.
- Unbiasedness and Exact Samples Matter: The ability to provide both unbiased gradients and exact samples makes SFESS-V applicable in a broader range of scenarios, particularly when dealing with non-differentiable downstream models.
Key Results
The experimental results show that SFESS-V is a competitive option for $k$-subset sampling in feature selection tasks.
- Performance: SFESS-V achieved the best final results in terms of reconstruction PSNR and classification accuracy across the tested datasets, often outperforming baselines like GS (Gumbel-Softmax) and STGS (Straight-Through Gumbel-Softmax). For instance, on the KMNIST dataset, SFESS-V achieved a PSNR of 12.696 ± 0.120, which was the best among the tested methods.
- Convergence: While GS and STGS converged faster in the early stages of training, SFESS-V ultimately delivered superior performance, suggesting that its unbiasedness is beneficial for achieving better final solutions.
- Runtime: SFESS (without control variates) and SFESS-V were significantly faster than the GS and STGS baselines, with SFESS-V showing a total runtime of 17.4 minutes compared to 28.7 minutes for GS. This indicates that the computational overhead of the score function calculation and control variates is manageable.
Limitations and Future Work
- Limitations: The paper acknowledges that the weak performance of SFESS without control variates underscores the critical need for variance reduction techniques when using score function estimators. The authors also note that while their method is competitive, it might not always converge as quickly as some other methods in the initial training phases.
- Future Work: The authors suggest that an interesting direction for future research is combining score function estimators with pathwise gradient estimators for $k$-subset sampling, similar to how this has been done for categorical distributions. This could potentially leverage the strengths of both approaches.
Summary updated