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

Han Weng

2 previous affiliations
9Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Han Weng focuses on the intersection of software engineering and large language models (LLMs), with a particular emphasis on code efficiency, automated code optimization, and graph-based representations for information retrieval. Weng’s work addresses the limitations of current generative models in producing high-performance code and the challenges of retrieving precise context from complex, non-linear document structures. By leveraging execution profiling and structural modeling, Weng’s research aims to move beyond simple functional correctness toward the generation of optimized, production-ready software and more accurate retrieval-augmented generation (RAG) systems.

Research Trajectory

Weng’s early contributions focused on the structural analysis of source code to improve developer efficiency. In 2023, Weng participated in research regarding code readability, a critical factor in software maintenance. In A graph-based code representation method to improve code readability classification, Weng contributed to a method that utilizes graph-based representations to classify source code into predefined readability levels. This work established an early interest in using graph structures to capture the semantic and syntactic nuances of code that traditional linear models might overlook.

Starting in 2024, Weng’s focus shifted toward the efficiency of code generated by LLMs. While many models achieved high accuracy in terms of functional correctness, the resulting code often suffered from significant performance bottlenecks. Weng was part of the team that developed EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization, a framework designed to bridge the gap between correctness and execution efficiency. This approach introduced a self-optimization loop where LLM-generated code is executed locally, and line-by-line performance profiles—covering both time and memory usage—are fed back to the model. This iterative "self-debugging" process allowed models to identify and resolve their own performance bottlenecks, significantly reducing execution time and memory overhead.

This line of inquiry continued into 2025 with the development of more robust fine-tuning methodologies. Weng contributed to EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning, which introduced the EFFIINSTRUCT dataset. This dataset consists of over 65,000 tasks where solutions are selected based on real-world execution profiles rather than just syntactic correctness. By fine-tuning models on this data, the research demonstrated that LLMs could be trained to prioritize efficient algorithmic choices. Parallel to this, Weng participated in the development of Effi-Code: Unleashing Code Efficiency in Language Models, which further refined the self-optimization process based on overhead profiling to generate high-quality datasets for fine-tuning open-source LLMs.

Current Directions

Weng’s recent work has expanded into the evaluation of specialized code generation tasks and the structural optimization of retrieval systems. In the domain of Text-to-SQL, Weng contributed to the development of Towards Database-Free Text-to-SQL Evaluation: A Graph-Based Metric for Functional Correctness. This research addresses the deficiencies of standard metrics like Execution Accuracy, which often produce false positives, and Exact Set Match, which fails to recognize functionally equivalent but syntactically different queries. The proposed metric, FuncEvalGMN, utilizes a relational operator tree (ROT) to evaluate functional correctness without the need for costly, pre-prepared test databases.

Most recently, Weng has applied graph-modeling expertise to the challenges of Retrieval-Augmented Generation (RAG). In the 2026 paper LOGOS: Precision Retrieval via Logical Document Graphs for Retrieval-Augmented Generation, for which Weng served as the second author, the research critiques conventional retrieval methods that treat documents as linear sequences of pages. Such methods often break logical dependencies—such as tables or references—that span across page boundaries, leading to noisy context. LOGOS transforms documents into logical graphs where semantic regions are nodes and structural relationships are edges. This approach enables "precision retrieval" by maintaining the intrinsic logical structure of the document, thereby improving the quality of the context provided to the generation model.

Representative Work

Profile updated

See something wrong? Report a mistake