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

Yufan Cai

National University of Singapore
4 previous affiliations
20Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Yufan Cai focuses on the intersection of programming languages, software engineering, and formal methods, with a particular emphasis on building trustworthy large language model agents. His research explores how mathematical rigor and theorem proving can be integrated with neural architectures to ensure reliable code generation and reasoning. Recently, his work centers on neuro-symbolic frameworks that verify the outputs of AI systems across domains like software development and legal reasoning.

Research Trajectory

His early work addressed the practical challenges of deploying large language models for software engineering tasks. In 2023, he introduced On-the-Fly Adapting Code Summarization on Trainable Cost-Effective Language Models, which developed an approach called Adacom to dynamically adapt comment generators to project-specific code bases, mitigating the inconsistencies often found in broad training corpora. Building on this theme of context-aware code intelligence, he expanded his focus to structural code modifications. He developed CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Nature, a framework that accounts for the ripple effects of code changes across entire software projects. This work contributes to the broader research direction of Repository-Level Code Intelligence for Large Language Models, filtering irrelevant prior changes to provide accurate, project-aware edit suggestions rather than isolated line completions.

Recognizing the inherent reliability limitations of purely neural approaches, his trajectory shifted toward integrating mathematical rigor into AI systems. He articulated this vision in The Fusion of Large Language Models and Formal Methods for Trustworthy AI Agents: A Roadmap, proposing a bi-directional neuro-symbolic framework. This roadmap leverages formal methods to certify LLM outputs while using LLMs to make formal verification tools more accessible. This foundational perspective intersects with multiple research areas, including Scaling Neural Network Verification via Optimization Relaxations, Formal Safety Verification for Deep Neural Networks, Counterexample Guided Inductive Synthesis, and Diagnosing Reasoning Failures through Fine-Grained Error Taxonomies. He further reinforced these principles in a subsequent position piece, Position: Trustworthy AI Agents Require the Integration of Large Language Models and Formal Methods, which argues that building truly trustworthy AI requires combining the adaptability of natural language models with the correctness guarantees of formal methods.

In 2025, he translated these theoretical frameworks into concrete methodologies for program synthesis and domain-specific reasoning. He introduced Automated Program Refinement: Guide and Verify Code Large Language Model with Refinement Calculus, applying formal refinement calculus to systematically guide and verify code generated by LLMs. Extending these neuro-symbolic techniques beyond software engineering, he explored the legal domain in Towards Trustworthy Legal AI through LLM Agents and Formal Reasoning. This research addresses the critical issue of LLM hallucination in judicial contexts by enforcing formal reasoning to guarantee that conclusions align with legal texts, advancing the research direction of Decoupling Linguistic Interpretation from Symbolic Reasoning.

Alongside his core focus on neuro-symbolic generation, he has participated in collaborative efforts to improve the infrastructure and application of formal verification tools. He contributed to PAT-Agent: Autoformalization for Model Checking, a framework that utilizes an iterative repair loop guided by a formal model checker to automatically translate natural language descriptions into verifiable formal models. Additionally, he participated in an empirical investigation of the maintenance challenges in formal verification, Why the Proof Fails in Different Versions of Theorem Provers: An Empirical Study of Compatibility Issues in Isabelle, which characterizes the compatibility issues that cause broken proofs across different versions of the Isabelle proof assistant.

In 2026, Cai continued expanding neuro-symbolic verification into security and medicine. They collaborated on Confidence-Guided Protocol IR for LLM-Aided Security Protocol Modeling, introducing an interactive intermediate representation and confidence-guided interface to produce Tamarin-verifiable security protocol models from natural language. In clinical reasoning, Cai co-developed Refining and Aligning Clinical Reasoning with Health Guidelines via Formal Constraints, presenting VerClin, an explainable framework that grounds patient case reasoning in executable guideline constraints using four-valued deterministic logic and multi-specialty screening.

Current Directions

The most recent papers in the evidence indicate a sustained focus on neuro-symbolic AI, specifically the operational integration of large language models with formal verification systems. Current work investigates how to constrain the generative flexibility of LLMs using rigorous mathematical frameworks, such as refinement calculus and automated model checking, to ensure output correctness. This encompasses both the autoformalization of natural language specifications into verifiable models and the application of formal reasoning to high-stakes, domain-specific tasks like legal analysis, security protocol modeling, and guideline-grounded clinical reasoning, where verifiable logic and the prevention of hallucinations are critical. Additionally, ongoing research addresses the practical infrastructure of theorem proving, seeking to understand and mitigate the compatibility challenges that arise as formal proofs scale in complexity.

Profile updated

See something wrong? Report a mistake