Weiyi Shang
· 1 previous affiliation
- University of WaterlooSince 2023
- Associate Professor · Since 2023
Research Overview
Weiyi Shang focuses on software engineering, with an emphasis on log analysis, performance engineering, and the application of large language models to software development. His trajectory spans early work in mining software repositories to foundational contributions in log engineering and system performance optimization. Recently, his research investigates the intersection of artificial intelligence and software engineering, addressing the efficiency, reliability, and privacy of AI-assisted coding tools.
Research Trajectory
Shang’s early research addressed the scalability challenges of analyzing large-scale software data. He explored distributed computing solutions, proposing MapReduce as a general framework to support research in Mining Software Repositories (MSR) to help researchers process extensive repository data more efficiently. This interest in managing complex software data naturally evolved into a focus on software logs. Recognizing a disconnect between the teams building software and those maintaining it, he introduced methods for Bridging the divide between software developers and operators using logs. He subsequently formalized this domain with Log Engineering: Towards Systematic Log Mining to Support the Development of Ultra-large Scale Systems, establishing logs as a critical, structured resource for understanding the runtime behavior of massive systems.
Alongside his work on logs, Shang investigated the performance implications of modern software frameworks. With collaborators, he analyzed how abstraction layers, while simplifying development, can introduce hidden inefficiencies. This was detailed in Detecting performance anti-patterns for applications developed using object-relational mapping, which identified common pitfalls in database access. He expanded on this by Finding and Evaluating the Performance Impact of Redundant Data Access for Applications that are Developed Using Object-Relational Mapping Frameworks, providing developers with insights into how ORM frameworks can inadvertently degrade system performance through suboptimal data retrieval.
Returning to log engineering, Shang’s later work sought to automate and optimize logging practices. To ground automated tools in real-world needs, he conducted A Qualitative Study of the Benefits and Costs of Logging From Developers' Perspectives, systematically documenting the trade-offs developers face when inserting logging statements. Building on these insights, his group developed machine learning approaches to assist developers, such as DeepLV: Suggesting Log Levels Using Ordinal Based Neural Networks, which helps determine the appropriate severity level for a given log event. To make the resulting logs actionable, he contributed to Logram: Efficient Log Parsing Using $n$n-Gram Dictionaries, an automated parsing technique that converts unstructured raw logs into structured data without requiring access to the original source code templates.
In recent years, Shang has broadened his focus to include the reliability of numerical programs and the automation of performance testing. He investigated numerical errors in safety-critical applications, developing DELA: A Novel Approach for Detecting Errors Induced by Large Atomic Condition Numbers. This work aligns with his contributions to the broader area of Bit-Level Reproducibility in Non-Associative Floating-Point Systems, further exemplified by OFP-Repair: Repairing Floating-point Errors via Original-Precision Arithmetic, a framework that identifies and patches floating-point errors without the massive overhead of high-precision arithmetic.
Simultaneously, he continued to advance performance engineering. To streamline component-level testing, his team proposed the Batch Execution of Microbenchmarks for Efficient Performance Testing, grouping similar benchmarks to reduce execution time. At the system level, he explored the Early Detection of Performance Regressions by Bridging Local Performance Data and Architectural Models, aiming to catch performance degradation during rapid release cycles without relying solely on expensive, full-system load testing. He also returned to log parser evaluation, addressing the lack of reliable ground truth with A Story About Cohesion and Separation: Label-Free Metric for Log Parser Evaluation, which uses unsupervised clustering principles to assess parser performance.
Most recently, Shang has extensively investigated the integration of Large Language Models (LLMs) into software engineering workflows. He evaluated how these models can assist in maintenance tasks, such as in An Empirical Study on the Capability of LLMs in Decomposing Bug Reports, which tested the ability of models like ChatGPT and DeepSeek to break down complex issues into manageable units. Moving beyond functional correctness, he explored LLM-guided optimization in More Than Just Functional: LLM-as-a-Critique for Efficient Code Generation, leveraging the model's latent algorithmic knowledge to generate high-performance code. However, he also critically examined the risks associated with these technologies; in When AI Coding Assistants Leak Training Data: Study Memorization in Code LLMs, his research demonstrated how state-of-the-art code models can memorize and reproduce sensitive or licensed training data, highlighting significant privacy and compliance concerns.
Current Directions
Recent work investigates the dual nature of Large Language Models in software engineering—both as powerful tools for automation and as sources of new vulnerabilities. A major focus is on improving the efficiency of AI-generated code, moving beyond basic functional correctness to ensure that LLM-suggested solutions are optimized for execution time and memory usage. Concurrently, there is a strong emphasis on the security and privacy implications of code LLMs, particularly concerning the memorization and unintended leakage of proprietary training data.
In parallel, ongoing research continues to advance performance engineering and system reliability. This includes developing automated, scalable methods for executing microbenchmarks and detecting performance regressions early in the development lifecycle. Additionally, recent efforts address the stability of numerical computing, creating lightweight frameworks to detect and repair floating-point errors in complex scientific and engineering software.
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