Earl T. Barr
· 3 previous affiliations
- University College LondonSince 2012
- Full Professor · 2012–2026
- University of California, Davis1997–2012
- Postdoctoral Researcher · 2010–2012
- I3P Fellow · 2009–2010
- PhD, Computer Science · 2000–2009
- Lecturer (Teaching Fellow) · 2001–2006
- MA, Computer Science · 1997–1999
- Deloitte (United States)2009–2010
- Postdoc · 2009–2010
- PhD student · 2010–2009
Research Overview
Earl T. Barr focuses on software engineering, probabilistic models of source code, and type inference for dynamic languages. His research trajectory spans from analyzing natural coding conventions and automated program repair to developing neural models that bridge logical constraints and statistical learning. Recently, his work investigates the capabilities and limitations of large language models in complex reasoning tasks like vulnerability detection.
Research Trajectory
Barr’s early work established foundational insights into how developers write and maintain code, particularly emphasizing the statistical properties and "naturalness" of software. With collaborators, he investigated how to infer project-specific stylistic rules in Learning natural coding conventions. He also explored foundational concepts in automated program repair, introducing The plastic surgery hypothesis. This interest in automated repair led to a critical evaluation of existing tools in Is the cure worse than the disease? overfitting in automated program repair, which demonstrated that patches generated by systems like GenProg often overfit to available tests and break untested functionality. Expanding on the probabilistic modeling of code, he contributed to Suggesting accurate method and class names, developing a neural probabilistic language model that captures non-local semantic context to suggest functionally descriptive identifiers.
Moving deeper into neural representations of code, Barr participated in research addressing the challenges of dynamic languages. In Learning Python Code Suggestion with a Sparse Pointer Network, he and his colleagues utilized Abstract Syntax Trees to selectively track long-range variable definitions. This work intersected with the broader area of Normalizing Code to Reveal Underlying Structural Logic and the research direction of Pointer Generator Mechanisms for Grounded Text Generation. He subsequently led the development of RefiNym: using names to refine types, an unsupervised method that mines "name flows" to discover conceptual types—such as distinguishing passwords from standard strings—and reifies them into distinct nominal types. To synthesize the rapidly growing field, he co-authored A Survey of Machine Learning for Big Code and Naturalness, providing a taxonomy of probabilistic models of source code. Concurrently, he contributed to Mining Semantic Loop Idioms, introducing a technique called "coiling" to automatically extract highly probable semantic patterns from large-scale codebases.
Barr’s research then expanded to encompass both evolutionary algorithms and advanced type inference. He directed work on Modelling Genetic Programming as a Simple Sampling Algorithm, which proposed a theoretical model explaining how genetic programming explores solution spaces by sampling minimal schemata. Returning to dynamic languages, he focused heavily on natural type inference (NTI). He contributed to Typilus: neural type hints, which applied graph neural networks to predict Python types, advancing the area of Graph-Based Code Representation for Software Engineering. Recognizing the need to balance statistical predictions with formal program semantics, he co-authored OptTyper: Probabilistic Type Inference by Optimising Logical and Natural Constraints. This line of inquiry culminated in Type Inference as Optimization, which provided a formally proven, sound algorithm for NTI by framing the assignment of types as a joint optimization problem over logical correctness and natural language cues.
In recent years, Barr has applied lexical and structural analysis to version control and sequence models. He led the research in Flexeme: Untangling Commits Using Lexical Flows, introducing a multiversion Program Dependency Graph augmented with name flows to separate tangled commits containing distinct concerns. He also explored the abstraction of machine learning outputs in Epicure: Distilling Sequence Model Predictions into Patterns, mapping concrete sequence predictions into a lattice of generalized patterns to better capture rare sequences. Most recently, he participated in A Comprehensive Study of the Capabilities of Large Language Models for Vulnerability Detection, an empirical evaluation demonstrating that despite extensive prompting, current large language models struggle with the nuanced semantics and multi-step reasoning required for security tasks.
Current Directions
The most recent papers in the evidence address the intersection of large language models, sequence prediction, and software maintenance. Recent work investigates how to distill high-entropy predictions from sequence models into abstract, high-precision patterns to improve tasks like function naming. Additionally, current research evaluates the reasoning capabilities of large language models in software security, specifically highlighting their limitations in understanding nuanced code semantics for vulnerability detection. Finally, ongoing efforts in repository analysis focus on untangling complex, multi-concern commits using lexical and data flow graphs to improve patch comprehension and version control usability.
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