Training an energy-based model is made genuinely difficult specifically by that same energy function's own typically intractable normalizing partition function Z, which in principle requires integrating over the entire, generally infinite space of all possible data points, motivating specific approximate training techniques like contrastive divergence or score matching that cleverly manage to altogether avoid ever needing to directly compute that same intractable normalizing constant. This intractable-normalizing-constant challenge is the central specific practical difficulty that essentially all energy-based-model training research has had to directly address and work carefully and cleverly around.