Skip to main content

向 PDF 提问,依据直接回到原文

上传论文 PDF 并提问,回答附带引用,依据段落会在 PDF 中高亮标出。图表解释、翻译、引用预览和摘要也都在 PDF 旁边查看。

无需绑定信用卡 · 提供免费方案

全球学生与研究者都在使用

Emory University
UT Austin
Texas A&M
Seoul National University
University of Tokyo
Stanford University
University of Cambridge
UCL
Emory University
UT Austin
Texas A&M
Seoul National University
University of Tokyo
Stanford University
University of Cambridge
UCL
Emory University
UT Austin
Texas A&M
Seoul National University
University of Tokyo
Stanford University
University of Cambridge
UCL
Emory University
UT Austin
Texas A&M
Seoul National University
University of Tokyo
Stanford University
University of Cambridge
UCL

向 PDF 提问,在原文中核对回答依据

上传 PDF 并就这篇论文提问,回答会附带引用。点击“查看原文”即可打开 PDF,依据段落以高亮标出,一眼看清回答出自论文的哪一段。也可以在 PDF 中拖选文字,发送解释、翻译或提问。

attention-is-all-you-need.pdf

Attention Is All You Need

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

Abstract

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. 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.

1 Introduction

Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5].

Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states, as a function of the previous hidden state and the input for that position. This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.

2 Background

3 Model Architecture

SoftmaxLinear
N×
Feed ForwardMulti-Head Attention
Feed ForwardMulti-Head AttentionMasked Multi-Head Attention
N×
InputsOutputs (shifted right)

Figure 1: The Transformer - model architecture.

3.1 Encoder and Decoder Stacks

3.2 Attention

1/ 15
AI Chat

上传 PDF 开始对话

文献库开启
起草、搜索、审阅,尽管开口

点一下图表就能得到解释

把鼠标移到 PDF 中的图或表上,点击“解释此图”,裁出的图和所在整页会发送到旁边的聊天,结合正文语境解释这张图表达了什么。

Attention Is All You Need

Attention Is All You Need

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

Abstract

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. 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.

1 Introduction

Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5].

Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states, as a function of the previous hidden state and the input for that position. This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.

2 Background

3 Model Architecture

SoftmaxLinear
N×
Feed ForwardMulti-Head Attention
Feed ForwardMulti-Head AttentionMasked Multi-Head Attention
N×
InputsOutputs (shifted right)

Figure 1: The Transformer - model architecture.

3.1 Encoder and Decoder Stacks

3.2 Attention

3/ 15
AI Chat
Vaswani et al., 2017

这篇论文为什么去掉循环结构、只用注意力?

作者认为,循环模型需要按位置依次计算,导致单个训练样本内部无法并行 (Vaswani et al., 2017)。因此 Transformer 去掉了循环和卷积,只依靠注意力,作者报告其更易并行、训练时间也大幅缩短 (Vaswani et al., 2017)。

V1 个来源APA (7th ed.)
文献库开启
起草、搜索、审阅,尽管开口

翻译、参考文献和摘要都在 PDF 旁边

翻译有两种:保留版式翻译按原页面的样子填入译文,页面翻译则逐页以译文阅读。两者都与原文并排、跟随同一页。把鼠标移到正文的引用编号上会弹出该参考文献的论文卡片,点击“总结”则由旁边的聊天快速概括整篇论文。

Attention Is All You Need

Attention Is All You Need

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

Abstract

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks that include an encoder and a decoder. 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.

1 Introduction

Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5].

Recurrent models typically factor computation along the symbol positions of the input and output sequences. Aligning the positions to steps in computation time, they generate a sequence of hidden states, as a function of the previous hidden state and the input for that position. This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.

2 Background

3 Model Architecture

SoftmaxLinear
N×
Feed ForwardMulti-Head Attention
Feed ForwardMulti-Head AttentionMasked Multi-Head Attention
N×
InputsOutputs (shifted right)

Figure 1: The Transformer - model architecture.

3.1 Encoder and Decoder Stacks

3.2 Attention

1/ 15
AI Chat

请解释《Attention Is All You Need》第 3 页的这张图。已附上这张图和它所在的整页。

图 1 是 Transformer 的整体结构。左侧编码器堆叠 N=6 个相同的层,每层包含多头自注意力和逐位置前馈网络。右侧解码器使用只看前面位置的掩码自注意力,并多一层关注编码器输出的注意力,最后经 Linear 和 Softmax 给出下一个词元的概率。

文献库开启
起草、搜索、审阅,尽管开口

工作原理

  1. 01

    上传 PDF

    在首页的论文分析标签页或聊天中的回形针按钮上传 PDF。保存在文献库中的论文也能直接打开。

  2. 02

    提问与阅读

    在旁边的聊天中提问,或点击“解释此图”“翻译”“总结”。

  3. 03

    回到原文核对

    点击回答引用中的“查看原文”,查看 PDF 中高亮的依据段落。

FAQ

常见问题

关于此功能的常见问题

你上传的论文 PDF 和保存在文献库中的论文。扫描版 PDF 会通过 OCR 识别文字,用于提问和摘要。保留版式翻译和页面翻译仅适用于包含文字的 PDF。

用一份 PDF,开始论文分析

无需绑定信用卡 · 提供免费方案