The probability is computed by a softmax function: To jointly supervise the classification and attention, we introduce a soft constraint method that is employed by other tasks with supervised attention .
it is defined as follows: where the classification loss function is cross entropy.