CONTEXT JAMMING

Field notes from inside the context window.

Companion PieceRead the Oral History: The Ghost in the Machine →Fourteen voices from inside OpenAI on the paper that started the Scaling Era.

CONTEXT JAMMING / GPT-3 · IN-CONTEXT LEARNING

IN-CONTEXT
LEARNING
AT SCALE

How 175 billion frozen parameters learned to take instructions—and a handful of examples—seriously

Brown, Mann, Ryder, Subbiah et al. (2020) show that scaling an autoregressive language model changes the slope of in-context learning: the same weights, with no gradient updates, become competitive with prior fine-tuned specialists on many NLP benchmarks—and still fail on others. This page is a paper-faithful interactive reading of that result.

GPT-3 in-context learning at three scales of abstractionAlternating diagrams: fine-tuning loop, prompt as context, and scaling curves for zero/one/few-shot.PRE-TRAINFINE-TUNETASK DATA LOOPNEW TASK → NEW LABELSBOTTLENECKTASK DESCK DEMOSQUERYŷFROZEN WEIGHTS · FORWARD PASS ONLYIN-CONTEXT0.125B175BFEW-SHOT SLOPE > ZERO-SHOT
PRE-TRAIN → FINE-TUNE Interactive reconstruction of the paper's framing (Figs. 1.1–1.3).

01 · Every new capability used to require its own mountain of labeled data.

The Fine-Tuning Bottleneck

Understand why task-specific fine-tuning created a practical and generalization ceiling—even when the architecture itself was already task-agnostic.

By 2018–2020 the dominant NLP recipe was clear: pre-train a large language model, then fine-tune it on a supervised dataset for each downstream task. The architecture could be shared; the labeled data could not. Section 1 lists the costs: every new task needs thousands to hundreds of thousands of examples; large models can latch onto spurious correlations in narrow fine-tuning distributions; and benchmark “human-level” scores may overstate robustness out of distribution.

BEFORE · FINE-TUNE LOOP

Pre-train → task data → update weights

  1. Pre-train on broad text (task-agnostic architecture).
  2. Collect thousands–hundreds of thousands of labeled task examples.
  3. Run gradient updates until the specialist head fits the task.
  4. Repeat for every new capability.

Source: Section 1 (opening paragraphs); Fig. 1.1 left contrast in spirit of the fine-tuning paradigm.

AFTER · PROMPT-ONLY PATH

Pre-train once → condition → predict next tokens

  1. One large autoregressive pre-training run (175B, 300B tokens).
  2. At inference: task description + K demonstrations in context.
  3. Zero gradient updates; adaptation is a forward pass.
  4. Same frozen weights serve many NLP tasks.

Source: Section 1–2 definitions of zero/one/few-shot; Fig. 1.1 meta-learning diagram.

Humans, however, routinely perform new language tasks from a sentence of instruction or a few examples…

02 · A brief directive or a handful of demonstrations is often enough.

The Human Baseline That Current Systems Missed

See the conceptual gap the paper targets.

Section 1 contrasts machine practice with human practice: a brief directive (“happy or sad?”) or a tiny number of demonstrations often suffices for a competent first try. Humans also mix skills mid-dialogue—addition during a conversation—without downloading a new model. That fluidity is the practical target, not a claim that GPT-3 is human.

INSTR.

Please tell me if this sentence describes something happy or something sad.

HUMAN

Happy. (Zero-shot: instruction alone.)

INSTR.

Here are two examples of people acting brave. Please give a third example of bravery.

HUMAN

…generates a third. (Few-shot: a handful of demonstrations.)

MIX

Mid-dialogue: “also, what is 48 plus 76?” — seamless skill switch without a new training set.

Conceptual illustration after Section 1 human-adaptability paragraph; not an empirical human study from the paper.

03 · The model conditions on the prompt and simply predicts what comes next.

In-Context Learning as the Inner Loop

Grasp the meta-learning structure: outer pre-training, inner forward-pass adaptation, zero gradient updates.

Figure 1.1 frames unsupervised pre-training as building a broad skill library, then using those skills at inference to recognize or adapt to the task specified in the sequence. The authors call the inner loop in-context learning. Section 2 defines the evaluation spectrum: fine-tuning (not run for GPT-3 here), few-shot, one-shot, and zero-shot.

