To optimize such an objective, we apply the EM algorithm in the same fashion as is used in a generative approach.
we iteratively optimize Q(λ) = y p λ g (y|x, v) log p λ (y, v|x) where λ g denotes the model estimated from the previous iteration.