Xiaofei Ma

Xiaofei Ma

Amazon (United States)
5 previous affiliations
34Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Xiaofei Ma focuses on natural language understanding, conversational AI, and code generation. His research trajectory spans foundational improvements to transformer-based retrieval and reasoning architectures, advancing toward robust, retrieval-augmented systems for structured and programmatic tasks. Most recently, his work addresses the reliability and efficiency of large language models in complex software engineering environments.

Research Trajectory

His early research concentrated on optimizing transformer architectures for search, representation, and domain adaptation. In 2019, he introduced Multi-passage BERT: A Globally Normalized BERT Model for Open-domain Question Answering, which applied global score normalization across retrieved passages to improve reading comprehension performance. Concurrently, he explored the internal mechanics of transformer representations, demonstrating in Universal Text Representation from BERT: An Empirical Study that fine-tuning on natural language inference data combined with mean-pooling yields highly effective sentence embeddings. He also developed frameworks for unsupervised domain adaptation, using curriculum-based data selection to adapt language models to unseen textual domains in Domain Adaptation with BERT-based Domain Classification and Data Selection.

Moving beyond discriminative models, he advanced the area of Generative Reranking for Information Retrieval by formulating ranking as a query generation task in Beyond [CLS] through Ranking by Generation. This work demonstrated that generative models could effectively outperform traditional BERT-based rankers on passage retrieval. He then focused on interpretable reasoning, developing the Iterative Retrieval-Generation Reasoner in Entailment Tree Explanations via Iterative Retrieval-Generation Reasoner, an architecture that interleaves retrieval and reasoning to generate step-by-step logical proofs for complex queries.

By 2023, his trajectory shifted toward structured knowledge and code generation. He directed research on Multitask Pretraining with Structured Knowledge for Text-to-SQL Generation, introducing a pretraining strategy that incorporates database schema context to improve sequence-to-sequence learning for tabular data. Concurrently, he investigated the temporal stability of these models, introducing the CODETASK-CL benchmark in Exploring Continual Learning for Code Generation Models to evaluate and mitigate catastrophic forgetting when learning new coding tasks over time.

In 2024, his focus expanded to the efficiency, robustness, and evaluation of large language models in applied settings. To address the research direction of Managing Stochastic Instability in Large Language Model Reasoning, he collaborated on Lightweight reranking for language model generations. This work leverages n-gram overlap statistics to advance the area of Unsupervised Model Selection through Semantic Consensus, allowing models to select optimal outputs without requiring expensive reward models. He also led the development of Repoformer: Selective Retrieval for Repository-Level Code Completion, a framework that optimizes retrieval-augmented generation by teaching models to self-evaluate when external repository context is necessary. Further addressing software engineering applications, he investigated coverage-guided test generation in Code-Aware Prompting: A Study of Coverage-Guided Test Generation in Regression Setting using LLM.

To improve inference efficiency, he oversaw the creation of BASS: Batched Attention-optimized Speculative Sampling, which scales speculative decoding for multiple sequences using custom CUDA kernels. He also directed work in the area of Token Level Contrastive Learning for Granular Representation Alignment with CodeFort: Robust Training for Code Generation Models, a training framework that uses adversarial and contrastive techniques to make code generation resilient to semantic-preserving prompt perturbations.

Most recently, he participated in developing Approximately Aligned Decoding, a strategy that adapts backtracking algorithms to enforce complex constraints during generation without the overhead of rejection sampling. His investigations into software engineering applications continue with LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generation, which evaluates how well code models handle rapidly evolving libraries and explores retrieval-augmented generation to bridge performance gaps.

Current Directions

The most recent papers in the evidence address the reliability and practical deployment of large language models in software engineering contexts. A primary focus is the broader area of Grounding Code Generation in Technical API Documentation. Recent work highlights the challenge of adapting code models to rapidly evolving software libraries, emphasizing retrieval-augmented generation as a mechanism for maintaining version-specific accuracy when APIs change. Additionally, ongoing research investigates constrained decoding strategies to enforce complex generation rules efficiently, balancing output quality with computational cost in applied settings.

Profile updated

See something wrong? Report a mistake