Hantian Ding
· 5 previous affiliations
- Meta (United States)Since 2025
- Researcher · Since 2025
- Amazon (United States)2021–2025
- Researcher · 2021–2025
- University of Pennsylvania2020–2021
- Researcher · 2020–2021
- MS student · 2018–2020
- Undergrad student · 2014–2018
Research Overview
Hantian Ding focuses on the intersection of natural language processing, large language models (LLMs) for code generation, and the development of autonomous agents for cybersecurity. This work encompasses the creation of large-scale evaluation benchmarks, the optimization of model inference for code completion, and the design of executable environments for training machine learning agents with verifiable feedback.
Research Trajectory
The early phase of Ding’s research, centered around 2019, focused on the acquisition and evaluation of linguistic knowledge, particularly Statistical Selectional Preference Modeling. This work addressed the challenge of quantifying how certain predicates (verbs, nouns, and adjectives) prefer specific semantic arguments, a fundamental component of commonsense reasoning in natural language processing. During this period, Ding also participated in research regarding Higher-Order Structural Context for Dependency Parsing, which explored moving beyond simple arc-factored models to capture more complex syntactic relationships.
By 2022, the focus shifted toward the evaluation and generalization of large-scale code generation models. This transition involved addressing the limitations of existing benchmarks by developing multilingual evaluation frameworks. Ding’s work in this area investigated how models trained primarily on common languages like Python could generalize to a wide array of other programming languages. This period also saw exploration into Enriching Sparse Labels with Detailed Visual Descriptions and Semantic Grounding for Zero-Shot Classification, reflecting a broader interest in how auxiliary semantic information can improve model performance in data-sparse or zero-shot scenarios.
From 2023 onward, the research trajectory moved toward the practical deployment and refinement of code models. This included developing static evaluation methods to bypass the high costs of execution-based testing and exploring continual learning techniques to keep models updated with frequently changing software libraries. Most recently, between 2024 and 2026, the work has concentrated on agentic workflows and cybersecurity. This involves training LLM agents to identify and exploit vulnerabilities within specialized, execution-grounded environments. Additionally, Ding has contributed to interdisciplinary statistical research, including Linear Mixed Models for Population Structure Correction and Sparse Feature Selection for High-Dimensional Biomedical Discovery, applying high-dimensional modeling techniques to genomic and medical data.
Current Directions
Current research efforts are directed toward enhancing the autonomy and efficiency of LLMs in technical domains. A primary focus is the development of "runtime-free" training frameworks for cybersecurity agents, which utilize simulated environments and human-authored trajectories to reduce the computational overhead of traditional reinforcement learning. Another significant direction is the refinement of "Fill-in-the-Middle" (FIM) capabilities for code models, using lookahead planning to ensure that generated code aligns more naturally with existing right-hand context. Furthermore, Ding is involved in optimizing LLM inference through novel attention mechanisms that reduce latency in high-batch sampling scenarios, such as generating multiple code suggestions for a single prompt.
Representative Work
SP-10K: A Large-scale Evaluation Set for Selectional Preference Acquisition In this 2019 study, Ding and colleagues introduced SP-10K, a comprehensive evaluation set containing human ratings for 10,000 selectional preference pairs. The dataset covers 2,500 frequent English verbs, nouns, and adjectives across five semantic relations. By evaluating existing acquisition methods against this benchmark, the work demonstrated the utility of selectional preference as a bridge to commonsense knowledge, specifically showing its potential to augment structured knowledge bases like ConceptNet5.
A Static Evaluation of Code Completion by Large Language Models As the lead author of this 2023 paper, Ding proposed a framework for evaluating code generation models using static analysis rather than execution. While execution-based benchmarks are effective for simple problems, they are often prohibitively expensive for complex, real-world software projects. This work leveraged Abstract Syntax Trees (ASTs) and linters to quantify static errors in Python code completions, providing a scalable alternative for assessing the functional correctness of model outputs without the need for a live runtime environment.
Horizon-Length Prediction: Advancing Fill-in-the-Middle Capabilities for Code Generation with Lookahead Planning This 2025 paper addresses a critical weakness in the Fill-in-the-Middle (FIM) training paradigm used by most code LLMs. Standard FIM models often struggle to generate code that transitions smoothly into the subsequent context. Ding and co-authors introduced a lookahead planning approach that predicts the necessary length of the generated segment to reach a specific "horizon" in the right-hand context. This method allows models to generate more contextually aligned code without relying on the restrictive, rule-based post-processing common in previous systems.
Cyber-Zero: Training Cybersecurity Agents without Runtime In this 2025 work, Ding contributed to the development of Cyber-Zero, a framework designed to train cybersecurity agents by reverse-engineering human Capture-The-Flag (CTF) writeups. By transforming these writeups into realistic interaction trajectories and using a dual-LLM simulation to mimic a terminal environment, the framework enables the training of capable agents without the need for a continuous, resource-intensive executable runtime. This approach allows open-source models to achieve performance levels comparable to much larger proprietary models.
Training Language Model Agents to Find Vulnerabilities with CTF-Dojo This research, presented in 2025 and 2026, introduced CTF-Dojo, a large-scale executable environment for training LLMs with verifiable feedback. The system features over 600 containerized CTF challenges and includes an automated pipeline, CTF-Forge, for scaling the creation of new tasks. Ding’s participation in this project focused on creating a reproducible and scalable infrastructure that allows agents to learn from execution-grounded feedback, leading to significant performance improvements in vulnerability discovery tasks.
Learning Code Preference via Synthetic Evolution In this 2024 study, Ding participated in the development of CODEFAVOR, a framework for training efficient models to judge the quality of code snippets. The framework utilizes "synthetic evolution"—a process of generating data from code commits and LLM-driven critiques—to train small models that can match the performance of significantly larger models in identifying preferred code solutions. This work highlights a shift toward cost-effective preference learning and the use of synthetic data to refine model judgment.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| CODE REPRESENTATION LEARNING AT SCALEGitHubamazon-science/ | ICLR | 2024 |
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