A transformer is a deep-learning neural network architecture that transforms inputs into outputs while improving their performance and preciseness.