Say I have a set of numerous probabilities given by their logarithm : $\{\ln p_i, 1 \leq i \leq N\}$.
I want to compute $\sum p_i$, if possible without exponentiating $\ln p_i$, since some of those probabilities are really small and I would suffer a dramatic loss of precision by doing so.
Do you know of any clever trick ?
Edit 14/06
I compute the probabilities along a probability tree whose depth can go s high as $D = 10 000$. This tree is typically sparse, but I don't have a better upper bound than $N = 2^D$
Some of these probabilities get very low (e.g. $10^{-200}$). I work in python. I haven't witnessed firsthand a precision loss, but I suspected it might happen and decided to reach out to more kowledgeable people.
My current implementation keeps only the 1000 highest log probabilities, exponentiates and sums them.
Computing the log of the sum is perfect for my application, since I have a natural baseline for the log probs. I'd gladly mark this as an approved answer.