[Paper Review] Bayesian inference via rejection filtering
This paper introduces rejection filtering, a memory-efficient Bayesian inference method that combines rejection sampling with particle filtering to estimate posterior moments using only a constant number of samples. It enables online, low-memory inference in high-dimensional settings and demonstrates strong performance on MNIST digit classification with minimal accuracy loss even after feature pruning.
We provide a method for approximating Bayesian inference using rejection sampling. We not only make the process efficient, but also dramatically reduce the memory required relative to conventional methods by combining rejection sampling with particle filtering. We also provide an approximate form of rejection sampling that makes rejection filtering tractable in cases where exact rejection sampling is not efficient. Finally, we present several numerical examples of rejection filtering that show its ability to track time dependent parameters in online settings and also benchmark its performance on MNIST classification problems.
Motivation & Objective
- Address the high memory and computational demands of traditional particle filters in memory-constrained environments such as embedded systems and real-time control.
- Overcome the exponential decay in acceptance probability during online Bayesian inference using exact rejection sampling.
- Develop a scalable, parallelizable method for approximate Bayesian inference suitable for hybrid and edge-computing platforms.
- Enable active learning and feature selection by leveraging sampling frequencies from rejection filtering to identify salient features in high-dimensional data.
- Maintain high inference accuracy while drastically reducing the number of features used, as demonstrated on MNIST classification tasks.
Proposed method
- Use rejection sampling to generate candidate samples from the prior distribution and accept them with probability proportional to the likelihood, adjusted by a scaling constant $\kappa_E$ to improve acceptance rates.
- Maintain only the first two moments (mean $\mu$ and covariance $\Sigma$) of the posterior distribution, avoiding storage of individual particles.
- Apply resampling and moment updating after each batch of rejection sampling attempts to iteratively refine the posterior approximation.
- Incorporate a recovery factor $r$ to stabilize the covariance matrix when no samples are accepted, preventing numerical instability.
- Use a batched update mechanism (Algorithm 2) to enable fine-grained parallelization across multiple processing nodes, improving throughput at the cost of slightly higher memory usage.
- Leverage the frequency of feature usage during sampling to identify and retain only the most informative features, enabling efficient feature selection in high-dimensional data.
Experimental results
Research questions
- RQ1Can rejection filtering achieve accurate Bayesian inference with significantly reduced memory usage compared to standard particle filters?
- RQ2How does rejection filtering perform in online, time-varying inference tasks under strict memory constraints?
- RQ3To what extent can rejection filtering support active learning and feature selection by analyzing sampling frequencies?
- RQ4What is the impact of pruning low-frequency features on classification accuracy in high-dimensional datasets like MNIST?
- RQ5Can rejection filtering be effectively parallelized without sacrificing accuracy or increasing memory beyond a constant factor?
Key findings
- Rejection filtering reduces memory usage to a constant number of samples by storing only the posterior mean and covariance, making it suitable for embedded and memory-constrained systems.
- The method maintains high classification accuracy (>99%) on MNIST zero vs one digit classification even after removing up to 80% of the least frequently used features.
- Pruning features below the 36th percentile has no measurable impact on classification accuracy, indicating that only a small subset of features is essential for performance.
- When only 20% of the most frequently sampled features are retained, classification accuracy remains above 99%, demonstrating effective feature selection via sampling frequency.
- The method enables efficient, parallelized inference through batched updates, allowing deployment on distributed or multi-core architectures with minimal overhead.
- The recovery factor $r$ ensures numerical stability in the absence of accepted samples, preserving posterior estimates even in low-acceptance regimes.
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.