Difference between revisions of "Sequence to Sequence (Seq2Seq)"

From
Jump to: navigation, search
m
m
Line 10: Line 10:
 
* [[Natural Language Processing (NLP)]]
 
* [[Natural Language Processing (NLP)]]
 
* [http://github.com/NVIDIA/OpenSeq2Seq Open Seq2Seq | NVIDIA]
 
* [http://github.com/NVIDIA/OpenSeq2Seq Open Seq2Seq | NVIDIA]
* Sequence to Sequence (Seq2Seq)  ----> [[Recurrent Neural Networks (RNN)]]  ----> [[Transformer]]
+
* Sequence to Sequence (Seq2Seq)  ----> [[Recurrent Neural Network (RNN)]]  ----> [[Transformer]]
 
* [[Autoencoder (AE) / Encoder-Decoder]]
 
* [[Autoencoder (AE) / Encoder-Decoder]]
 
* [[Assistants]]
 
* [[Assistants]]

Revision as of 16:36, 29 September 2020

YouTube search... ...Google search

a general-purpose encoder-decoder that can be used for machine translation, text summarization, conversational modeling, image captioning, interpreting dialects of software code, and more. The encoder processes each item in the input sequence, it compiles the information it captures into a vector (called the context). After processing the entire input sequence, the encoder sends the context over to the decoder, which begins producing the output sequence item by item. The context is a vector (an array of numbers, basically) in the case of machine translation. The encoder and decoder tend to both be Recurrent Neural Network (RNN). Visualizing A Neural Machine Translation Model (Mechanics of Seq2seq Models With Attention) | Jay Alammar

nmt-model-fast.gif

Seq2seq | GitHub

We essentially have two different recurrent neural networks tied together here — the encoder RNN (bottom left boxes) listens to the input tokens until it gets a special <DONE> token, and then the decoder RNN (top right boxes) takes over and starts generating tokens, also finishing with its own <DONE> token. The encoder RNN evolves its internal state (depicted by light blue changing to dark blue while the English sentence tokens come in), and then once the <DONE> token arrives, we take the final encoder state (the dark blue box) and pass it, unchanged and repeatedly, into the decoder RNN along with every single generated German token. The decoder RNN also has its own dynamic internal state, going from light red to dark red. Voila! Variable-length input, variable-length output, from a fixed-size architecture. seq2seq: the clown car of deep learning | Dev Nag - Medium


1*yG2htcHJF9h0sohcZbBEkg.png

Retrieval Augmented Generation (RAG)

Building a model that researches and contextualizes is more challenging, but it's essential for future advancements. We recently made substantial progress in this realm with our Retrieval Augmented Generation (RAG) architecture, an end-to-end differentiable model that combines an information retrieval component (Facebook AI’s dense-passage retrieval system ) with a seq2seq generator (our Bidirectional and Auto-Regressive Transformers [BART] model). RAG can be fine-tuned on knowledge-intensive downstream tasks to achieve state-of-the-art results compared with even the largest pretrained seq2seq language models. And unlike these pretrained models, RAG’s internal knowledge can be easily altered or even supplemented on the fly, enabling researchers and engineers to control what RAG knows and doesn’t know without wasting time or compute power retraining the entire model.