PAPER-DERIVED STRUCTURE · Fig. 1.1 / §2.4
Task: Answer the arithmetic question. Q: What is 48 plus 76? A: 124 Q: What is 23 plus 59? A: 82 Q: What is 34 plus 58? A:
FEW-SHOT · FROZEN θThe model conditions on this prompt and predicts the next tokens. No gradient update occurs (Section 2; Fig. 1.1 inner loop).

Prompt layout follows Appendix G task-phrasing style; arithmetic numbers are illustrative of Section 3.9.1 format, not a logged model completion.

Interactive reconstruction after Figure 1.1 and Section 2 zero/one/few-shot definitions; phrasings echo Appendix G.

04 · Larger models do not just get better — they get better at getting better from context.

Scale Steepens the In-Context Learning Curve

See the core empirical result—few-shot gains accelerate with capacity while zero-shot improves more steadily.

Figures 1.2 and 1.3 are the paper’s postcard. On symbol-manipulation tasks, in-context learning curves get steeper with size; on an aggregate of accuracy-denominated benchmarks, few-shot rises faster than zero-shot. Section 3 and Appendix H make the pattern quantitative across dozens of tasks.

PAPER-DERIVED VALUES · Figs. 1.2–1.3, §3, Appendix H
K-MODE
In-context performance vs model sizeLog-scale model size on x-axis from 0.125B to 175B; accuracy or F1 on y-axis for zero, one, and few-shot.0255075100125M350M760M1.3B2.7B6.7B13B175B

Focus: 175B · few-shot SuperGLUE avg = 73.2% · Appendix H SuperGLUE average (dev); Fig 1.3 is related 42-task aggregate (untabulated)

ACCURACY 73.2%Δ VS PRIOR SIZE +6.3IN-CONTEXT GAIN (FEW−ZERO) 15SOTA (FINE-TUNED REF) 89%

Values taken directly from Appendix H at the eight trained sizes; lines connect those points for visual continuity only (not continuous models). Aggregate uses SuperGLUE average as a tabulated multi-task proxy; Fig. 1.3's 42-task aggregate is not published as a numeric table.

05 · 175 billion parameters, 300 billion tokens, one training run.

GPT-3: Architecture, Data, and Training

Understand the concrete substrate: alternating dense/sparse attention, quality-upsampled data mix, compute budget.

Eight models from 125M to 175B parameters share nctx = 2048 and a GPT-2-style stack with alternating dense and locally banded sparse attention (§2.1, Table 2.1). Training consumes 300B tokens from a filtered, reweighted mix of Common Crawl, WebText2, books, and Wikipedia (Table 2.2). Figure 2.2 situates compute relative to prior models: larger models, fewer tokens than classical “tokens ≫ parameters” rules of thumb.

PAPER-DERIVED VALUES · Table 2.1
ModelnparamsnlayersdmodelnheadsBatchLR
Small125M12768120.5M6.0e-4
Medium350M241024160.5M3.0e-4
Large760M241536160.5M2.5e-4
XL1.3B242048241M2.0e-4
2.7B2.7B322560321M1.6e-4
6.7B6.7B324096322M1.2e-4
13B13.0B405140402M1.0e-4
175B175.0B9612288963.2M0.6e-4

Data mixture (Table 2.2)

Common Crawl (filtered)60%
WebText222%
Books18%
Books28%
Wikipedia3%

All models trained for 300B tokens; nctx = 2048; alternating dense/sparse attention (§2.1). Weights ≠ token proportions: high-quality sets are upsampled (Table 2.2).

Architecture is GPT-2-like with alternating dense and locally banded sparse attention (Sparse Transformer style)—not merely “bigger GPT-2” without that change (§2.1).

06 · On LAMBADA, few-shot GPT-3 advances the state of the art by 18 points.

Language Modeling, Knowledge, and Translation Results

Witness concrete few-shot wins that sometimes match or beat fine-tuned specialists.

Sections 3.1–3.3 cover cloze/completion, closed-book QA, and translation. Headline numbers: LAMBADA few-shot 86.4% vs prior SOTA 68.0%; TriviaQA few-shot 71.2% closed-book SOTA among reported comparisons; CoQA few-shot 85.0 F1. Translation is stronger into English than out of it; some directions exceed prior unsupervised/few-shot references while remaining behind supervised SOTA (Tables 3.3–3.4; Appendix H).

