One thing we've been working on lately is finding natural latents in real datasets. Looking for natural latents between pairs of variables with only a few values each is relatively easy in practice with the math we have at this point. But that doesn't turn up much in excel-style datasets, and one wouldn't particularly expect it to turn up much in such datasets. Intuitively, it seems like more "distributed" latents are more practically relevant for typical excel-style datasets - i.e. latents for which many different observables each yield some weak information.
Here's one operationalization, which runs into some cute math/numerical algorithm problems for which I have a working solution but not a very satisfying solution. Maybe you enjoy those sorts of problems and will want to tackle them!
Assume we have (categorical) observable variables X1,...,Xm and a latent variable Λ. We'll make two assumptions about the form of the distribution:
(The notation Z|Λ just indicates that this is a normalizer for a distribution conditioned on Λ. There's going to several normalizers floating around, so we need to distinguish them.) One could handwavily justify these assumptions, but we'll take them as given for now.
The main thing we want to calculate is then P[X] for various "feature" functions f, in order to do model comparison between different feature functions.
Using Bayes' Rule and our two assumptions, we get
P[X]P[Λ]=P[X|Λ]P[Λ|X]
=1Z|Λ(λ)eλT∑ifi(xi)1Z|X(x)e−12λTSλ+λT(μ+∑ifi(xi))dλ
=Z|X(x)Z|Λ(λ)e−12λTSλ+λTμdλ
Note that P[X] can only depend on x (not λ), and P[Λ] can only depend on λ (not x), so in general the form above implies
P[X]=1ZZ|X(x)
P[Λ]=1ZZ|Λ(λ)e−12λTSλ+λTμdλ
for some normalizer Z. Looking back at the earlier distributions, we have
Z|X(x)=∫λe−12λTSλ+λT(μ+∑ifi(xi))dλ
=(2π)k2|S|−12e12(μ+∑ifi(xi))TS−1(μ+∑ifi(xi))
Z=∑xZ|X(x)
... and then the tricky numerical algorithm problem is to efficiently calculate Z.
Trick I'm currently using: we can view the sum ∑xZ|X(x) as taking an expectation of Z|X(x) under a uniform distribution Q[X]. Under that uniform distribution, ∑ifi(Xi) is a sum of independent random variables, so let's wave our hands just a little and assume that sum is approximately normal. Then, modulo an easy to calculate constant, our problem is to compute
E[e12(μ+η)TS−1(μ+η)]
where η is normal, with mean and variance matching the mean and variance of ∑ifi(Xi) under the uniform distribution Q (which is easy to compute).
That expectation is a gaussian integral, so we can compute it exactly, and it simplifies somewhat with a little algebra. Problem is, it doesn't always converge! If the variance of η is greater (along any direction) than S, then e12(μ+η)TS−1(μ+η) grows faster than probability density falls off along that direction, so the integral blows up to infinity. In that case, our assumption of normality probably still works fine in the middle of the distribution, but the value of Z is dominated by the tails.
Currently, my working solution is to set Z to infinity in the tail-dominated region, and then a maximum likelihood search for f values avoids that region. But I don't have a good way to check how bad the error in the calculation is getting. (I can see that the optimizer isn't going all the way to the edge of the non-tail-dominated region, so that's a very good sign.)
It would be a lot nicer to either have an argument that maximum likelihood f values won't end up in the tail-dominated region, or an efficient method to calculate Z in all cases.
If you want to play with this numerically, I also set S=I and μ=0, which can be done without loss of generality (except when S is zero or infinite along some direction) by absorbing them into f.
Haven't been using that one, but I expect it would have very different results than the dataset we are using. That one would test very different things than we're currently trying to get feedback on; there's a lot more near-deterministic known structure in that one IIRC.