Elamur Research

Jerry Tworek

Jerry Tworek’s papers here examine how large language models learn from text and source code, how their training can be adapted to different tasks, and how to evaluate the resulting systems. The studies ask what a model needs to do when it must insert a passage into an existing file, find code relevant to a written request, or work through an arithmetic problem stated in everyday language. The methods vary with the task. Some papers change how examples are presented during training. Others build benchmarks or assess model behavior across a range of situations. A recurring question is how to judge whether an output serves its purpose, whether that means fitting the surrounding text, answering a search query, or reaching a correct solution.

Tworek’s most cited work here is the 2023 GPT-4 Technical Report, which documents GPT-4. An earlier paper, Evaluating Large Language Models Trained on Code (2021), focuses on the evaluation of language models trained on source code. The technical report gives readers an entry point organized around a particular model, while the code paper offers an entry point organized around a particular kind of training material. The papers on retrieval and insertion that followed take up more specific uses for models trained with text or code.

Text and Code Embeddings by Contrastive Pre-Training (2022) studies how to represent passages and code as vectors for search and classification. A Transformer encodes each item independently, so a collection can be processed in advance and a new query compared with the stored vectors using cosine similarity. The training uses associations already present in the material, such as neighboring passages and functions paired with their documentation. It teaches the model to score these pairs above other combinations drawn from the same batch. The paper reports gains in document and code retrieval and distinguishes those gains from performance on similarity tasks. Finding a relevant item in a collection and judging how closely two items resemble each other call for different evaluations.

Another 2022 study, Fill in the Middle, asks how a model that generates text in sequence can learn to write a passage inside an existing document. An insertion has to make sense on both sides of the cursor. A missing description of a function, for example, needs to agree with the code that follows it. During training, the researchers move a selected middle passage after the beginning and end of the document and mark the boundaries. The model learns to predict the moved passage using the context on either side. Mixing these rearranged examples with ordinary ones lets the model learn insertion while retaining its ability to continue text from a prefix. The study examines this approach on prose and source code across several model sizes.

The OpenAI GPT-5 System Card (2025) compares gpt-5-thinking with OpenAI o3 and gpt-5-main with GPT-4o. Its evaluations cover behavior such as factual errors, agreement with users at the expense of accuracy, and susceptibility to prompt injection, alongside multilingual ability, bias, and responses to health questions. The card also draws on external red teaming and tests under the Preparedness Framework. It describes an approach called safe completions, which assesses the safety of what the model produces. That puts the content of the response at the center of the evaluation, including what a model can safely say in reply to a request.

Tworek’s recent work includes Competitive Programming with Large Reasoning Models, which brings large reasoning models into the setting of programming contests. A related strand of work appears in Training Verifiers to Solve Math Word Problems (2021). The paper introduces GSM8K, a benchmark of human-written arithmetic problems with worked explanations. The calculations are elementary, but a solver has to interpret the situation described and connect the steps in the right order. The authors let a language model propose several solutions, then use a separately trained verifier to score them and select the highest-scoring attempt. This setup distinguishes the ability to produce a correct solution somewhere among the candidates from the ability to identify which candidate to return.

Among Tworek’s recurring collaborators on these papers are Mark I-Cheng Chen, Heewoo Jun, and John Schulman, along with Lukasz Kaiser, Mohammad Bavarian, Nikolas Tezak, and Vineet Kosaraju. Language models & pretraining is the main topic connecting the papers here. Evaluation & benchmarks and Reasoning provide further routes into the work, from how models are assessed to how they generate and check solutions.

5 papers in our library · 2021–2025

OpenAlex · h-index 6 · 11 works · 2,224 citations OpenAlex, 2026-10-14

 5 works in our library ·  Cited 7,154 times in our library · 2 more in our library without a page yet ·  Paper Stars ranking: #520

The profile is the library's match of the name; two people with one name are not always told apart.

Elsewhere: Google Scholar · Semantic Scholar · dblp · ACL Anthology

 Affiliations

From the bylines of their papers (OpenAlex, 2026-10-14), ORCID and Wikidata; institutions on papers are matched by machine.

 Fields, topics and concepts

Of its works in our library, with the number of works on each.

 Works by year

2020s

 Papers

The most cited first (OpenAlex and our library).

  1. Training Verifiers to Solve Math Word Problems (2021 · 3,799 citations)
    Large language models still make fatal mistakes on reasoning that needs several arithmetic steps. One cause is that a left-to-right generator cannot repair an early slip. The authors address this with a new benchmark and a reranking method. GSM8K holds 8.5K grade-school word problems written by people, split 7.5K for…
  2. Evaluating Large Language Models Trained on Code (2021 · 2,669 citations)
    Code generation models were usually scored by how closely their output text matched a reference, for example with BLEU.
  3. Text and Code Embeddings by Contrastive Pre-Training (2022 · 324 citations)
    Text embeddings power semantic search, classification and similarity scoring. In earlier work, each use case usually got its own dataset, training objective and architecture, and sentence-embedding research developed separately from neural retrieval. This OpenAI paper shows that one simple recipe can produce…
  4. Efficient Training of Language Models to Fill in the Middle (2022 · 144 citations)
    Causal decoder-only language models such as the GPT family generate text strictly left to right. They cannot use context that follows the insertion point, which limits tasks like editing code inside an existing file. The authors (OpenAI) teach such models to fill in the middle (FIM) through data reformatting alone…
  5. Competitive Programming with Large Reasoning Models (2025 · 68 citations)
    This OpenAI report asks whether LLM performance in competitive programming improves more from hand-built, task-specific inference pipelines or from scaling general reinforcement learning.

All works

10 works of theirs in our library, the most cited first; 7 with a page here, the others link their original until we summarise them.

  1. GPT-4 Technical ReportarXiv:2303.08774OpenAI, Josh Achiam, Steven Adler, et al.2023 · 13,162 citations
  2. Evaluating Large Language Models Trained on CodearXiv:2107.03374Mark Chen, Jerry Tworek, Heewoo Jun, et al.2021 · 4,114 citations
  3. Training Verifiers to Solve Math Word ProblemsarXiv:2110.14168Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, et al.2021 · 3,809 citations
  4. Solving Rubik's Cube with a Robot Hand ↗arXiv:1910.07113 · no summary yetOpenAI et al.2019 · 650 citations
  5. Text and Code Embeddings by Contrastive Pre-TrainingarXiv:2201.10005Arvind Neelakantan, Tao Xu, Raul Puri, et al.2022 · 327 citations
  6. OpenAI GPT-5 System CardarXiv:2601.03267Aaditya Singh, Adam Fry, Adam Perelman, et al.2025 · 279 citations
  7. Efficient Training of Language Models to Fill in the MiddlearXiv:2207.14255Mohammad Bavarian, Heewoo Jun, Nikolas Tezak, et al.2022 · 144 citations
  8. Competitive Programming with Large Reasoning Models ↗arXiv:2502.06807 · no summary yetOpenAI: Ahmed El-Kishky et al.2025 · 68 citations
  9. GDPval: Evaluating AI Model Performance on Real-World Economically Valuable Tasks ↗arXiv:2510.04374 · no summary yetTejal Patwardhan et al.2025 · 38 citations
  10. Competitive Programming with Large Reasoning ModelsOpenAI: Ahmed El-Kishky, Alexander Wei, Andre Saraiva, et al.

 Co-authors here

12 of 35 co-authors with a page, the most papers together first.

 Cited by

Papers of our library cite their works 17,955 times (of more than 163,000 papers whose bibliographies we read); 3,954 citing papers with a page here →.

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/authors/jerry-tworek/