Ravi Agrawal

Ravi Agrawal

Microsoft AI
6 previous affiliations
3Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Ravi Agrawal focuses on the development of robust and safe natural language processing systems, with a particular emphasis on the alignment and architectural security of large language models (LLMs). His work explores methods for improving the reliability of cascaded speech translation pipelines, optimizing reinforcement learning from human feedback (RLHF) through weighted preference strategies, and mitigating adversarial threats like prompt injection by introducing instruction hierarchies into model embeddings.

Research Trajectory

Agrawal’s research trajectory demonstrates an evolution from addressing specific noise-related vulnerabilities in speech processing to investigating broader structural and alignment challenges in generative AI. In 2023, his work centered on the robustness of speech translation (ST) systems. This research addressed the inherent limitations of cascaded ST models, where errors in automatic speech recognition (ASR) often propagate to the machine translation (MT) component, leading to significant performance degradation. By applying contrastive learning techniques, Agrawal participated in efforts to align the semantic representations of noisy and clean text, thereby stabilizing the downstream translation process.

In 2024, Agrawal’s focus shifted toward the optimization of LLM training and alignment. He contributed significantly to research on preference optimization, specifically addressing the distributional gap that occurs when models are trained on off-policy data—data generated by models other than the one being optimized. This work sought to improve the efficiency and scalability of RLHF, a critical process for ensuring that LLMs adhere to human values and instructions.

Most recently, between 2024 and 2025, Agrawal has concentrated on the security and architectural integrity of LLMs. This research addresses the "flat" nature of current transformer architectures, which often fail to distinguish between high-priority system instructions and potentially malicious user-provided data. By collaborating on the development of instructional hierarchies at the embedding level, Agrawal has explored ways to bake safety directly into the model's internal representation of data, providing a more robust defense against prompt injection and extraction than traditional training-based or delimiter-based methods.

Current Directions

Agrawal’s current research interests are primarily situated at the intersection of model safety and architectural innovation. A central theme in his recent work is the mitigation of vulnerabilities arising from the lack of differentiation between instruction types in LLMs. By moving beyond surface-level safety filters and focusing on how models process different segments of input—such as system messages versus user prompts—his work aims to create models that are inherently more resistant to manipulation.

Additionally, he continues to explore the nuances of preference optimization. His work in this area focuses on making the alignment process more robust by bridging the gap between theoretical on-policy learning and the practical realities of off-policy data collection. This involves developing weighting strategies that allow models to learn more effectively from diverse data sources without falling into the optimization traps caused by distributional shifts.

Representative Work

Agrawal’s contributions are evidenced by several key papers that address robustness, alignment, and safety in modern NLP.

In the domain of model alignment, Agrawal served as the second author on WPO: Enhancing RLHF with Weighted Preference Optimization. This research addresses a core challenge in Reinforcement Learning from Human Feedback (RLHF): the distributional gap between the policy used to collect preference data and the target policy being optimized. The paper proposes Weighted Preference Optimization (WPO), a strategy that simulates on-policy learning using off-policy data. By adapting the data to better reflect the target policy's distribution, the method mitigates suboptimal optimization and improves the overall alignment of LLMs with human preferences.

Addressing the architectural security of generative models, Agrawal participated in the development of Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy. This work identifies a fundamental flaw in current LLM designs: the equal treatment of developer instructions and untrusted user data. The research introduces Instructional Segment Embedding (ISE), an architectural modification inspired by BERT’s segment embeddings. ISE explicitly tags the role of every token—categorizing them as System, User, or Data—directly within the model's embeddings. This hierarchy allows the model to prioritize critical safety protocols and system instructions over lower-priority user prompts, significantly reducing the success rate of prompt injection and extraction attacks while maintaining or improving general performance.

Earlier in his research trajectory, Agrawal contributed to CLAD-ST: Contrastive Learning with Adversarial Data for Robust Speech Translation. This work focuses on the robustness of cascaded speech translation models. Because MT models are typically trained on well-formed text, they often struggle with the noisy outputs generated by ASR systems. Agrawal and his collaborators addressed this by forcing the MT encoder to bring the representations of noisy inputs closer to their clean counterparts in the semantic space. This contrastive learning approach helps the model maintain translation quality even when faced with the disfluencies and errors common in spoken language processing.

Given the available evidence, Agrawal’s work is characterized by a consistent interest in the internal mechanisms of language models—whether through the alignment of semantic spaces in translation, the weighting of preference data in RLHF, or the structural tagging of input types for safety. His contributions suggest a focus on making AI systems more reliable and secure through both algorithmic and architectural interventions.

Profile updated

See something wrong? Report a mistake