Xiaopeng Li

Amazon (United States)
5 previous affiliations
10Machine learning papers tracked by Lacuna

5 other authors named Xiaopeng Li: Xiaopeng Li (City University of Hong Kong · 46 papers), Xiaopeng Li (National University of Defense Technology · 24 papers), Xiaopeng Li (Shenzhen Research Institute of Big Data · 12 papers), Xiaopeng Li (University of Wisconsin–Madison · 1 paper), Xiaopeng Li (Tianjin University · 1 paper)

Is this you?

Research Overview

Xiaopeng Li focuses on the development and optimization of Large Language Models (LLMs), with a specific emphasis on code generation, Reinforcement Learning from Human Feedback (RLHF), and agentic workflows for software engineering. His work spans the transition from foundational generative modeling in recommender systems to the industrial-scale deployment of generative AI. Currently a Senior Applied Scientist at Amazon AWS, Li’s research trajectory reflects an evolution from architectural sparsity and Bayesian modeling toward the alignment, self-correction, and preference-learning capabilities of multi-billion parameter models.

Research Trajectory

Li’s early research, conducted during his doctoral studies at the Hong Kong University of Science and Technology, was centered on Bayesian generative models and neural network architecture. During this period, he addressed fundamental challenges in representation learning, particularly the limitations of collaborative filtering in sparse data environments. This work resulted in the development of hybrid models that integrated content information with rating data to improve recommendation accuracy in multimedia contexts. Simultaneously, he investigated structural efficiency in deep learning, exploring how sparse connectivity—a hallmark of convolutional and recurrent architectures—could be systematically applied to feedforward neural networks to improve computational efficiency and model interpretability.

Following the completion of his PhD in 2019, Li transitioned to industrial research at Amazon AWS, where he became a founding member of the CodeWhisperer team. This shift marked a significant pivot toward large-scale natural language processing and code generation. His work during this phase focused on the pretraining and fine-tuning of code-specific LLMs, moving beyond isolated code snippets to address the complexities of Coordinated Multi File Reasoning for Repository Level Code Repair. This period involved extensive benchmarking of model performance across diverse programming languages and the exploration of continual learning techniques to manage the rapid deprecation and upgrading of software libraries.

In his current role as a Senior Applied Scientist and science lead for Amazon Q in IDE, Li’s focus has shifted toward the alignment of LLMs with human intent and the development of autonomous agents. His recent work emphasizes the "self-debugging" capabilities of models—teaching LLMs not only to generate code but to explain and rectify their own errors. This involves sophisticated RLHF strategies and the creation of synthetic data pipelines to simulate code evolution. He also continues to investigate the internal dynamics of LLMs, such as the anisotropy of hidden representations and the necessity of Precision Knowledge Editing for Large Language Models to keep models updated without exhaustive retraining.

Current Directions

Li’s current research program is organized around three primary pillars: alignment through preference learning, autonomous self-correction, and architectural efficiency.

A central theme in his recent work is the development of code preference models. Recognizing that functional correctness (passing unit tests) is only one aspect of high-quality code, Li investigates how to align LLMs with developer preferences regarding readability, efficiency, and idiomatic style. This research utilizes synthetic evolution—leveraging code commits and critiques—to train pairwise preference models that can distinguish between subtle variations in code quality.

Furthermore, Li is advancing the field of agentic code generation. This involves moving from static completion models to interactive agents that can reason about complex software repositories. His work on self-debugging frameworks aims to reduce the reliance on human intervention by training models to iteratively refine their output based on execution feedback and internal explanations. Finally, he maintains an interest in the fundamental efficiency of sequence models, exploring gated attention mechanisms that selectively activate network components to handle long-context sequences more effectively than standard transformer architectures.

Representative Work

In Collaborative Variational Autoencoder for Recommender Systems, Li (as first author) introduced a Bayesian generative model designed to overcome the cold-start and sparsity problems inherent in traditional collaborative filtering. By integrating a variational autoencoder with collaborative filtering, the research demonstrated a method for learning deep representations from multimedia content, significantly expanding the utility of hybrid recommender systems beyond simple text-based modalities.

Li’s interest in model structure is evidenced in Building Sparse Deep Feedforward Networks using Tree Receptive Fields. As first author, he proposed a method for learning sparse connectivity in feedforward networks by identifying strongly correlated units using the Chow-Liu algorithm. This approach allowed for the construction of multiple hidden layers with structured receptive fields, providing a principled alternative to the dense connectivity typically found in standard feedforward architectures.

As a key contributor to the evaluation of generative models, Li participated in the development of Multi-lingual Evaluation of Code Generation Models. This work established benchmarks (MBXP and Multilingual HumanEval) for assessing code completion across more than ten programming languages. The study provided critical insights into the cross-lingual generalization abilities of LLMs and the efficacy of few-shot prompting in teaching models new syntax and logic.

In the domain of model alignment and error correction, Li served as the second author for LeDex: Training LLMs to Better Self-Debug and Explain Code. This paper presented a training framework that enables open-source LLMs to identify and fix their own coding mistakes. The framework utilizes a reinforcement learning strategy that rewards both the correctness of the final code and the quality of the model's explanation of the bug, leading to measurable improvements in standard coding benchmarks.

Li’s recent work on preference modeling is represented by Learning Code Preference via Synthetic Evolution. This research addresses the challenge of aligning model output with human developer "taste." By proposing the CodeFavor framework, the authors demonstrate how to train pairwise preference models using synthetic data derived from code commits and critiques, offering a scalable recipe for improving the qualitative aspects of model-generated code.

Finally, Li has explored the optimization of attention mechanisms in Not All Attention Is Needed: Gated Attention Network for Sequence Data. Serving as second author, he investigated the combination of traditional attention with dynamic network configuration. The proposed Gated Attention Network (GAN) selectively attends to relevant parts of a sequence, addressing the computational inefficiencies of attending to entire sequences in long-form text classification and generation tasks.

Profile updated

See something wrong? Report a mistake