PAPER-DERIVED VALUES · §3.1–3.8, Appendix H (175B)
SHOW
TaskMetricSourcefew-shotSOTA (FT ref)Gap
LAMBADA
Few-shot advances prior SOTA by ~18 points
acc§3.1 / Table 3.286.468+18.4
TriviaQA
Closed-book; few-shot is SOTA among closed-book
acc§3.2 / App H71.268+3.2
WebQsacc§3.2 / App H41.545.5-4
NaturalQsacc§3.2 / App H29.944.5-14.6
CoQAF1§3.6 / App H8590.7-5.7
PIQAacc§3.5 / App H82.377.1+5.2
HellaSwagacc§3.5 / App H79.385.6-6.3
Winograndeacc§3.4 / App H77.784.6-6.9
SuperGLUEavg§3.7 / App H73.289-15.8
RTEacc§3.8 / App H72.992.5-19.6
ANLI R3
Near-chance until 175B few-shot
acc§3.8 / App H40.248.3-8.1
WiC
Zero-shot fails format; few-shot near chance
acc§3.7 / App H55.376.1-20.8
En→Fr BLEU-sbBLEU§3.3 / App H39.945.9-6
Fr→En BLEU-sb
Few-shot exceeds reported SOTA on this split
BLEU§3.3 / App H41.435+6.4

SOTA columns are the paper's reported fine-tuned references (often open-book or multi-task specialists). Gaps are not apples-to-apples on every task—closed-book QA differs from retrieval-augmented systems (§3.2).

07 · The model performs 3-digit arithmetic and unscrambles novel symbolic manipulations after seeing only a few examples.

Stress Tests: Arithmetic and Word Manipulation

Experience tasks unlikely to have been seen verbatim yet solvable via in-context pattern recognition.

Section 3.9.1 constructs ten arithmetic batteries; Figure 3.10 and Table 3.9 show a sharp jump at 175B: perfect 2-digit addition few-shot, strong 3-digit, partial 4–5 digit and multiplication. Incorrect answers often look like failed carries. Training-set search finds only trivial overlap with 3-digit test items. Section 3.9.2’s five character-manipulation tasks (Fig. 3.11, Table 3.10) require pulling apart BPE substructure; reversed words remain essentially unsolved.

ILLUSTRATIVE RECONSTRUCTION · calibrated to §3.9.1 / Fig. 3.10 / Table 3.9

3-digit addition

175B · few-shot
Paper accuracy band: 80.4%
Exact correct answer (JS): 655
FEW-SHOT ACC @ SIZE 80.4%175B ZERO / ONE / FEW 34.2 / 65.5 / 80.4

Trends and characteristic failure modes from the paper; small-model errors are rule-based approximations. Spot-check: only 0.8% of 3-digit addition test items found in training as “NUM + NUM” (§3.9.1).

PAPER-DERIVED VALUES · §3.9.2 / Fig. 3.11 / Table 3.10

Random insertion (RI): Punctuation/space between each letter. Paper example: s.u!c/c!e.s s i/o/n → succession. K=100 few-shot in paper figures.

PAPER ACCURACY 67.2%175B FEW-SHOT 67.2%ILLUSTRATIVE RECOVERY

Accuracies are paper-derived (App. H / Table 3.10). Small-model recovery is a simplified heuristic; paper shows large models succeed via in-context pattern recognition—and reversed words remain unsolved (≤0.44% few-shot).

08 · Even at 175B, some tasks remain stubbornly difficult.

Limits, Failure Cases, and Methodological Care

See where few-shot performance plateaus (ANLI, certain RC, WiC) and how contamination was handled.

Section 3.8: NLI remains hard—ANLI rounds near chance until 175B few-shot shows “signs of life” (R3 40.2%). Section 3.6–3.7: some reading comprehension and SuperGLUE tasks lag fine-tuned SOTA substantially; WiC zero-shot collapses to 0.0% (format), few-shot ~55%. Section 4 and Appendix C quantify train–test overlap; most tasks show small clean/all deltas, with flagged exceptions. Section 5 discusses broader limitations (bidirectionality, sample inefficiency vs humans, calibration, etc.).

PAPER-DERIVED VALUES · Section 4, Appendix C
LAMBADA
ALL SCORE 86.4CLEAN SCORE 86REL. Δ CLEAN VS ALL -0.5%

Clean subset nearly matches full set; Appendix C marks relative difference ≈ −0.5%.

ANLI R3

40.2% few-shot

175B few-shot on ANLI R3 (App. H). Smaller models ~chance (33%). §3.8: NLI still hard.

RTE

72.9% few-shot

Only largest models beat random convincingly; few-shot near single-task BERT-Large (§3.8).

WiC

55.3% few-shot

