Efficient high-dimensional maximum entropy modeling via symmetric partition functions