The updated objective function by domain weighting (J dw ) can be estimated as, 3.2.1 Batch weighting A straightforward domain weighting implementation is to modify the ratio between in-domain and out-of-domain data in each NMT mini-batch.
we can increase the in-domain weight by increasing the number of in-domain sentences included in a mini-batch.