Yan Wang

Tencent (China)
3 previous affiliations
49Machine learning papers tracked by Lacuna

24 other authors named Yan Wang: Yan Wang (Macquarie University · 1,300 papers), Yan Wang (Nvidia (United States) · 145 papers), Yan Wang (Wayne State University · 136 papers), Yan Wang (Tsinghua University · 111 papers), Yan Wang (East China Normal University · 44 papers), and 19 more

Is this you?

Research Overview

Yan Wang focuses on natural language processing, large language model architectures, and character-driven dialogue agents. His early trajectory explored symbolic reasoning and mathematical word problems before shifting to role-playing language models and commonsense generation. Currently, his research addresses infinite-memory architectures, dynamic decoding strategies, and efficient long-context processing for stateful language models.

Research Trajectory

Yan Wang's research trajectory begins with foundational work in natural language understanding and symbolic reasoning. In 2018, he addressed the non-deterministic nature of math word problems, where multiple mathematically equivalent equations can represent a single problem, complicating the training of neural solvers. This challenge was explored in the preprint Translating a Math Word Problem to an Expression Tree and its subsequent peer-reviewed publication Translating Math Word Problem to Expression Tree. By introducing an equation normalization method based on expression trees and utilizing an ensemble of diverse sequence-to-sequence architectures, this work advanced the research direction of Canonical Normalization for Robust Symbolic Reasoning. These contributions also established key techniques in the broader area of Tree Structured Generation of Mathematical Expressions and the field of Mapping Natural Language to Symbolic Mathematical Expressions.

Following this early focus on symbolic reasoning, his attention shifted toward natural language generation, dialogue systems, and the alignment of language models. Around 2022, he contributed to areas such as Contrastive Search for Diverse and Coherent Text Generation and Degenerate Repetition and the Self Reinforcement Effect. A major theme during this period was character-driven dialogue. He developed the Harry Potter Dialogue (HPD) dataset to help models capture nuanced, evolving relationships and personality shifts across long narratives. This dataset was initially detailed in What would Harry say? Building Dialogue Agents for Characters in a Story and formally presented as Large Language Models Meet Harry Potter: A Dataset for Aligning Dialogue Agents with Characters. The work highlighted that while large models often possess factual knowledge of a fictional universe, they require fine-grained, dynamic annotations to achieve true character alignment. Concurrently, he investigated methods to reconcile general pre-training with specific generation requirements in Bridging the Gap between Pre-Training and Fine-Tuning for Commonsense Generation. He later synthesized the evolution of character-driven simulations in The Oscars of AI Theater: A Survey on Role-Playing with Language Models, providing a structured taxonomy for data, alignment, and agent architecture while noting the tension between traditional model helpfulness and effective role-enactment.

As language models scaled, his research increasingly focused on the architectural bottlenecks of processing massive contexts, contributing to the area of Jointly Optimizing Retrieval and Generation. To handle extremely long text generation without relying on massive key-value (KV) caches, he and his collaborators introduced the Temp-Lora framework. Detailed in With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generation and its COLM 2024 version With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generation, this approach trains a temporary LoRA module on-the-fly during inference. By embedding contextual information directly into the model's parameters, the framework achieved significant quality improvements while reducing memory usage by over 50% and latency by 60%.

He also identified critical failure modes in parallel context encoding. In Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Models and its ACL 2025 publication Attention Entropy is a Key Factor: An Analysis of Parallel Context Encoding with Full-attention-based Pre-trained Language Models, he demonstrated that naively splitting long contexts triggers "attention entropy," causing the model's focus to become irregularly scattered. To mitigate this performance drop, he proposed shared attention sinks and selective attention mechanisms to sharpen the model's focus and recover performance without expensive fine-tuning.

Most recently, his work has targeted the fundamental mechanics of model decoding and memory management. In THE END OF MANUAL DECODING: TOWARDS TRULY END-TO-END LANGUAGE MODELS, he guided the development of AutoDeco, an architecture that dynamically predicts optimal sampling parameters for individual tokens, matching or exceeding hand-tuned baselines with negligible latency. Alongside this, he oversaw the introduction of the "Pensieve Paradigm" in The Pensieve Paradigm: Stateful Language Models Mastering Their Own Context. This work equips models with tools for pruning, indexing, and note-taking, transforming them from passive context consumers into active state managers capable of handling long-horizon tasks with significantly reduced active context.

Current Directions

The most recent papers in the evidence address the architectural limitations of standard autoregressive language models, focusing on dynamic decoding and persistent memory management. Recent work investigates how to move beyond static, manual decoding strategies—such as fixed temperature and top-p values—by training models to dynamically predict optimal sampling parameters at the token level. Additionally, current research explores "stateful" language models that actively manage their own context. By integrating mechanisms for pruning, indexing, and note-taking directly into the model's operational paradigm, this direction aims to improve performance on long-horizon reasoning and research tasks while minimizing the computational overhead of massive context windows.

Profile updated

See something wrong? Report a mistake