5 min
Earlier this year, OpenAI gained a lot of attention for all the wrong reasons when it produced a language model so good at generating fake news that the organisation decided not to release it. In fact, a study conducted by collaborators at Cornell University found that readers on average believed GPT-2’s outputs to be genuine news articles nearly as often as New York Times ones.
OpenAI’s strategy of delaying the release of the model relies on these models being difficult to replicate and requiring a high degree of specialised domain knowledge.
However, in what may come as surprising news, two grad students used an estimated $50,000 worth of free cloud computing from Google which hands out credits to academic institutions and made a decent attempt at replicating OpenAI’s GPT-2.
Why Was Released It In The First Place
OpenAI developed GPT-2 to investigate new benchmarks for natural language processing tasks. The authors of the original paper reported that GPT-2 zero-shots to state of the art performance on 7 out of 8 tested language modelling datasets. They claimed that the diversity of tasks the model is able to perform in a zero-shot setting suggests that high-capacity models trained to maximise the likelihood of a sufficiently varied text corpus begin to learn how to perform a surprising amount of tasks without the need for explicit supervision. OpenAI has insisted that it had not yet found any attempts of malicious use but had seen multiple beneficial applications, including in code autocompletion, grammar help, and developing question-answering systems for medical assistance. As a result, the lab felt that releasing the most recent code was ultimately more beneficial. Other researchers argue that several successful efforts to replicate GPT-2 have been made.How Two Grad Students Replicated GPT-2
The authors based their implementation off of the Grover model and modified their codebase to match the language modelling training objective of GPT-2. The authors in their blog gave a detailed view of they got around this model. Briefly, it can be described as follows:- Started with the Pushshift Reddit scrape, a dataset containing a continuously updated collection of Reddit posts, comments, and related metadata.
- These links are then filtered to remove direct links to file-types unlikely to contain usable text or HTML.
- The text was extracted from HTML pages using the Newspaper Python library and then filtered for only English text using the fastText Python library.
- As a cleaning heuristic, documents with fewer than 128 tokens were removed from the dataset.
- For encoding the dataset, the Binary Pattern Encoder was used.


Your reaction
Discussion
What's your take on this story?
No comments yet — be the first to share your view.