KolmoPDF Solutions · 日本

Solutions

研究室 · 論文紹介

来週の輪講、英語論文がまだ読めていないとき

輪講の当番は、英語PDFを開いたまま深夜までスクロールすることではない。数式が残った対訳ノートを先に作り、それからいつものAIにレジュメとスライドを頼む。

  1. 01

    英語の論文PDFを用意する

    arXivでも出版社版でもよい。二段組・数式・図表がある本命の一本を選ぶ。

  2. 02

    対訳のMarkdownにする

    KolmoPDFでレイアウトを保ったまま日英を並べる。ここが唯一、変換ツールが必要な段。

  3. 03

    NotebookLMやChatGPTに渡す

    できたノートから輪講用のレジュメ、質問想定、スライド構成を出す。

原稿 PDF

ノート / 対訳

Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works.


適切な帰属表示が行われる場合、Googleは本論文の表および図を、ジャーナリズムまたは学術的な作品での使用に限り複製することを許可します。


Attention Is All You Need

Ashish Vaswani* Google Brain avaswani@google.com

Llion Jones* Google Research llion@google.com

Noam Shazeer^{*} Google Brain noam@google.com

Aidan N. Gomez  ^{*\;\dagger} University of Toronto aidan@cs.toronto.edu


Aidan N. Gomez  ^{*\;\dagger} トロント大学 aidan@cs.toronto.edu


Niki Parmar^* Google Research nikip@google.com


ニキ・パルマー^* Google Research nikip@google.com


Illia Polosukhin  ^{* \; \ddagger}

illia.polosukhin@gmail.com


イリア・ポロスクヒン  ^{* \; \ddagger}

illia.polosukhin@gmail.com


Łukasz Kaiser* Google Brain lukaszkaiser@google.com

Abstract


要約


Jakob Uszkoreit^{*} Google Research usz@google.com

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. 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.


主流のシーケンス変換モデルは、エンコーダとデコーダを含む複雑な再帰型または畳み込みニューラルネットワークに基づいている。最も性能の高いモデルはさらに、エンコーダとデコーダをアテンション機構で接続している。我々は、再帰や畳み込みを完全に排除し、アテンション機構のみに基づく新しい単純なネットワークアーキテクチャであるTransformerを提案する。2つの機械翻訳タスクにおける実験により、これらのモデルが品質において優れており、並列化が容易で、トレーニングに要する時間が大幅に少ないことが示された。本モデルは、WMT 2014の英語からドイツ語への翻訳タスクでBLEUスコア28.4を達成し、アンサンブルを含む既存の最良結果を2 BLEU以上上回った。また、WMT 2014の英語からフランス語への翻訳タスクでは、8つのGPU上で3.5日間トレーニングした後に、単一モデルとして新たなstate-of-the-artとなるBLEUスコア41.8を記録し、これは文献にある最良モデルのトレーニングコストのごく一部であった。さらに、Transformerが大規模および限られたトレーニングデータの下で英語の統語木解析タスクにも成功적으로適用されることから、他のタスクへの汎化性が高いことを示す。


arXiv:1706.03762v7 [cs.CL] 2 Aug 2023

^{*}Equal contribution. Listing order is random. Jakob proposed replacing RNNs with self-attention and started the effort to evaluate this idea. Ashish, with Illia, designed and implemented the first Transformer models and has been crucially involved in every aspect of this work. Noam proposed scaled dot-product attention, multi-head attention and the parameter-free position representation and became the other person involved in nearly every detail. Niki designed, implemented, tuned and evaluated countless model variants in our original codebase and tensor2tensor. Llion also experimented with novel model variants, was responsible for our initial codebase, and efficient inference and visualizations. Lukasz and Aidan spent countless long days designing various parts of and implementing tensor2tensor, replacing our earlier codebase, greatly improving results and massively accelerating our research.

^{\dagger}Work performed while at Google Brain.

^{\ddagger}Work performed while at Google Research.


^{*}同等貢献。リストの順序はランダムです。JakobはRNNを自己注意機構に置き換えることを提案し、このアイデアの評価に取り組み始めました。AshishはIlliaと共に最初のTransformerモデルの設計と実装を行い、この作業のあらゆる側面に重要な役割を果たしました。Noamはスケーリングされたドット積アテンション、マルチヘッド・アテンション、およびパラメータなしの位置表現を提案し、ほぼすべての詳細に関与したもう一人の人物となりました。Nikiは、元のコードベースやtensor2tensorにおいて、数えきれないほどのモデル変種の設計、実装、チューニング、評価を行いました。Llionもまた、新規なモデル変種の実験を行い、初期のコードベース、効率的な推論、可視化を担当しました。LukaszとAidanは、tensor2tensorの様々な部分の設計と実装に多数の長時間を費やし、以前のコードベースを置き換えることで結果を大幅に改善し、研究を劇的に加速させました。

