MCP
AW

Anjiang Wei

45 papers in the library · Same-name authors told apart using DBLP

Papers

30
Law And Order: Tax Law Autoformalization
Sophia Simeng HanYoshiki TakashimaAnjiang WeiZhaoyu LiMichael Genesereth
Law&Order is a neuro-symbolic framework for automatically formalizing tax law texts into executable symbolic programs. It establishes structural correspondence between legal and symbolic components and denotational correspondence, requiring components to implement specified computations. The framework combines large language model synthesis, cell-level verification, and iterative localized error repair using human-written OpenTaxSolver returns. Evaluated on 51 held-out TaxCalcBench returns never seen during generation or repair, Law&Order achieves 100% cell-level and form-level accuracy, compared with 66% for the most advanced LLM alone, demonstrating the effectiveness of LLM synthesis combined with symbolic verification for scalable legal autoformalization.
arXivarXiv · · October 2, 2026
0
0
Harbor Adapters and Harbor-Index: Infrastructure and a Curated Meta-Dataset for Large-Scale Agentic Evaluation
Lin ShiHaowei Lin…Anjiang Wei
This work introduces Harbor Adapters, a unified infrastructure porting over 80 agentic benchmarks for evaluating arbitrary language-model agents. It validates adapters through code review and parity experiments, then uses them to evaluate eight models across 54 benchmarks. The authors curate Harbor-Index, a subset of 82 difficult, diverse tasks from 29 benchmarks refined via difficulty filtering and manual audit, where the strongest configuration achieves only 28.0% pass rate. The infrastructure, results, and index are released as open-source artifacts to support comprehensive agent evaluation.
arXivarXiv · · September 3, 2026
0
72
HydroAgent: Closing the Gap Between Frontier LLMs and Human Experts in Hydrologic Model Calibration via Simulator-Grounded RL
Zhi LiSongkun YanJie CaoMofan ZhangAnjiang WeiJinwoong YooYang Hong
Frontier LLM agents (Claude, GPT, Gemini) reach a ceiling of 0.65–0.75 Nash-Sutcliffe Efficiency (NSE) on the CREST distributed hydrologic model, failing to match the human expert reference except for Opus-4.7 on one gauge. The paper argues this gap is not a parameter-count problem but a domain-grounding problem and proposes HydroAgent, which fine-tunes open-weight Qwen3-4B via supervised fine-tuning on 2,576 expert calibration trajectories and Group-Relative Policy Optimization with NSE as a verifiable reward from online CREST simulations. This demonstrates that a small, simulator-grounded policy is a more compute-efficient and physically faithful path than scaling generic frontier models.
arXivarXiv · · May 18, 2026
0
2
AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization
Genghan ZhangShaowei ZhuAnjiang WeiZhenyu SongAllen NieZhen JiaNandita VijaykumarYida WangKunle Olukotun
AccelOpt is a self-improving LLM agentic system that autonomously optimizes kernels for emerging AI accelerators without expert-provided hardware-specific knowledge. It explores the optimization space through iterative generation guided by an optimization memory that curates experiences and insights from previously encountered slow-fast kernel pairs. To evaluate it, the authors build NKIBench, a benchmark of AWS Trainium kernels of varying complexity extracted from real-world LLM workloads. On it, AccelOpt's capability improves over iterations, raising average peak throughput from $49\%$ to $61\%$ on Trainium 1 and from $45\%$ to $59\%$ on Trainium 2; using open-source models, it matches Claude Sonnet 4's kernel improvements at $26\times$ lower cost.
OpenReviewOpenReview · · May 17, 2026
0
Harbor Adapters and Harbor-Index: Infrastructure and a Curated Meta-Dataset for Large-Scale Agentic Evaluation
Lin ShiHaowei Lin…Anjiang Wei
Harbor Adapters is a unified evaluation infrastructure for agentic benchmarks, built from adapters that port more than 80 benchmarks for evaluating arbitrary agents, validated through code review and parity experiments. Using this infrastructure, the authors evaluated 8 models spanning capability tiers across 54 benchmarks, running each with Terminus-2 and one of 3 native harnesses, enabling broader analysis of agent capabilities and failure modes. From the adapted suite they also derive Harbor-Index: 82 curated, difficult tasks across 29 benchmarks, refined via difficulty filtering, AI and human audit, and an audit-and-fix loop, which preserves large-scale evaluation challenge and breadth while remaining affordable—no model–harness configuration exceeds 30% pass rate, with the strongest (GPT-5.5 with Codex) at 28.0%. Adapters, results, analysis, and Harbor-Index are released as open-source artifacts.
OpenReviewOpenReview · · May 5, 2026
0
Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis
Anjiang WeiTianran SunTarun SureshHaoze WuKe WangAlex Aiken
Quokka is an evaluation-oriented framework that accelerates program verification by using LLMs to synthesize loop invariants. Unlike prior work that treats LLM outputs as noisy symbolic material, Quokka directly validates whether each generated invariant helps prove the target assertion. On a benchmark of 866 instances from SV-COMP, it outperforms prior LLM-based verifiers with nine state-of-the-art LLMs, finding that supervised fine-tuning and Best-of-N sampling improve performance.
OpenReviewOpenReview · · April 4, 2026
0
SuperCoder: Assembly Program Superoptimization with Large Language Models
Anjiang WeiTarun SureshHuanmi TanYinglun XuGagandeep SinghKe WangAlex Aiken
This paper asks whether large language models (LLMs) can serve as superoptimizers, generating assembly programs that beat industry-standard compiler output in end-to-end runtime. The authors build the first large-scale benchmark, 8,072 assembly programs averaging 130 lines, unlike prior datasets limited to 2-15 straight-line programs. Evaluating 23 LLMs, they find the strongest baseline achieves a 51.5% pass rate and 1.43x speedup over gcc -O3. They then fine-tune Qwen2.5-Coder-7B-Instruct with reinforcement learning, integrating correctness and speedup into the reward. The resulting model, SuperCoder, reaches 95.0% correctness and 1.46x average speedup, demonstrating LLMs can act as assembly superoptimizers.
OpenReviewOpenReview · · March 25, 2026
0
Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis
Anjiang WeiTianran SunTarun SureshHaoze WuKe WangAlex Aiken
Quokka is a framework that uses large language models to synthesize loop invariants for program verification, with soundness guarantees and state-of-the-art performance. Unlike prior work that treats LLM outputs as noisy symbolic material requiring post-processing, Quokka directly validates whether each generated invariant helps prove the target assertion. Built on a benchmark of 866 evaluation and 3589 training instances from SV-COMP, it evaluates 9 LLMs, showing that supervised fine-tuning and Best-of-N sampling improve performance, and that Quokka consistently outperforms prior LLM-based verifiers.
OpenReviewOpenReview · · March 24, 2026
0
AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization
Genghan ZhangShaowei ZhuAnjiang WeiZhenyu SongAllen NieZhen JiaNandita VijaykumarYida WangKunle Olukotun
AccelOpt is a self-improving LLM agentic system that autonomously optimizes kernels for emerging AI accelerators without expert hardware-specific knowledge. It iteratively generates optimizations informed by a memory of slow-fast kernel pairs, and is evaluated on NKIBench, a new Trainium kernel benchmark derived from real LLM workloads. On Trainium 1 and 2, AccelOpt raises average throughput from 49% to 61% and 45% to 59% of peak, respectively. Using open-source models, it matches Claude Sonnet 4's improvements at 26x lower cost.
OpenReviewOpenReview · · March 19, 2026
0
AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization
Genghan ZhangShaowei ZhuAnjiang WeiZhenyu SongAllen NieZhen JiaNandita VijaykumarYida WangKunle Olukotun
AccelOpt is a self-improving LLM agentic system that autonomously optimizes kernels for emerging AI accelerators without expert-provided hardware knowledge. It iteratively generates and refines kernels, guided by an optimization memory that curates experiences from previously seen slow-fast kernel pairs. The authors introduce NKIBench, a benchmark suite of AWS Trainium kernels sampled from real LLM workloads. Evaluation shows AccelOpt improves over time, raising average peak throughput from 49% to 61% on Trainium 1 and from 45% to 59% on Trainium 2, while matching Claude Sonnet 4's kernel improvements at 26x lower cost using open-source models.
OpenReviewOpenReview · · February 4, 2026
0
AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization
Genghan ZhangShaowei ZhuAnjiang WeiZhenyu SongAllen NieZhen JiaNandita VijaykumarYida WangKunle Olukotun
We present AccelOpt, a self-improving LLM agentic system that automatically optimizes kernels for emerging AI accelerators without expert hardware knowledge. It iteratively explores the optimization space, guided by an optimization memory of curated experiences from previous slow-fast kernel pairs. Using NKIBench, a new benchmark of AWS Trainium kernels from real LLM workloads, AccelOpt improved average peak throughput from 49% to 61% on Trainium 1 and 45% to 59% on Trainium 2. It matches Claude Sonnet 4's kernel improvements with open-source models, at 26x lower cost.
OpenReviewOpenReview · · February 4, 2026
0
Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis
Anjiang WeiTarun SureshTianran SunHaoze WuKe WangAlex Aiken
Quokka is a framework that uses large language models (LLMs) to synthesize loop invariants for program verification, providing sound evaluation and state-of-the-art speedups. Unlike prior complex, customized approaches, it employs a simple and principled verification procedure. On a benchmark of 866 instances, Quokka outperforms all prior LLM-based verifiers, achieving at least 1.2× speedup on 81 instances versus 39 for the previous best. Supervised fine-tuning and Best-of-N sampling further improve verification acceleration.
OpenReviewOpenReview · · February 3, 2026
0
AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization
Genghan ZhangShaowei ZhuAnjiang WeiZhenyu SongAllen NieZhen JiaNandita VijaykumarYida WangKunle Olukotun
AccelOpt is a self-improving LLM agentic system that autonomously optimizes kernels for emerging AI accelerators without expert hardware-specific knowledge. It iteratively explores the optimization space, guided by a memory of past slow-fast kernel pairs. Evaluated on NKIBench, a new benchmark of AWS Trainium kernels from real LLM workloads, AccelOpt improves average peak throughput from 49% to 61% on Trainium 1 and from 45% to 59% on Trainium 2. It matches Claude Sonnet 4's kernel improvements at 26x lower cost using open-source models.
OpenReviewOpenReview · · January 28, 2026
0
AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization
Genghan ZhangShaowei ZhuAnjiang WeiZhenyu SongAllen NieZhen JiaNandita VijaykumarYida WangKunle Olukotun
AccelOpt is a self-improving LLM agentic system that autonomously optimizes kernels for AI accelerators without requiring expert hardware-specific knowledge. It iteratively explores kernel optimizations guided by an optimization memory of past slow-fast kernel pairs. Evaluated on NKIBench, a new benchmark of AWS Trainium kernels from real LLM workloads, AccelOpt raises the average percentage of peak throughput from 49% to 61% on Trainium 1 and from 45% to 59% on Trainium 2. Using open-source models, it matches Claude Sonnet 4's kernel improvements while being 26x cheaper.
arXivarXiv · · November 19, 2025
0
24
Equivalence Checking of ML GPU Kernels
Benjamin DriscollKshitij DubeyAnjiang WeiNeeraj KayalRahul SharmaAlex Aiken
This paper introduces Volta, the first equivalence checker for GPU kernels, and uses it to formally verify the correctness of machine learning kernels optimized by hand, by LLM, or by compiler. The checker is sound and, for a well-defined kernel class covering many programs of interest, complete. Volta can verify ML computations such as convolutions, matrix multiplications, and various attention mechanisms.
arXivarXiv · · November 16, 2025
0
7
SATBench: Benchmarking LLMs’ Logical Reasoning via Automated Puzzle Generation from SAT Formulas
Anjiang WeiYuheng WuYingjia WanTarun SureshHuanmi TanZhanke ZhouSanmi KoyejoKe WangAlex Aiken
SATBench evaluates LLMs' logical reasoning using puzzles generated from SAT formulas, emphasizing search-based constraint satisfaction rather than inference-rule deduction. Each of 2100 puzzles is automatically derived from a SAT formula and translated into a puzzle via LLMs, with difficulty adjustable by clause count. Even the strongest model, o4-mini, achieves only 65.0% accuracy on hard UNSAT problems, near the 50% random baseline. Error analysis reveals satisfiability bias, context inconsistency, and condition omission as systematic failures.
ACL AnthologyACL Anthology · · November 2025
0
EquiBench: Benchmarking Large Language Models’ Reasoning about Program Semantics via Equivalence Checking
Anjiang WeiJiannan CaoRan LiHongyu ChenYuhui ZhangZiheng WangYuan LiuThiago S. F. X. TeixeiraDiyi YangKe WangAlex Aiken
EquiBench tests LLMs on program equivalence checking—determining whether two programs always produce the same output. The benchmark comprises 2400 program pairs across four languages and six categories, generated via program analysis, compiler scheduling, and superoptimization to ensure high-confidence labels and nontrivial difficulty. Evaluating 19 state-of-the-art LLMs, the best accuracy on the hardest categories reaches only 63.8% and 76.2%, barely above the 50% random baseline. Further analysis shows models rely on syntactic similarity rather than robust semantic reasoning, exposing current limitations.
ACL AnthologyACL Anthology · · November 2025
0
Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis
Anjiang WeiTianran SunTarun SureshHaoze WuKe WangAlex Aiken
Quokka is a framework that uses large language models (LLMs) to accelerate program verification by synthesizing loop invariants. Unlike prior work that treats LLM outputs as noisy symbolic material requiring substantial post-processing, Quokka directly validates whether each generated invariant helps prove the target assertion. Evaluated on 866 instances from SV-COMP with 9 LLMs, Quokka consistently outperforms earlier LLM-based verifiers, and supervised fine-tuning with Best-of-N sampling further improves performance.
arXivarXiv · · September 25, 2025
0
10
SuperCoder: Assembly Program Superoptimization with Large Language Models
Anjiang WeiTarun SureshHuanmi TanYinglun XuGagandeep SinghKe WangAlex Aiken
This paper introduces SuperCoder, showing that large language models (LLMs) can serve as superoptimizers for assembly programs. They built the first large-scale benchmark with 8,072 assembly programs averaging 130 lines, much larger than prior datasets. Testing 23 LLMs, the strongest baseline, Claude-opus-4, achieved 51.5% test-passing rate and 1.43× speedup over gcc -O3. By fine-tuning Qwen2.5-Coder-7B-Instruct with reinforcement learning, optimizing a reward combining correctness and speedup, SuperCoder reached 95.0% correctness and 1.46× average speedup, further improved by Best-of-N sampling and iterative refinement.
OpenReviewOpenReview · · September 19, 2025
0
InvBench: Can LLMs Accelerate Program Verification with Invariant Synthesis?
Anjiang WeiTarun SureshTianran SunHaoze WuKe WangAlex Aiken
InvBench introduces a verifier-based framework for evaluating LLMs on loop-invariant synthesis, with a formal soundness guarantee and a focus on verification speedup. Testing seven LLMs and existing LLM-based verifiers against the traditional solver UAutomizer, it finds that LLMs do not yet offer a significant advantage. Model capability critically affects performance, and supervised fine-tuning (raising Qwen3-Coder-480B's speedup cases from 8% to 29.2% on 3589 instances) and Best-of-N sampling (improving Claude-sonnet-4 from 8.8% to 22.1% with N=16) both help. The dataset is released.
OpenReviewOpenReview · September 19, 2025
0
10
Astra: A Multi-Agent System for GPU Kernel Performance Optimization
Anjiang WeiTianran SunYogesh SeenichamyHang SongAnne OuyangAzalia MirhoseiniKe WangAlex Aiken
Astra is the first LLM-based multi-agent system for GPU kernel optimization. It takes existing CUDA implementations from the LLM-serving framework SGLang as input, rather than translating PyTorch modules. Specialized LLM agents collaborate through iterative code generation, testing, profiling, and planning to produce correct, high-performance kernels. On SGLang kernels, Astra achieves an average 1.32x speedup with zero-shot prompting using OpenAI o4-mini, demonstrating that LLM agents can autonomously apply loop transformations, optimize memory access, and exploit CUDA intrinsics.
arXivarXiv · · September 9, 2025
0
65
Astra: A Multi-Agent System for GPU Kernel Performance Optimization
Anjiang WeiTianran SunYogesh SeenichamyHang SongAnne OuyangAzalia MirhoseiniKe WangAlex Aiken
Astra is the first LLM-based multi-agent system for GPU kernel optimization. Unlike prior work that translates PyTorch modules, it starts from existing CUDA implementations extracted from SGLang. Specialized LLM agents collaborate through iterative code generation, testing, profiling, and planning to produce correct, high-performance kernels. On SGLang kernels, Astra achieves an average speedup of 1.32× using zero-shot prompting with OpenAI o4-mini, demonstrating that multi-agent LLM systems are a promising paradigm for kernel optimization.
OpenReviewOpenReview · · August 28, 2025
0
SATBench: Benchmarking LLMs' Logical Reasoning via Automated Puzzle Generation from SAT Formulas
Anjiang WeiYuheng WuYingjia WanTarun SureshHuanmi TanZhanke ZhouSanmi KoyejoKe WangAlex Aiken
SATBench is a benchmark that tests LLM logical reasoning using puzzles generated from Boolean satisfiability (SAT) formulas, differing from inference-rule tasks by requiring search-based constraint satisfaction. Puzzles derive from LLM-translated SAT formulas with adjustable difficulty via clause count. All 2100 instances pass LLM- and solver-based consistency checks plus subset human validation. The strongest model (o4-mini) reaches only 65.0% accuracy on hard UNSAT problems, near the 50% random baseline, revealing biases and context failures.
OpenReviewOpenReview · · August 15, 2025
0
SATBench: Benchmarking LLMs Logical Reasoning via Automated Puzzle Generation from SAT Formulas
Anjiang WeiYuheng WuYingjia WanTarun SureshHuanmi TanZhanke ZhouSanmi KoyejoKe WangAlex Aiken
SATBench is a new benchmark for evaluating large language models' logical reasoning through puzzles derived from Boolean satisfiability (SAT) formulas, emphasizing search-based problem solving rather than rule-based inference. Each puzzle is generated automatically from a SAT formula and translated into natural language, with difficulty adjusted by varying clause counts. All 2,100 instances pass LLM- and solver-based consistency checks. Results show that even the strongest model, o4-mini, achieves only 65.0% accuracy on hard UNSAT problems, near the 50% random baseline, revealing systematic failures like satisfiability bias, context inconsistency, and condition omission.
OpenReviewOpenReview · August 15, 2025
0
Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces
Anjiang WeiAllen NieThiago S. F. X. TeixeiraRohan YadavWonchan LeeKe WangAlex Aiken
This paper introduces a framework that automates the development of high-performance parallel-program mappers using generative optimization. It centers on the Agent-System Interface, comprising a Domain-Specific Language to abstract low-level system code and define a structured search space, and AutoGuide, which converts raw execution output into actionable feedback. Unlike reinforcement learning methods like OpenTuner that use only scalar feedback, the approach finds superior mappers in fewer iterations—with 10 iterations it outperforms OpenTuner after 1000, achieving $3.8\times$ speedup, and surpasses expert-written mappers by up to $1.34\times$ across nine benchmarks, reducing tuning time from days to minutes.
OpenReviewOpenReview · August 14, 2025
0
SATBench: Benchmarking LLMs' Logical Reasoning via Automated Puzzle Generation from SAT Formulas
Anjiang WeiYuheng WuYingjia WanTarun SureshHuanmi TanZhanke ZhouSanmi KoyejoKe WangAlex Aiken
SATBench is a benchmark for LLM logical reasoning, built from SAT formulas automatically translated into puzzles. Unlike inference-rule benchmarks, it targets search-based reasoning: finding a solution satisfying logical constraints. Difficulty is adjustable via clause count. All 2100 puzzles pass LLM- and solver-based consistency checks, with human validation on a subset. Results show the strongest model, o4-mini, only reaches 65.0% accuracy on hard UNSAT problems, near the 50% random baseline. Error analysis identifies systematic failures—satisfiability bias, context inconsistency, condition omission—revealing current LLM limitations in search-based reasoning.
OpenReviewOpenReview · · August 14, 2025
0
CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis
Anjiang WeiTarun SureshJiannan CaoNaveen KannanYuheng WuKai YanThiago S. F. X. TeixeiraKe WangAlex Aiken
CodeARC is a new evaluation framework for inductive program synthesis, where LLM agents interact with a hidden target function by querying inputs, synthesizing candidates, and refining via a differential testing oracle. This interactive setting enables function calls and self-correction from feedback, contrasting with static-example benchmarks. The benchmark includes 1114 functions; among 18 models, o3-mini achieves the best success rate of 52.7%, and fine-tuning LLaMA-3.1-8B-Instruct on synthesis traces yields up to 31% relative improvement, highlighting the task's difficulty and CodeARC's realistic challenge.
OpenReviewOpenReview · August 14, 2025
0
EquiBench: Benchmarking Large Language Models’ Understanding of Program Semantics via Equivalence Checking
Anjiang WeiJiannan CaoRan LiHongyu ChenYuhui ZhangZiheng WangYuan LiuThiago S. F. X. TeixeiraDiyi YangKe WangAlex Aiken
EquiBench is a new benchmark evaluating whether large language models understand program execution semantics through equivalence checking, i.e., determining if two programs produce identical outputs for all inputs. It contains 2,400 program pairs across four languages and six categories, generated via program analysis, compiler scheduling, and superoptimization to guarantee high-confidence labels and difficulty. Evaluating 19 state-of-the-art LLMs, the best accuracies in the hardest categories were only 63.8% and 76.2%, modestly above the 50% random baseline. Analysis shows models often rely on syntactic similarity rather than robust semantic reasoning, revealing fundamental limitations.
OpenReviewOpenReview · August 14, 2025
0
VeriCoder: Enhancing LLM-Based RTL Code Generation through Functional Correctness Validation
Anjiang WeiHuanmi TanTarun SureshDaniel MendozaThiago S. F. X. TeixeiraKe WangCaroline TrippelAlex Aiken
VERICODER is an RTL code generation model fine-tuned on a dataset built by combining unit test generation with feedback-directed refinement. A teacher model (GPT-4o-mini) generates tests from natural language specifications and iteratively revises the RTL design based on simulation results, updating tests if needed. Every example is thus functionally validated with passing tests. On over 125,000 examples, VERICODER achieves state-of-the-art functional correctness on VerilogEval and RTLLM, with relative gains up to 71.7% and 27.4%, showing the importance of functionally validated datasets.
OpenReviewOpenReview · August 14, 2025
0
33
Improving Assembly Code Performance with Large Language Models via Reinforcement Learning
Anjiang WeiTarun SureshHuanmi TanYinglun XuGagandeep SinghKe WangAlex Aiken
This paper presents a reinforcement learning framework that trains LLMs, using Proximal Policy Optimization (PPO), to optimize assembly code performance. A reward function guides training, combining functional correctness (validated by test cases) with execution speedup relative to gcc -O3. The authors introduce a benchmark of 8,072 real-world programs. Their model, Qwen2.5-Coder-7B-PPO, achieves a 96.0% test pass rate and an average 1.47× speedup over gcc -O3, outperforming 20 other models including Claude-3.7-sonnet, demonstrating LLMs' potential as assembly-code optimizers.
OpenReviewOpenReview · August 14, 2025
0
20
Frequent collaborators
Alex Aiken (29)
Ke Wang (27)
Tarun Suresh (17)
Allen Nie (10)
Huanmi Tan (10)
Thiago S. F. X. Teixeira (10)
Sanmi Koyejo (7)
Genghan Zhang (7)
Tianran Sun (7)
Yuheng Wu (7)
Shaowei Zhu (6)
Zhenyu Song (6)