Alexander Wettig
· 6 previous affiliations
- CursorSince 2025
- Research Scientist · Since 2025
- Princeton UniversityCurrent
- Current
- PhD student · 2021–2026
- Research Intern · 2024–2025
- University of Cambridge2016–2020
- Undergrad student · 2016–2020
- Software Engineering Intern · 2018
- Man AHL2017
- Intern · 2017
Research Overview
Alexander Wettig focuses on the training dynamics, data curation, and interpretability of large language models. His trajectory spans foundational work on model fine-tuning and pre-training data selection to the development of autonomous software engineering agents. Currently, he investigates long-context processing efficiency and scalable data generation for coding agents.
Research Trajectory
Wettig's early research examined information retrieval and the foundational training dynamics of language models. With collaborators, he explored dense retrieval mechanisms, demonstrating in Phrase Retrieval Learns Passage Retrieval, Too that systems optimized for fine-grained phrase retrieval naturally acquire the ability to retrieve larger text blocks like passages and documents without additional retraining. He subsequently investigated the core mechanics of masked language modeling, re-evaluating established heuristics in Should You Mask 15% in Masked Language Modeling?. Expanding on model adaptation, he contributed to theoretical frameworks connecting empirical fine-tuning success with Neural Tangent Kernels (NTK). In A Kernel-Based View of Language Model Fine-Tuning, the authors showed that prompt-based fine-tuning often operates in a "lazy regime" where the model behaves as a simple kernel classifier. This work advanced the broader research direction of The Mechanics of Benign Overfitting in High Dimensions by explaining how large models can generalize effectively from minimal amounts of data.
As language models scaled, Wettig's focus shifted toward optimizing pre-training data and extending context capabilities. He led the development of methods for selecting high-quality training corpora in QuRating: Selecting High-Quality Data for Training Language Models. Concurrently, he investigated the continued training and supervised fine-tuning required to process extended sequences. In How to Train Long-Context Language Models (Effectively), he and his co-authors established robust evaluation protocols beyond simple retrieval tests, identifying optimal data mixes for continued pre-training. This research contributed to areas such as Positional Embedding Interpolation for Long Context Transformers, emphasizing the importance of code repositories and books for long-context adaptation.
A major parallel theme in Wettig's trajectory involves the evaluation and development of autonomous agents for software engineering. He participated in the creation of rigorous evaluation frameworks, notably SWE-bench: Can Language Models Resolve Real-world Github Issues?, which tests the ability of models to resolve complex, real-world codebase problems. Building on this benchmark, he collaborated on SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. This work introduced custom interfaces tailored for AI systems to navigate, edit, and test codebases, advancing the research direction of Repository Scale Context Constraints in Code Language Models.
In 2025, Wettig expanded his work on pre-training data curation and model efficiency. He introduced the WebOrganizer framework in Organize the Web: Constructing Domains Enhances Pre-Training Data Curation, which categorizes web tokens into distinct topics and formats to systematically rebalance training domains, demonstrating improvements over existing quality filters. He also explored how metadata can optimize learning; in Metadata Conditioning Accelerates Language Model Pre-training, the authors demonstrated that prepending source URLs to documents significantly accelerates pre-training while enabling steerable inference. This touches upon the broader area of The Divergence of Statistical Fluency and Logical Reasoning by examining how models leverage structural metadata during generation.
Continuing his involvement in coding agents, Wettig collaborated on SWE-smith: Scaling Data for Software Engineering Agents, a high-throughput pipeline that generates training instances by intentionally injecting bugs into Python codebases to produce open-source models optimized for software repair. Alongside these applied capabilities, he investigated model interpretability in Extracting Rule-based Descriptions of Attention Features in Transformers, helping develop methods to automatically extract human-readable, symbolic rules from attention layers. Finally, addressing the computational costs of extended sequences, he proposed the KV footprint metric and the PruLong optimization method in Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?, which learns to selectively discard old data from attention heads to reduce memory usage while maintaining performance.
Current Directions
The most recent papers in the evidence address the dual challenges of scaling autonomous software engineering capabilities and optimizing the efficiency of large language models. One primary direction involves generating synthetic training data for coding agents through automated bug injection, aiming to improve repository-level code repair and agent-computer interaction. Simultaneously, ongoing work investigates memory-efficient architectures for long-context processing, specifically focusing on techniques to compress the key-value (KV) cache by identifying and pruning redundant attention features. Additionally, recent research continues to refine pre-training methodologies, exploring how structured metadata and systematic domain categorization can accelerate model convergence and improve the quality of web-scale training corpora.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake