Kexin Pei

Kexin Pei

University of Chicago
7 previous affiliations
42Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Kexin Pei focuses on automated code reasoning, software security, and the intersection of machine learning with program analysis. His early work established foundational techniques for testing deep learning systems and guiding automated fuzzing. More recently, he investigates how large language models can understand execution semantics and formally verify generated code to improve the reliability of complex software systems.

Research Trajectory

The trajectory begins with foundational work in testing machine learning models. He introduced DeepXplore: Automated Whitebox Testing of Deep Learning Systems, which proposed "neuron coverage" as a metric to systematically measure the parts of a neural network exercised by test inputs. This contributed significantly to the research direction of Structural Coverage Metrics for Deep Learning Testing. Building on this paradigm, he participated in developing DeepTest: automated testing of deep-neural-network-driven autonomous cars, which applied these testing strategies to expose erroneous corner-case behaviors in the vision systems of self-driving vehicles.

Shifting toward software security and binary analysis, he explored how machine learning could optimize traditional vulnerability discovery. In NEUZZ: Efficient Fuzzing with Neural Program Smoothing, he and his collaborators used gradient-guided optimization to overcome the limitations of evolutionary fuzzers, advancing the area of Navigating Complex Constraints in Automated Fuzzing. He also applied transfer learning to reverse engineering in XDA: Accurate, Robust Disassembly with Transfer Learning, improving the precision of binary analysis tools.

A major theme in his subsequent research involves designing neural architectures that inherently understand program semantics rather than just surface-level syntax. To address challenges in the area of Robustness of Code Models to Semantics-Preserving Transformations, he developed the SYMC architecture, detailed initially in the preprint Symmetry-Preserving Program Representations for Learning Code Semantics and later published as Exploiting Code Symmetries for Learning Program Semantics. This work bakes group theory into the transformer self-attention mechanism, creating models that are mathematically invariant to statement reordering and highly sample-efficient.

Concurrently, he investigated the capacity of large language models to perform complex program analysis. In Can Large Language Models Reason about Program Invariants?, he demonstrated that fine-tuned models could predict logical rules that hold true during execution using only static source code, contributing to the broader direction of Learning Execution Semantics from Stepwise Program Traces. He also participated in the creation of SWE-bench: Can Language Models Resolve Real-world Github Issues?, a rigorous evaluation framework that highlighted the gap between generating code snippets and resolving complex software engineering tasks, advancing the field of Repository Level Evaluation of Large Language Models for Code. Returning briefly to his earlier fuzzing research, he published Comment on Revisiting Neural Program Smoothing for Fuzzing, a methodological critique that corrected experimental flaws in a baseline study to reaffirm the efficacy of the NEUZZ framework.

His most recent work focuses on explicitly modeling code transformations and integrating LLMs with formal verification and directed fuzzing. In EditLord: Learning Code Transformation Rules for Code Editing, his group formulated code editing as a sequence of explicit, discrete steps extracted by an inductive learner, improving robustness over end-to-end generation. To evaluate and optimize code efficiency, he guided the development of WEDGE: Synthesizing Performance Constraints for Evaluating and Improving Code Efficiency, which uses LLMs to generate performance-stressing inputs. He further bridged LLMs and formal methods in ExVerus: Verus Proof Repair via Counterexample Reasoning, utilizing concrete program states to help models synthesize source-level debugging scripts for failed proofs. In the domain of vulnerability discovery, Locus: Agentic Predicate Synthesis for Directed Fuzzing introduced new methods for reaching deeply nested target states. Finally, SemRep : Generative Code Representation Learning with Code Transformations decoupled code understanding from goal-oriented modification, teaching models to reason about code equivalence and contributing to the area of Functional Correctness via Execution-Based Evaluation.

Current Directions

Recent work investigates the integration of large language models with formal verification and directed fuzzing to ensure software reliability. The most recent papers in the evidence address the challenge of repairing formal proofs by providing models with concrete counterexamples, bypassing complex internal verification translations. Additionally, current research explores agentic predicate synthesis to guide fuzzers toward deeply nested program states and algorithmic bottlenecks. A central theme across these efforts is teaching models to reason about semantic equivalence and explicit code transformations, moving beyond surface-level syntax to achieve robust, execution-aware code generation and optimization.

Profile updated

See something wrong? Report a mistake