Transformers excel over RNNs/LSTMs by processing input sequences in parallel, dramatically improving training efficiency and enabling the use of larger datasets and models. RNNs/LSTMs' sequential nature limits parallelization, leading to slower computation and inference times.