Zihao Zeng

Shanghai Jiao Tong University
2 previous affiliations
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Zihao Zeng focuses on the optimization of Large Language Models (LLMs), with a specific emphasis on enhancing reasoning capabilities and improving inference efficiency. His work addresses the computational bottlenecks inherent in long-context processing and the structural inefficiencies of long-form Chain-of-Thought (CoT) reasoning. Affiliated with Chongqing Normal University and conducting research within the SJTU Deng Lab, Zeng’s trajectory reflects a transition from low-level architectural optimizations, such as Key-Value (KV) cache management and Mixture-of-Experts (MoE) routing, toward the high-level orchestration of reasoning trajectories in Large Reasoning Models (LRMs).

Research Trajectory

Zeng’s early research in 2024 centered on the fundamental efficiency challenges of the Transformer architecture, particularly the memory and computational overhead of the KV-cache during inference. This period was characterized by an investigation into dynamic eviction strategies that could adapt to varying contexts without the performance degradation associated with static methods. This work laid the groundwork for his broader interest in Asymmetric Key-Value Cache Compression, where the goal is to reduce the memory footprint of self-attention states in ultra-large models and long-context queries.

Parallel to his work on cache optimization, Zeng explored the efficiency of model scaling through Sparse Mixture of Experts for Efficient Scaling. His contributions in this area focused on the limitations of traditional "one-size-fits-all" routing mechanisms. By examining Dynamic Expert Allocation for Mixture-of-Experts, he addressed the computational waste that occurs when models activate a fixed number of experts regardless of the input's complexity. This research direction emphasized the need for Dynamic Expert Allocation in Sparse Transformers, seeking to align computational expenditure with the inherent difficulty of the processed tokens.

In 2025, Zeng’s focus shifted toward the emerging field of Large Reasoning Models. As models like DeepSeek-R1 and OpenAI’s o1 popularized long-form reasoning, Zeng began investigating the trade-offs between reasoning depth and inference cost. This transition involved moving beyond token-level efficiency to consider the efficiency of the reasoning process itself. His work during this period addressed the "Accuracy Cliff" often observed in multi-step tasks, where Mitigating Semantic Drift in Multi-Step Reasoning Chains became a central objective. This evolution culminated in his current focus on General Purpose Reasoning from Specialized Reinforcement Learning, treating the ability to reason as a structured capability that can be optimized, distilled, and aligned.

Current Directions

Zeng’s current research is concentrated on two primary pillars: the structural decomposition of reasoning and the safety alignment of reasoning models. He is actively developing methods to break down the "wall-of-text" reasoning chains typical of modern LRMs into more manageable, multi-turn interactions. This approach aims to reduce the latency and token usage of complex problem-solving without sacrificing accuracy.

Additionally, Zeng is investigating the "safety tax" often associated with aligning powerful reasoning models. His work in this area seeks to harden models against malicious queries and jailbreaks while maintaining their core capabilities in mathematics and coding. By utilizing self-generated reasoning trajectories for distillation, he explores how models can learn robust safety guardrails through their own internal logic.

Representative Work

In-context KV-Cache Eviction for LLMs via Attention-Gate As the first author, Zeng proposed the Attention-Gate mechanism to address the KV-cache bottleneck in long-context LLM inference. While existing methods like StreamingLLM use static eviction and others like H2O use accumulative attention scores, Zeng identified that these approaches often suffer from attention bias or lack of flexibility. Attention-Gate bridges these strategies by dynamically identifying and discarding less important tokens based on contextual relevance, thereby maintaining model performance while significantly reducing memory requirements.

RealSafe-R1: Safety-Aligned DeepSeek-R1 without Compromising Reasoning Capability In this work, Zeng introduced a suite of safety-aligned models based on the DeepSeek-R1 architecture. The primary challenge addressed was the tendency of open-source reasoning models to comply with harmful queries. Zeng led the development of a distillation process using 15,000 safety-aware reasoning trajectories. The results demonstrated that explicit instructions for refusal behavior, when integrated into the reasoning path, can harden the model against jailbreaks without the typical performance degradation in technical domains like coding or mathematics.

Done Is Better than Perfect: Unlocking Efficient Reasoning by Structured Multi-Turn Decomposition Zeng proposed Multi-Turn Decomposition (MinD) to improve the efficiency of Large Reasoning Models. Recognizing that the excessively lengthy Chain-of-Thought (CoT) in models like R1 leads to high latency, Zeng developed a method to decompose these chains into structured, multi-turn interactions. By training models to provide intermediate units of thought and rewarding the achievement of correct answers in fewer steps, the MinD framework achieved a substantial reduction in token usage and inference latency while maintaining high accuracy on complex benchmarks.

MatryoshkaKV: Adaptive KV Compression via Trainable Orthogonal Projection As the second author, Zeng contributed to the development of MatryoshkaKV, a novel approach to KV-cache compression. The method employs trainable orthogonal projection matrices to reduce the feature dimension of the cache. This allows for high-ratio compression that is adaptive to the specific requirements of different attention heads and layers within the Transformer. This work represents a significant step in making million-token context windows more computationally feasible.

Which Data Attributes Stimulate Math and Code Reasoning? An Investigation via Influence Functions Zeng participated in this investigation into the data-level drivers of reasoning capabilities in LLMs. The study utilized the Infra (Influence-based Reasoning Attribution) framework to identify which training examples most effectively "teach" a model to reason. The research revealed a nuanced relationship between task difficulty and reasoning acquisition, specifically finding that while mathematical reasoning requires high-difficulty problems, coding reasoning can be enhanced by simpler tasks when they are strategically paired with complex mathematical data.

Profile updated

See something wrong? Report a mistake