Zero-shot 0.0% (format failure); few-shot still near chance. Capability gap, not only contamination.

Dirty% and clean scores simplified from Appendix C tables for the inspector; full N-gram methodology and per-split counts are in the paper. Authors: contamination has minimal effect on most datasets, with flagged exceptions.

09 · The prompt is the boundary condition; the weights are the bulk.

Context as Boundary Specification (Structural Analogy)

STRUCTURAL ANALOGY, NOT IDENTITY

Explore a precise cross-domain lens for why scale + context works—without claiming the paper proves physics. The GPT-3 paper supplies the empirical scaling and in-context results only.

Context Jamming maps frozen parameters to a high-capacity bulk and the prompt to a boundary condition that selects which bulk computations are expressed. Richer boundaries (larger K, clearer instructions) and larger bulks (parameter count) jointly improve task performance in the paper’s curves—suggestive structure, not a derived holographic dual.

PAPER Frozen pretrained weights θANALOGUE Bulk degrees of freedom
PAPER Prompt / K demonstrationsANALOGUE Boundary condition / data
PAPER Forward-pass adaptationANALOGUE On-shell response to boundary data
PAPER Few−zero performance gapANALOGUE Sensitivity of bulk to boundary detail
PAPER Model scale NANALOGUE Bulk capacity / expressivity
STRUCTURAL ANALOGY, NOT IDENTITY
Boundary detail and bulk capacityA disk whose radius scales with model size and whose boundary thickness scales with prompt richness; center readout is a task-accuracy proxy.BULK θ175BBOUNDARY = PROMPT (K=32)
Radius ~ capacity; ring thickness ~ boundary specification detail.
TASK-ACCURACY PROXY70.7%

Deterministic blend of Appendix H SuperGLUE zero→few gap with a saturating function of K. Encodes the paper's qualitative claim that larger models extract more from context (Figs. 1.2–1.3)—not a holographic computation.

Bulk capacity
175B params
Boundary K
32 demos (proxy)
Zero-shot floor
58.2%

This analogy is not claimed by the GPT-3 paper. It is a Context Jamming generative lens for relating observed scaling + in-context adaptation to boundary/bulk ideas—for testing in future agentic systems work.

Where the analogy breaks

  1. Mathematical: Holographic dualities relate partition functions and operator algebras; next-token log-likelihoods are not CFT correlators.
  2. Architectural: Transformers use learned attention over a finite context window, not a continuous bulk geometry with Einstein equations.
  3. Empirical: The paper measures NLP metrics, not boundary/bulk reconstruction or Ryu–Takayanagi-type relations.
  4. Causal: In-context “adaptation” is feedforward conditioning, not a physical relaxation to a new equilibrium state.
  5. Scale: 175B parameters is large for 2020 NLP, not a continuum limit; K ≤ nctx is a hard cut, not an asymptotic boundary.

Five falsifiable research questions

These are research prompts, not conclusions smuggled in from physics.

FALSIFIABLE QUESTION 1

Does in-context gain keep scaling past 175B?

Measurable object
Few−zero gap on held-out suites
Possible experiment
Train or evaluate larger frozen LMs with matched data; plot FS−ZS vs log N.
Falsifying result
Gap saturates or shrinks while zero-shot keeps rising.
Primary caveat
Data mix and contamination controls must match.

This analogy is not claimed by the GPT-3 paper. It is offered by Context Jamming as a generative lens connecting observed scaling + in-context adaptation to physics-inspired boundary/bulk and holographic models—for testing in future agentic systems work.

10 · What was demonstrated, what was proposed, and what remains open.

Epistemic Ledger and Glossary

Internalize the three-layer separation and key terminology with paper-anchored definitions.

ESTABLISHED RESULT (PAPER)
  • Eight models, 125M–175B, trained 300B tokens (Tables 2.1–2.2).
  • Zero/one/few-shot evaluation with frozen weights (§2.4).
  • Few-shot often scales steeper than zero-shot (Figs. 1.2–1.3; App. H).
  • LAMBADA few-shot 86.4% vs SOTA 68.0% (Table 3.2).
  • TriviaQA few-shot 71.2% closed-book (App. H; §3.2).
  • Arithmetic & word-scramble proficiency jumps at 175B (Tables 3.9–3.10).
  • Documented failures: ANLI, WiC, some RC; contamination analysis (§3.8, §4).
