How to Read: Language Models are Few-Shot Learners [Reading Guide]

Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, J. Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. Henighan, R. Child, A. Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Ma-teusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, I. Sutskever, Dario Amodei · 2020 · Neural Information Processing Systems

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 efficiently read "Language Models are Few-Shot Learners" using the three-pass approach, focusing on its core contributions, methods, and implications.

First pass (5–10 min)

What to skim in this paper:

  • Title: "Language Models are Few-Shot Learners" immediately tells you the main topic: large language models (LLMs) and their ability to learn from minimal examples.
  • Abstract (Page 1): This is your concise summary. It introduces GPT-3 (175 billion parameters), its few-shot, one-shot, and zero-shot capabilities without fine-tuning, and its performance across various NLP tasks. It also hints at limitations and societal impacts.
  • Introduction (Section 1, Page 3-5): Read the first few paragraphs to understand the problem (fine-tuning requires vast data, humans learn from few examples) and the proposed solution (scaling LMs for in-context learning). Skim the rest for the paper's structure.
  • Conclusion (Section 8, Page 40): This reiterates the main findings and high-level implications, providing a good summary of what the authors believe they achieved.

What to notice:

  • Core Contribution: Scaling language models (specifically GPT-3) dramatically improves "in-context learning" (few-shot, one-shot, zero-shot performance) without gradient updates, sometimes matching or exceeding fine-tuned state-of-the-art.
  • Problem Addressed: The high data requirements and potential for spurious correlations in traditional pre-training + fine-tuning paradigms.
  • Key Setting: The paper defines and explores "zero-shot," "one-shot," and "few-shot" learning, where tasks are specified purely via text interaction (Figure 1.1, Page 3).
  • Scale: GPT-3 is a 175-billion parameter autoregressive language model, significantly larger than previous models.
  • High-level Results: Strong performance on many NLP tasks (translation, QA, arithmetic, news generation), but also identifies tasks where it struggles and methodological issues like data contamination.
  • Broader Implications: Mentions societal impacts, including the difficulty for humans to distinguish GPT-3 generated text (Abstract, Page 1).

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:

  • Approach (Section 2, Page 6-10):
    • Figure 2.1 (Page 7): Visually understand the difference between fine-tuning and the zero-shot, one-shot, and few-shot settings. This is crucial for grasping the paper's methodology.
    • Table 2.1 (Page 8): Review the sizes and architectures of the 8 models trained, especially GPT-3 (175B parameters).
    • Table 2.2 (Page 9): Understand the composition and weighting of the training dataset, noting the emphasis on quality over raw size for Common Crawl.
  • Results (Section 3, Page 10-28): Skim through the subsections to see the breadth of tasks evaluated.
    • Figure 1.2 (Page 4) & Figure 1.3 (Page 5): These figures are central. Figure 1.2 demonstrates how larger models make more efficient use of in-context examples, while Figure 1.3 shows aggregate performance across benchmarks, highlighting the rapid improvement of few-shot learning with model size.
    • Key Task Results: Briefly review a few representative tables/figures for tasks of interest:
      • Table 3.2 (Page 12): Performance on cloze and completion tasks (e.g., LAMBADA), showing significant SOTA improvements in few-shot.
      • Table 3.3 (Page 13): Results on Open-Domain QA, showing GPT-3's few-shot competitiveness.
      • Figure 3.4 (Page 15): Few-shot translation performance scaling with model capacity.
      • Figure 3.10 (Page 22): Arithmetic task results, demonstrating a significant jump in accuracy for larger models in few-shot.
      • Table 3.11 (Page 26) & Figure 3.13 (Page 27): Human accuracy in detecting model-generated news articles, showing how larger models make detection harder.
  • Measuring and Preventing Memorization Of Benchmarks (Section 4, Page 29-32): Understand the data contamination issue and how the authors attempted to address it.
    • Figure 4.2 (Page 32): This benchmark contamination analysis shows the impact of training data overlap on performance.
  • Limitations (Section 5, Page 33): Read this section to understand the identified weaknesses (e.g., text coherence, common sense physics, specific comparison tasks).
  • Broader Impacts (Section 6, Page 34-38): Skim for the main categories of impact (misuse, bias, energy usage).
    • Table 6.1 (Page 37) & Table 6.2 (Page 38): Examples of gender and religious biases found in the model.

