How to Read: Deep Contextualized Word Representations [Reading Guide]
Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, Luke Zettlemoyer · 2018 · North American Chapter of the Association for Computational Linguistics
Three-Pass Reading Method
The three-pass reading method is a systematic approach designed to efficiently extract maximum understanding from research papers. The first pass (5-10 minutes) gives you a high-level overview by skimming the title, abstract, introduction, and conclusion. The second pass (up to 1 hour) involves careful reading of the paper with emphasis on methodology and key technical details. The third pass (1-5 hours) focuses on deep understanding, critical analysis, and connecting ideas to related work.
This structured approach helps you determine a paper's relevance quickly, then dive deeper only when needed, making your research workflow more efficient and effective.
This guide will help you effectively read "Deep Contextualized Word Representations" (ELMo) by Peters et al. (2018), presented at NAACL.
First pass (5–10 min)
What to skim in this paper:
- Title: "Deep Contextualized Word Representations" – Immediately signals the core topic: word embeddings that capture context and are "deep."
- Abstract: Read the abstract carefully. It summarizes the problem, the proposed solution (ELMo), its key features (models complex word use, polysemy, learned from biLM internal states), and the main results (SOTA improvements across six NLP problems, importance of deep internals).
- Introduction (Section 1): Skim the first few paragraphs to understand the motivation behind contextualized embeddings and the limitations of previous approaches (e.g., GloVe, word2vec). Note the explicit mention of ELMo addressing challenges of complex word use and polysemy.
- Conclusion (Section 6): Read the conclusion to reinforce the main findings and contributions. It reiterates the general approach, the broad applicability, and the confirmation that biLM layers encode different types of information.
What to notice:
- Contributions: The paper introduces ELMo, a novel type of deep contextualized word representation. It significantly improves state-of-the-art across six diverse NLP tasks (question answering, textual entailment, sentiment analysis, semantic role labeling, coreference resolution, named entity recognition). A key insight is that exposing the deep internals of the pre-trained bidirectional language model (biLM) is crucial.
- Problem: Traditional word embeddings provide a single, context-independent representation for each word, failing to capture polysemy (how word meaning changes with context) and complex characteristics of word use (syntax, semantics).
- Setting: The research is in Natural Language Processing (NLP), focusing on improving foundational word representations for various downstream tasks. The approach uses pre-trained deep bidirectional LSTMs.
Second pass (up to 1 hour)
Using SpatialRead in the Second Pass
- Use the Screenshot tool to capture figures, tables, diagrams, and formulae from the PDF and use AI for simple explanations.
- Ask: "Explain Figure X at a high level", "Compare Table 2 vs 3", or "What does the y-axis represent here?"
- Download SpatialRead →
What sections/figures to focus on:
- Introduction (Section 1): Re-read to solidify your understanding of the problem and ELMo's high-level solution. Pay attention to how ELMo differs from previous contextualized word vectors like CoVe.
- ELMo: Embeddings from Language Models (Section 3): This is the core methodology.
- Section 3.1 (Bidirectional language models): Understand the concept of forward and backward LMs and how they are combined into a biLM. Note the joint log-likelihood maximization objective.
- Section 3.2 (ELMo): This is critical. Understand that ELMo representations (
ELMo_k^task) are a linear combination of the internal states of the biLM. Pay close attention to Equation 1, which defines this task-specific weighting (s_j^task) and scaling parameter (gamma^task). - Section 3.3 (Using biLMs for supervised NLP tasks): Focus on how ELMo is integrated into existing models: freezing biLM weights, concatenating
ELMo^taskwith existing token representations, and potentially adding it at the output of task-specific RNNs. - Section 3.4 (Pre-trained bidirectional language model architecture): Note the specific architecture details of the pre-trained biLM (e.g., L=2 biLSTM layers, character n-gram convolutional filters).
- Evaluation (Section 4): Skim the task descriptions and then focus on the main results.
- Table 1: This table is central. Analyze the "ELMo + BASELINE" column and the "INCREASE" column to grasp the magnitude of improvements across all six tasks (SQuAD, SNLI, SRL, Coref, NER, SST-5). This table clearly demonstrates ELMo's effectiveness.
- Analysis (Section 5): This section provides insights into why ELMo works.
- Section 5.1 (Alternate layer weighting schemes): Examine Table 2 to see how using "All layers" (with regularization) compares to using "Last Only" layer, demonstrating the benefit of deep representations.
- Section 5.2 (Where to include ELMo?): Look at Table 3 to understand the impact of adding ELMo at different locations (input, output, or both) within the downstream model.
- Section 5.3 (What information is captured by the biLM's representations?): This section uses intrinsic evaluations.
- Table 4: Compare the nearest neighbors for "play" using GloVe vs. biLM to see how ELMo captures context-dependent meaning.
- Table 5 (WSD F1) and Table 6 (POS tagging accuracies): These tables quantify how well different biLM layers capture semantic (higher layers) vs. syntactic (lower layers) information.
- Figure 1: Observe how ELMo improves sample efficiency, especially for smaller training sets.
- Figure 2: This visualization shows the learned layer weights for different tasks, indicating which layers are more important for specific tasks.
Key terms/questions to note:
- Contextualized word representations, bidirectional language model (biLM), deep representations, polysemy, semi-supervision, task-specific weighting, layer normalization, character convolutions, intrinsic evaluation (WSD, POS tagging), sample efficiency.
- How does ELMo combine information from different biLM layers? (Equation 1)
- What kind of information do lower vs. higher biLM layers capture? (Tables 5, 6)
- How does ELMo improve performance across diverse NLP tasks? (Table 1)
Third pass (1–5 hours)
Using SpatialRead in the Third Pass
- Highlight complex keywords, dense paragraphs, equations, or proofs and ask for a plain-English explanation that preserves notation.
- Use AI to explain the concepts in a way that is easy to understand.
- Ask for alternative phrasings or analogies to confirm understanding without changing technical meaning.
- Connect concepts with each other using AI to build a comprehensive understanding of the paper.
- Download SpatialRead →
Deep reading guidance:
- Methods (Section 3 and Appendix A): Dive into the mathematical formulation of the biLM and ELMo. Understand the specifics of the forward and backward LSTMs, the character CNNs, and the residual connections. Thoroughly read Appendix A for the detailed architectures, training routines, and hyperparameters for each specific NLP task. This is crucial for understanding the implementation details.
- Results (Section 4 and Appendix A): Go through each task's description in Section 4 and its corresponding detailed experimental setup and results in Appendix A (e.g., A.3 Textual Entailment, A.4 Question Answering). Compare ELMo's performance not just to the baseline, but also to other state-of-the-art models and CoVe, using Tables 8-13 for specific task results. Understand the metrics used (F1, Accuracy, EM).
- Analysis (Section 5): Critically evaluate the ablation studies. Understand the implications of the findings in Sections 5.1, 5.2, and 5.3. For example, why is a small
lambdapreferred in Equation 1 (Section 5.1)? Why do some tasks benefit from ELMo at both input and output layers, while others only at the input (Section 5.2)? How do the intrinsic evaluations (Tables 4, 5, 6) support the claim that different layers capture different types of linguistic information? - Limitations: While the paper is largely positive, consider potential limitations. For instance, the computational cost of pre-training a deep biLM or the need for fine-tuning the biLM on domain-specific data (Section 3.4) could be considered practical limitations. The paper doesn't explicitly have a "Limitations" section, so infer them from the analysis and discussion.
Replication pointers if applicable:
- Model Architecture: Section 3.4 and Appendix A provide comprehensive details on the biLM architecture (2-layer biLSTM, 4096 units, 512 dimension projections, residual connections, 2048 character n-gram filters, 2 highway layers).
- Pre-training: The biLM was trained for 10 epochs on the 1B Word Benchmark (Section 3.4).
- Integration into downstream tasks: Section 3.3 and Appendix A detail how ELMo is added (concatenation, linear combination of layers, freezing biLM weights, dropout, regularization). Specific hyperparameters (learning rates, optimizers, batch sizes, dropout rates) are provided in Appendix A for each task.
- Code Availability: The paper explicitly states on page 2 (footnote 1) that "Our trained models and code are publicly available" at
http://allennlp.org/elmo. This is the most direct replication pointer.