Hanjun Dai

Hanjun Dai

Precur AI
6 previous affiliations
96Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Hanjun Dai focuses on the intersection of graph representation learning, combinatorial optimization, and generative modeling. His research addresses the challenges of reasoning over structured data, ranging from Mitigating Path Explosion in Multi-Hop Graph Reasoning to the development of Generative Modeling via Discrete Score Matching for complex discrete spaces. Currently a Senior Research Scientist and Research Manager at Google DeepMind (formerly Google Brain), his work frequently bridges the gap between classical algorithmic solvers and modern deep learning architectures, with applications in program synthesis, knowledge graph reasoning, and large language model alignment.

Research Trajectory

The evolution of Dai’s research reflects a steady progression from sequential modeling and Bayesian inference toward the management of highly structured, discrete, and combinatorial domains. In the early stages of his career, approximately 2014 to 2016, his work concentrated on temporal dependencies and sequential prediction. This period was characterized by the application of recurrent neural networks to user behavior modeling, alongside contributions to the theoretical foundations of Bayesian inference, specifically regarding particle-based methods for intractable posterior distributions.

By 2017, Dai’s focus shifted significantly toward graph-structured data and the problem of reasoning within incomplete or noisy information environments. This phase involved deep exploration into Knowledge Graphs (KGs), where he addressed the dual challenges of entity disambiguation and multi-hop logic. His work during this time sought to move beyond simple pattern matching to enable models to "reason through" missing links in a graph. This period also saw an increased interest in Learning to Predict Unordered Sets with Transformers, reflecting a broader methodological concern with permutation invariance and the limitations of standard sequence-to-sequence models when applied to non-sequential data.

Between 2019 and 2021, Dai expanded his methodological toolkit to include energy-based models and differentiable optimization. He contributed to the advancement of Overcoming the MCMC Sampling Bottleneck in Energy Models, developing techniques to make maximum likelihood estimation more efficient for complex energy functions. A key theme during this period was the "differentiable programming" paradigm—creating neural versions of traditionally non-differentiable operations, such as top-k selection or logical query execution, to allow for end-to-end training in structured reasoning tasks.

In his recent work (2022–2026), Dai has emerged as a leading voice in the application of machine learning to combinatorial optimization (CO). He has explored how generative frameworks, such as GFlowNets and Markov Chain Monte Carlo (MCMC) sampling, can rival or outperform specialized commercial solvers for NP-hard problems. Simultaneously, he has integrated these structured reasoning capabilities into the domain of Large Language Models (LLMs). This includes work on Estimating Model Confidence Through Stochastic Response Consistency, where the inherent non-determinism of LLMs is leveraged to improve the accuracy of complex tasks like text-to-SQL generation. His most recent contributions involve The Reward Engineering Bottleneck in Reinforcement Learning and the alignment of retrieval models with human instructions, indicating a trajectory toward more autonomous and instruction-aware AI systems.

Current Directions

Dai’s current research agenda is defined by three primary pillars: neural combinatorial optimization, generative modeling for discrete structures, and the refinement of LLM reasoning. In the realm of optimization, he is investigating how to accelerate classical algorithms like Stochastic Dual Dynamic Programming by embedding them within neural architectures, thereby overcoming the exponential complexity typically associated with high-dimensional decision variables.

In generative modeling, he is focused on adapting continuous-time diffusion and score-matching techniques to discrete domains. This involves defining gradients and score functions for data types where traditional calculus does not apply, such as molecular graphs or code snippets. Finally, his work with LLMs focuses on alignment and retrieval, specifically developing methods to ensure that models follow complex, multi-part instructions and maintain consistency across diverse reasoning paths.

Representative Work

Sequential Click Prediction for Sponsored Search with Recurrent Neural Networks As the lead author of this 2014 study, Dai introduced a framework for modeling user search behavior as a continuous sequence rather than a series of isolated events. By utilizing Recurrent Neural Networks (RNNs), the work captured temporal dependencies such as "topical momentum" and user frustration, which significantly improved the accuracy of click-through rate predictions compared to traditional models that ignored session context.

LEGO: Latent Execution-Guided Reasoning for Multi-Hop Question Answering on Knowledge Graphs In this work, Dai contributed to the development of the LEGO framework, which addresses multi-hop reasoning on Knowledge Graphs. The core innovation is the synthesis and execution of queries within a latent embedding space. This allows the model to reason about missing information in incomplete graphs and learn to generate structured query trees without requiring ground-truth logical queries for training, representing a significant step toward self-supervised structured reasoning.

Neural Stochastic Dual Dynamic Programming As first author, Dai addressed the scalability limits of Stochastic Dual Dynamic Programming (SDDP), a standard method for multi-stage stochastic optimization. He introduced a trainable neural model that maps problem instances to a piece-wise linear value function within a low-dimensional space. This neural extension accelerates the base SDDP solver, allowing it to handle higher-dimensional problems that were previously computationally prohibitive due to exponential complexity.

Revisiting Sampling for Combinatorial Optimization Serving as the senior author, Dai led the development of iSCO, a training-free combinatorial optimization solver. The research demonstrates that by leveraging modern gradient-based discrete samplers and GPU parallelism, Markov Chain Monte Carlo (MCMC) sampling can outperform state-of-the-art deep learning solvers and compete with commercial tools like Gurobi. This work is notable for achieving high performance across tasks like the Traveling Salesman Problem without requiring any training data.

Differentiable Top-k Operator with Optimal Transport In this paper, Dai co-authored a solution to the non-differentiability of the top-k operation, a common bottleneck in end-to-end trainable systems for information retrieval and data mining. By framing the top-k selection as an optimal transport problem, the authors created a smoothed, differentiable approximation that allows gradients to flow through the selection process, enabling the integration of hard selection logic into deep learning pipelines.

Let the Flows Tell: Solving Graph Combinatorial Optimization Problems with GFlowNets Dai contributed to this research exploring Generative Flow Networks (GFlowNets) as a mechanism for solving NP-hard graph problems. The work designs Markov decision processes for various combinatorial tasks, using GFlowNets to sample from unnormalized densities. This approach amortizes the solution-searching process and generates diverse, high-quality candidates, offering a powerful alternative to traditional reinforcement learning or exact search methods in constrained optimization.

In addition to these primary contributions, Dai has participated in significant collaborative efforts regarding the alignment of large language models and the improvement of text-to-SQL systems. His involvement in projects like SQLPrompt and Faster WIND highlights a commitment to making LLMs more reliable and efficient through execution-based consistency and game-theoretic alignment frameworks. His most recent participation in the development of InF-IR (2026) suggests a continuing focus on enhancing the instruction-following capabilities of information retrieval models through the creation of large-scale, high-quality training corpora.

Profile updated

See something wrong? Report a mistake