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

Yanjun Fu

University of Maryland, College Park
3 previous affiliations
6Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Yanjun Fu focuses on the security and efficiency of large language models, particularly in the context of code generation and instruction tuning. His research trajectory spans from developing constrained decoding techniques for secure code synthesis to advancing data selection and knowledge distillation methods. Currently, his work addresses vulnerability detection and the optimization of model training pipelines.

Research Trajectory

In 2024, Fu addressed challenges in code large language models (Code LLMs), specifically focusing on the area of The Security Blind Spot of Functionally Correct Code. He introduced Constrained Decoding for Secure Code Generation, which presented the CODEGUARD+ benchmark to evaluate both the security and functional correctness of generated code. To mitigate the generation of insecure code without breaking functionality, he developed Constrained Beam Sampling, a training-free inference technique that forces models to output secure and functional code. This work contributed to the broader research direction of Security Alignment for Functional Code Generation and touched upon themes in the area of Generalizing Adversarial Defense against Unforeseen Attacks.

Continuing his focus on software security into 2025, Fu collaborated on Vulnerability Detection with Code Language Models: How Far are We?. This study analyzed the effectiveness of code LMs in identifying software vulnerabilities, revealing significant data quality issues, low label accuracy, and evaluation shortcomings in existing datasets. To provide a more realistic evaluation environment, the research introduced Primevul, a new dataset designed to improve the training and assessment of code LMs for vulnerability detection.

Alongside his security research, Fu has investigated methods for optimizing model training and data curation. He developed T-SHIRT: Token-Selective Hierarchical Data Selection for Instruction Tuning, a framework designed to identify the most informative subset of instruction-tuning datasets. By focusing on highly informative tokens and ensuring robustness to minor perturbations, this approach allows models to achieve high performance using only a small fraction of the original data, remaining efficient enough to run on a single GPU.

In a related effort to improve model efficiency, he contributed to work in the area of Efficient Compression and Structural Pruning for Large Language Models. Specifically, he participated in the development of Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations. This research introduced a novel distillation strategy that uses counterfactual explanations—minimal input tweaks that flip a model's prediction—to align a smaller student model's decision boundary with that of a larger teacher model, enabling effective training even in extremely data-scarce regimes.

Current Directions

The most recent papers in the evidence indicate a dual focus on the rigorous evaluation of code language models and the efficient training of large language models. Recent work investigates the creation of high-quality datasets for realistic vulnerability detection, addressing systemic flaws in how code LMs are currently evaluated for security tasks. Concurrently, Fu is exploring data curation and knowledge distillation techniques, seeking to maximize model performance while minimizing the computational and data requirements for instruction tuning and model compression.

Profile updated

See something wrong? Report a mistake