sentence1: neural networks relying entirely on attention mechanisms have been proposed as an alternative to overcome the limitations of recurrent neural networks , with comparable or improved accuracy on several language processing tasks .
sentence2: recently , neural networks based on a self-attention mechanism have become popular in the field of natural language processing , as a result of their significant performance improvement over rnn-based methods .