VLDB 2026 Research / reviewers in the wild / expert
Yufan Cai 0001
dblp:289/6597-1
· DBLP profile ↗
5ranked-venue papers
2as first author
5since 2021 · last 2025
0009-0008-7579-0824ORCID · verified
Domains — the database's venue-derived domains; a paper can count in several
Software engineering, systems software and programming languages · 3 · 1 first-author · 3 since 2021Artificial intelligence and machine learning · 1 · 1 first-author · 1 since 2021Applied, interdisciplinary, general and emerging computing · 1 · 1 since 2021
| Year | Publication | Venue | Position |
|---|---|---|---|
| 2025 | PAT-Agent: Autoformalization for Model CheckingabstractRecent advances in large language models (LLMs) offer promising potential for automating formal methods. However, applying them to formal verification remains challenging due to the complexity of specification languages, the risk of hallucinated output, and the semantic gap between natural language and formal logic. We introduce PAT-Agent, an end-to-end framework for natural language autoformalization and formal model repair that combines the generative capabilities of LLMs with the rigor of formal verification to automate the construction of verifiable formal models. In PAT-Agent, a Planning LLM first extracts key modeling elements and generates a detailed plan using semantic prompts, which then guides a Code Generation LLM to synthesize syntactically correct and semantically faithful formal models. The resulting code is verified using the Process Anal y sis Toolkit (PAT) model checker against user-specified properties, and when discrepancies occur, a Repair Loop is triggered to iteratively correct the model using counterexamples. To improve flexibility, we built a web-based interface that enables users, particularly non-FM-experts, to describe, customize, and verify system behaviors through user-LLM interactions. Experimental results on 40 systems show that PAT-Agent consistently outperforms baselines, achieving high verification success with superior efficiency. The ablation studies confirm the importance of both planning and repair components, and the user study demonstrates that our interface is accessible and supports effective formal modeling, even for users with limited formal methods experience. Xinyue Zuo, Yifan Zhang 0019, Hongshu Wang, Yufan Cai 0001, Jing Sun 0002, Jin Song Dong 0001 |
ASE | 4 |
| 2025 | CoEdPilot: Interactively Recommending Project-Wise Code Edits
Yuhuan Huang, Chen-Yan Liu, Yun Lin 0001, Yufan Cai 0001, Zhiyong Huang 0010, Jin Song Dong 0001 |
J. Comput. Sci. Technol. | 4 |
| 2025 | Automated Program Refinement: Guide and Verify Code Large Language Model with Refinement CalculusabstractRecently, the rise of code-centric Large Language Models (LLMs) has reshaped the software engineering world with low-barrier tools like Copilot that can easily generate code. However, there is no correctness guarantee for the code generated by LLMs, which suffer from the hallucination problem, and their output is fraught with risks. Besides, the end-to-end process from specification to code through LLMs is a non-transparent and uncontrolled black box. This opacity makes it difficult for users to understand and trust the generated code. Addressing these challenges is both necessary and critical. In contrast, program refinement transforms high-level specification statements into executable code while preserving correctness. Traditional tools for program refinement are primarily designed for formal methods experts and lack automation and extensibility. We apply program refinement to guide LLM and validate the LLM-generated code while transforming refinement into a more accessible and flexible framework. To initiate this vision, we propose Refine4LLM, an approach that aims to:(1) Formally refine the specifications, (2) Automatically prompt and guide the LLM using refinement calculus, (3) Interact with the LLM to generate the code, (4) Verify that the generated code satisfies the constraints, thus guaranteeing its correctness, (5) Learn and build more advanced refinement laws to extend the refinement calculus. We evaluated Refine4LLM against the state-of-the-art baselines on program refinement and LLMs benchmarks. The experiment results show that Refine4LLM can efficiently generate more robust code and reduce the time for refinement and verification. Yufan Cai 0001, David Sanán, Xiaokun Luan, Yun Lin 0001, Jun Sun 0001, Jin Song Dong 0001 |
Proc. ACM Program. Lang. | 1 |
| 2024 | CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive NatureabstractRecent years have seen the development of LLM-based code generation. Compared to generating code in a software project, incremental code edits are empirically observed to be more frequent. The emerging code editing approaches usually formulate the problem as generating an edit based on known relevant prior edits and context. However, practical code edits can be more complicated. First, an editing session can include multiple (ir)relevant edits to the code under edit. Second, the inference of the subsequent edits is non-trivial as the scope of its ripple effect can be the whole project. In this work, we propose CoEdPilot, an LLM-driven solution to recommend code edits by discriminating the relevant edits, exploring their interactive natures, and estimating its ripple effect in the project. Specifically, CoEdPilot orchestrates multiple neural transformers to identify what and how to edit in the project regarding both edit location and edit content. When a user accomplishes an edit with an optional editing description, an Subsequent Edit Analysis first reports the most relevant files in the project with what types of edits (e.g., keep, insert, and replace) can happen for each line of their code. Next, an Edit-content Generator generates concrete edit options for the lines of code, regarding its relevant prior changes reported by an Edit-dependency Analyzer. Last, both the Subsequent Edit Analysis and the Edit-content Generator capture relevant prior edits as feedback to readjust their recommendations. We train our models by collecting over 180K commits from 471 open-source projects in 5 programming languages. Our extensive experiments show that (1) CoEdPilot can well predict the edits (i.e., predicting edit location with accuracy of 70.8%-85.3%, and the edit content with exact match rate of 41.8% and BLEU4 score of 60.7); (2) CoEdPilot can well boost existing edit generators such as GRACE and CCT5 on exact match rate by 8.57% points and BLEU4 score by 18.08. Last, our user study on 18 participants with 3 editing tasks (1) shows that CoEdPilot can be effective in assisting users to edit code in comparison with Copilot, and (2) sheds light on the future improvement of the tool design. The video demonstration of our tool is available at https://sites.google.com/view/coedpilot/home. Chenyan Liu, Yufan Cai 0001, Yun Lin 0001, Yuhuan Huang, Yunrui Pei, Jin Song Dong 0001, Hong Mei 0001 |
ISSTA | 2 |
| 2023 | On-the-Fly Adapting Code Summarization on Trainable Cost-Effective Language ModelsabstractDeep learning models are emerging to summarize source code to comment,
facilitating tasks of code documentation and program comprehension.
Scaled-up large language models trained on large open corpus have achieved good performance in such tasks.
However, in practice, the subject code in one certain project can be specific,
which may not align with the overall training corpus.
Some code samples from other projects may be contradictory and introduce inconsistencies when the models try to fit all the samples.
In this work, we introduce a novel approach, Adacom, to improve the performance of comment generators by on-the-fly model adaptation.
This research is motivated by the observation that deep comment generators
often need to strike a balance as they need to fit all the training samples.
Specifically, for one certain target code $c$,
some training samples $S_p$ could have made more contributions while other samples $S_o$ could have counter effects.
However, the traditional fine-tuned models need to fit both $S_p$ and $S_o$ from a global perspective,
leading to compromised performance for one certain target code $c$.
In this context, we design Adacom to
(1) detect whether the model might have a compromised performance on a target code $c$ and
(2) retrieve a few helpful training samples $S_p$ that have contradictory samples in the training dataset and,
(3) adapt the model on the fly by re-training the $S_p$ to strengthen the helpful samples and unlearn the harmful samples.
Our extensive experiments on 7 comment generators and 4 public datasets show that
(1) can significantly boost the performance of comment generation (BLEU4 score by on average 14.9\%, METEOR by 12.2\%, and ROUGE-L by 7.4\%),
(2) the adaptation on one code sample is cost-effective and acceptable as an on-the-fly solution, and
(3) can adapt well on out-of-distribution code samples. Yufan Cai 0001, Yun Lin 0001, Chenyan Liu, Jinglian Wu, Yifan Zhang 0019, Yeyun Gong, Jin Song Dong 0001 |
NeurIPS | 1 |