プリンキピア

第11章注意機構とTransformer

11.1.2. Summary11.1.2 まとめ

The attention mechanism allows us to aggregate data from many (key, value) pairs. So far our discussion was quite abstract, simply describing a way to pool data. We have not explained yet where those mysterious queries, keys, and values might arise from. Some intuition might help here: for instance, in a regression setting, the query might correspond to the location where the regression should be carried out. The keys are the locations where past data was observed and the values are the (regression) values themselves. This is the so-called Nadaraya–Watson estimator (Nadaraya, 1964, Watson, 1964) that we will be studying in the next section.
英語のヒント
注意機構により、多くの(キー、バリュー)の組からデータを集約できる。ここまでの議論はかなり抽象的で、データをプールする方法を述べただけだった。あの謎めいたクエリ、キー、バリューがどこから生じるのかはまだ説明していない。ここで直観が役に立つかもしれない。たとえば、回帰の設定では、クエリは回帰を行うべき位置に対応するかもしれない。キーは過去のデータが観測された位置であり、バリューは(回帰の)値そのものである。これは、次の節で学ぶ、いわゆるナダラヤ・ワトソン推定量(Nadaraya, 1964、Watson, 1964)である。
By design, the attention mechanism provides a differentiable means of control by which a neural network can select elements from a set and to construct an associated weighted sum over representations.
英語のヒント
設計上、注意機構は、ニューラルネットワークが集合から要素を選び、表現の上で関連する重みつきの和を組み立てられる、微分可能な制御の手段を与える。