Dan Hao
· 2 previous affiliations
- Peking UniversitySince 2002
- Full Professor · Since 2021
- Associate Professor · 2012–2021
- Assistant Professor · 2010–2012
- Postdoc · 2008–2009
- PhD student · 2002–2008
- Harbin Institute of Technology1998–2002
- Undergrad student · 1998–2002
Research Overview
Dan Hao focuses on software engineering, with an emphasis on software testing, debugging, and software evolution. Early work explored test case prioritization and fault localization, while subsequent research expanded into compiler testing and mutation analysis. Recently, this trajectory has shifted toward the intersection of software engineering and artificial intelligence, specifically addressing the reliability of large language models in automated code generation.
Research Trajectory
Dan Hao’s early research addressed the practical challenges of software debugging and fault localization. This work included the development of VIDA: Visual interactive debugging (2009), a tool integrated into the Eclipse environment that continuously recommended breakpoints based on execution analysis and programmer feedback to streamline the debugging process.
Following this, a significant portion of Hao’s research focused on optimizing regression testing through test case prioritization—scheduling the execution order of tests to expose faults earlier. To address the costs and precision loss associated with collecting dynamic execution data, Hao and collaborators proposed A Static Approach to Prioritizing JUnit Test Cases (2012), which operated entirely without requiring dynamic coverage information. This practical optimization was accompanied by theoretical advancements in the field. In Bridging the gap between the total and additional test-case prioritization strategies (2013), the research formalized models that unified two widely adopted generic prioritization strategies, yielding a spectrum of approaches that balance total element coverage with additional, not-yet-covered elements. These foundational models were further consolidated in A Unified Test Case Prioritization Approach (2014). Concurrently, Hao investigated the practical challenges of software evolution, highlighting the ambiguity developers face when test suites fail. The study Is This a Bug or an Obsolete Test? (2013) examined how to distinguish between genuine source code faults and tests that have simply become outdated due to code evolution, a critical distinction for automated test repair.
As software systems grew more complex, Hao’s focus expanded to include compiler testing and mutation analysis. To accelerate the discovery of compiler bugs, Hao contributed to Learning to prioritize test programs for compiler testing (2017), which applied prioritization techniques to automatically generated test inputs from tools like CSmith. The broader landscape of this domain—including test construction, oracle design, and execution—was later synthesized in A Survey of Compiler Testing (2021). In parallel, to mitigate the severe computational expense of traditional mutation testing, Hao and colleagues developed Predictive Mutation Testing (2019), an approach designed to estimate the fault-detection capability of test suites without the overhead of executing every generated mutant.
Entering the 2020s, Hao’s research increasingly intersected with artificial intelligence, both in testing machine learning systems and in applying machine learning to software engineering tasks. Addressing the high costs of manual data labeling in AI, Hao led the development of DeepReduce, detailed in Cost-Effective Testing of a Deep Learning Model through Input Reduction (2020). This method selected small, representative subsets of testing data to quickly estimate model performance by approximating the distribution of the full dataset. The application of testing methodologies to AI systems was further extended to natural language processing in Fairness Testing of Machine Translation Systems (2024).
During this period, Hao also applied advanced modeling techniques to automate and understand software development workflows. This included FIRA: Fine-Grained Graph-Based Code Change Representation for Automated Commit Message Generation (2022), which improved upon coarse-grained representations to better summarize code changes in natural language. In the realm of collaborative development, Hao investigated the persistent challenge of merge conflicts. The study Merge Conflict Resolution: Classification or Generation? (2023) evaluated the limitations of classification-based deep learning models, noting their inability to generate new tokens or flexible conflict resolutions. This was followed by Revisiting the Conflict-Resolving Problem from a Semantic Perspective (2024), which sought to address the root causes of conflicts by comprehending the semantic differences between conflicting versions, rather than relying on heuristic or black-box approaches. Additionally, Hao contributed to program understanding in dynamic languages with What Types Are Needed for Typing Dynamic Objects? A Python-Based Empirical Study (2023), analyzing how type systems can better track highly dynamic objects at runtime when a single constructor might create objects of varying types.
Current Directions
The most recent papers in the evidence address the reliability and evaluation of large language models (LLMs) in automated code generation. While LLMs have demonstrated strong performance in generating code from natural language requirements, they frequently produce inaccurate outputs that require extensive manual debugging. Recent work investigates consistency-based frameworks to automatically evaluate and rank these generated code candidates. This includes the development of ConAIR:Consistency-Augmented Iterative Interaction Framework to Enhance the Reliability of Code Generation (2024), which refines how consistency metrics are applied to candidate solutions. Building on this, ConTested: Consistency-Aided Tested Code Generation with LLM (2025) addresses the vulnerability of relying on LLM-generated tests for validation, proposing methods to mitigate the risks of majority voting when the underlying tests themselves may be flawed.
Profile updated
| Title | Venue | Year |
|---|---|---|
| Search-Induced Issues in Web-Augmented LLM Code Generation: Detecting and Repairing Error-Inducing Pages | arXiv | 2026 |
| ConTested: Consistency-Aided Tested Code Generation with LLM | Proc. ACM Softw. Eng | 2025 |
| GUI Test Migration via Abstraction and Concretization | ACM Transactions on Software Engineering and Methodology | 2025 |
| Automatically Learning a Precise Measurement for Fault Diagnosis Capability of Test CasesGitHub resource | ACM Trans. Softw. Eng. Methodol | 2025 |
| Coverage-Based Fault Localization in Haskell | JCST | 2025 |
| Fairness Testing of Machine Translation Systems | ACM Trans. Softw. Eng. Methodol | 2024 |
| What can we learn from quality assurance badges in open-source software? | Science China Information Sciences | 2024 |
| Revisiting the Conflict-Resolving Problem from a Semantic Perspective | Ase | 2024 |
| ConAIR:Consistency-Augmented Iterative Interaction Framework to Enhance the Reliability of Code Generation | arXiv | 2024 |
| What Types Are Needed for Typing Dynamic Objects? A Python-Based Empirical Study | Aplas | 2023 |
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