A particle filter is a sequential Monte Carlo algorithm used for estimating the state of a dynamic system from noisy observations, particularly effective for non-linear and non-Gaussian problems. It works by representing the system's posterior probability distribution with a large set of random samples called particles, each with an associated weight. This ensemble of weighted particles approximates the true state distribution, enabling robust tracking in complex environments like robotic Simultaneous Localization and Mapping (SLAM).
Glossary
Particle Filter

What is a Particle Filter?
A particle filter is a sequential Monte Carlo method used for state estimation that represents the posterior probability distribution of the state with a set of discrete samples (particles) and their weights.
The algorithm operates in a recursive predict-update cycle. First, particles are propagated forward in time using a motion model (prediction). Then, their weights are updated based on the likelihood of new sensor measurements (update). To avoid particle degeneracy, where most weights become negligible, a resampling step replicates high-weight particles and discards low-weight ones. This makes particle filters a cornerstone for sensor fusion and localization in embodied intelligence, where exact analytical solutions like the Kalman Filter are insufficient.
Key Characteristics of Particle Filters
Particle filters are a powerful class of algorithms for state estimation in nonlinear, non-Gaussian systems. Their core strength lies in representing complex probability distributions with discrete samples.
Sequential Importance Sampling
The core mechanism of a particle filter. It sequentially updates a set of weighted samples (particles) representing the posterior distribution.
- Particles: Each particle is a hypothesis for the system's full state (e.g., a robot's pose).
- Weights: Each particle has an importance weight representing its likelihood given the latest sensor observation.
- Process: At each time step, particles are propagated through the motion model (prediction), then re-weighted using the measurement model (update).
This allows the filter to track multi-modal distributions that a single Gaussian (like in a Kalman Filter) cannot represent.
Resampling to Mitigate Degeneracy
A critical step to combat particle degeneracy, where all weight concentrates on a few particles, wasting compute on ineffective samples.
- Problem: Without intervention, variance of importance weights increases over time.
- Solution: Periodically resample particles, drawing a new set from the current weighted distribution.
- Effect: Low-weight particles are discarded, high-weight particles are duplicated. This focuses computational resources on the most probable state hypotheses.
Common algorithms include multinomial, stratified, and systematic resampling. Resampling introduces its own challenge: sample impoverishment, where diversity is lost if the distribution is too peaked.
Nonparametric & Multi-Modal Representation
Unlike parametric filters (e.g., Kalman Filter family), particle filters make no explicit parametric assumption (like Gaussianity) about the posterior distribution.
- They can represent arbitrarily complex shapes: skewed, multi-peaked, or non-Gaussian distributions.
- This is essential in robotics for handling global localization (the 'kidnapped robot' problem) or tracking multiple hypotheses when data association is ambiguous.
- The accuracy of the representation scales with the number of particles, offering a direct trade-off between computational cost and estimation fidelity.
Applicability to Nonlinear & Non-Gaussian Systems
Particle filters excel where traditional linear-Gaussian filters fail.
- Nonlinear Dynamics: The motion model can be any function, not requiring linearization that can introduce error (as in an EKF).
- Non-Gaussian Noise: Measurement and process noise models can be any distribution that can be sampled from.
- Example: A robot with a highly nonlinear wheel odometry model and a camera using a non-Gaussian feature matching likelihood function is a prime candidate for a particle filter.
The trade-off is computational intensity, as many samples are needed to adequately approximate complex distributions.
The Proposal Distribution
A key design choice influencing efficiency. The proposal distribution is used to generate new particle states during the prediction step.
- Optimal Proposal: Samples from the posterior given the new measurement. Often intractable to compute.
- Simple (Bootstrap) Proposal: Uses the system's motion model. Common but can be inefficient if the motion model is noisy compared to precise sensors.
- Improved Proposals: Advanced filters design smarter proposals that incorporate the latest measurement, leading particles to more likely regions and drastically improving sample efficiency.
Choosing a good proposal is central to building an effective particle filter.
Computational Cost & The Curse of Dimensionality
The primary limitation of particle filters is their scaling with state-space dimension.
- Number of Particles: Required to maintain a good approximation grows exponentially with state dimension. This is the curse of dimensionality.
- Typical Use: In robotics, they are often applied to the pose estimation problem (3-6 DOF), not to full joint state+map estimation, where dimensionality is far too high.
- Mitigations: Techniques like Rao-Blackwellized Particle Filters (marginalizing out some states) or adaptive resampling are used to manage cost.
For high-dimensional SLAM, particle filters are typically used as a component within a larger architecture (e.g., FastSLAM).
Particle Filter vs. Kalman Filter: A Comparison
A feature comparison of two fundamental probabilistic filters used for state estimation in robotics and SLAM, highlighting their core assumptions, capabilities, and typical applications.
| Feature / Characteristic | Particle Filter (Sequential Monte Carlo) | Kalman Filter (and EKF/UKF) |
|---|---|---|
Core Mathematical Representation | Set of weighted samples (particles) | Mean and covariance (Gaussian) |
Underlying Distribution Assumption | Non-parametric (any distribution) | Parametric (unimodal Gaussian) |
Handling of System Nonlinearities | Inherently handles severe nonlinearities | Requires linearization (EKF) or sigma-point transform (UKF) |
Handling of Non-Gaussian Noise | Robust to multi-modal, skewed, or heavy-tailed noise | Assumes zero-mean Gaussian noise; performance degrades otherwise |
Theoretical Optimality | Asymptotically optimal (as particle count → ∞) | Optimal for linear Gaussian systems (KF); approximate otherwise |
Computational Complexity | High (scales with particle count N) | Low (scales with state dimension d, O(d³)) |
Memory Footprint | High (stores N state vectors & weights) | Low (stores mean vector & covariance matrix) |
Typical Failure Mode | Particle deprivation (weight collapse) | Divergence due to linearization errors or incorrect covariance |
Primary SLAM Application | Monte Carlo Localization (MCL), FastSLAM | EKF-SLAM, Visual-Inertial Odometry (VIO) |
Ease of Implementation | Conceptually simple; tuning particle count is critical | More mathematically involved; tuning covariance matrices is critical |
Primary Applications in Robotics and SLAM
Particle filters are a cornerstone of probabilistic state estimation in robotics, excelling in non-linear, non-Gaussian, and high-dimensional scenarios where traditional filters like the Kalman filter struggle. Their core strength lies in representing complex belief distributions with a set of weighted samples.
Robust Localization in Non-Gaussian Environments
Particle filters are the algorithm of choice for Monte Carlo Localization (MCL), the de facto standard for global robot localization. They excel where sensor noise or environmental ambiguity creates multi-modal belief distributions (e.g., a robot in a symmetric hallway).
- Key Mechanism: Maintains thousands of hypothetical poses (particles), each weighted by its likelihood given sensor observations.
- Real Example: The AMCL (Adaptive Monte Carlo Localization) algorithm in ROS uses a particle filter to localize a mobile robot within a pre-existing map, dynamically adjusting the number of particles based on localization certainty.
SLAM with Unknown Data Association
The FastSLAM family of algorithms decomposes the full SLAM problem using a particle filter to estimate the robot's path, with each particle carrying its own set of simple landmark estimators (often EKFs). This is particularly powerful for handling the data association problem—determining which landmark a new measurement corresponds to.
- Core Innovation: Each particle represents a potential history of data associations. Incorrect associations receive low weight and are pruned.
- Practical Impact: Enables robust mapping in feature-rich but ambiguous environments without perfect correspondence, a common challenge for purely optimization-based Graph SLAM.
Sensor Fusion for Dynamic State Estimation
Particle filters provide a flexible framework for fusing heterogeneous, noisy, and non-linear sensor streams. They can incorporate proprioceptive sensors (wheel encoders, IMUs) for the motion model and exteroceptive sensors (LiDAR, cameras, radar) for the measurement update.
- Advantage over EKF: No need to linearize complex motion or sensor models, allowing for more accurate representation of true system dynamics (e.g., wheel slippage, complex kinematics).
- Use Case: Estimating the full 3D state (position, orientation, velocity) of a drone using IMU data fused with sporadic GPS updates or visual features, where the system model is highly non-linear.
Handling Non-Linear Robot Dynamics
Many robotic systems, like legged robots, manipulators, or vehicles at the limits of handling, exhibit strongly non-linear dynamics. Particle filters can propagate complex motion models without approximation.
- Process: The prediction step simulates the motion model forward for each particle, capturing the spread of possible future states.
- Example: Predicting the state of a skidding car or a falling humanoid robot, where Gaussian assumptions fail and the distribution of possible outcomes is complex and multi-modal.
The Resampling Step & Particle Deprivation
A critical, double-edged sword in particle filter operation. Resampling selectively replicates high-weight particles and discards low-weight ones to focus computational resources on likely hypotheses.
- Benefit: Prevents degeneracy, where all but one particle have negligible weight.
- Critical Challenge: Can lead to particle deprivation, where all particles collapse to a single incorrect hypothesis if the true state is not represented. This is a primary failure mode in highly ambiguous or perceptually aliased environments.
- Mitigation: Techniques like KLD-sampling adapt the number of particles, and adding a small amount of random noise (roughening) helps maintain diversity.
Computational Trade-offs and Approximations
The primary limitation of particle filters is computational cost, scaling linearly with the number of particles and the state dimension. This has led to key engineering approximations:
- Rao-Blackwellized Particle Filters (RBPF): As used in FastSLAM, marginalizes out analytically tractable state variables (landmark positions) to drastically reduce the sampled dimension.
- Adaptive Particle Counts: Algorithms dynamically increase particles during global localization (kidnapped robot problem) and decrease them during precise tracking.
- Hardware Acceleration: Modern implementations often leverage GPU parallelization to evaluate and weight tens of thousands of particles in real-time.
Frequently Asked Questions
A particle filter is a sequential Monte Carlo method used for state estimation in nonlinear, non-Gaussian systems. It is a cornerstone algorithm for robotic localization and SLAM, particularly in complex, unstructured environments.
A particle filter is a sequential Monte Carlo estimation algorithm that approximates the posterior probability distribution of a system's state using a set of discrete, weighted samples called particles. It operates in a recursive predict-update cycle. First, in the prediction step, each particle is propagated forward in time according to a motion model, which accounts for system dynamics and control inputs. Then, in the update step, each particle's weight is computed based on the likelihood of the latest sensor measurement given that particle's hypothesized state. Particles with high weights (good hypotheses) are likely to be retained, while low-weight particles are discarded. The algorithm periodically performs resampling to concentrate particles in high-probability regions of the state space, preventing particle degeneracy. The weighted set of particles collectively represents the belief about the robot's true state, such as its pose (position and orientation).
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Particle filters operate within a broader ecosystem of algorithms designed to estimate the state of a dynamic system from noisy sensor data. These related concepts define the problem space and alternative solution approaches.
Kalman Filter
A recursive algorithm that provides an optimal estimate for the state of a linear dynamic system under the assumption of Gaussian noise. It operates in two steps: a predict step (propagating the state forward using a motion model) and an update step (correcting the prediction with a new measurement).
- Core Assumption: The system's state and all uncertainties are represented by Gaussian distributions.
- Optimality: For linear systems with Gaussian noise, it produces the minimum mean-square error estimate.
- Limitation: Its performance degrades severely with highly nonlinear systems or non-Gaussian noise distributions, which is where particle filters become necessary.
Extended Kalman Filter (EKF)
The nonlinear extension of the Kalman Filter. It handles nonlinearities by linearizing the system's motion and measurement models around the current state estimate using a first-order Taylor expansion (the Jacobian).
- Mechanism: Propagates a Gaussian approximation of the state through the nonlinear functions.
- Application: Foundational for many early robotics and aerospace state estimation problems.
- Drawback: The linearization can introduce significant errors for highly nonlinear systems or with poor initial estimates, and it still assumes a unimodal Gaussian posterior, which fails for multi-hypothesis scenarios.
Monte Carlo Methods
A broad class of computational algorithms that rely on repeated random sampling to obtain numerical results. Particle filters are a specific instance known as Sequential Monte Carlo (SMC) methods.
- Principle: Use randomness to solve problems that might be deterministic in principle (e.g., integration, optimization).
- In Particle Filters: The set of particles is a Monte Carlo approximation of the posterior probability distribution. More particles lead to a more accurate approximation at the cost of increased computation.
- Strength: Can represent arbitrary, multi-modal distributions, unlike Gaussian-based filters.
Simultaneous Localization and Mapping (SLAM)
The computational problem where an agent must build a map of an unknown environment while simultaneously tracking its location within that map. Particle filters provide a foundational solution framework, notably in the FastSLAM algorithm family.
- Particle Filter Role: Each particle carries its own hypothesis of the robot's trajectory and the associated map estimate. This elegantly handles the data association problem (matching observations to map features).
- Challenge: The number of particles needed can grow with map size, leading to computational constraints in large environments.
- Evolution: Modern SLAM often uses particle filters for global localization and loop closure hypothesis generation, while using graph-based optimization for precise map refinement.
Importance Sampling
A fundamental variance reduction technique used in Monte Carlo methods. It is the core mechanism by which particle filters update their belief from the prior to the posterior distribution after receiving a new measurement.
- Process: Particles are drawn from a proposal distribution (often the motion model). Their importance is then weighted by how well they explain the new sensor data.
- Weight Update: The weight for particle i is proportional to
p(measurement | particle_state_i). - Resampling: To avoid particle degeneracy (where most particles have negligible weight), a resampling step redistributes particles to regions of high probability, based on their weights.
Nonparametric Estimation
A statistical approach to density estimation that does not assume the data follows a specific parametric form (e.g., a Gaussian). Particle filters are a nonparametric method for representing probability distributions.
- Contrast with Parametric: The Kalman Filter is parametric; it assumes the posterior is always a Gaussian, defined by a mean and covariance. A particle filter makes no such assumption.
- Representation: The distribution is represented implicitly by the set of samples (particles). The density at any point can be approximated by the local concentration of particles.
- Flexibility: This allows it to model complex, multi-modal, and skewed distributions common in real-world robotics scenarios like global localization or data association ambiguity.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us