Alternative Loss Function in Evaluation of Transformer Models