Transformer-based domain adaptation