Hanqing Lu
Author directory2026
Evo-Harness: Context-to-Harness Skill Compilation for Self-Evolving Agents
Tianxin Wei | Zhan Shi | Minhua Lin | Bing He | Zewen Liu | Yisi Sang | Yuanchen Bei | Xuying Ning | Jiaru Zou | Ting-Wei Li | Xiao Lin | Yanjun Zhao | Chi Wang | Benoit Dumoulin | Dakuo Wang | Jingrui He | Hanqing Lu
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Tianxin Wei | Zhan Shi | Minhua Lin | Bing He | Zewen Liu | Yisi Sang | Yuanchen Bei | Xuying Ning | Jiaru Zou | Ting-Wei Li | Xiao Lin | Yanjun Zhao | Chi Wang | Benoit Dumoulin | Dakuo Wang | Jingrui He | Hanqing Lu
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Learning from experience is critical for developing capable, self-improving large language model (LLM) agents. Existing methods typically extract knowledge from accumulated trajectories via reflection, memory, rules, or skills. However, agents in realistic environments continuously encounter novel tasks, often offering only a one-shot opportunity to improve. These executions yield rich but highly noisy contexts, entangling broadly useful lessons with task-specific artifacts. Critically, prior works rarely validate their effectiveness on complex real-world tasks or isolate the underlying drivers of improvement. To address these gaps, we study online harness learning, where a frozen agent improves by continually updating a structured harness across sequential tasks. This setup enables a systematic study of key self-improvement factors through our proposed Evo-Harness. At its core, context-to-harness skill compilation distills noisy, single-shot executions into reusable skill harnesses for cross-domain and topic-level adaptation. To demonstrate the efficacy of one-shot skill compilation, we evaluate across five realistic benchmarks (TerminalBench2, SWE-bench, CL-Bench, 𝜏-bench, WebArena-Infinity). Our extensive analysis demonstrates the effectiveness of Evo-Harness and provides a principled understanding of how LLM agents can effectively learn on the fly. Our code is available at https://github.com/A-EVO-Lab/a-evolve/tree/release/evo-harness.
MemMA: Coordinating the Memory Cycle through Multi-Agent Reasoning and In-Situ Self-Evolution
Minhua Lin | Zhiwei Zhang | Hanqing Lu | Hui Liu | Xianfeng Tang | Qi He | Xiang Zhang | Suhang Wang
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Minhua Lin | Zhiwei Zhang | Hanqing Lu | Hui Liu | Xianfeng Tang | Qi He | Xiang Zhang | Suhang Wang
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Memory-augmented LLM agents maintain external memory banks to support long-horizon interaction, yet most existing systems treat construction, retrieval, and utilization as isolated subroutines. This creates two coupled challenges: strategic blindness on the forward path of the memory cycle, where construction and retrieval are driven by local heuristics rather than explicit strategic reasoning, and sparse, delayed supervision on the backward path, where downstream failures rarely translate into direct repairs of the memory bank. To address these challenges, we propose MemMA, a plug-and-play multi-agent framework that coordinates the memory cycle along both the forward and backward paths. On the forward path, a Meta-Thinker produces structured guidance that steers a Memory Manager during construction and directs a Query Reasoner during iterative retrieval. On the backward path, MemMA introduces in-situ self-evolving memory construction, which synthesizes probe QA pairs, verifies the current memory, and converts failures into repair actions before the memory is finalized. Extensive experiments on LoCoMo show that MemMA consistently outperforms existing baselines across multiple LLM backbones and improves three different storage backends in a plug-and-play manner. Our code is publicly available at https://github.com/ventr1c/memma.
Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agents
Minhua Lin | Juncheng Wu | Zijun Wang | Zhan Shi | Yisi Sang | Bing He | Zewen Liu | Tianxin Wei | Zongyu Wu | Zhiwei Zhang | Dakuo Wang | Xiang Zhang | Benoit Dumoulin | Cihang Xie | Yuyin Zhou | Suhang Wang | Hanqing Lu
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Minhua Lin | Juncheng Wu | Zijun Wang | Zhan Shi | Yisi Sang | Bing He | Zewen Liu | Tianxin Wei | Zongyu Wu | Zhiwei Zhang | Dakuo Wang | Xiang Zhang | Benoit Dumoulin | Cihang Xie | Yuyin Zhou | Suhang Wang | Hanqing Lu
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
LLM agents are increasingly deployed as systems built around editable external harnesses, including prompts, skills, memories and tools, that shape task execution without changing model parameters. Harness self-evolution adapts such agents by updating these harnesses from execution evidence. Yet it remains unclear whether a model’s base capability in task-solving predicts its capabilities in harness self-evolution: which models produce useful harness updates, and which actually benefit from them? We analyze two harness self-evolution capabilities: (i) harness-updating, the capability to produce useful persistent harness updates from execution evidence; (ii) harness-benefit, the capability to benefit from updated harnesses during task solving. Our analysis reveals two findings. First, harness-updating is flat in base capability: models from different capability tiers produce harness updates that lead to surprisingly similar gains; even Qwen3.5-9B’s updates yields gains comparable to those of Claude Opus 4.6. Second, harness-benefit is non-monotonic in base capability: weak-tier models benefit little from updated harnesses, mid-tier models benefit most, and strong-tier models benefit less than mid-tier. We trace low gains at the weak tier to two failure modes: weak-tier models may fail to activate relevant harness artifacts, or activate them but fail to follow them faithfully. These findings suggest investing capability budget in the task-solving agent rather than the evolver, and targeting harness invocation and long-horizon instruction following in agent training. Our source code is publicly available at https://github.com/A-EVO-Lab/a-evolve/tree/release/harness-evolution.
Trajectory2Task: Training Robust Tool-Calling Agents with Synthesized Yet Verifiable Data for Complex User Intents
Ziyi Wang | Yuxuan Lu | Yimeng Zhang | Pei Chen | Ziwei Dong | Jing Huang | Jiri Gesi | Xianfeng Tang | Chen Luo | Qun Liu | Yisi Sang | Hanqing Lu | Manling Li | Jin Lai | Dakuo Wang
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Ziyi Wang | Yuxuan Lu | Yimeng Zhang | Pei Chen | Ziwei Dong | Jing Huang | Jiri Gesi | Xianfeng Tang | Chen Luo | Qun Liu | Yisi Sang | Hanqing Lu | Manling Li | Jin Lai | Dakuo Wang
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Tool-calling agents are increasingly deployed in real-world customer-facing workflows. Yet most studies on tool-calling agents focus on idealized settings with general, fixed, and well-specified tasks.In real-world applications, user requests are often (1) ambiguous, (2) changing over time, or (3) infeasible due to policy constraints, and training and evaluation data that cover these diverse, complex interaction patterns remain under-represented.To bridge the gap, we present Trajectory2Task a verifiable data generation pipeline for studying tool use at scale under three realistic user scenarios: ambiguous intent, changing intent, and infeasible intents.The pipeline first conducts multi-turn exploration to produce valid tool-call trajectories. It then converts these trajectories into user-facing tasks with controlled intent adaptations. This process yields verifiable task that support closed-loop evaluation and training. We benchmark several state-of-the-art LLMs on the generated complex user scenario tasks and observe frequent failures.Finally, using successful trajectories obtained from task rollouts, we fine-tune lightweight LLMs and find consistent improvements across all three conditions, along with better generalization to unseen tool-use domains, indicating stronger tool-calling ability.
2025
Towards Knowledge Checking in Retrieval-augmented Generation: A Representation Perspective
Shenglai Zeng | Jiankun Zhang | Bingheng Li | Yuping Lin | Tianqi Zheng | Dante Everaert | Hanqing Lu | Hui Liu | Hui Liu | Yue Xing | Monica Xiao Cheng | Jiliang Tang
Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)
Shenglai Zeng | Jiankun Zhang | Bingheng Li | Yuping Lin | Tianqi Zheng | Dante Everaert | Hanqing Lu | Hui Liu | Hui Liu | Yue Xing | Monica Xiao Cheng | Jiliang Tang
Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)
Retrieval-Augmented Generation (RAG) systems have shown promise in enhancing the performance of Large Language Models (LLMs). However, these systems face challenges in effectively integrating external knowledge with the LLM’s internal knowledge, often leading to issues with misleading or unhelpful information. This work aims to provide a systematic study on knowledge checking in RAG systems. We conduct a comprehensive analysis of LLM representation behaviors and demonstrate the significance of using representations in knowledge checking. Motivated by the findings, we further develop representation-based classifiers for knowledge filtering. We show substantial improvements in RAG performance, even when dealing with noisy knowledge databases. Our study provides new insights into leveraging LLM representations for enhancing the reliability and effectiveness of RAG systems.
Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Data
Shenglai Zeng | Jiankun Zhang | Pengfei He | Jie Ren | Tianqi Zheng | Hanqing Lu | Han Xu | Hui Liu | Yue Xing | Jiliang Tang
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing
Shenglai Zeng | Jiankun Zhang | Pengfei He | Jie Ren | Tianqi Zheng | Hanqing Lu | Han Xu | Hui Liu | Yue Xing | Jiliang Tang
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing
Retrieval-augmented generation (RAG) enhances the outputs of language models by integrating relevant information retrieved from external knowledge sources. However, when the retrieval process involves private data, RAG systems may face severe privacy risks, potentially leading to the leakage of sensitive information. To address this issue, we propose using synthetic data as a privacy-preserving alternative for the retrieval data. We propose SAGE, a novel two-stage synthetic data generation paradigm. In the stage-1, we employ an attribute-based extraction and generation approach to preserve key contextual information from the original data. In the stage-2, we further enhance the privacy properties of the synthetic data through an agent-based iterative refinement process. Extensive experiments demonstrate that using our synthetic data as the retrieval context achieves comparable performance to using the original data while substantially reducing privacy risks. Our work takes the first step towards investigating the possibility of generating high-utility and privacy-preserving synthetic data for RAG, opening up new opportunities for the safe application of RAG systems in various domains.
Towards Context-Robust LLMs: A Gated Representation Fine-tuning Approach
Shenglai Zeng | Pengfei He | Kai Guo | Tianqi Zheng | Hanqing Lu | Yue Xing | Hui Liu
Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Shenglai Zeng | Pengfei He | Kai Guo | Tianqi Zheng | Hanqing Lu | Yue Xing | Hui Liu
Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Large Language Models (LLMs) enhanced with external contexts, such as through retrieval-augmented generation (RAG), often face challenges in handling imperfect evidence. They tend to over-rely on external knowledge, making them vulnerable to misleading and unhelpful contexts. To address this, we propose the concept of context-robust LLMs, which can effectively balance internal knowledge with external context, similar to human cognitive processes. Specifically, context-robust LLMs should rely on external context only when lacking internal knowledge, identify contradictions between internal and external knowledge, and disregard unhelpful contexts. To achieve this goal, we introduce Grft, a lightweight and plug-and-play gated representation fine-tuning approach. Grft consists of two key components: a gating mechanism to detect and filter problematic inputs, and low-rank representation adapters to adjust hidden representations. By training a lightweight intervention function with only 0.0004% of model size on fewer than 200 examples, Grft can effectively adapt LLMs towards context-robust behaviors.
2022
Multilingual Knowledge Graph Completion with Self-Supervised Adaptive Graph Alignment
Zijie Huang | Zheng Li | Haoming Jiang | Tianyu Cao | Hanqing Lu | Bing Yin | Karthik Subbian | Yizhou Sun | Wei Wang
Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Zijie Huang | Zheng Li | Haoming Jiang | Tianyu Cao | Hanqing Lu | Bing Yin | Karthik Subbian | Yizhou Sun | Wei Wang
Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Predicting missing facts in a knowledge graph (KG) is crucial as modern KGs are far from complete. Due to labor-intensive human labeling, this phenomenon deteriorates when handling knowledge represented in various languages. In this paper, we explore multilingual KG completion, which leverages limited seed alignment as a bridge, to embrace the collective knowledge from multiple languages. However, language alignment used in prior works is still not fully exploited: (1) alignment pairs are treated equally to maximally push parallel entities to be close, which ignores KG capacity inconsistency; (2) seed alignment is scarce and new alignment identification is usually in a noisily unsupervised manner. To tackle these issues, we propose a novel self-supervised adaptive graph alignment (SS-AGA) method. Specifically, SS-AGA fuses all KGs as a whole graph by regarding alignment as a new edge type. As such, information propagation and noise influence across KGs can be adaptively controlled via relation-aware attention weights. Meanwhile, SS-AGA features a new pair generator that dynamically captures potential alignment pairs in a self-supervised paradigm. Extensive experiments on both the public multilingual DBPedia KG and newly-created industrial multilingual E-commerce KG empirically demonstrate the effectiveness of SS-AGA
2021
Graph-based Multilingual Product Retrieval in E-Commerce Search
Hanqing Lu | Youna Hu | Tong Zhao | Tony Wu | Yiwei Song | Bing Yin
Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Industry Papers
Hanqing Lu | Youna Hu | Tong Zhao | Tony Wu | Yiwei Song | Bing Yin
Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Industry Papers
Nowadays, with many e-commerce platforms conducting global business, e-commerce search systems are required to handle product retrieval under multilingual scenarios. Moreover, comparing with maintaining per-country specific e-commerce search systems, having an universal system across countries can further reduce the operational and computational costs, and facilitate business expansion to new countries. In this paper, we introduce an universal end-to-end multilingual retrieval system, and discuss our learnings and technical details when training and deploying the system to serve billion-scale product retrieval for e-commerce search. In particular, we propose a multilingual graph attention based retrieval network by leveraging recent advances in transformer-based multilingual language models and graph neural network architectures to capture the interactions between search queries and items in e-commerce search. Offline experiments on five countries data show that our algorithm outperforms the state-of-the-art baselines by 35% recall and 25% mAP on average. Moreover, the proposed model shows significant increase of conversion/revenue in online A/B experiments and has been deployed in production for multiple countries.
Search
Fix author
Co-authors
- Minhua Lin 3
- Hui Liu 3
- Yisi Sang 3
- Dakuo Wang 3
- Yue Xing 3
- Shenglai Zeng 3
- Tianqi Zheng 3
- Benoit Dumoulin 2
- Bing He 2
- Pengfei He 2
- Hui Liu 2
- Zewen Liu 2
- Zhan Shi 2
- Jiliang Tang 2
- Xianfeng Tang 2
- Suhang Wang 2
- Tianxin Wei 2
- Jiankun Zhang 2
- Xiang Zhang 2
- Zhiwei Zhang 2
- Yuanchen Bei 1
- Tianyu Cao 1
- Pei Chen 1
- Monica Xiao Cheng 1
- Ziwei Dong 1
- Dante Everaert 1
- Jiri Gesi 1
- Kai Guo 1
- Jingrui He 1
- Qi He 1
- Youna Hu 1
- Jing Huang 1
- Zijie Huang 1
- Haoming Jiang 1
- Jin Lai 1
- Bingheng Li 1
- Manling Li 1
- Ting-Wei Li 1
- Zheng Li 1
- Xiao Lin 1
- Yuping Lin 1
- Qun Liu 1
- Yuxuan Lu 1
- Chen Luo 1
- Xuying Ning 1
- Jie Ren 1
- Yiwei Song 1
- Karthik Subbian 1
- Yizhou Sun 1
- Chi Wang 1
- Wei Wang 1
- Zijun Wang 1
- Ziyi Wang 1
- Juncheng Wu 1
- Tony Wu 1
- Zongyu Wu 1
- Cihang Xie 1
- Han Xu 1
- Bing Yin 1
- Bing Yin 1
- Yimeng Zhang 1
- Tong Zhao 1
- Yanjun Zhao 1
- Yuyin Zhou 1
- Jiaru Zou 1