Weichen Li
· 6 previous affiliations
- Microsoft (United States)Since 2026
- Intern · Since 2026
- University of ChicagoSince 2024
- PhD student · 2024–2029
- Current
- Columbia University2022–2024
- Research Assistant · 2022–2024
- Summer Research Intern · 2022–2023
- Fudan University2018–2022
- Research Assistant · 2021–2022
- Undergrad student · 2018–2022
- Software Engineer · 2021
1 other author named Weichen Li: Weichen Li (University of Kaiserslautern · 5 papers)
Research Overview
Weichen Li focuses on the intersection of machine learning, software engineering, and security, developing theoretically grounded methods for code semantic representation. His research explores how large language models can better understand and manipulate code by incorporating structural priors and explicit transformation rules. Recently, he has concentrated on generative code representation learning to facilitate automated software analysis and optimization.
Research Trajectory
The primary focus of this research trajectory is the development of machine learning models that can robustly interpret, represent, and modify software code. Early work investigated how to teach code semantics to large language models by embedding structural priors directly into the model architecture rather than relying solely on scale or extensive pre-training. In Exploiting Code Symmetries for Learning Program Semantics, he and his collaborators introduced SYMC, a neural architecture designed to recognize code symmetries—mathematical rules defining how code can be altered without changing its underlying meaning. By developing a variant of self-attention that is provably equivariant to code symmetries from the permutation group defined over the program dependence graph, this approach directly addresses challenges in the area of Robustness of Code Models to Semantics-Preserving Transformations. Making the model mathematically robust to superficial changes, such as statement reordering, advanced the research direction of Sample Efficiency through Geometric Equivariance. Furthermore, by leveraging these structural dependencies, this contribution intersected with the broader field of Graph-Based Code Representation for Software Engineering, demonstrating that models incorporating these priors can achieve high performance on program analysis tasks while remaining highly parameter-efficient compared to larger, general-purpose models.
Building on this foundation of semantic understanding, subsequent research shifted toward the mechanics of automated code modification. Rather than treating code editing as an implicit, end-to-end generation task, he explored methods to make transformation steps explicit and interpretable. He introduced EditLord: Learning Code Transformation Rules for Code Editing, a framework that utilizes language models as inductive learners to extract code editing rules from training pairs as concise meta-rule sets. By manifesting these rule sets to augment training samples for fine-tuning, or to assist in prompting- and iterative-based code editing, the framework significantly improved both editing performance and functional correctness. This work represents a key contribution to the area of Surgical Code Transformation with Structured Edit Representations, demonstrating that explicitly modeling the discrete steps of code modification yields more reliable outcomes for critical software engineering and security applications.
Most recently, this trajectory has culminated in broader frameworks for generative code representation. He developed SemRep : Generative Code Representation Learning with Code Transformations, which enhances the capacity of large language models to reason about code equivalence. The core insight of this framework is to decouple the process of understanding a program's current functionality from the objective of modifying it to meet a new goal. By teaching models to recognize when different code structures yield the same functional outcome, this research advances the direction of Learning Functional Invariance through Semantic Preserving Transformations. Additionally, the framework's application to complex tasks like GPU kernel optimization and algorithmic discovery aligns with emerging methodologies in the area of Functional Correctness via Execution-Based Evaluation. Through these techniques, smaller, specialized models can effectively match or exceed the performance of significantly larger models on intricate software optimization tasks.
Current Directions
The most recent papers in the evidence indicate a continued focus on generative code representation and automated software optimization. Current work investigates how large language models can be trained to deeply understand functional equivalence, allowing them to perform complex, semantics-preserving transformations. This includes applying these theoretically grounded representations to highly specialized domains, such as GPU kernel optimization and algorithmic discovery, where precise reasoning about code behavior is critical. By decoupling semantic comprehension from goal-oriented modification, these ongoing efforts aim to build smaller, more efficient models capable of highly reliable and secure software engineering tasks.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| Exploiting Code Symmetries for Learning Program SemanticsGitHubkleinercubs/ | ICML | 2024 |
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