^{\dagger}Google Brain在籍中に実施した研究。

^{\ddagger}Google Research在籍中に実施した研究。


1 Introduction


1 序論


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]. Numerous efforts have since continued to push the boundaries of recurrent language models and encoder-decoder architectures [38, 24, 15].

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 hth_t, as a function of the previous hidden state ht1h_{t-1} and the input for position tt. This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples. Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains.

Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19]. In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network.

In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output. The Transformer allows for significantly more parallelization and can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs.


再帰型ニューラルネットワーク、特に長短期記憶 [13] やゲート付き再帰型ニューラルネットワーク [7] は、言語モデリングや機械翻訳などの系列モデル化および変換問題において最先端のアプローチとして確固たる地位を築いています [35, 2, 5]。その後、再帰型言語モデルおよびエンコーダ・デコーダアーキテクチャの限界を引き上げるための多くの取り組みが続けられてきました [38, 24, 15]。

再帰型モデルは通常、入力および出力系列の記号位置に沿って計算を分割します。計算時間のステップに位置を対応させることで、以前の隠れ状態 ht1h_{t-1} と位置 tt の入力を関数として用い、隠れ状態の系列 hth_t を生成します。この本質的に逐次的な性質により、トレーニング例内での並列化が不可能になり、系列長が長くなるにつれてこれが重要になります。なぜなら、メモリ制約が例間のバッチ処理を制限するためです。最近の研究では、因子分解トリック [21] および条件付き計算 [32] を通じて計算効率を大幅に向上させるとともに、後者の場合においてはモデル性能も改善しています。しかし、逐次計算という根本的な制約は依然として残っています。

注意機構(attention mechanisms)は、さまざまなタスクにおける魅力的な系列モデル化および変換モデルの不可欠な部分となっており、入力または出力系列内での距離に関係なく依存関係をモデル化することを可能にしています [2, 19]。ただし、ごく一部のケース [27] を除き、これらの注意機構は再帰型ネットワークと組み合わせて使用されています。

本研究では、再帰を避け、代わりに注意機構のみを用いて入力と出力の間にグローバルな依存関係を抽出するモデルアーキテクチャである「Transformer」を提案します。Transformer は著しく高い並列化を可能にし、8つのP100 GPU上でわずか12時間トレーニングするだけで、翻訳品質において新たな最先端を達成することができます。


2 Background


2 背景


The goal of reducing sequential computation also forms the foundation of the Extended Neural GPU [16], ByteNet [18] and ConvS2S [9], all of which use convolutional neural networks as basic building block, computing hidden representations in parallel for all input and output positions. In these models, the number of operations required to relate signals from two arbitrary input or output positions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet. This makes it more difficult to learn dependencies between distant positions [12]. In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2.

Self-attention, sometimes called intra-attention is an attention mechanism relating different positions of a single sequence in order to compute a representation of the sequence. Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22].

End-to-end memory networks are based on a recurrent attention mechanism instead of sequence-aligned recurrence and have been shown to perform well on simple-language question answering and language modeling tasks [34].

To the best of our knowledge, however, the Transformer is the first transduction model relying entirely on self-attention to compute representations of its input and output without using sequence-aligned RNNs or convolution. In the following sections, we will describe the Transformer, motivate self-attention and discuss its advantages over models such as [17, 18] and [9].


逐次計算の削減という目標は、拡張ニューラルGPU [16]、ByteNet [18]、ConvS2S [9] の基盤を形成しており、これらはすべて畳み込みニューラルネットワークを基本的な構成要素として用い、すべての入力および出力位置に対して隠れ表現を並列に計算する。これらのモデルでは、任意の2つの入力または出力位置間の信号を関連付けるために必要な操作数は、位置間の距離とともに増加し、ConvS2Sでは線形に、ByteNetでは対数的に増加する。これは、遠く離れた位置間の依存関係を学習することをより困難にする [12]。Transformerでは、アテンション重み付けされた位置の平均化により有効解像度が低下するという代償を払うものの、この操作数が一定数にまで削減される。この効果については、3.2節で説明するマルチヘッド・アテンションによって相殺する。

