Aofan Liu
· 1 previous affiliation
- Peking UniversitySince 2024
- MS student · 2024–2027
Research Overview
Aofan Liu focuses on code retrieval systems, the adversarial security of language models, and the evaluation of large language models for software engineering tasks. His early work addresses the semantic and structural challenges of multilingual and repository-level code search, while his recent collaborations explore proactive bug discovery and optimization stability in contrastive learning.
Research Trajectory
Aofan Liu’s research initially concentrated on improving the robustness and scale of code retrieval systems, particularly in complex, real-world software development environments. In 2025, he addressed the challenges of Multilingual Code Retrieval (MLCR), a critical component for workflows that span multiple programming languages. He introduced MD3R: Minimizing Data Distribution Discrepancies to Tackle Inconsistencies in Multilingual Query-Code Retrieval, which investigates the inconsistencies that arise when models are trained on single query-monolingual code pairs. By analyzing modality alignment direction errors and model weight errors, this work established theoretical upper bounds for these discrepancies and provided methods to mitigate the effects of data scarcity in specific linguistic domains.
Expanding the scope of code search from isolated snippets to entire codebases, he subsequently developed Beyond Function-Level Search: Repository-Aware Dual-Encoder Code Retrieval with Adversarial Verification. Recognizing that modern software changes require interpreting cross-component intents, this work shifted the retrieval paradigm away from function-centric models toward holistic repository analysis. To support this, he introduced RepoAlignBench, a benchmark encompassing 52,000 columns designed specifically for change request-driven scenarios. This contribution advanced the research direction of Mapping Natural Language to Source Code Semantics and informed the broader area of Contrastive Learning for Functional Code Semantics.
Parallel to his work in software engineering tools, Liu has investigated the vulnerabilities of large language models deployed in high-stakes environments. He led the development of Semantics-Preserving Adversarial Attacks on Event-Driven Stock Prediction Models, which examined the adversarial security of financial language models. By theoretically proving that continuous adversarial optimization provides a lower bound for discrete optimization, he established a foundation for ChameleonAttack, a two-stage framework utilizing Adaptive Latent-space Optimization (ALO) to generate potent, semantically coherent adversarial tokens.
In 2026, Liu’s collaborative work expanded into the evaluation of large language models and fundamental machine learning optimization. Participating in a large-scale benchmarking effort, he contributed to TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation. This research shifted the evaluation of LLMs from reactive bug fixing to proactive defect discovery, using documentation rather than existing code as the ground truth. The findings highlighted the current limitations of models in autonomous bug discovery while pointing toward agentic exploration as a viable solution. This work intersects with emerging areas such as Containerized Isolation for Reproducible Benchmarking and the research direction of Dynamic Evaluation of Reasoning Beyond Training Data Cutoffs.
Further exploring the mechanics of model training, he collaborated on SupCLAP: Controlling Optimization Trajectory Drift in Audio-Text Contrastive Learning with Support Vector Regularization. This paper addressed "optimization trajectory drift"—a phenomenon where the gradient forces separating negative samples misalign with those pulling positive pairs together. By applying Support Vector Regularization (SVR) to correct this perpendicular force, the research demonstrated faster, more stable training for audio-text retrieval without additional computational overhead, contributing to the research area of Curvature Dependent Noise and Flatness Selection.
Current Directions
The most recent papers in the evidence indicate a dual focus on the rigorous evaluation of autonomous agents and the stabilization of multimodal representation learning. In the domain of software engineering, recent work investigates how large language models can be evaluated for proactive, repository-level reasoning rather than isolated, reactive tasks. This involves designing benchmarks that test a model's ability to discover latent defects autonomously based on system documentation. Simultaneously, ongoing collaborative research addresses fundamental optimization challenges in contrastive learning, seeking mathematically grounded regularization techniques to align gradient trajectories and improve training stability across different modalities.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake