HackerPapers

arXiv:1706.03762cs.CL

Attention Is All You Need

Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin

Abstract

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data.

arXiv comments
15 pages, 5 figures
Journal reference
DOI
Subjects
cs.CLComputation and Language cs.LGMachine Learning

On Hacker News

Linked by 101 identifiable commenters in 108 comments across 105 threads, from Jun 2017 to Sep 2026. Found in 21 HN submissions from Jun 2017 to Jul 2025. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments105 threads

  1. The AI Race Just Got Awkward 1 comment
    • >The new game in town is adopting Chinese labs’ advances. Note how I call this adoption instead of the more vitriol-infused “stealing” that Anthropic tends to use. I mean, there's a pretty big difference between labs publishing their research openly and a competitor utilizing it…

      nater5000View on HNParent context

  2. Attention is all you have 1 comment
    • Same, and I thought it's a clever play on words on the classic "Attention is all you need" - https://arxiv.org/abs/1706.03762 - which led us to what we have now

      zsergeView on HNParent context

    • I'm sorry, but I'm not sure what works best for a beginner. I started my PhD when the original Transformers paper [1] had just been released. I had no background in NLP whatsoever and used the original paper to write a Transformer and the full training pipeline from scratch…

      nsagentView on HNParent context

    • https://colah.github.io/posts/2015-08-Understanding-LSTMs/ https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436... https://papers.nips.cc/paper_files/paper/2012/file/c399862d3... https://arxiv.org/pdf/1512.03385 https://arxiv.org/pdf/1511.07122…

      gooobView on HNParent context

    • No need stupid moving texts. CS231n: Convolutional Neural Networks for Visual Recognition - https://cs231n.github.io/ The Unreasonable Effectiveness of Recurrent Neural Networks - https://karpathy.github.io/2015/05/21/rnn-effectiveness/ Understanding LSTM Networks…

      cute_boiView on HNParent context

  3. ArXiv's Next Chapter 1 comment
    • https://www.alphaxiv.org/ is a nice place to browse, search for, and read ArXiv papers which have optional AI summaries and chat. If you like one paper, you can get a list of similar papers. To view a specific paper, just take original link and change "arxiv" --> "alphaxiv". For…

      KludgeShySirView on HNParent context

    • There's actually eight authors of that paper, if ChatGPT is accurate: - Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones and Lukasz Kaiser stayed on at Google - Aidan N. Gomez became a researcher - Illia Polosukhin co-founded https://near.ai…

      benoauView on HNParent context

    • Below is the "Attention is all you need" paper. Transformers and their attention mechanism was the major breakthrough for modern LLMs. ML has been around for a long time, I'd suggest joining kaggle or something and learn by doing. You'll retain more and realize how broad the…

      lyfeninjaView on HNParent context

    • I built udoc because most document extraction tools I've used require significant dependencies, only handle one format, or have restrictive licenses. I wanted a single binary that reads PDFs, Office docs (including legacy .doc/.xls/.ppt), ODF, and RTF — with no external parsers…

      newelhView on HNParent context

  4. Claude for Creative Work 1 comment
    • The transformer paper was 9 years ago. 9 years between barely translating alright between two very closely related languages (English and French, huge fraction of shared words because of William the conqueror and cultural proximity etc etc) and what we have now. The thing is…

      make3View on HNParent context

  5. The Moat or the Commons 1 comment
    • > Superior architectures will leak pretty quickly via engineers. I agree with the outcome of your premise (i.e., openness), but for different reasons: First, isn't it the case that these bleeding edge 'newfangled' LLMs are basically variations on the same core ideas from…

      ninjagooView on HNParent context

    • Interestingly, the person at Microsoft states in a reply that even most of them have to pick this up in their spare time. Judging from other replies, it seems that there are quite some differences in how companies approach this. What I meant with "menial coding" is those jobs…

      smokelView on HNParent context

    • No particular order but; 1. Transformers I think they need to be looked into more. They just work too well. I feel like they have a secret within that is yet to be known. [1] https://arxiv.org/abs/1706.03762 2. The 2016 Noble Prize in Medicine Autophagy has such interesting…

      max_View on HNParent context

    • LLMs were -in part- designed as translation tools. It's one thing they do really really well. https://arxiv.org/html/1706.03762v7 (Attention is all you need) "Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable…

      Kim_BruningView on HNParent context

  6. How will OpenAI compete? 1 comment
    • > i'm just so surprised they'd use chatgpt to do this, when it's quite as easily (and perhaps faster) to use google translate. https://arxiv.org/abs/1706.03762

      rrr_oh_manView on HNParent context

    • Hi, I'm not on the t5 Gemma team but work on gemma in general. Encoder Decoder comes from the original transformers implementation way back in 2017. If you look at figure 1 you'll see what the first transformer ever looked like. Since that time different implementations of…

      canyon289View on HNParent context

  7. LLMs can get "brain rot" 1 comment
    • In case anyone missed the reference: https://arxiv.org/abs/1706.03762 > (...) We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.

      dormentoView on HNParent context

    • > You're missing the point. In the past bad writing was just bad writing, and it was typically easy to detect. If AI generated text were well written, would it matter to you? Is it bad to use Grammarly? I don't see anything inherently wrong with using AI tools to write, as long…

      hodgesrmView on HNParent context

    • For those who don't get the reference. It's googles breakthrough paper on LLM's. https://arxiv.org/abs/1706.03762

      nadermxView on HNParent context

    • This looks great. Just fyi this is also possible via alphaxiv's assistant. Navigate to a paper, click tools -> assistant. [0] https://www.alphaxiv.org/abs/1706.03762

      meander_waterView on HNParent context

  8. Claude Code is all you need 1 comment
    • > do you remember "natural language processing"? What, ehm, happened to it There’s this paper[1] you should read, is sparked an entire new AI dawn, it might answer your question 1. https://arxiv.org/abs/1706.03762

      jpc0View on HNParent context

  9. Graphical Linear Algebra 1 comment
    • Generalized Transformers from Applicative Functors >Transformers are a machine-learning model at the foundation of many state-of-the-art systems in modern AI, originally proposed in [arXiv:1706.03762]. In this post, we are going to build a generalization of Transformer models…

      Xmd5aView on HNParent context

  10. Reinforcement Pre-Training 1 comment
    • The title of this paper is a reference to a previous paper titled "Attention Is All You Need"[0][1]. This seminal work described the transformer model that is the basis for almost all LLMs, and is almost certainly the most cited paper on AI even though it was only published in…

      tankenmateView on HNParent context

  11. S1: The $6 R1 Competitor? 1 comment
    • It's really a pity that they do this now. Some of their older papers had actually quite some valuable information, comments, discussions, thoughts, even commented out sections, figures, tables in it. It gave a much better view on how the paper was written over time, or how even…

      albertzeyerView on HNParent context

    • This is a faithful reproduction of the original Transformer paper [1]. Except, these days we use trainable parameters for positional embedding. The paper used a static calculation for positional embedding using sine and cosine. Figure 1 in the paper can be seen implemented in…

      leopoldjView on HNParent context

    • The abstract https://arxiv.org/abs/1706.03762 explains it well: "The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through…

      yorwbaView on HNParent context

    • Here are the folks who contributed to the "Attention is all you need" paper [1] which changed the world as we know it, and the countries they came from. I rest my case. Ashish Vaswani: India Noam Shazeer: USA Niki Parmar: India Jakob Uszkoreit: Germany Llion Jones: USA Aidan…

      breadwinnerView on HNParent context

    • US is an economic powerhouse due to land/population sizes, but if you look at attention is all you need paper (for example): https://arxiv.org/abs/1706.03762 majority of it is imported talent. It's like saying that because Apple is paying a Chinese factory to build phones that…

      fennecfoxyView on HNParent context

  12. Darwin Machines 1 comment
    • The short answer as to why capsule networks have "fallen out of fashion" is... Transformers. Transformers came out at roughly the same time[a] and have proven to be great at... pretty much everything. They just work. Since then, most AI research money, effort, and compute has…

      cs702View on HNParent context

    • I gave a talk on using Google BERT for financial services problems at a machine learning conference in early 2019. During my preparation, this was the only resource on transformers I could find that was even remotely understandable to me. I had a lot of trouble understand what…

      ryan-duveView on HNParent context

    • Nothing will work on all PDFs. A PDF could order its contents randomly letter by letter and then just position them right. They're both using LaTeXML v0.8.8, so both will output the same HTML. Example: https://ar5iv.org/abs/1706.03762 https://arxiv.org/html/1706.03762v7

      yencabulatorView on HNParent context

    • a backup just in case https://nlp.seas.harvard.edu/annotated-transformer/ https://scottaaronson.blog/?p=762 https://karpathy.github.io/2015/05/21/rnn-effectiveness/ https://colah.github.io/posts/2015-08-Understanding-LSTMs/ https://arxiv.org/pdf/1409.2329.pdf…

      is_trueView on HNParent context

Showing 40 of 105 threads. Download the full data to see all.

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.