自己アテンション(intra-attentionとも呼ばれる)は、単一シーケンスの異なる位置同士を関連付けてそのシーケンスの表現を計算するアテンション機構である。自己アテンションは、読解、要約、テキストの含意関係、タスク非依存の文表現の学習など、さまざまなタスクで成功的に使用されてきた [4, 27, 28, 22]。

エンドツーエンドのメモリネットワークは、シーケンス整列型の再帰ではなく再帰的アテンション機構に基づいており、単純な言語による質問応答や言語モデリングのタスクで良好なパフォーマンスを示している [34]。

しかしながら、我々の知る限り、Transformerは初めて、シーケンス整列型のRNNや畳み込みを用いることなく、自己アテンションのみを使用して入出力の表現を計算するトランスダクションモデルである。次のセクションでは、Transformerについて説明し、自己アテンションの動機づけを行い、[17, 18] および [9] などのモデルに対する利点について議論する。


3 Model Architecture


3 モデルアーキテクチャ


Most competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations (x1,...,xn)(x_1, ..., x_n) to a sequence of continuous representations z=(z1,...,zn)\mathbf{z} = (z_1, ..., z_n). Given z\mathbf{z}, the decoder then generates an output sequence (y1,...,ym)(y_1, ..., y_m) of symbols one element at a time. At each step the model is auto-regressive [10], consuming the previously generated symbols as additional input when generating the next.


最も競争力のあるニューラル系列変換モデルは、エンコーダ・デコーダ構造を持っている [5, 2, 35]。ここで、エンコーダは記号表現の入力系列 (x1,...,xn)(x_1, ..., x_n) を連続的な表現の系列 z=(z1,...,zn)\mathbf{z} = (z_1, ..., z_n) にマッピングする。\math记号\math记号が与えられたとき、デコーダは次に生成される記号を1つずつ消費しながら、出力系列 (y1,...,ym)(y_1, ..., y_m) を逐次生成する。各ステップにおいて、モデルは自己回帰的 [10] であり、次の記号を生成する際に、以前に生成された記号を追加の入力として使用する。


<img src="https://www.kolmopdf.com/images/sk-72e2d70ad175490c80c14b553bdd1e3a/572/3-1.png" style="zoom:70%; display: block; margin: 0 auto;" />

Figure 1: The Transformer - model architecture.


図1: Transformer - モデルアーキテクチャ


The Transformer follows this overall architecture using stacked self-attention and point-wise, fully connected layers for both the encoder and decoder, shown in the left and right halves of Figure 1, respectively.


Transformerは、エンコーダとデコーダの両方にスタックされた自己注意機構およびポイントワイズ・全結合層を用いたこの全体アーキテクチャを採用しており、それぞれ図1の左半分と右半分に示されています。


3.1 Encoder and Decoder Stacks


3.1 エンコーダとデコーダのスタック


Encoder: The encoder is composed of a stack of N=6N = 6 identical layers. Each layer has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a simple, position-wise fully connected feed-forward network. We employ a residual connection [11] around each of the two sub-layers, followed by layer normalization [1]. That is, the output of each sub-layer is LayerNorm(x+Sublayer(x))\text{LayerNorm}(x + \text{Sublayer}(x)), where Sublayer(x)\text{Sublayer}(x) is the function implemented by the sub-layer itself. To facilitate these residual connections, all sub-layers in the model, as well as the embedding layers, produce outputs of dimension dmodel=512d_{\text{model}} = 512.

Decoder: The decoder is also composed of a stack of N=6N = 6 identical layers. In addition to the two sub-layers in each encoder layer, the decoder inserts a third sub-layer, which performs multi-head attention over the output of the encoder stack. Similar to the encoder, we employ residual connections around each of the sub-layers, followed by layer normalization. We also modify the self-attention sub-layer in the decoder stack to prevent positions from attending to subsequent positions. This masking, combined with fact that the output embeddings are offset by one position, ensures that the predictions for position ii can depend only on the known outputs at positions less than ii.


