TL; DR : terjemahan dari pos Chaitanya Joshi " Transformers is Graph Neural Networks ": diagram, formula, ide, tautan penting. Diterbitkan dengan izin baik dari penulis.
Teman-teman Datacenter sering mengajukan pertanyaan yang sama: Grafik Neural Networks adalah ide bagus, tetapi apakah mereka memiliki kisah sukses yang nyata? Apakah mereka memiliki aplikasi praktis?
β Pinterest, Alibaba Twitter. : Transformer.
(Transformers). NLP- GNN-, , "" , .
β (representation learning).
NLP
, "" . () (latent/hidden) - . , . , (error/loss functions).
, (natural language processing; NLP), (recurrent neural networks; RNN) β , . RNN , . , RNN, .
, , RNN ( ) .
RNN NLP. : , , (attention mechanism; attention), . , β , "".
2017 , NLP β β RNN. , , !
, Yannic Kilcher.
. , β - β :
, β ( Query, Key Value). , . ! β RNN, .
, :
, softmax . , , , . .
(Multi-Head Attention)
- --- (dot product attention): . , "" (attention heads) () ( "" ):
β - "" , β , .
, "" " ", . .
""
Scale issues and the Feed-forward sub-layer
, - , , : . - (1), - " " , , . - (2), , "". . , (normalization layer).
(2) LayerNorm, . , --- (1).
, , : . , () , ReLU, , :
, , , . ! , LayerNorm . β , .
, !
:
"" , NLP- , . , ("") , (residual connections) "" "". .
GNN
NLP.
(GNN) (GCN) . (, , ). , . GNN (propagate) β β .
, , : , GNN, : "" .
GNN , :
β GNN, β (, , ReLU). β 
, , , / - β , .
, ?
, :
, , Graph Attention Network (GAT). , β β "" !
β , β
, , β , . GNN, (.. ) (.. ) , .
, GNN . β , NLP , .
, , , , , , β . GNN-. , GNN, .
?
, , , .
( , ) : , . TreeLSTM, , , /GNN NLP?
(long-term dependencies)?
: . , , , GNN . - .
NLP-, . , "" LSH (Locality-Sensitive Hashing) . .
, , GNN. , (Binary Partitioning) " ".
NLP- , , , . , β , , β - " ".
, , " ".
"" β GNN , ( , ) , GNN ? .
? ?
. , , - "" . , , .
"" GNN, GAT , MoNet (Gaussian kernels) . . "" ?
, GNN (, ) . " " !
- , ? Yann Dauphin (ConvNet). , , !
, , , , (learning rate schedule), "" (warmup strategy) (decay settings). , , β , β .
, , , .
DeepMind- , - ? " 16 000 "" (warmup), 500 000 "" (decay), 9 000 ".
, , , : , " " ?
" "?
, , (inductive bias), ?
, : The Illustrated Transformer The Annotated Transformer.
GNN : Arthur Szlam Attention/Memory Networks, GNN . - (position paper) DeepMind, β "" β . , , DGL. seq2seq "" "" GNN.
, , GNN NLP ( HuggingFace: Transformers).
Dan akhirnya, kami baru-baru ini menulis sebuah artikel di mana kami menerapkan transformer ke dataset sketsa QuickDraw . Coba lihat!
Tambahan
Pos juga telah diterjemahkan ke dalam bahasa Cina . Bergabunglah dengan diskusi di reddit dan di Twitter !
Terjemahan dari bahasa Inggris: Anton Alekseev
(laboratorium kecerdasan buatan, POMI RAS dinamai V.A. Steklov)
Untuk komentar yang berharga, penerjemah berterima kasih kepada Denis Kiryanovkirdin dan Mikhail Evtikhiev aspr_spb.