HackerPapers

arXiv:2005.14165cs.CL

Language Models are Few-Shot Learners

Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, Dario Amodei

Abstract

Recent work has demonstrated substantial gains on many NLP tasks and benchmarks by pre-training on a large corpus of text followed by fine-tuning on a specific task. While typically task-agnostic in architecture, this method still requires task-specific fine-tuning datasets of thousands or tens of thousands of examples. By contrast, humans can generally perform a new language task from only a few examples or from simple instructions - something which current NLP systems still largely struggle to do. Here we show that scaling up language models greatly improves task-agnostic, few-shot performance, sometimes even reaching competitiveness with prior state-of-the-art fine-tuning approaches. Specifically, we train GPT-3, an autoregressive language model with 175 billion parameters, 10x more than any previous non-sparse language model, and test its performance in the few-shot setting. For all tasks, GPT-3 is applied without any gradient updates or fine-tuning, with tasks and few-shot demonstrations specified purely via text interaction with the model. GPT-3 achieves strong performance on many NLP datasets, including translation, question-answering, and cloze tasks, as well as several tasks that require on-the-fly reasoning or domain adaptation, such as unscrambling words, using a novel word in a sentence, or performing 3-digit arithmetic. At the same time, we also identify some datasets where GPT-3's few-shot learning still struggles, as well as some datasets where GPT-3 faces methodological issues related to training on large web corpora. Finally, we find that GPT-3 can generate samples of news articles which human evaluators have difficulty distinguishing from articles written by humans. We discuss broader societal impacts of this finding and of GPT-3 in general.

arXiv comments
40+32 pages
Journal reference
DOI
Subjects
cs.CLComputation and Language

On Hacker News

