Anjiang Wei
· 2 previous affiliations
- Google (United States)Since 2026
- Research Scientist · Since 2026
- Stanford UniversityCurrent
- Current
- PhD student · 2021–2026
Research Overview
Anjiang Wei focuses on large language models for code generation, agentic systems, and high-performance computing. His early work addressed software testing and compiler optimizations for deep learning libraries. More recently, he investigates how multi-agent systems and automated reasoning can accelerate program verification and optimize GPU kernels for complex hardware architectures.
Research Trajectory
Wei’s early research concentrated on software reliability, specifically addressing the challenges of flaky tests in continuous integration environments. In 2021, he developed methods for Probabilistic and Systematic Coverage of Consecutive Test-Method Pairs for Detecting Order-Dependent Flaky Tests, providing a systematic approach to identify tests that fail nondeterministically based on execution order. He expanded on this foundation with Preempting Flaky Tests via Non-Idempotent-Outcome Tests, proposing a proactive detection strategy by running tests multiple times in identical environments to isolate non-idempotent behaviors. Concurrently, he explored the robustness of the machine learning stack itself, contributing to Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Source to automatically generate tests for Python-based deep learning APIs.
Alongside software testing, Wei investigated hardware abstraction and high-performance computing (HPC). He participated in the development of AMOS: enabling automatic mapping for tensor computations on spatial accelerators with hardware abstraction, which sought to optimize tensor applications for specialized spatial hardware by addressing the complex performance optimization space of new accelerators. This interest in mapping and parallelization continued into his later work on Mapple: A Domain-Specific Language for Mapping Distributed Heterogeneous Parallel Programs, a domain-specific language designed to minimize data movement and reduce boilerplate code when assigning workloads to distributed hardware. He also applied task-based programming paradigms to complex scientific computing problems, as seen in Task-Based Programming for Adaptive Mesh Refinement in Compressible Flow Simulations, which tackled the computational demands of simulating high-speed fluid dynamics.
By 2025, Wei’s focus shifted significantly toward the intersection of large language models (LLMs) and programming languages, evaluating and enhancing how models reason about code semantics. He introduced EquiBench: Benchmarking Large Language Models’ Understanding of Program Semantics via Equivalence Checking, a benchmark revealing that LLMs often rely on superficial syntax rather than deep semantic reasoning. This work aligns with the broader research direction of Probing Code Intelligence with Semantics Preserving Transformations. To further test model reasoning, he developed CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis, an interactive framework that evaluates LLMs on their ability to infer functions from input-output examples using a differential testing oracle. This evaluation framework touches on challenges in the area of Expressivity Constraints in Grammar-Constrained Program Synthesis and the research direction of Execution-Guided Reinforcement Learning for Code Generation. Moving beyond evaluation, he also addressed functional correctness in hardware design with VeriCoder: Enhancing LLM-Based RTL Code Generation through Functional Correctness Validation, fine-tuning models on datasets validated by unit tests rather than mere syntactic correctness.
Most recently, Wei has pioneered the use of LLM agents to automate complex optimization and verification tasks. He explored how models could write and optimize high-performance computing code in Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces. This evolved into sophisticated multi-agent frameworks, notably Astra: A Multi-Agent System for GPU Kernel Performance Optimization, which delegates coding, testing, profiling, and planning to specialized agents to achieve performance speedups without manual tuning. Astra represents a significant contribution to the area of Modular Task Decomposition for Multi-Agent LLM Pipelines and the specific research direction of Agentic GPU Kernel Optimization. He further advanced this paradigm with AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization, a system that autonomously curates optimization memories from slow-fast kernel pairs to improve code for emerging AI accelerators.
In parallel with hardware optimization, Wei has applied LLMs to formal program verification. His work on InvBench: Can LLMs Accelerate Program Verification with Invariant Synthesis? and the subsequent framework Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis demonstrated that LLMs can effectively synthesize loop invariants. By adopting a parallelized "verify-and-use" approach that prioritizes strong invariants over merely correct ones, Quokka streamlines the verification process, connecting to broader efforts in the area of Navigating the Combinatorial Search Space of Program Synthesis.
Current Directions
The most recent papers in the evidence indicate a strong focus on autonomous, agentic systems for systems-level optimization and formal verification. Wei is actively investigating how multi-agent LLM pipelines can replace manual, expert-driven tuning for GPU and AI accelerator kernels. By equipping models with iterative feedback loops, profiling tools, and optimization memories, his recent work seeks to create self-improving systems that adapt to complex hardware architectures. Additionally, he continues to explore the integration of LLMs with formal methods, utilizing models to synthesize logical invariants that accelerate program verification and ensure functional correctness in both software and hardware design.
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