エンコーダ: エンコーダは、N=6N = 6 層の同一なレイヤーのスタックで構成されています。各レイヤーには2つのサブレイヤーがあります。1つ目はマルチヘッド自己注意機構であり、2つ目は単純な位置ごとの全結合順伝播ネットワークです。各サブレイヤーの周囲には残差接続 [11] を採用し、その後にレイヤー正規化 [1] を行います。つまり、各サブレイヤーの出力は LayerNorm(x+Sublayer(x))\text{LayerNorm}(x + \text{Sublayer}(x)) となります。ここで、Sublayer(x)\text{Sublayer}(x) はサブレイヤー自体が実装する関数です。これらの残差接続を容易にするため、モデル内のすべてのサブレイヤーおよび埋め込みレイヤーは、次元 dmodel=512d_{\text{model}} = 512 の出力を生成します。

デコーダ: デコーダもまた、N=6N = 6 層の同一なレイヤーのスタックで構成されています。エンコーダの各レイヤーにある2つのサブレイヤーに加えて、デコーダは3つ目のサブレイヤーを挿入し、これはエンコーダ・スタックの出力に対してマルチヘッド注意機構を実行します。エンコーダと同様に、各サブレイヤーの周囲に残差接続を採用し、その後にレイヤー正規化を行います。また、デコーダ・スタック内の自己注意サブレイヤーを変更し、ある位置がそれ以降の位置に注意を向けることを防ぎます。このマスク処理と、出力埋め込みが1つずれているという事実を組み合わせることで、位置 ii における予測は位置 ii より小さい既知の出力のみ依赖于することができます。


3.2 Attention

An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum


アテンション関数は、クエリとキー・バリューのペアのセットを出力にマッピングするものとして記述できる。ここで、クエリ、キー、バリュー、および出力はすべてベクトルである。出力は重み付き和として計算される


<img src="https://www.kolmopdf.com/images/sk-72e2d70ad175490c80c14b553bdd1e3a/572/4-3.png" style="zoom:70%; display: block; margin: 0 auto;" />

Figure 2: (left) Scaled Dot-Product Attention. (right) Multi-Head Attention consists of several attention layers running in parallel.


図2: (左) スケーリングされたドット積アテンション。(右) マルチヘッドアテンションは、複数のアテンションレイヤーが並列に動作する構成です。


of the values, where the weight assigned to each value is computed by a compatibility function of the query with the corresponding key.


の値であり、各値に割り当てられる重みは、クエリと対応するキーとの互換性関数によって計算される。


3.2.1 Scaled Dot-Product Attention


3.2.1 スケーリングされたドット積アテンション


We call our particular attention "Scaled Dot-Product Attention" (Figure 2). The input consists of queries and keys of dimension dkd_k, and values of dimension dvd_v. We compute the dot products of the query with all keys, divide each by dk\sqrt{d_k}, and apply a softmax function to obtain the weights on the values.

In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix QQ. The keys and values are also packed together into matrices KK and VV. We compute the matrix of outputs as:

Attention(Q,K,V)=softmax(QKTdk)V(1)\text{Attention}(Q, K, V) = \text{softmax}(\frac{QK^T}{\sqrt{d_k}})V \tag{1}

The two most commonly used attention functions are additive attention [2], and dot-product (multiplicative) attention. Dot-product attention is identical to our algorithm, except for the scaling factor of 1dk\frac{1}{\sqrt{d_k}}. Additive attention computes the compatibility function using a feed-forward network with a single hidden layer. While the two are similar in theoretical complexity, dot-product attention is much faster and more space-efficient in practice, since it can be implemented using highly optimized matrix multiplication code.

While for small values of dkd_k the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of dkd_k [3]. We suspect that for large values of dkd_k, the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients 4^{4}. To counteract this effect, we scale the dot products by 1dk\frac{1}{\sqrt{d_k}}.


我々の注目すべき点は「スケーリングされたドット積アテンション」(図2)です。入力は、次元 dkd_k のクエリとキー、および次元 dvd_v の値で構成されます。クエリとすべてのキーのドット積を計算し、それぞれを dk\sqrt{d_k} で除算してから、ソフトマックス関数を適用して値に対する重みを取得します。

実際には、一連のクエリに対して同時にアテンション関数を計算し、それらを行列 QQ にパックして格納します。キーと値もまた、行列 KKVV にパックして格納されます。出力の行列は以下のように計算されます。

Attention(Q,K,V)=softmax(QKTdk)V(1)\text{Attention}(Q, K, V) = \text{softmax}(\frac{QK^T}{\sqrt{d_k}})V \tag{1}

