Vanshaj Khattar
· 3 previous affiliations
- Virginia TechSince 2021
- PhD student · Since 2021
- Current
- Intern · 2025
- Intern · 2024
Research Overview
Vanshaj Khattar focuses on the development of safe, interpretable, and adaptive artificial intelligence agents, with specific expertise in reinforcement learning (RL), constrained optimization, and the reasoning capabilities of large language models (LLMs). His work addresses the challenge of deploying autonomous systems in real-world environments where safety constraints, changing conditions, and the need for complex reasoning are paramount. Khattar’s research trajectory has evolved from foundational studies in meta-safe reinforcement learning and energy system optimization toward the exploration of trustworthy LLM reasoning and the application of in-context learning for cybersecurity in critical infrastructure.
Research Trajectory
Khattar’s early research, beginning around 2023, concentrated on the intersection of reinforcement learning and optimization, particularly under safety constraints. A primary focus during this period was the formulation of frameworks that allow agents to learn new tasks quickly while strictly adhering to safety requirements. This work addressed a significant gap in meta-reinforcement learning, which traditionally prioritized task adaptation over constraint satisfaction. By utilizing gradient-based meta-learning within a Constrained Markov Decision Process (CMDP) framework, Khattar contributed to methods that provide theoretical guarantees for both reward maximization and constraint satisfaction in dynamic environments.
During this same period, Khattar applied these optimization and RL techniques to practical engineering challenges, specifically in the domain of smart building management and energy efficiency. He participated in the development of adaptive controllers for heating, ventilation, and air conditioning (HVAC) systems, employing evolutionary search and trajectory-based guidance to balance energy consumption with occupant comfort. This phase of his work demonstrated a transition from theoretical RL formulations to the application of evolutionary reinforcement learning in complex, multi-objective optimization scenarios.
By 2024, Khattar’s focus expanded to include the reasoning mechanisms of large language models and the theoretical foundations of offline reinforcement learning. He investigated the use of optimization solution functions as deterministic policies, providing a bridge between classical optimization theory and modern offline RL. Simultaneously, he began contributing to the emerging field of LLM reasoning, participating in research that sought to internalize complex search processes—such as tree searches—directly within the prompting structure of language models. This shift reflects a broader interest in "agentic AI," where the goal is to enhance the efficiency and logical consistency of AI decision-making without the high computational costs of multi-query reasoning methods.
Most recently, in 2024 and 2025, Khattar has integrated his interests in adaptive learning and trustworthy AI to address security vulnerabilities in digital infrastructure. His recent work explores the use of In-Context Learning (ICL) for detecting "zero-day" attacks in digital power substations. By treating network traffic as a linguistic context, this research applies Transformer architectures to identify novel threats without the need for traditional model retraining, representing a significant application of generative AI techniques to the field of cybersecurity.
Current Directions
Khattar’s current research is centered on the safety and reasoning vulnerabilities of test-time reinforcement learning. This direction aims to understand how AI agents can be made more robust during the inference phase, particularly when they are required to reason through complex tasks in real-time. His ongoing work at the intersection of trustworthy LLMs and test-time training seeks to ensure that as models become more capable of sophisticated reasoning, they do not become more susceptible to adversarial exploitation or safety failures. This involves a dual focus on improving the internal logic of agents and developing monitoring systems, such as intrusion detection for smart grids, that can adapt to novel environmental stressors.
Representative Work
In A CMDP-within-online framework for Meta-Safe Reinforcement Learning, Khattar serves as the lead author in establishing a framework for meta-safe reinforcement learning (meta-SRL). The paper addresses the problem of constraint violations in learning-to-learn settings, where agents must adapt to unseen tasks. The work provides task-averaged regret guarantees for both optimality gaps and constraint violations, demonstrating that task similarity can be leveraged to improve safety and performance in static environments.
Khattar contributed to the development of TUNEOPT: An Evolutionary Reinforcement Learning HVAC Controller For Energy-Comfort Optimization Tuning, which applies evolutionary RL to the problem of building climate control. As a second author, he assisted in designing a controller that optimizes the trade-off between energy expenditure and comfort, utilizing evolutionary search to navigate the complex parameter space of HVAC systems.
In Optimization Solution Functions as Deterministic Policies for Offline Reinforcement Learning, Khattar explores the theoretical properties of optimization in the context of offline RL. As the first author, he examines how solution functions derived from optimization problems can serve as effective deterministic policies, contributing to the understanding of universal approximation and covering number bounds within this domain.
Khattar participated as a third author in the development of Algorithm of Thoughts: Enhancing Exploration of Ideas in Large Language Models. This work introduces a prompting strategy that enables LLMs to perform non-linear reasoning, such as tree-of-thought exploration, within a single query. The research focuses on internalizing algorithmic search processes to improve reasoning efficiency and reduce the latency associated with multi-step prompting methods.
In the area of cybersecurity, Khattar is a key contributor to Detecting Zero-Day Attacks in Digital Substations via In-Context Learning. As a second author, he helped develop an intrusion detection system that leverages the in-context learning capabilities of Transformer models. The system treats network packet sequences as context to identify previously unknown attacks in digital power substations, achieving high accuracy without requiring explicit retraining on attack signatures. This work was also presented in an earlier iteration as Zero-day Attack Detection in Digital Substations using In-Context Learning.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake