Mianqiu Huang
Author directory2026
Beyond Homogeneous Attention: Memory-Efficient LLMs via Fourier-Approximated KV Cache
Qiqi Wang | Siyang He | Xiaoran Liu | Ruixiao Li | Yuerong Song | Zhigeng Liu | Mianqiu Huang | Zengfeng Huang | Qipeng Guo | Ziwei He | Xipeng Qiu
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Qiqi Wang | Siyang He | Xiaoran Liu | Ruixiao Li | Yuerong Song | Zhigeng Liu | Mianqiu Huang | Zengfeng Huang | Qipeng Guo | Ziwei He | Xipeng Qiu
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Large Language Models struggle with memory demands from the growing Key-Value (KV) cache as context lengths increase. Existing compression methods homogenize head dimensions or rely on attention-guided token pruning, often sacrificing accuracy or introducing computational overhead. We propose FourierAttention, a training-free framework that exploits the heterogeneous roles of transformer head dimensions: lower dimensions prioritize local context, while upper ones capture long-range dependencies. By projecting the long-context-insensitive dimensions onto orthogonal Fourier bases, FourierAttention approximates their temporal evolution with fixed-length spectral coefficients. Evaluations on Llama and Qwen models show FourierAttention achieves the best long-context accuracy on LongBench and Needle-In-A-Haystack (NIAH). Besides, a custom Triton kernel, FlashFourierAttention, is designed to optimize memory via streamlined read-write operations, enabling efficient deployment without performance compromise.
2025
LongSafety: Enhance Safety for Long-Context LLMs
Mianqiu Huang | Xiaoran Liu | Shaojun Zhou | Mozhi Zhang | Qipeng Guo | Linyang Li | Pengyu Wang | Yang Gao | Chenkun Tan | Linlin Li | Qun Liu | Yaqian Zhou | Xipeng Qiu | Xuanjing Huang
Proceedings of the First Workshop on LLM Security (LLMSEC)
Mianqiu Huang | Xiaoran Liu | Shaojun Zhou | Mozhi Zhang | Qipeng Guo | Linyang Li | Pengyu Wang | Yang Gao | Chenkun Tan | Linlin Li | Qun Liu | Yaqian Zhou | Xipeng Qiu | Xuanjing Huang
Proceedings of the First Workshop on LLM Security (LLMSEC)
Recent advancements in model architectures and length extrapolation techniques have significantly extended the context length of large language models (LLMs), paving the way for their application in increasingly complex tasks. However, despite the growing capabilities of long-context LLMs, the safety issues in long-context scenarios remain underexplored. While safety alignment in short context has been widely studied, the safety concerns of long-context LLMs have not been adequately addressed. In this work, we introduce ${textbf{LongSafety}}$, a comprehensive safety alignment dataset for long-context LLMs, containing 10 tasks and 17k samples, with an average length of 40.9k tokens. Our experiments demonstrate that training with LongSafety can enhance long-context safety performance while enhancing short-context safety and preserving general capabilities. Furthermore, we demonstrate that long-context safety does not equal long-context alignment with short-context safety data and LongSafety has generalizing capabilities in context length and long-context safety scenarios.
MetaAlign: Align Large Language Models with Diverse Preferences during Inference Time
Mozhi Zhang | Pengyu Wang | Chenkun Tan | Mianqiu Huang | Dong Zhang | Yaqian Zhou | Xipeng Qiu
Findings of the Association for Computational Linguistics: NAACL 2025
Mozhi Zhang | Pengyu Wang | Chenkun Tan | Mianqiu Huang | Dong Zhang | Yaqian Zhou | Xipeng Qiu
Findings of the Association for Computational Linguistics: NAACL 2025
Large Language Models (LLMs) acquire extensive knowledge and remarkable abilities from extensive text corpora, making them powerful tools for various applications. To make LLMs more usable, aligning them with human preferences is essential. Existing alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO), typically embed predefined preferences directly within the model’s parameters. These methods, however, often result in a static alignment that can not account for the diversity of human preferences in practical applications.In response to this challenge, we propose an effective method, MetaAlign, which aims to help LLMs dynamically align with various explicit or implicit preferences specified at inference time. Experimental results show that LLMs optimized on our meticulously constructed MetaAlign Dataset can effectively align with any preferences specified at the inference stage, validating the feasibility of MetaAlign. We hope that our work can provide some insights into the alignment of language models.
2024
Calibrating the Confidence of Large Language Models by Eliciting Fidelity
Mozhi Zhang | Mianqiu Huang | Rundong Shi | Linsen Guo | Chong Peng | Peng Yan | Yaqian Zhou | Xipeng Qiu
Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
Mozhi Zhang | Mianqiu Huang | Rundong Shi | Linsen Guo | Chong Peng | Peng Yan | Yaqian Zhou | Xipeng Qiu
Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
Large language models optimized with techniques like RLHF have achieved good alignment in being helpful and harmless. However, post-alignment, these language models often exhibit overconfidence, where the expressed confidence does not accurately calibrate with their correctness rate. In this paper, we decompose the language model confidence into the Uncertainty about the question and the Fidelity to the answer generated by language models. Then, we propose a plug-and-play method, UF Calibration, to estimate the confidence of language models. Our method has shown good calibration performance by conducting experiments with 6 RLHF-LMs on four MCQA datasets. Moreover, we propose two novel metrics, IPR and CE, to evaluate the calibration of the model, and we have conducted a detailed discussion on Truly Well-Calibrated Confidence for large language models. Our method could serve as a strong baseline, and we hope that this work will provide some insights into the model confidence calibration.
Memorize Step by Step: Efficient Long-Context Prefilling with Incremental Memory and Decremental Chunk
Zhiyuan Zeng | Qipeng Guo | Xiaoran Liu | Zhangyue Yin | Wentao Shu | Mianqiu Huang | Bo Wang | Yunhua Zhou | Linlin Li | Qun Liu | Xipeng Qiu
Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
Zhiyuan Zeng | Qipeng Guo | Xiaoran Liu | Zhangyue Yin | Wentao Shu | Mianqiu Huang | Bo Wang | Yunhua Zhou | Linlin Li | Qun Liu | Xipeng Qiu
Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
The evolution of Large Language Models (LLMs) has led to significant advancements, with models like Claude and Gemini capable of processing contexts up to 1 million tokens. However, efficiently handling long sequences remains challenging, particularly during the prefilling stage when input lengths exceed GPU memory capacity. Traditional methods often segment sequence into chunks and compress them iteratively with fixed-size memory. However, our empirical analysis shows that the fixed-size memory results in wasted computational and GPU memory resources. Therefore, we introduces Incremental Memory (IM), a method that starts with a small memory size and gradually increases it, optimizing computational efficiency. Additionally, we propose Decremental Chunk based on Incremental Memory (IMDC), which reduces chunk size while increasing memory size, ensuring stable and lower GPU memory usage. Our experiments demonstrate that IMDC is consistently faster (1.45x) and reduces GPU memory consumption by 23.3% compared to fixed-size memory, achieving comparable performance on the LongBench Benchmark.
Search
Fix author
Co-authors
- Xipeng Qiu (邱锡鹏) 5
- Qipeng Guo 3
- Xiaoran Liu 3
- Mozhi Zhang 3
- Yaqian Zhou 3
- Linlin Li 2
- Qun Liu 2
- Chenkun Tan 2
- Pengyu Wang 2
- Yang Gao 1
- Linsen Guo 1
- Siyang He 1
- Ziwei He 1
- Xuan-Jing Huang (黄萱菁) 1
- Zengfeng Huang (黄增峰) 1
- Linyang Li 1
- Ruixiao Li 1
- Zhigeng Liu 1
- Chong Peng 1
- Rundong Shi 1
- Wentao Shu 1
- Yuerong Song 1
- Bo Wang 1
- Qiqi Wang 1
- Peng Yan 1
- Zhangyue Yin 1
- Zhiyuan Zeng 1
- Dong Zhang 1
- Shaojun Zhou 1
- Yunhua Zhou 1