For discriminative training, we use a max-margin framework for learning (or fine-tuning) parameters θ.
a scoring function ϕ(•, •; θ) is defined to measure the similarity between the corresponding representations of questions and answers.