Shangqing Liu

Shangqing Liu

Nanjing University · Nanyang Technological University
2 previous affiliations
54Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shangqing Liu focuses on intelligent software engineering, specifically AI-based vulnerability detection, automated program repair, and the analysis of code pre-trained models. His trajectory spans from early applications of graph neural networks for code semantics to rigorous evaluations of large language models in programming tasks. Currently, his work investigates the semantic capabilities and robustness of code models, alongside advanced techniques for automated code refinement and vulnerability preservation.

Research Trajectory

Liu's early research explored applied deep learning in wireless sensing environments, demonstrated by his work on WiCount: A Deep Learning Approach for Crowd Counting Using WiFi Signals in 2017.

By 2019, his focus shifted decisively toward intelligent software engineering and cybersecurity. He participated in the development of Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networks, which utilized graph neural networks (GNNs) to extract rich semantic representations from source code for vulnerability detection. Building on this foundation, he introduced a broader methodology the following year with A Unified Framework to Learn Program Semantics with Graph Neural Networks.

In 2021 and 2022, Liu expanded his research into automated code summarization and software maintenance. He developed Retrieval-Augmented Generation for Code Summarization via Hybrid GNN, a novel approach that combined retrieval-based and generation-based methods to bridge the language gap between source code and natural language. This work contributed to the research direction of Global Attention for Long Range Graph Dependencies and the broader area of Multimodal Fusion for Source Code Representation. He also addressed the automation of developer workflows by incorporating Abstract Syntax Trees (ASTs) to capture code semantics in ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Ranking.

Continuing his work on code retrieval in 2023, Liu introduced GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Search. By combining bidirectional GNNs with multi-head attention, this framework improved the accuracy of retrieving relevant code snippets from natural language queries, advancing work in the area of Mapping Natural Language to Source Code Semantics. Concurrently, he began investigating the robustness of large-scale pre-trained models. Observing that models like CodeBERT were susceptible to adversarial perturbations such as variable renaming, he proposed ContraBERT: Enhancing Code Pre-trained Models via Contrastive Learning to mitigate these weaknesses.

In 2024, Liu's focus deepened into the rigorous evaluation and probing of large language models (LLMs) for code comprehension. He developed SpecEval: Evaluating Code Comprehension in Large Language Models via Program Specifications, an evaluation framework that uses formal program specifications (JML) as a proxy for semantics rather than relying solely on test-case passing. This research contributed to the area of Probing Code Intelligence with Semantics Preserving Transformations and highlighted vulnerabilities related to the direction of Robustness of Code Models to Semantics-Preserving Transformations. He further explored model capabilities with collaborators in Unveiling Code Pre-Trained Models: Investigating Syntax and Semantics Capacities, utilizing novel probing tasks to investigate the area of Hierarchical Feature Abstraction Across Transformer Layers.

Alongside model evaluation, Liu continued to advance automated software engineering techniques in 2024. He published Automated Commit Intelligence by Pre-training and collaborated on assessing AI-generated content in An Empirical Study to Evaluate AIGC Detectors on Code Content. Returning to his earlier focus on cybersecurity, he introduced Enhancing Code Vulnerability Detection via Vulnerability-Preserving Data Augmentation, addressing the challenges of data scarcity and model overfitting in vulnerability classification.

Moving into 2025, Liu's research expanded into the optimization and evaluation of models in low-level and dynamic execution environments. He participated in the development of caching-based superoptimization techniques for eBPF bytecode in EPSO: A Caching-Based Efficient Superoptimizer for BPF Bytecode. He also led investigations into whether dynamic execution traces genuinely improve LLM performance, finding in Do Code Semantics Help? A Comprehensive Study on Execution Trace-Based Information for Code Large Language Models that such traces offer limited benefits for supervised fine-tuning. Concurrently, he collaborated on large-scale benchmarking efforts to address the performance gap of LLMs in repairing C/C++ vulnerabilities with Defects4C: Benchmarking Large Language Model Repair Capability with C/C++ Bugs.

Current Directions

The most recent work in the evidence indicates a strong focus on the practical deployment, rigorous evaluation, and optimization of large language models in complex, low-level programming environments. A major ongoing theme is moving beyond static code analysis to understand how models process dynamic execution semantics, questioning whether execution traces genuinely enhance model comprehension or merely induce overconfidence. Additionally, recent efforts address the significant domain gaps in automated program repair, particularly the challenge of applying LLMs to memory-safe and systems-level languages like C and C++. This is complemented by broader interests in optimizing low-level systems code, such as eBPF bytecode, bridging the gap between traditional rule-based superoptimization and modern machine learning techniques.

Profile updated

See something wrong? Report a mistake