text: loss function, noise model