NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Juan Zhai

University of Massachusetts Amherst · University of Massachusetts System
5 previous affiliations
115Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Juan Zhai focuses on software engineering, formal specification synthesis, and the reliability of artificial intelligence systems. Her early work developed techniques to bridge the gap between natural language documentation and formal program behaviors. Currently, she investigates the trustworthiness of large language models, addressing challenges in verifiable code generation, automated debugging, and the mitigation of systemic biases.

Research Trajectory

Zhai’s early research addressed the fundamental challenge of understanding and verifying software behaviors. In 2016, she introduced Automatic model generation from documentation for Java API functions, a technique to construct simplified Java implementations by analyzing natural language documentation. Her focus soon expanded to include the security of emerging machine learning systems. She contributed to research in adversarial machine learning with Trojaning Attack on Neural Networks (2018), demonstrating how malicious backdoors could be injected into pre-trained models using synthetic data. Returning to program analysis, she developed CPC: automatically classifying and propagating natural language comments via program analysis (2020), which systematically propagated code comments to undocumented entities to aid in bug detection. This dual interest in software engineering and AI security continued as she advanced the research direction of Surgical Neuron Pruning for Post Training Backdoor Defense with BppAttack: Stealthy and Efficient Trojan Attacks against Deep Neural Networks via Image Quantization and Contrastive Adversarial Learning (2022), utilizing image quantization as a stealthy trigger to bypass contemporary backdoor defenses.

As AI systems grew in complexity, Zhai investigated methods to optimize their training and ensure the reliability of their underlying infrastructure. She developed DREAM: Debugging and Repairing AutoML Pipelines (2024), a system designed to identify and resolve performance bottlenecks and ineffective searches in automated machine learning workflows by monitoring fine-grained training feedback. To improve the core frameworks supporting these models, she introduced Deep Learning Framework Testing via Heuristic Guidance Based on Multiple Model Measurements (2025), a multi-metric approach that successfully uncovered numerical bugs and crashes in major libraries like TensorFlow and PyTorch. Additionally, her research addressed training efficiency through Speculative Coreset Selection for Task-Specific Fine-tuning (2024), which proposed using smaller draft models to identify high-value training data, thereby minimizing computational overhead.

A major theme in Zhai’s recent work is the intersection of large language models (LLMs) and software engineering, specifically focusing on verifiable code generation. Challenging the assumption that code generation alone demonstrates programming comprehension, she co-authored Beyond Code Generation: Assessing Code LLM Maturity with Postconditions (2024), proposing a maturity model based on a model's ability to write formal assertions. She further explored this in Breaking the Myth: Can Small Models Infer Postconditions Too? (2025), demonstrating that lightweight, open-source models can achieve high accuracy in generating repository-aware specifications when fine-tuned on targeted reasoning data. Her investigations into AI-assisted development also include Rethinking Technology Stack Selection with AI Coding Proficiency (2025), which introduced a metric to evaluate how effectively LLMs utilize specific libraries. This work highlighted the impact of AI proficiency gaps on software quality within the broader area of Multilingual and Repository Level Code Intelligence.

Zhai’s commitment to trustworthy AI extends to auditing and securing generative models. In The Invisible Hand: Unveiling Provider Bias in Large Language Models for Code Generation (2025), she exposed systematic biases where LLMs disproportionately favor services from specific tech providers, often silently altering user-provided code. She also addressed the challenge of model unlearning in Holistic Audit Dataset Generation for LLM Unlearning via Knowledge Graph Traversal and Redundancy Removal (2025), developing a framework to generate high-fidelity audit datasets that revealed significant shortcomings in existing knowledge erasure techniques. In the visual domain, her research on text-to-image models includes EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models (2025), which reconstructs semantically aligned text prompts from generated images, and participation in PROMPTMINER: Black-Box Prompt Stealing against Text-to-Image Generative Models via Reinforcement Learning and Fuzz Optimization (2025), a framework for recovering prompts without internal model access.

Current Directions

The most recent work in the evidence investigates the semantic alignment and security of large language models in software environments. Specifically, her 2026 research addresses "semantic confusion" in LLMs, where common symbols or emoticons are misinterpreted as executable commands. As demonstrated in Small Symbols, Big Risks: Exploring Emoticon Semantic Confusion in Large Language Models, this phenomenon can lead to syntactically correct but semantically flawed outputs, posing significant security risks in coding contexts. This direction emphasizes the need for robust, interpretable, and safe AI systems as they become increasingly integrated into critical software infrastructure.

Profile updated

See something wrong? Report a mistake