最も一般的に使用されるアテンション関数は、加算アテンション [2] とドット積(乗算)アテンションです。ドット積アテンションは、1dk\frac{1}{\sqrt{d_k}} というスケーリング係数を除けば、我々のアルゴリズムと同一です。加算アテンションは、単一の隠れ層を持つフィードフォワードネットワークを使用して適合性関数を計算します。理論的な計算量において両者は似ていますが、ドット積アテンションは高度に最適化された行列乗算コードを使用して実装できるため、実際にはるかに高速かつメモリ効率が優れています。

dkd_k が小さい場合、両者のメカニズムは同様の性能を示しますが、dkd_k が大きい場合、加算アテンションはスケーリングなしのドット積アテンションよりも優れた性能を発揮します [3]。我々は、dkd_k が大きい場合、ドット積の絶対値が大きくなり、ソフトマックス関数が極めて小さな勾配を持つ領域に押しやられるためだと推測しています 4^{4}。この効果を相殺するために、ドット積を 1dk\frac{1}{\sqrt{d_k}} によってスケーリングします。


3.2.2 Multi-Head Attention


3.2.2 マルチヘッドアテンション


Instead of performing a single attention function with dmodeld_{\text{model}}-dimensional keys, values and queries, we found it beneficial to linearly project the queries, keys and values hh times with different, learned linear projections to dkd_k, dkd_k and dvd_v dimensions, respectively. On each of these projected versions of queries, keys and values we then perform the attention function in parallel, yielding dvd_v-dimensional


dmodeld_{\text{model}} 次元のキー、バリュー、クエリに対して単一の注意関数を実行するのではなく、学習された異なる線形射影を用いてクエリ、キー、バリューをそれぞれ dkd_kdkd_kdvd_v 次元に hh 回線形射影することが有益であることがわかりました。その後、これらの射影されたクエリ、キー、バリューの各バージョンに対して注意関数を並列で実行し、dvd_v 次元の結果を得ます。


4^4To illustrate why the dot products get large, assume that the components of qq and kk are independent random variables with mean 0 and variance 1. Then their dot product, qk=i=1dkqikiq \cdot k = \sum_{i=1}^{d_k} q_i k_i, has mean 0 and variance dkd_k.


4^4ドット積が大きくなる理由を説明するために、qqkk の成分が平均0、分散1の独立な確率変数であると仮定する。このとき、それらのドット積 qk=i=1dkqikiq \cdot k = \sum_{i=1}^{d_k} q_i k_i は平均0、分散 dkd_k を持つ。


輪講がつらいのは、英語そのものより「原稿が壊れる」から

研究室の輪講は、来週の枠が先に決まる。論文紹介の当番表に名前が載った瞬間、読む時間より「スライドを埋めなければいけない時間」のほうが短くなる。

英語論文の読み方を解説したブログは多い。段落を要約せよ、Related Workは後回しにせよ、という助言は正しい。足りないのは、二段組のPDFをチャット欄に貼った瞬間に数式が崩れ、表がただの空白になる、という現場の失敗である。

輪講スライドが薄くなる理由の大半は、理解不足というより素材不足だ。Transformerの注意機構を口で説明するには、softmaxの式がノート上で生きていなければならない。DeepLのウェブ版に通すと、インライン数式が単語として壊れ、キャプションが段をまたいで混線する。その残骸をChatGPTに渡しても、輪講で使えるレジュメは出てこない。

やり方は単純化する。まず論文を、数式がLaTeXのまま残る対訳Markdownにする。そのうえで、普段使っているNotebookLMやChatGPTに「来週の輪講用に、貢献・方法・実験・想定質問」を頼む。パワポのデザインは研究室のテンプレートに合わせればよい。

論文紹介スライドまでの具体的な手順

1. 紹介する英語論文のPDFを決める。ページが多いときは、まず導入と方法と図表がある範囲で十分である。 2. KolmoPDFの翻訳に上げ、出力を対訳(原文と日本語)にする。数式・表・段組みを保持する設定のまま進める。 3. ダウンロードしたMarkdownをエディタで開き、自分が話す順に見出しを残す。輪講では「この論文が何を壊したか」が冒頭に必要である。 4. 同じファイルをNotebookLMのソースにするか、ChatGPTの長いコンテキストに貼る。指示は「研究室の輪講向け。数式はLaTeXのまま。スライドは12枚以内の構成だけ」。 5. 出力された構成を研究室のパワポに移す。図は原論文の図を使う。AIに図を描かせない。

