Xiaodong Gu

Shanghai Jiao Tong University
5 previous affiliations
66Machine learning papers tracked by Lacuna

3 other authors named Xiaodong Gu: Xiaodong Gu (Alibaba Group (China) · 35 papers), Xiaodong Gu (Fudan University · 5 papers), Xiaodong Gu (0 papers)

Is this you?

Research Overview

Xiaodong Gu focuses on large language models for software engineering, program generation, and the intersection of natural and programming languages. His early work developed deep learning techniques for code search and API learning, later expanding into dialogue systems and representation learning. Currently, his research investigates the interpretability, privacy, and reasoning capabilities of code-centric language models.

Research Trajectory

Xiaodong Gu's early research focused on extracting actionable insights from software artifacts and user feedback. He developed a framework for summarizing app reviews in What Parts of Your Apps are Loved by Users? (2015), which classified reviews and extracted aspect evaluations to help developers understand user preferences. Transitioning to deep learning applications for software engineering, he introduced foundational methods for Deep API learning (2016) and Deep code search (2018). To improve the automated generation of code examples, he proposed CodeKernel: A Graph Kernel Based Approach to the Selection of API Usage Examples (2019). By modeling source code beyond simple invocation sequences, this work contributed to the broader area of Graph-Based Code Representation for Software Engineering.

Concurrently, Gu explored natural language dialogue generation. In DialogWAE: Multimodal Response Generation with Conditional Wasserstein Auto-Encoder (2019), he addressed the limitations of standard variational autoencoders by training a generative adversarial network within the latent space, advancing techniques for differentiable discrete sampling and mitigating the safe response problem in dialogue generation. He further enhanced conversational models with DialogBERT: Discourse-Aware Response Generation via Learning to Recover and Rank Utterances (2021). By employing a hierarchical Transformer architecture to capture discourse-level coherence, this work advanced the research direction of Hierarchical Context Aggregation for Sequential Modeling and the area of Learning Dialogue Structure through Utterance Reordering.

With the emergence of large language models (LLMs), his focus returned to intelligent software engineering, specifically addressing the security, reliability, and interpretability of code generation. To mitigate privacy risks associated with cloud-based LLM services, his group developed CodeCipher: Learning to Obfuscate Source Code Against LLMs (2024), which optimizes a token-to-token confusion mapping to protect user code while preserving model utility. Addressing the reliability of generated code, he led the development of From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debugging (2024). This system isolates and resolves bugs across multiple granularities, significantly contributing to the research direction of Closing the Loop in LLM Code Generation.

In 2025, Gu's research expanded into the fundamental analysis of how LLMs process and generate code. He investigated the stylistic differences between AI and human developers in Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmers (2025). To improve the efficiency of retrieval-augmented generation systems, his group proposed AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generation (2025), which reformulates queries into a next-token prediction paradigm to reduce information redundancy, aligning with methods for Global Optimization for Text Summarization. His work on interpretability yielded Neuron-Guided Interpretation of Code LLMs: Where, Why, and How? (2025), which localized language-agnostic logic to specific concept layers within network architectures. He also mapped the emergent linguistic typology of programming languages as perceived by neural networks in Beyond Language Boundaries: Uncovering Programming Language Families for Code Language Models (2025). Continuing his work on software quality, he contributed to Just-in-time software defect prediction via bi-modal change representation learning (2025), which extracts semantics from code changes and commit messages, advancing the area of Aligning Code Semantics Through Intermediate Representations.

Most recently, Gu has collaborated on scaling model performance and reasoning capabilities for complex tasks. He participated in the design of Robust Preference Alignment via Directional Neighborhood Consensus (2026), an inference-time method to bridge preference coverage gaps. He also contributed to SRPO: Self-Reflective Policy Optimization for Long-Horizon Reasoning (2026), a framework that enables LLMs to learn from past failures through reflection patches. Finally, in Rethinking Code Complexity Through the Lens of Large Language Models (2026), he helped introduce a model-aware metric that quantifies code difficulty based on semantic nonlinearity rather than traditional structural complexity.

Gu's lab has further expanded into repository-level software engineering and agentic systems. In In Line with Context: Repository-Level Code Generation via Context Inlining (2026) and LLM Agents Can See Code Repositories (2026), Gu directed methods for managing repository-scale context and repository visual exploration for coding agents. Gu also oversaw the creation of SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring (2026), establishing an expert-curated benchmark across multiple languages to evaluate coding agents beyond saturating benchmarks. To improve agent inference efficiency, Gu led the development of GlimpRouter: Efficient Collaborative Inference by Glimpsing One Token of Thoughts (2026). Additionally, Gu co-authored CatchAll: Repository-Aware Exception Handling with Knowledge-Guided LLMs (2026) to guide exception handling using repository context, and contributed to FedSEM: Mitigating Cross-Client Evidence Drift in Federated Multiple Instance Learning (2026), which addresses evidence drift across heterogeneous federated clients through a shared evidence memory framework.

Current Directions

The most recent papers in the evidence indicate a strong focus on the reasoning capabilities, alignment, and interpretability of large language models. Current work investigates repository-scale code generation, benchmarking autonomous coding agents on large-scale refactoring, collaborative inference routing, and evidence alignment in federated learning. Additionally, recent research addresses long-horizon reasoning through self-reflective policy optimization, enabling agents to learn from stepwise execution traces and past failures. Another active area involves refining preference alignment during inference, ensuring that models can robustly satisfy niche or out-of-distribution user intents without requiring extensive retraining.

Profile updated

See something wrong? Report a mistake