Fernando Silva
0 followers · 272 views
on the atlas — 42
- A (Long) Peek into Reinforcement Learning | Lil'Log11 savers
- CodaLab Worksheets5 savers
- The Promise of Hierarchical Reinforcement Learning3 savers
- Policy Gradient Algorithms | Lil'Log8 savers
- Recurrent Neural Networks Tutorial, Part 1 – Introduction to RNNs · Denny's Blog2 savers
- Should I Use Offline RL or Imitation Learning? – The Berkeley Artificial Intelligence Research Blog2 savers
- The Wild Project #182 | Shakira VS Piqué Velada 3, ¡¡Barça campeón!!, Jordi Wild anuncia una bomba - YouTube1 savers
- Transfer Learning1 savers
- Seq2seq and Attention2 savers
- Best Practices When Working With Docker for Machine Learning - neptune.ai1 savers
- A Complete Guide for Deploying ML Models in Docker - Analytics Vidhya1 savers
- The Illustrated Word2vec2 savers
- Word Embeddings1 savers
- A Survey of Text Games for Reinforcement Learning Informed by Natural Language | Transactions of the Association for Computational Linguistics | MIT Press1 savers
- Publications – Centre for Language Evolution1 savers
- [2210.11416] Scaling Instruction-Finetuned Language Models1 savers
- [2206.12765] Generalized Beliefs for Cooperative AI1 savers
- cs224u-2018-grounding.pdf1 savers
- Bayesian Bandits - optimizing click throughs with statistics - Chris Stucchio1 savers
- RL with Self-Supervised 3D1 savers
- SenseBERT: Driving Some Sense into BERT - ACL Anthology1 savers
- Inductive vs. Transductive Learning | by Vijini Mallawaarachchi | Towards Data Science1 savers
- Self-Labeled Techniques for Semi-Supervised Learning: Taxonomy, Software and Empirical Study | Soft Computing and Intelligent Information Systems1 savers
- [2006.05278] An Overview of Deep Semi-Supervised Learning1 savers
- Semi-Supervised Learning: Techniques & Examples [2022]1 savers
- Paper reviews | CS3241 savers
- [2103.03230] Barlow Twins: Self-Supervised Learning via Redundancy Reduction1 savers
- What is Contrastive Learning? (Contrastive Learning/Self-supervised Learning Explained) - YouTube1 savers
- On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? "1F99C3 savers
- [2112.10508] Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLP2 savers
- https://aclanthology.org/P19-1285.pdf1 savers
- Hands-On Guide to Bi-LSTM With Attention1 savers
- Variants of Dynamic Programming | Chan`s Jupyter1 savers
- Department of Computer Science and Technology – Course pages 2017–18: Deep learning for natural language processing – Course materials1 savers
- Language Modeling2 savers
- Curius / Bookmarks for the extremely curious182 savers
- The Illustrated Transformer – Jay Alammar – Visualizing machine learning one concept at a time.35 savers
- Understanding LSTM Networks -- colah's blog10 savers
- Visualizing A Neural Machine Translation Model (Mechanics of Seq2seq Models With Attention) – Jay Alammar – Visualizing machine learning one concept at a time.9 savers
- NeRF: Neural Radiance Fields7 savers
- Beyond Message Passing: a Physics-Inspired Paradigm for Graph Neural Networks4 savers
- Short Notes on Divergence Measures2 savers
highlights — 697
Later, we'll see other ways to adapt a model for different applications
Transfer Learningwe will only at the simple setting: when the pretrained model is fine-tuned on each of the downstream tasks.
Transfer Learningto let ELMo know both left and right contexts, the authors had to train two different unidirectional LMs and then concatenate representations of both of them. In BERT, we don't need to do that: one model is enough.
Transfer LearningDifferently, MLMs see the whole text at once, but some tokens are corrupted: that's why BERT is bidirectional.
Transfer Learningthey do not see the future.
Transfer LearningAt each step, the standard left-to-right LMs predict the next token based on the previous ones.
Transfer LearningBERT has two training objectives, and the most important of them is the Masked Language Modeling (MLM) objective. is With the MLM objective, at step the following happens
Transfer Learningthe model predicts whether the two sentences are consecutive sentences in some text or not.
Transfer LearningAnother special token is [CLS]. In training, it is used for the NSP objective we'll see next. Once a model is trained, it is used for downstream tasks.
Transfer LearningIn training, BERT sees pairs of sentences separated with a special token-separator
Transfer LearningWe know only the left-to-right language modeling objective, but it is applicable only for decoders where each token can use only previous ones (and does not see the future)
Transfer LearningBERT's model architecture is very simple and you already know how it works: it's just the Transformer's encoder. What is new, is the training objectives and the way BERT is used for downstream tasks
Transfer Learninghat changes is the input format for each task: look at the illustration below.
Transfer Learningn the fine-tuning stage, the model architecture stays the same except for the final linear layer.
Transfer LearningFormally, if y1,…,yn is a training token sequence, then at the timestep t a model predicts a probability distribution
Transfer LearningThe architecture is a 12-layer Transformer decoder
Transfer LearningGPT is a Transformer-based left-to-right language model.
Transfer LearningWhat is important, now during fine-tuning you have to only use task-aware input transformations (i.e. feed the data in a certain way) instead of modifying model architecture.
Transfer LearningThen, this model is fine-tuned on each of the downstream tasks
Transfer LearningGPT/BERT act not as a replacement for word embeddings, but as a replacement for task-specific models.
Transfer Learningresearchers specializing in it kept improving the task-specific model architectures.
Transfer Learningfor coreference resolution, one had to use a specific model designed for this task
Transfer LearningNote that ELMo/CoVe representations were mainly used to replace the embedding layer, and kept task-specific model architectures almost intact.
Transfer LearningCoVe/ELMo replace word embeddings, but GPT/BERT replace entire models.
Transfer LearningELMo uses task-specific weights to combine representations from the three layers. These are scalars that are learned for each downstream task. The resulting vector, the weighted sum of representations from all layers, is used to represent a word.
Transfer LearningLayers contain different information → combine them
Transfer LearningBy concatenating these forward and backward vectors we construct a word representation that "knows" about both left and right contexts.
Transfer Learningfor each word we combine representations from the corresponding layers from the forward and backward LSTMs
Transfer LearningIn this way, word representations know their characters by construction, and we can represent even those words we've never seen in training
Transfer LearningTo address these problems, the authors represent words as outputs of a character-level network.
Transfer LearningWhat is also interesting, is how the authors get initial word representations (which are then fed to the LSTMs).
Transfer LearningThe model is very simple and it consists of the two-layer LSTM language models: forward and backward. The two models are used so that each token could have both contexts: left and right.
Transfer LearningELMo uses representations not from NMT model, but from a language model. Just by replacing word embeddings (GloVe) with embeddings from LM they got a huge improvement for several tasks such as question answering, coreference resolution, sentiment analysis, named entity recognition, and others.
Transfer LearningFor downstream tasks, the authors propose to use the concatenation of both Glove (which represent individual tokens) and CoVe (tokens encoded in context) vectors.
Transfer LearningCoVe vectors are encoder outputs
Transfer LearningTherefore, encoder output contains information about both left and right contexts of a token.
Transfer LearningNote that in this NMT model, the encoder is bidirectional
Transfer Learningthe authors train an LSTM translation model with attention
Transfer LearningTherefore, vector representations from the encoder contain information about a word's context.
Transfer LearningNMT encoders learn to "understand" the source sentence
Transfer LearningCoVe train an NMT system and use its encoder.
Transfer LearningWhat does matter is that instead of representing individual words, CoVe and ELMo represent words in context.
Transfer LearningNote that here you still have a task-specific model for each task, and these task-specific models can be quite different. What's changed is the way we encode words before feeding them to these task-specific models.
Transfer LearningBut if we take a vector for the cat from somewhere inside a language model, this won't be any cat anymore!
Transfer LearningSince LMs read the context, this vector representation for cat will know that this is the cat that I saw, the one who sat on the mat
Transfer Learningby training a language model we get much more than by training word embeddings: language models process not just individual words, but sentences/paragraphs/etc
Transfer LearningInside a model, LMs too build vector representations for each word, but these vectors represent not just words, but words in context.
Transfer Learning. Note that for this you don't need any kind of labels!
Transfer LearningInstead of representing individual words, we can learn to represent words along with the context they are used in.
Transfer Learningfrom replacing only word embeddings in task-specific models to replacing entire task-specific models
Transfer Learning