英語論文がまだ読めていない週でも、対訳ノートがあれば口頭の輪講は成立する。完全な和訳を暗記する必要はない。スライドに残すのは、問題設定、提案、実験の数字、限界、の四つで足りることが多い。

英語論文の読み方を、輪講の前処理として短くする

英語論文の読み方だけを独立した技術のように扱うと、輪講の締め切りに間に合わない。Abstractと結論を先に見る、図のキャプションを先に読む、という古典的な読み方はそのまま使える。ただしPDFビューアの中でハイライトするだけでは、翌日の論文紹介スライドに数字が残らない。

対訳Markdownにしておくと、検索できる。Attentionの定義、データセット名、比較手法の表を、輪講の朝に自分のノートから拾える。これが「読み方」の本体である。辞書で輪講の英訳を調べる段階は、もう終わっている。

研究室によっては論文紹介と呼ばず輪講と呼ぶ。中身は同じで、英語の一本を皆の前で説明する。ゼミ発表の枠に載せることもある。呼び方が違っても、先にノートを清潔にしてからAIに渡す順序は変わらない。

輪読会で論文が当たったとき(輪講との違い)

輪読は、本や長い資料を順番に読む会を指すことが多い。輪講・論文紹介は、多くの理工学研究室では「今週の英語論文を一人が説明する」枠である。検索では輪読のほうが量が大きいが、本ページの対象は後者である。

輪読会でたまたま英語論文の担当になった場合も、手順は流用できる。章ごとの対訳ノートを作り、会の前日に質問リストだけAIに出させる。読書会の進行表までは、このページの範囲ではない。

デモ:二段組の数式論文が対訳になるところ

下の比較は、公開論文 Attention Is All You Need の先頭数ページである。左が二段組の英語PDF、右が数式を残した対訳Markdown、さらに版面を保った翻訳PDFと左右対照PDFに切り替えられる。

DeepLやチャットにPDFを直接入れたときの崩れは、softmax周りの式とキャプションで起きやすい。輪講スライドに式を載せるなら、この段を飛ばさない。図・表の著作表示は原論文のクレジットに従う。

NotebookLMとChatGPTの使い分け

NotebookLMは、対訳Markdownをソースにしたあと「この輪講で聞かれそうな質問」を出すのに向く。ChatGPTは、スライドの見出し案と発表時間に合わせた削りに向く。どちらに渡す場合も、壊れたプレーンテキストを渡さないことが条件である。

パワポのテーマ、研究室ロゴ、指導教員が嫌うアニメーションは、人間が決める。AIは輪講の骨子まで。英語のまま残す用語(モデル名、データセット、指標)は、対訳ノート上で既に安定しているので、スライドで揺れない。

週の後半で輪講の順番が回ってきた人ほど、英語論文の読み方を一から勉強している暇はない。Abstract、図、方法、実験数字、限界、の順で対訳ノートに印を付ける。スライドの一枚目は「この論文が何を壊したか」だけにする。二枚目以降に式を載せる。パワポの装飾は最後である。

研究室の輪講は、失敗すると次の当番まで空気が残る。つぶやきやブログで「輪講 つらい」と出るのはそのせいだ。つらさの本体を、語学力の不足だけに還元しない。原稿が壊れていると、どんな語学力でもスライドは空洞になる。対訳してからAIに渡す、という一文を、輪講のチェックリストの先頭に置いてよい。

よくある質問

輪講スライドは何枚が適切ですか。

研究室によるが、12枚前後で貢献・方法・実験・限界が言えれば足りることが多い。枚数より、式と表が原文と一致しているかのほうが質問で問われる。

輪講のパワポに英語を残すべきですか。

モデル名と式は英語・LaTeXのままが安全。説明の地の文だけ日本語にする。対訳ノートがあれば、どちらをスライドに載せるか後から選べる。

英語論文がつらすぎて輪講が回ってきません。

全文を精読してから作り始めると間に合わない。図表と方法節を対訳し、レジュメを先に口に出せる形にする。精読は発表後に戻ればよい。

PDF翻訳だけで輪講は終わりますか。

終わらない。翻訳は前処理である。輪講の本体は、そのノートを使って自分の言葉で論文紹介をすること。AIに丸読みさせても質問に耐えない。

抄読会や症例発表と同じ手順ですか。

文献を対訳してからスライドにする流れは近い。抄読会は医学論文、症例発表は自分の検査PDF、と入力が違う。理工の輪講は本ページ。

英語論文を対訳する