Zhenwen Li

Peking University
1 previous affiliation
8Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Zhenwen Li focuses on the intersection of software engineering and natural language processing, with a specific emphasis on semantic parsing, the evaluation of large language models (LLMs) for code, and the automation of software testing through natural language analysis. Li's research investigates how meaning representations influence the performance of neural models and seeks to develop robust benchmarks for assessing the capabilities of code-centric AI systems. By bridging the gap between natural language instructions and executable code, Li's work addresses fundamental challenges in software automation and the interpretability of neural semantic parsers.

Research Trajectory

Li's early research, beginning around 2020, was primarily concerned with the practical application of natural language processing to software engineering workflows, particularly in the domain of test automation. A significant portion of this work addressed the "test oracle problem"—the difficulty of determining whether a program's output is correct when test cases are documented in natural language rather than executable code. Li contributed to research on the Automated Test Oracle Generation by developing methods to cluster semantically similar test steps. This approach aimed to reduce the manual effort required to map natural language instructions to specific API methods, thereby streamlining the creation of executable test scripts for large-scale industrial applications.

During this same period, Li's work expanded into the foundational infrastructure of semantic parsing. The effectiveness of neural semantic parsers is often contingent on the choice of meaning representation, yet the impact of these representations was historically difficult to measure due to a lack of unified benchmarks and execution engines. Li participated in efforts to standardize this field by integrating disparate datasets and implementing missing logical forms and execution environments, providing a more comprehensive framework for evaluating how different representations affect model performance.

By 2022, Li's focus shifted toward a more analytical examination of the internal mechanics of semantic parsing models. This transition involved Minimal Pair Evaluation of Language Models and other diagnostic techniques to understand why certain meaning representations present greater learning difficulties than others. This analytical turn sought to move beyond surface-level performance metrics, such as accuracy or F1 scores, which can often be inflated by models exploiting shallow statistical shortcuts. By investigating the "secrets" behind learning difficulty, Li's work aimed to elucidate the structural and semantic factors that challenge neural parsers.

In parallel with this analytical work, Li was involved in applying semantic parsing techniques to specialized domains, such as the synthesis of data visualizations from natural language instructions. This research addressed the inherent noise and ambiguity in user-provided text—a challenge shared with research in Robustness to Input Noise in Neural Machine Translation. By employing syntax-guided synthesis, Li and collaborators developed tools to bridge the gap between vague user intent and concrete code implementation, specifically focusing on the needs of novice programmers who may provide incomplete or contextually dependent instructions.

Current Directions

Li's most recent research, observed through 2024, has transitioned to the evaluation of large language models specifically designed for code (code LLMs). As these models have become increasingly sophisticated, the focus of evaluation has shifted from simple code generation tasks to more complex, freeform question-answering (QA). Li's recent work involves the development of large-scale benchmarks that utilize real-world data from platforms like Stack Overflow to assess the breadth of knowledge and reasoning capabilities inherent in modern code LLMs.

This current direction emphasizes the necessity of evaluating models beyond their ability to produce syntactically correct code snippets. By focusing on freeform QA, Li's research assesses how well models can explain concepts, provide debugging advice, and handle the diverse range of coding-related queries that developers encounter in practice. This work reflects a broader shift in the field toward understanding the utility of LLMs as comprehensive programming assistants rather than just automated coders.

Representative Work

Exploring the Secrets Behind the Learning Difficulty of Meaning Representations for Semantic Parsing (2022) As the lead author of this study, Li investigates the internal factors that contribute to the varying levels of difficulty neural models face when learning different meaning representations. The research addresses a critical gap in semantic parsing: while many representations exist, their relative learnability and the reasons for their performance discrepancies remain poorly understood. This work employs probing techniques to analyze how models process structural and semantic information, providing insights that go beyond standard benchmark scores and highlighting the importance of representation design in model training.

Clustering test steps in natural language toward automating test automation (2020) In this work, Li addresses the manual bottleneck in industrial software testing, where thousands of test cases are often written in natural language. The research proposes a method for clustering test steps based on semantic similarity to facilitate their mapping to executable API methods. By identifying recurring steps across different test cases, the approach reduces the redundancy of manual script creation. Li's contribution focuses on the natural language processing techniques required to group these steps effectively, enabling a more streamlined transition from manual documentation to automated execution in large-scale systems.

InfiBench: Evaluating the Question-Answering Capabilities of Code Large Language Models (2024) Li participated in the development of InfiBench, a benchmark designed to evaluate code LLMs on freeform question-answering rather than just code generation. Recognizing that existing benchmarks like HumanEval or MBPP do not capture the full range of developer-AI interactions, the team curated 234 high-quality questions from Stack Overflow. This work provides a more comprehensive assessment of how models handle diverse coding-related queries, including conceptual explanations and debugging advice, which are essential for their role as programming assistants in real-world environments.

Benchmarking Meaning Representations in Neural Semantic Parsing (2020) This collaborative effort resulted in a unified benchmark for evaluating meaning representations in semantic parsing. Li's role involved the integration of existing datasets and the implementation of execution engines that were previously unavailable. By providing a common framework for comparison, this work allows researchers to more accurately measure the impact of different logical forms on model performance across various semantic parsing tasks, addressing the lack of standardized evaluation tools in the field.

NL2Viz: natural language to visualization via constrained syntax-guided synthesis (2022) Li contributed to the development of NL2VIZ, a tool designed to generate data visualization code from natural language instructions. The research identifies three primary challenges in this domain: contextual semantics, incomplete user specifications, and the need for iterative refinement. The tool leverages syntax-guided synthesis to ensure that the generated code is both syntactically correct and aligned with the user's intent, even when the input instructions are underspecified or ambiguous. This work highlights the potential for NL2Code systems to assist novice programmers in data-driven tasks.

Profile updated

See something wrong? Report a mistake