\mathcal{L}(\theta) = \mathbb{E}_{x \sim \mathcal{D}}[\ell(x)]