Key terms/questions to note:

  • In-context learning: The core concept of learning from demonstrations within the model's input context without weight updates.
  • Zero-shot, One-shot, Few-shot: The three evaluation settings based on the number of in-context examples provided.
  • Scaling Laws: The observed relationship between model size, compute, and performance (Figure 3.1, Page 11).
  • Data Contamination: The problem of test set data inadvertently being present in the training data.
  • Autoregressive Language Model: GPT-3's underlying architecture.
  • Where does GPT-3 excel? (e.g., LAMBADA, TriviaQA, arithmetic, news generation).
  • Where does GPT-3 struggle? (e.g., NLI, some reading comprehension, comparison tasks).

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:

  • Introduction (Section 1): Re-read carefully to fully grasp the motivation, the historical context of NLP advancements, and the specific problems few-shot learning aims to solve.
  • Approach (Section 2):
    • Model and Architectures (2.1): Understand the GPT-2 base architecture and the sparse attention patterns.
    • Training Dataset (2.2): Delve into the three-step process for improving data quality and diversity, and the dataset mixture (Table 2.2). Refer to Appendix A for Common Crawl filtering details.
    • Training Process (2.3): Understand the Adam optimizer, learning rate schedule, batch size, and model parallelism. Refer to Appendix B for more details.
    • Evaluation (2.4): Understand the precise methodology for drawing examples, setting K, and scoring tasks (e.g., likelihood comparison, F1, BLEU, exact match). Refer to Appendix G for exact task phrasing and specifications.
  • Results (Section 3):
    • Choose 2-3 tasks of high interest to you. For each chosen task (e.g., Translation, Closed Book Question Answering, Synthetic and Qualitative Tasks):
      • Read the specific subsection (e.g., 3.3 Translation) thoroughly.
      • Analyze the corresponding tables and figures (e.g., Table 3.4, Figure 3.4 for Translation) in detail. Understand the metrics used (BLEU, F1, Accuracy) and the specific gains across different model sizes and learning settings.
      • Pay close attention to the discussion of why GPT-3 performs well or struggles on these tasks, and how it compares to fine-tuned SOTA.
    • Synthetic and Qualitative Tasks (3.9): Read this section carefully to understand GPT-3's novel capabilities like arithmetic (Figure 3.10, Table 3.9), word scrambling (Figure 3.11, Table 3.10), SAT analogies (Figure 3.12), and news article generation (Table 3.11, Figures 3.14, 3.15).
  • Measuring and Preventing Memorization Of Benchmarks (Section 4): Deeply understand the data contamination study, its limitations, and the specific datasets flagged. Refer to Appendix C for full details on the methodology and results (Table C.1).
  • Limitations (Section 5): Critically evaluate the identified limitations, considering their implications for future research and practical applications.
  • Broader Impacts (Section 6): Read this section thoroughly to understand the ethical considerations regarding misuse (6.1), fairness, bias, and representation (6.2, Tables 6.1, 6.2, Figure 6.1), and energy usage (6.3). This is crucial for a complete understanding of the model's real-world implications.
  • Related Work (Section 7): Understand how GPT-3 builds upon and differs from previous work in scaling LMs, meta-learning, and multi-task learning.
  • Appendices (A-H): Refer to these for any specific details needed to fully understand the methods or results. Appendix H provides full results for all tasks and model sizes, which can be useful for detailed analysis.

Replication pointers if applicable:

  • Model Architecture: Section 2.1 and Table 2.1 provide the exact parameters for all models, including GPT-3, which are based on the GPT-2 architecture.
  • Training Data: Section 2.2 and Table 2.2 detail the datasets used and their weighting. Appendix A describes the filtering and deduplication process.
  • Training Process: Section 2.3 and Appendix B outline the hyperparameters (optimizer, learning rate, batch size, weight decay) and model parallelism strategies.
  • Evaluation Settings: Section 2.4 and Figure 2.1 define the zero-shot, one-shot, and few-shot settings. Appendix G provides specific task phrasings and prompt formats.
  • Data Contamination: Section 4 and Appendix C detail the methodology for detecting and analyzing test set contamination.