Probabilistic Local Structure Models