AUTHOR PROPOSAL / INTERPRETATION
  • Authors frame results as meta-learning via in-context learning (Fig. 1.1).
  • They suggest larger models are more proficient at using context (§1).
  • They discuss societal impacts, bias probes, and energy (§6)—interpretive and preliminary.
  • Fine-tuning GPT-3 is proposed as future work, not measured here (§2).
CONTEXT JAMMING EXTENSION
  • Boundary/bulk prompt analogy is CJ’s lens—not a paper claim.
  • Five breaks + five falsifiable questions above bound the extension.
  • Useful for agentic systems design hypotheses; requires separate experiments.

Glossary

In-context learning

The inner loop at inference: the model conditions on a prompt (instructions and/or demonstrations) and adapts its next-token predictions within a forward pass, with no gradient updates (Fig. 1.1; §1–2).

Few-shot (FS)

K task demonstrations in context (typically 10–100, limited by nctx=2048), optionally with a natural-language description; weights frozen (§2; Fig. 2.1).

One-shot (1S)

Exactly one demonstration plus (usually) a task description (§2).

Zero-shot (0S)

No demonstrations; natural-language instruction only (§2).

Fine-tuning (FT)

Updating pretrained weights on a supervised task dataset—often thousands to hundreds of thousands of labels (§1–2). Not evaluated for GPT-3 in this paper; left to future work.

Meta-learning (paper sense)

Outer loop: pre-training acquires broad skills; inner loop: rapid task recognition/adaptation from context at inference (Fig. 1.1).

Closed-book QA

Answering from parameters alone, without retrieving documents at test time (§3.2).

Power-law scaling

Prior work (Kaplan et al.) suggests smooth power-law validation loss vs size/data/compute; GPT-3 tests related smooth scaling of downstream and in-context metrics (§2.1; Fig. 1.3).

nctx

Context window length in tokens; 2048 for all GPT-3 sizes (Table 2.1 discussion; §2.1).

Alternating dense/sparse attention

GPT-3 layers alternate dense and locally banded sparse attention patterns (Sparse Transformer–style), unlike vanilla dense-only GPT-2 (§2.1).

Data contamination

Train–test overlap from web-scale pretraining; measured via N-gram collisions; clean vs all score deltas in §4 / Appendix C.

LAMBADA

Word-prediction cloze requiring broad discourse; few-shot GPT-3 175B reaches 86.4% acc vs prior SOTA 68.0% (Table 3.2 / App. H).

11 · Conclusion

Frozen weights, steeper curves

The paper’s central demonstration is not that labeling is obsolete. It is that capacity changes what a frozen model can do with a prompt: few-shot in-context learning becomes a practical, measurable regime—sometimes rivalling fine-tuned specialists, sometimes revealing hard limits.

Read the numbers as they are: LAMBADA’s +18 points, TriviaQA’s closed-book SOTA, arithmetic’s jump at 175B, ANLI’s stubbornness, contamination’s mostly small deltas. Everything else is interpretation—or a clearly labeled analogy waiting to be tested.

12 · Source notes

The argument, pinned to the paper

Section / interactivePaper anchorsReconstruction note
01 Fine-tuning bottleneck§1 ¶1–3; Fig. 1.1 (contrast)Conceptual diagram; exact
02 Human baseline§1 human few-shot paragraphIllustrative dialogue
03 Prompt explorerFig. 1.1; §2; App. GStructure exact; example arithmetic illustrative
04 ScalingPerformanceExplorerFigs. 1.2–1.3; §3; App. HExact at 8 sizes; Aggregate = SuperGLUE avg proxy
05 Architecture tables§2.1–2.3; Tables 2.1–2.2; Fig. 2.2Exact
06 Benchmark matrix§3.1–3.8; Tables 3.2–3.4; App. HExact 175B zeros/ones/fews cited
07 Arithmetic / Word labs§3.9.1–3.9.2; Figs. 3.10–3.11; Tables 3.9–3.10; App. HAccuracies exact; outputs illustrative
08 Contamination inspector§3.6–3.8; §4; App. CSimplified dirty% cards; methodology per paper
09 Boundary simulatorEmpirical scaling onlyCJ analogy; not paper claim
10 Ledger / glossaryThroughout + App. G/HDefinitions paper-anchored

Brown, Tom B., Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, et al. “Language Models are Few-Shot Learners.” arXiv:2005.14165v4 [cs.CL], 22 July 2020. Appendices G (task phrasing) and H (all tasks × all sizes) are primary numeric sources for this page.

Open the primary source ↗ · PDF (v4) ↗