Improving and accelerating particle-based probabilistic inference