All the parameters (θ e , θ d , θ c ) are jointly optimized, with the objective of training the encoder to correctly predict the answer span, but also simultaneously fool the domain classifier.
the encoder learns to map text input into a feature space that is invariant to the switch of domains.