Jiawei Liu
· 6 previous affiliations
- OpenAI (United States)Since 2025
- Member of Technical Staff · Since 2025
- Research Assistant & Amazon Fellow · 2021–2025
- Applied Scientist Intern · 2024
- Student Researcher · 2023
- OctoAI (Acquired by NVIDIA)2022
- PhD Intern · 2022
- Tongji University2017–2021
- Undergrad student · 2017–2021
13 other authors named Jiawei Liu: Jiawei Liu (University of Science and Technology of China · 89 papers), Jiawei Liu (Chinese University of Hong Kong · 51 papers), Jiawei Liu (ByteDance (China) · 13 papers), Jiawei Liu (10 papers), Jiawei Liu (Australian National University · 7 papers), and 8 more
Research Overview
Jiawei Liu focuses on the rigorous evaluation of code generation, compiler testing, and the alignment of large language models for software engineering. His early work established robust testing frameworks for deep learning compilers before shifting to the systematic benchmarking of AI-generated code. Currently, he investigates secure code generation and preference modeling to ensure models produce safe, efficient, and functionally correct software.
Research Trajectory
Jiawei Liu’s research trajectory begins with the rigorous testing and verification of deep learning systems, particularly focusing on the compilers that translate high-level models into executable code. In 2022, he addressed the critical challenge of ensuring correctness in deep learning systems by developing Coverage-guided tensor compiler fuzzing with joint IR-pass mutation. This work utilized joint intermediate representation (IR) and pass mutation to uncover bugs in tensor compilers. This focus on system reliability continued into 2023 with the introduction of NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers, a framework designed to automatically generate valid test cases to further stress-test deep learning infrastructure.
As large language models (LLMs) began to demonstrate significant capabilities in software engineering, Liu’s focus expanded to the systematic evaluation of AI-generated code. Recognizing that existing benchmarks often failed to capture subtle bugs due to lenient testing, he led the development of EvalPlus, detailed in Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation. By augmenting standard benchmarks with an extensive suite of rigorous test cases, this work revealed that LLM performance was frequently overestimated, establishing a critical foundation for the research direction of Rigorous Verification for LLM Code Generation.
In 2024, Liu’s research evolved to address the architectural and data-centric challenges of training efficient code models. He explored novel training paradigms to maximize the performance of smaller models without incurring prohibitive computational costs. In \mathcal XFT: Unlocking the Power of Code Instruction Tuning by Simply Merging Upcycled Mixture-of-Experts, he introduced a training scheme that upcycles dense models into a Mixture-of-Experts (MoE) architecture for instruction tuning before merging the experts back into a single dense model. This approach advanced the broader areas of Memory Efficient Inference for Mixture of Experts Models and Shared Experts for Sparse Mixture of Experts Models, delivering the performance benefits of large MoE models while maintaining the inference efficiency of smaller architectures.
Concurrently, Liu investigated the role of high-quality synthetic data in model training. Collaborating on Magicoder: Empowering Code Generation with OSS-Instruct, he contributed to a method that leverages real-world open-source code snippets to inspire teacher models to generate diverse coding instructions. This work demonstrated that smaller models could rival larger counterparts when trained on robust synthetic datasets, contributing significantly to the research areas of Scaling Small Model Reasoning with Synthetic Pedagogical Data and Scaling Code Intelligence via Seed-Grounded Synthetic Data.
Alongside model training, Liu continued to refine evaluation methodologies to capture more complex dimensions of code generation. He introduced the Differential Performance Evaluation (DPE) framework in Evaluating Language Models for Efficient Code Generation, moving beyond functional correctness to assess the computational efficiency of LLM-generated code. He also addressed the challenge of evaluating models on repository-scale tasks with RepoQA: Evaluating Long Context Code Understanding, a benchmark designed to test how well LLMs comprehend and retrieve information from extensive, raw codebases rather than isolated snippets.
By 2025, Liu’s work increasingly emphasized the practical deployment, alignment, and security of code generation models. To streamline the integration of emerging AI models onto diverse hardware platforms, he contributed to Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debugging. This research introduced a top-down approach for automated test generation and gradual migration, advancing work in the area of Programmatic Synthesis for Scalable Execution.
A major theme of his recent trajectory involves aligning code generation with human preferences and real-world execution feedback. In Do LLMs Understand Code Preference? Training Code Preference Models via Synthetic Code Evolution, he explored how to train models to predict meaningful preferences for code using synthetic evolution techniques like code commits and critiques. This was complemented by his collaborative work on BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Execution, which shifted evaluation from static text comparison to live, on-the-fly execution in sandbox environments, yielding more reliable human preference data.
To further bridge the gap between academic benchmarks and real-world software engineering, Liu participated in the development of BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions. This rigorous benchmark challenged models to utilize numerous external libraries across complex tasks, highlighting ongoing limitations in the compositional reasoning of frontier models. Finally, addressing the critical need for secure AI-generated software, he led the development of PurpCode: Reasoning for Safer Code Generation. By combining explicit security rule learning with a reinforcement learning pipeline, this work produced models capable of generating secure code and resisting malicious exploitation while minimizing the over-refusal of benign tasks.
Current Directions
Recent work investigates the alignment, security, and practical deployment of large language models in complex software engineering environments. The most recent papers in the evidence address the challenge of code preference learning, exploring how to train models to understand and predict developer preferences through synthetic code evolution and live execution feedback. Additionally, current research focuses on the intersection of reasoning and cybersecurity, developing post-training reinforcement learning pipelines that teach models to generate functionally correct and secure code without overly restricting benign requests. This is complemented by ongoing efforts to create increasingly rigorous, execution-based benchmarks that test the compositional reasoning of LLMs across diverse, real-world programming libraries and hardware platforms.
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