Dong Cao Van
Author directory2026
XRepoTest: Benchmarking Multilingual Repository-Level Unit Test Generation for Large Language Models
Dung Le Quang | Dong Cao Van | Nam Le Hai | Linh Ngo Van | Thi-Mai-Anh Bui | Phuong T. Nguyen
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Dung Le Quang | Dong Cao Van | Nam Le Hai | Linh Ngo Van | Thi-Mai-Anh Bui | Phuong T. Nguyen
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Large language models (LLMs) have shown promise for automated unit test generation, but existing evaluations largely rely on standalone settings and a narrow set of programming languages, overestimating real-world readiness. We introduce XRepoTest, a multilingual, repository-level benchmark for unit test generation spanning five underexplored languages: Rust, Go, Julia, PHP, and Ruby. XRepoTest evaluates tests under realistic repository constraints using a containerized execution framework and multiple context augmentation strategies, including file-level, LSP-based, and retrieval-based context. Beyond standard metrics such as test pass rate and coverage, we propose Invocation Rate (IR) to assess whether generated tests meaningfully exercise the intended functionality. Experiments with 14 state-of-the-art LLMs (e.g., Claude 4.5, GPT-5.2, DeepSeek V4-pro, and Qwen families) reveal a substantial gap between standalone and repository-level performance, as well as trade-offs between richer context and test reliability. Overall, XRepoTest provides a challenging and informative benchmark to advance scalable, robust, and multilingual unit test generation in realistic software environments.
FAID: Fine-grained AI-generated Text Detection using Multi-task Auxiliary and Multi-level Contrastive Learning
Minh Ngoc Ta | Dong Cao Van | Duc-Anh Hoang | Minh Le-Anh | Truong Nguyen | My Anh Tran Nguyen | Yuxia Wang | Preslav Nakov | Dinh Viet Sang
Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)
Minh Ngoc Ta | Dong Cao Van | Duc-Anh Hoang | Minh Le-Anh | Truong Nguyen | My Anh Tran Nguyen | Yuxia Wang | Preslav Nakov | Dinh Viet Sang
Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)
The growing collaboration between humans and AI models in generative tasks has introduced new challenges in distinguishing between human-written, LLM-generated, and human-LLM collaborative texts. In this work, we collect a multilingual, multi-domain, multi-generator dataset FAIDSet. We further introduce a fine-grained detection framework FAID to classify text into these three categories, and also to identify the underlying LLM family of the generator. Unlike existing binary classifiers, FAID is built to capture both authorship and model-specific characteristics. Our method combines multi-level contrastive learning with multi-task auxiliary classification to learn subtle stylistic cues. By modeling LLM families as distinct stylistic entities, we incorporate an adaptation to address distributional shifts without retraining for unseen data. Our experimental results demonstrate that FAID outperforms several baselines, particularly enhancing the generalization accuracy on unseen domains and new LLMs, thus offering a potential solution for improving transparency and accountability in AI-assisted writing. Our data and code are available at https://github.com/mbzuai-nlp/FAID.