heuristic to tackle numerical instabilities in probabilistic inference