Difference between revisions of "Attention"

From
Jump to: navigation, search
Line 5: Line 5:
 
|description=Helpful resources for your journey with artificial intelligence; videos, articles, techniques, courses, profiles, and tools  
 
|description=Helpful resources for your journey with artificial intelligence; videos, articles, techniques, courses, profiles, and tools  
 
}}
 
}}
[http://www.youtube.com/results?search_query=attention+model+Memory+Networks+deep+learning+model YouTube search...]
+
[http://www.youtube.com/results?search_query=attention+model+deep+learning+model YouTube search...]
[http://www.google.com/search?q=attention+model+Memory+Networks+deep+machine+learning+ML ...Google search]
+
[http://www.google.com/search?q=attention+model+deep+machine+learning+ML ...Google search]
  
 +
* [[Memory Networks]]
 
* [[Transformer]]s
 
* [[Transformer]]s
 
* [[Sequence to Sequence (Seq2Seq)]]
 
* [[Sequence to Sequence (Seq2Seq)]]
Line 28: Line 29:
  
 
<youtube>omHLeV1aicw</youtube>
 
<youtube>omHLeV1aicw</youtube>
<youtube>ZwvWY9Yy76Q</youtube>
 
<youtube>BN7Kp0JD04o</youtube>
 
<youtube>S6u2KMKBkaU</youtube>
 
<youtube>O6q-_KrTZoo</youtube>
 
<youtube>5ekMog_nhaQ</youtube>
 
  
 
== Attention in Neural Networks ==
 
== Attention in Neural Networks ==
Line 45: Line 41:
  
 
<youtube>iDulhoQ2pro</youtube>
 
<youtube>iDulhoQ2pro</youtube>
 
http://skymind.ai/images/wiki/memory-network.png
 
  
  

Revision as of 07:35, 30 June 2019

YouTube search... ...Google search

Attention mechanisms in neural networks are about memory access. That’s the first thing to remember about attention: it’s something of a misnomer.

Attention networks are a kind of short-term memory that allocates attention over input features they have recently seen. Attention mechanisms are components of memory networks, which focus their attention on external memory storage rather than a sequence of hidden states in a Recurrent Neural Networks (RNN). Memory networks are a little different, but not too. They work with external data storage, and they are useful for, say, mapping questions as input to answers stored in that external memory. That external data storage acts as an embedding that the attention mechanism can alter, writing to the memory what it learns, and reading from it to make a prediction. While the hidden states of a recurrent neural network are a sequence of embeddings, memory is an accumulation of those embeddings (imagine performing max pooling on all your hidden states – that would be like memory). A Beginner's Guide to Attention Mechanisms and Memory Networks | Skymind

3 ways of Attention:

  1. Autoencoder (AE) / Encoder-Decoder
  2. Encoder Self-Attention
  3. MaskedDecoder Self-Attention

attention_mechanism.png

Attention in Neural Networks

Attention Is All You Need

The dominant sequence transduction models are based on complex Recurrent Neural Network (RNN)) or (Deep) Convolutional Neural Network (DCNN/CNN) in an encoder-decoder (Autoencoder (AE) / 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. Attention Is All You Need | A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A.N. Gomez, L. Kaiser, and I. Polosukhin - Google


Making decisions about where to send information

Making decisions about where to send information. An AI Pioneer Explains The Evolution Of Neural Networks | Nichokas Thompson - Wired