Linked by 77 identifiable commenters in 94 comments across 87 threads, from May 2020 to Nov 2026. Found in 4 HN submissions from May 2020 to Nov 2024. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments87 threads

    • Yes you are right about random initilization of course. Long day here. For the second: No, not fine tuning at all. For one thing in-context learning is enough for learning novel tasks[1]. Secondly, it can do new things outside that data. LLMs build models of the world[2]. That…

      nlView on HNParent context

  1. GPT-6 Astra 1 comment
  2. How LLMs work 1 comment
    • The GPT3 paper is a good starting point Language Models are Few-Shot Learners https://arxiv.org/abs/2005.14165 I also enjoyed the papers for DeepSeek and GLM for an overview of all the tricks you need to make these things work DeepSeek-V3.2: Pushing the Frontier of Open Large…

      blackbear_View on HNParent context

  3. GPT‑5.4 Mini and Nano 1 comment
    • A lot of things are easy if you ignore the incentive structure. E.g. a lot of papers will no longer be published if the data must be published. You’d lose all published research from ML labs. Many people like you would say “that’s perfectly okay; we don’t need them” but others…

      renewiltordView on HNParent context

    • For example, the fact that they can't learn from few examples For one thing, yes, they can, obviously [1] -- when's the last time you checked? -- and for another, there are plenty of humans who seemingly cannot. The only real difference is that with an LLM, when the context is…

      CamperBob2View on HNParent context

    • The cost of developing GPT-2 and GPT-3 was on the order of millions of dollars, well within the budget of most tech organizations. See https://arxiv.org/abs/2005.14165 for the total compute invested in them. OpenAI had raised only a few tens of millions in donations at the time…

      cs702View on HNParent context

    • Sorry -- I keep seeing this being used but I'm not entirely sure how it differs from most of human thinking. Most human 'reasoning' is probabilistic as well and we rely on 'associative' networks to ingest information. In a similar manner - LLMs use association as well -- and not…

      photon_linesView on HNParent context

    • > The results are surprisingly good, I don't think I could've done better as a human I'm actually surprised that the performance is so poor and would expect a human to do much better. The GPT model has embedding PLUS a whole transformer model that can untangle the embedded…

      godelskiView on HNParent context

    • Thank you for being blunt. Let me attempt to speak in the same earnest tone. You are contradicting the papers and work that the people who make the models are saying. Alternatively, you are looking at the dataset curation process with rose tinted glasses. >There is a tremendous…

      intendedView on HNParent context

    • https://news.ycombinator.com/item?id=34616256 https://news.ycombinator.com/item?id=40258584 https://arxiv.org/pdf/2005.14165.pdf https://www.wired.com/story/battle-over-books3 https://www.washingtonpost.com/technology/interactive/2023/a...…

      1vuio0pswjnm7View on HNParent context

    • BERT is a language model! It was considered a "large" language model for its time, and it's even based on transformers. It's a very small language model by today's standards (340MM params), and is encoder-only instead of decoder-only, but trying to draw a hard line between…

      reissbakerView on HNParent context

    • Really? Because the GPT-3 paper talks about "...two internet-based books corpora (Books1 and Books2)..." (see pages 8 and 9) - https://arxiv.org/pdf/2005.14165.pdf Unclear what that corpora might be, or if its the same books2 you are referring to.

      belterView on HNParent context

  4. LLM Visualization 1 comment
    • As a prerequisite to the attention paper? One to check out is: A Survey on Contextual Embeddings https://arxiv.org/abs/2003.07278 Embeddings are sort of what all this stuff is built on so it should help demystify the newer papers (it’s actually newer than the attention paper but…

      WhitneyLandView on HNParent context

    • > Transformers existed in 2019, and while GPT4 is genuinely advanced, it's not a gigantic leap I'm referring to the emergent capabilities that show up with scale, which are a gigantic leap. The usual citation suggests that this came into the public consciousness in 2020 [1]. Do…

      jjoonathanView on HNParent context

    • > OpenAI's product was technically made by Ilya Nope, he is not a core contributor of GPT-4, GPT-3, GPT-2, DALLE-3, DALLE-2: https://arxiv.org/abs/2303.08774 https://cdn.openai.com/papers/dall-e-2.pdf https://arxiv.org/pdf/2005.14165.pdf https://arxiv.org/abs/1908.09203

      ipsum2View on HNParent context

    • This paper suggests that learning does happen within a prompt. https://arxiv.org/abs/2005.14165 By extension it seems totally reasonable that the model is developing self awareness by introspecting its tendencies (prior generated output), summarizing those tendencies, and then…

      thethimbleView on HNParent context

    • GPT-3 had "books1" and "books2" among its training material and "books2" never had its actual source disclosed :https://arxiv.org/pdf/2005.14165.pdf Speculations about these source materials can be traced back as far as 2020…

      ssnistfajenView on HNParent context

  5. How Transformers Work 1 comment
    • Ah, I see. You are unfamiliar with how SOTA language models are actually trained in current day, what RLHF is in detail, and how it differs from other training phases. I'd encourage you to read through the GPT3 [0] and llama2 [1] papers for more salient descriptions of the…

      hexagaView on HNParent context

    • The weights of gpt3 weren’t released, but the architecture is pretty close to gpt2 and explained in the paper: https://arxiv.org/pdf/2005.14165.pdf I think the “ready to run” might be more of a byow (“bring your own weights”) kinda thing.

      spottView on HNParent context

  6. What OpenAI really wants 1 comment
    • i highlighted this last night which seems to be making the rounds - https://twitter.com/swyx/status/1699369076529971545 Alec's CV (https://www.linkedin.com/in/alecradford/) seems to be: - 2011-2016 BSc Eng from Olin College - 2013+ started a data/AI consultancy as a sophomore…

      swyxView on HNParent context

    • >> I'd question why you'd ask an LLM something like this instead of Wolfram Alpha, or just look up the answer. That's because OpenAI dedicated an entire section in claims that GPT-3 is reasonably good at arithmetic. See Section 3.9.1 titled "Arithmetic" in "Language Models are…

      YeGoblynQueenneView on HNParent context

  7. Llama 2 1 comment
    • > It comes from this paper To clarify, what comes from that paper? The claim that LLMs are zero-shot learners (yes) or the term zero-shot (no[0]). > I believe the idea is that the LLM was not trained on the task in question Not quite. We'll see in [0] that the definition is >>…

      godelskiView on HNParent context

    • OpenAI publishes a huge amount of research and makes huge amounts of data available for research. They do collaborate with other institutions and researchers. eg: GPT-2: paper https://d4mucfpksywv.cloudfront.net/better-language-models/l... with code…

      seanhunterView on HNParent context

  8. OpenLLaMA 13B Released 1 comment
    • The authors are a bit disingenuous here. They insinuate that GPT3's performance shows unpredictable behaviour change at certain scales using their weirdly constructed metrics (which may or may not be true - see below), while the original GPT3 paper already showed how these…

      sigmoid10View on HNParent context

    • I love bashing Intel as much as the other person, but looking at the number of tokens LLaMA[1] was trained on (1,400B tokens), the number of parameters of GPT-3[2] vs. the number of tokens it was trained on (175B params vs. 300B), it's not like the announced 1,000B param model…

      ppaattrriicckkView on HNParent context

    • Refined training is usually updating the weights of usually what's called a foundational model with well structured and numerous data. It's can be expensive but most importantly disturb the usefulness of having all the generalizations baked in from training data [1]. While LLMs…

      heliophobicdudeView on HNParent context

    • Hi Jason! I have a few thoughts on this! Refined training is usually updating the weights of usually what's called a foundational model with well structured and numerous data. It's very expensive and can disrupt the usefulness of having all the generalizations baked in from…

      heliophobicdudeView on HNParent context

    • I can help with "verified correct sources", have a look at "Language Models are Few-Shot Learners" section 2.2 [1]. You may also be interested in Apendix A in the same document: "Details of Common Crawl Filtering" [1] https://arxiv.org/pdf/2005.14165.pdf

      sorokodView on HNParent context

    • For those who don't completely get the impact of this: We already know Large Language Models (LLMs) can learn at runtime (ie, separately to the training process.) This is called "In Context Learning". See [1], [2] for more details. (BTW, when anyone says "LLMs are stochastic…

      nlView on HNParent context

    • > Well the Gebru & Mitchell paper[1] was published before In-Context-Learning was discovered (an ICL was very unexpected), so yes, I think they were ignorant of ICL at the time. ??? One of us is confused here (I'm fully willing to admit that it's me), but AFAIK, the big…

      gensymView on HNParent context

    • I don’t have any insider insight on this but the GPT3 paper discusses some of their data sets and curation techniques (https://arxiv.org/pdf/2005.14165.pdf). The recent DinoV2 paper is also interesting reading (https://arxiv.org/pdf/2304.07193.pdf), as they particularly focus on…

      jeeebView on HNParent context

    • not sure what 'mixing LLM models' entails but these are maybe some good starting points - karpathy - https://www.youtube.com/watch?v=kCc8FmEb1nY - https://towardsdatascience.com/beautifully-illustrated-nlp-m... - https://dzone.com/articles/a-deep-dive-into-the-transformer-...…

      RockyMcNutsView on HNParent context

    • I suppose it depends on what you mean by "an AI that can do things it wasn't trained to do"! In some sense, the AI is still 'just doing what it was trained to do' in that it is 'just' predicting the next word. All examples of AI doing impressive behavior boil down to AI doing…

      whimsicalismView on HNParent context

    • >>Is 10000 bigger than 10050? >>Yes, 10000 is bigger than 10050. >But even the mighty ChatGPT often can't do simple math GPT is bad at math because BPE input compression obfuscates individual digits. https://bbot.org/etc/gpt-math.png You'd be bad at math too if every number was…

      sbierwagenView on HNParent context

  9. Understanding ChatGPT 1 comment
    • Yes, or math, for example you can tell him to "add a+b where a=3.274914 and b=2.4847". I doubt this precise numbers are in the dataset of chatGPT and yet it can find the answer. According to this paper it seems to have gain the ability as the size of the model increased (page…

      Aka457View on HNParent context

    • GPT 3.5 likely differs from the original GPT 3 by more than instruction fine-tuning. For example, it was probably retrained under Chinchilla scaling laws [1], with a lot more data and maybe a somewhat smaller parameter count. There are many variants of GPT-3 and GPT-3.5, and…

      DavidSJView on HNParent context

    • There is some commentary in the GPT-3 paper https://arxiv.org/pdf/2005.14165.pdf (figure 3.10 and table 3.10) note: I may have extrapolated a bit more than strictly correct from those two bits, but the accuracy being about 50% indicates carrying is the issue. GPT-3 is at around…

      spionView on HNParent context

    • https://arxiv.org/pdf/2005.14165.pdf WebText and WebText2 referenced in their papers are corpuses based on Reddit submissions which had a 22% weight in their training model. https://openwebtext2.readthedocs.io/en/latest/ This is larger than Wikipedia (3% weight) or either of…

      CSMastermindView on HNParent context

  10. GPT Spiritual Avisor 1 comment
    • I just looked at the wikipage for zero-shot learning and it wasn't very clear about why it is "zero". The paper for GPT-3 however is quite clear: "(c) “zero-shot” learning, where no demonstrations are allowed and only an instruction in natural language is given to the model"…

      eternalbanView on HNParent context

Showing 40 of 87 threads. Download the full data to see all.

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.