Hassan Mansoor

Google (United States) · Google DeepMind (United Kingdom)
4 previous affiliations
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Hassan Mansoor focuses on the alignment and refinement of large language models (LLMs) through automated feedback mechanisms and optimized in-context learning strategies. His work addresses the scalability of model training and the enhancement of inference-time performance, particularly in the domains of natural language generation and automated code repair. By investigating methods to replace or augment human-intensive processes with algorithmic alternatives, Mansoor contributes to the development of more efficient and capable generative AI systems.

Research Trajectory

Mansoor’s research trajectory is defined by a shift from training-time alignment strategies to the optimization of model performance during inference. In 2024, his work centered on the challenges of Reinforcement Learning from Human Feedback (RLHF), specifically the bottleneck created by the need for high-quality, human-annotated preference data. This period of research focused on the viability of Reinforcement Learning from AI Feedback (RLAIF) as a scalable alternative for aligning models with human preferences in dialogue and summarization tasks.

Beginning in 2025, Mansoor’s focus expanded to include inference-time compute and the use of in-context learning (ICL) for specialized technical tasks. This work, exemplified by the development of the AuPair framework, explores how models can be guided to repair their own errors—specifically in programming—without the need for additional fine-tuning. This transition represents a move toward more modular and compute-efficient methods of improving model reliability, leveraging the inherent capabilities of pre-trained models through sophisticated prompting and example selection.

Scalable Alignment and Feedback Mechanisms

A significant portion of Mansoor’s documented research involves the comparative analysis of human and AI-driven feedback loops. In the context of aligning LLMs, the traditional RLHF pipeline requires substantial human labor to rank model outputs, which is difficult to scale as models become more complex and the volume of required data increases.

Mansoor participated in research that demonstrated the efficacy of RLAIF: Scaling Reinforcement Learning from Human Feedback with AI Feedback, which replaces human annotators with an off-the-shelf LLM to generate preference labels. This work established that RLAIF can achieve performance parity with RLHF across multiple benchmarks. Specifically, the research showed that both RLAIF and RLHF policies could outperform baseline supervised fine-tuning (SFT) policies by approximately 70% in summarization tasks and 60% in helpful dialogue generation. This contribution is particularly relevant for the development of "self-improving" systems, as it suggests that a model can be effectively trained using feedback generated by another model of similar scale, thereby bypassing the human-labeling bottleneck.

Inference-Time Compute and Code Repair

More recently, Mansoor has investigated methods to improve the self-correction capabilities of LLMs during the inference phase. This research addresses the limitations of "self-repair," where a model attempts to fix its own flawed initial response. Standard self-repair often fails to yield significant improvements without external guidance or specialized fine-tuning.

As a primary contributor to the development of AuPair: Golden Example Pairs for Code Repair, Mansoor explored how the synthesis and selection of high-quality "golden" example pairs can facilitate more effective in-context learning. The AuPair method involves selecting a diverse and complementary set of (buggy code, fixed code) pairs using submodular optimization. By providing these curated examples in the prompt, the model is better equipped to recognize and rectify its own errors in code generation. This approach emphasizes the value of inference-time compute—using more processing power or more sophisticated prompting at the moment of generation—as a viable alternative to the resource-heavy process of fine-tuning models for specific debugging tasks.

Representative Work

The following papers represent the core of Mansoor's research contributions as documented in the current corpus.

In RLAIF: Scaling Reinforcement Learning from Human Feedback with AI Feedback, Mansoor and his collaborators addressed the scalability issues inherent in RLHF. The study compared the performance of models trained with AI-generated labels against those trained with human labels. The researchers found that RLAIF is not only a viable substitute for RLHF but also scales effectively, even when the AI labeler is not significantly larger or more capable than the model being trained. This work provided a critical proof-of-concept for the use of AI feedback in the alignment of large-scale generative models.

In AuPair: Golden Example Pairs for Code Repair, Mansoor served as a second author, contributing to a method that enhances the ability of LLMs to perform self-repair in programming contexts. The paper introduces a framework for synthesizing and selecting "golden pairs"—specific examples of bugs and their corresponding fixes—that are most effective for in-context learning. By utilizing submodular optimization to ensure the diversity and relevance of these pairs, the AuPair method allows models to scale their performance with inference-time compute more effectively than traditional sampling or unguided self-repair techniques. This work highlights the potential for sophisticated prompting strategies to unlock latent capabilities in pre-trained models for complex technical tasks.

Profile updated

See something wrong? Report a mistake