MCP
XH

Xingwei He

30 papers in the library

Papers

30
Multilingual Safety Signals Are Multi-Layered: Filtering Safety-Degrading Data for Safer LLMs
Jiakun LiGuowei SongSijia LiXingwei HeHongzheng ChaiYuan Yuan
Preserving safety alignment during large language models fine-tuning is critical, however, recent studies have demonstrated that even benign fine-tuning data may contain safety-degrading samples that silently undermine such alignment. Existing approaches typically identify safety-degrading samples using representations from a single safety-sensitive layer. However, whether a single safety-sensitive layer is sufficient for identifying such samples in multilingual settings remains unclear, where representation patterns may vary across languages. Our cross-lingual analysis shows that sensitive layers are only partially shared across languages and that safety-relevant signals often span multiple layers. Motivated by these observations, we propose MMSafe, a multi-layer framework for multilingual safety-degrading data identification that jointly leverages shared and language-specific sensitive layers. Extensive experiments across multiple models, languages, and safety benchmarks demonstrate that MMSafe reduces the average harmful-response ratio by 60% compared with random filtering and outperforms the strongest single-layer baseline, demonstrating the effectiveness of multi-layer modeling for robust multilingual safety alignment. Code is available at https://anonymous.4open.science/r/MMSAFE.
ACL AnthologyACL Anthology · October 2026
0
RECOMATH: Benchmarking and Improving Self-Correction in Mathematical Reasoning
Jiakun LiSijia LiHongzheng ChaiKefan LiXingwei HeMo ZhangBo PengYuan Yuan
ReCoMath is introduced as a step-level benchmark for self-correction in mathematical reasoning: each example gives a problem and a reasoning prefix ending at the first erroneous step, and the model must continue without being told an error exists. Evaluation of several open-weight LLMs shows strong problem-solving performance need not translate into reliable self-correction. A controlled study of training-trajectory construction finds that retaining intermediate reflection or repair steps consistently helps, with correct-trace reflection more stable on easier instances and error-retaining repair stronger on harder ones; based on this, Calibrated Reflection Training (CRT) asymmetrically combines both signals, yielding a better overall balance between self-correction and problem-solving across three backbones than either signal alone.
OpenReviewOpenReview · September 15, 2026
0
Multilingual Safety Signals Are Multi-Layered: Filtering Safety-Degrading Data for Safer LLMs
Jiakun LiGuowei SongSijia LiXingwei HeHongzheng ChaiYuan Yuan
Safety alignment can be degraded during multilingual LLM fine-tuning because safety-sensitive layers are only partially shared across languages. MMSAFE addresses this by identifying safety-degrading samples via a multi-layer framework that captures both shared and language-specific safety signals, reducing the average harmful-response ratio by 60% over random filtering and outperforming single-layer baselines.
arXivarXiv · · August 26, 2026
0
Efficient Test-Time Scaling via Temporal Reasoning Aggregation
Jiakun LiXingwei HeKefan LiHongzheng ChaiHongyue YuYuan Yuan
Test-time scaling improves the reasoning performance of large language models but often results in token-inefficient overthinking, where models continue reasoning beyond what is necessary for a correct answer. Existing dynamic early-exit methods typically rely on single-step confidence signals, which are often unreliable for detecting reasoning convergence in multi-step settings. To mitigate this limitation, we propose TRACE, a training-free framework for efficient test-time scaling that determines when to terminate reasoning based on temporal aggregation of multi-step evidence rather than instantaneous signals. TRACE detects reasoning convergence over time by aggregating two complementary signals across recent reasoning steps: answer consistency, capturing the persistence of predicted answers, and confidence trajectory, modeling the temporal evolution of model confidence. Benefiting from these two factors, TRACE can accurately determine whether the reasoning process has converged, thereby promptly halting inference and effectively avoiding redundant reasoning steps. Extensive experiments on multiple challenging benchmarks show that TRACE reduces reasoning token usage by 25–30% on average while maintaining accuracy within 1–2% of full-length reasoning, consistently outperforming existing dynamic reasoning methods.
ACL AnthologyACL Anthology · July 2026
0
Efficient Test-Time Scaling via Temporal Reasoning Aggregation
Jiakun LiXingwei HeKefan LiHongzheng ChaiHongyue YuYuan Yuan
TRACE is a training-free framework that improves test-time scaling efficiency for large language models by terminating reasoning upon convergence rather than relying on single-step confidence signals. It aggregates two complementary signals across recent reasoning steps—answer consistency and confidence trajectory—to detect when the reasoning process has stabilized. Experiments show TRACE reduces token usage by 25-30% on average while maintaining accuracy within 1-2% of full-length reasoning, outperforming existing dynamic early-exit methods.
arXivarXiv · · April 19, 2026
0
4
UniMamba: A Unified Spatial-Temporal Modeling Framework with State-Space and Attention Integration
Xingsheng ChenXianpei MuDeyu YiYilin YuanXingwei HeBo GaoRegina ZhangPietro LioSiu-Ming Yiu
UniMamba integrates state-space dynamics with attention-based learning for multivariate time-series forecasting. It uses a Mamba Variate-Channel Encoding Layer enhanced with FFT-Laplace Transform and TCN to capture global temporal dependencies, and a Spatial Temporal Attention Layer to jointly model inter-variate correlations and temporal evolution. A Feedforward Temporal Dynamics Layer fuses continuous and discrete contexts. Experiments on eight benchmarks show UniMamba outperforms state-of-the-art models in both accuracy and efficiency.
arXivarXiv · · March 6, 2026
0
0
MODE: Efficient Time Series Prediction with Mamba Enhanced by Low-Rank Neural ODEs
Xingsheng ChenRegina ZhangBo GaoXingwei HeXiaofeng LiuPietro LioKwok-Yan LamSiu-Ming Yiu
MODE combines Low-Rank Neural ODEs with an Enhanced Mamba architecture for efficient time series prediction. It uses a linear tokenization layer, then Mamba Encoder blocks with Causal Convolution, SiLU activation, and a low-rank ODE enhancement to capture temporal dynamics efficiently. A segmented selective scanning mechanism, inspired by pseudo-ODE dynamics, adaptively focuses on salient subsequences, improving scalability and long-range modeling. Experiments on benchmarks show MODE surpasses baselines in accuracy and efficiency.
arXivarXiv · · January 1, 2026
0
0
ConInstruct: Evaluating Large Language Models on Conflict Detection and Resolution in Instructions
Xingwei HeQianru ZhangPengfei ChenGuanhua ChenLinlin YuYuan YuanSiu-Ming Yiu
ConInstruct is a benchmark to evaluate Large Language Models on detecting and resolving conflicts in instructions. While proprietary models show strong detection, only DeepSeek-R1 matches them among open-source models; DeepSeek-R1 and Claude-4.5-Sonnet achieve the highest F1-scores (91.5% and 87.3%). However, all models rarely notify users or request clarification when facing conflicts, revealing a critical shortcoming in instruction-following LLMs.
arXivarXiv · · November 18, 2025
0
13
A novel framework for fully-automated co-registration of intravascular ultrasound and optical coherence tomography imaging data
Xingwei HeKit Mills BransbyAhmet Emir UlutasThamil KumaranNathan Angelo Lecaros YapGonul ZerenHesong ZengYaojun ZhangAndreas BaumbachJames MoonAnthony MathurJouke Dijkstra  +3
This paper introduces a fully automated deep-learning framework for co-registering intravascular ultrasound (IVUS) and optical coherence tomography (OCT) images. Trained on expert-annotated lumen borders and side branches/calcific tissue from 61,655 NIRS-IVUS and 62,334 OCT frames, the framework uses dynamic time warping for longitudinal alignment and dynamic programming for circumferential registration. On a test set of 77 vessels, it achieved high concordance with expert analysts (concordance correlation coefficient >0.99 for longitudinal, >0.90 for circumferential) and processed each vessel in under 90 seconds.
arXivarXiv · · July 8, 2025
0
1
Tag-Instruct: Controlled Instruction Complexity Enhancement through Structure-based Augmentation
He ZhuZhiwen RuanJunyou SuXingwei HeYun ChenWenjia ZhangGuanhua Chen
Tag-Instruct enhances instruction complexity for LLMs by compressing instructions into a compact tag space, then systematically expanding tags via RL-guided augmentation. This structured approach achieves superior controllability and stability compared to prompt-based methods operating on raw text, as demonstrated by outperforming existing instruction complexity augmentation approaches.
ACL AnthologyACL Anthology · July 2025
0
3
Facial Foundational Model Advances Early Warning of Coronary Artery Disease from Live Videos with DigitalShadow
Juexiao ZhouZhongyi HanMankun XinXingwei HeGuotao WangJiaoyan SongGongning LuoWenjia HeXintong LiYuetan ChuJuanwen ChenBo Wang  +10
DigitalShadow is a passive, contactless early warning system for coronary artery disease (CAD) that uses a facial foundation model fine-tuned on 7,004 images from 1,751 subjects across four hospitals. It extracts facial features from live video, generates personalized risk reports and health recommendations, and supports local deployment for privacy, without requiring active user engagement.
arXivarXiv · · June 2025
0
1
TUBench: Benchmarking Large Vision-Language Models on Trustworthiness with Unanswerable Questions
Xingwei HeQianru ZhangA-Long JinYuan YuanSiu-Ming Yiu
TUBench is a benchmark that evaluates the trustworthiness of large vision-language models (LVLMs) by testing their ability to identify unanswerable questions—queries that cannot be answered due to insufficient visual information. It comprises ten strategies for crafting unanswerable questions across four image domains (code, natural scenes, geometry, tables). On TUBench, the top-performing LVLM, Gemini-1.5-Pro, achieves 69.2% average accuracy in determining answerability, indicating substantial room for improvement.
arXivarXiv · · October 5, 2024
0
TUBench: Benchmarking Large Vision-Language Models on Trustworthiness with Unanswerable Questions
Xingwei HeQianru ZhangA-Long JinYuan YuanSiu Ming Yiu
TUBench is a benchmark evaluating large vision-language models' trustworthiness via unanswerable questions, where images lack sufficient information. It contains high-quality questions crafted by ten strategies, spanning four visual domains: code screenshots, natural images, geometry diagrams, and statistical tables, targeting code, commonsense, geometric, and table-based mathematical reasoning. Evaluating 28 models, Gemini-1.5-Pro achieved 69.2% average accuracy and GPT-4o 66.7%. Manual analysis showed correct answers with explanations in only 41% of Gemini cases, with hallucinations causing 58.5% of incorrect explanations, revealing persistent hallucination challenges.
OpenReviewOpenReview · · September 27, 2024
0
Enhancing Few-Shot Stock Trend Prediction with Large Language Models
Yiqi DengXingwei HeJiahao HuSiu-Ming Yiu
Stock trend prediction faces data scarcity because manual annotation is expensive. This paper exploits the few-shot capability of LLMs to forecast market movements without large labeled corpora. It proposes a denoising-then-voting pipeline: first, each news item is classified as positive, negative, or irrelevant, removing noisy input; then, predictions from individual news are aggregated by majority voting to bypass LLM context limits. On S&P 500, CSI-100, and HK stocks, the approach achieves 66.59%, 62.17%, and 61.17% accuracy, outperforming standard few-shot baselines by roughly 4–7% and matching supervised methods.
arXivarXiv · · July 12, 2024
0
7
AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotators
Xingwei HeZhenghao LinYeyun GongA-Long JinHang ZhangChen LinJian JiaoSiu Ming YiuNan DuanWeizhu Chen
AnnoLLM, an annotation system powered by large language models (LLMs) like GPT-3.5, outperforms or matches crowdsourced annotators on three tasks (user input relevance, BoolQ, WiC). Its two-step approach first prompts the LLM to explain the label for a given example, then uses that self-generated explanation in a few-shot chain-of-thought prompt to annotate unlabeled data. The first conversation-based information retrieval dataset built with AnnoLLM was validated by human evaluation as high quality.
ACL AnthologyACL Anthology · · June 2024
0
A Survey of Generative Techniques for Spatial-Temporal Data Mining
Qianru ZhangHaixin WangCheng LongLiangcai SuXingwei HeJianlong ChangTailin WuHongzhi YinSiu-Ming YiuQi TianChristian S. Jensen
This survey reviews how generative techniques—including LLMs, SSL, Seq2Seq, and diffusion models—are integrated into spatial-temporal data mining. It proposes a standardized framework for the spatial-temporal data mining pipeline and a novel taxonomy that categorizes methods based on their use of generative techniques. The paper also identifies future research directions, emphasizing the potential of generative approaches to improve the effectiveness and efficiency of spatial-temporal data mining.
arXivarXiv · · May 15, 2024
0
30
Improving Factual Error Correction by Learning to Inject Factual Errors
Xingwei HeQianru ZhangA-Long JinJun MaYuan YuanSiu Ming Yiu
Factual error correction (FEC) must revise false claims to agree with given evidence, but paired false/correct claims are lacking, so existing distantly supervised methods use a "mask-then-corrupt"-style pipeline in which a masker must first explicitly locate factual errors, which is hard without paired training data. LIFE is a three-step distantly supervised alternative, "mask-corrupt-correct": a corruptor trained via mask-then-corrupt deliberately injects factual errors into correct claims to generate paired data, low-quality data are filtered out, and the remaining data train a corrector that needs no masker, avoiding the error-identification bottleneck. On a public dataset LIFE beats the previous best distantly supervised method by 10.59 SARI Final points (19.3%) and ChatGPT with in-context examples by 7.16 points.
AAAI · March 24, 2024
0
Improving Factual Error Correction by Learning to Inject Factual Errors
Xingwei HeQianru ZhangA-Long JinJun MaYuan YuanSiu Ming Yiu
LIFE improves factual error correction by learning to inject factual errors, eliminating the need for explicit error identification. It first trains a corruptor to introduce errors into correct text, then uses it to create paired data (false and correct claims) for training a corrector. On a public dataset, LIFE surpasses the prior best distantly supervised method by 10.59 SARI Final points (19.3% improvement) and outperforms ChatGPT with in-context examples by 7.16 points.
arXivarXiv · · December 12, 2023
0
8
CAPSTONE: Curriculum Sampling for Dense Retrieval with Document Expansion
Xingwei HeYeyun GongA-Long JinHang ZhangAnlei DongJian JiaoSiu YiuNan Duan
The dual-encoder has become the de facto architecture for dense retrieval. Typically, it computes the latent representations of the query and document independently, thus failing to fully capture the interactions between the query and document. To alleviate this, recent research has focused on obtaining query-informed document representations. During training, it expands the document with a real query, but during inference, it replaces the real query with a generated one. This inconsistency between training and inference causes the dense retrieval model to prioritize query information while disregarding the document when computing the document representation. Consequently, it performs even worse than the vanilla dense retrieval model because its performance heavily relies on the relevance between the generated queries and the real query. In this paper, we propose a curriculum sampling strategy that utilizes pseudo queries during training and progressively enhances the relevance between the generated query and the real query. By doing so, the retrieval model learns to extend its attention from the document alone to both the document and query, resulting in high-quality query-informed document representations. Experimental results on both in-domain and out-of-domain datasets demonstrate that our approach outperforms previous dense retrieval models.
ACL AnthologyACL Anthology · December 2023
0
PivotFEC: Enhancing Few-shot Factual Error Correction with a Pivot Task Approach using Large Language Models
Xingwei HeA-Long JinJun MaYuan YuanSiu Yiu
PivotFEC enhances few-shot factual error correction (FEC) by introducing a pivot task—factual error injection—that uses LLMs (e.g., ChatGPT) to generate incorrect claims from correct ones. This created data trains the corrector, bypassing the difficult error-detection step. On a public dataset, PivotFEC improves SARI by 11.3 over distantly supervised methods and by 7.9 over directly using LLMs for FEC.
ACL AnthologyACL Anthology · December 2023
0
Noisy Pair Corrector for Dense Retrieval
Hang ZhangYeyun GongXingwei HeDayiheng LiuDaya GuoJiancheng LvJian Guo
Most dense retrieval models contain an implicit assumption: the training query-document pairs are exactly matched. Since it is expensive to annotate the corpus manually, training pairs in real-world applications are usually collected automatically, which inevitably introduces mismatched-pair noise. In this paper, we explore an interesting and challenging problem in dense retrieval, how to train an effective model with mismatched-pair noise. To solve this problem, we propose a novel approach called Noisy Pair Corrector (NPC), which consists of a detection module and a correction module. The detection module estimates noise pairs by calculating the perplexity between annotated positive and easy negative documents. The correction module utilizes an exponential moving average (EMA) model to provide a soft supervised signal, aiding in mitigating the effects of noise. We conduct experiments on text-retrieval benchmarks Natural Question and TriviaQA, code-search benchmarks StaQC and SO-DS. Experimental results show that NPC achieves excellent performance in handling both synthetic and realistic noise.
ACL AnthologyACL Anthology · December 2023
0
Noisy Pair Corrector for Dense Retrieval
Hang ZhangYeyun GongXingwei HeDayiheng LiuDaya GuoJiancheng LvJian Guo
Dense retrieval models typically assume perfectly matched training pairs, but real-world data often contains mismatched noise. This paper introduces Noisy Pair Corrector (NPC), which detects noisy pairs by computing perplexity between annotated positive and easy negative documents, and corrects them using an exponential moving average model that provides soft supervision. Results on text-retrieval and code-search benchmarks show NPC effectively handles synthetic and realistic noise.
arXivarXiv · · November 7, 2023
0
10
Noisy Pair Corrector for Dense Retrieval
Hang ZhangYeyun GongXingwei HeDayiheng LiuDaya GuoJiancheng LvJian Guo
This paper tackles the challenge of training dense retrieval models with mismatched query-document pairs, which are common in automatically collected training data. The authors propose the Noisy Pair Corrector (NPC), consisting of a detection module that identifies noise via perplexity between positive and easy negative documents, and a correction module using an exponential moving average model to supply soft supervision. Experiments on retrieval benchmarks NQ, TriviaQA, StaQC, and SO-DS show NPC handles both synthetic and realistic noise effectively.
OpenReviewOpenReview · · June 16, 2023
0
CAPSTONE: Curriculum Sampling for Dense Retrieval with Document Expansion
Xingwei HeYeyun GongA-Long JinHang ZhangAnlei DongJian JiaoSiu Ming YiuNan Duan
The paper proposes a curriculum sampling strategy for dual-encoder dense retrieval with query-informed document representations. Traditional training uses real queries for document expansion but replaces them with generated queries at inference, causing inconsistency and poor performance. The method trains with pseudo queries and progressively increases their relevance to real queries, shifting the model's attention from document-only to document-and-query. This yields high-quality representations, outperforming prior dense retrieval models on in-domain and out-of-domain datasets.
OpenReviewOpenReview · · June 15, 2023
0
PivotFEC: Enhancing Few-shot Factual Error Correction with a Pivot Task Approach using Large Language Models
Xingwei HeA-Long JinJun MaYuan YuanSiu Ming Yiu
PivotFEC enhances few-shot Factual Error Correction (FEC) by introducing a pivot task, factual error injection, that uses large language models (LLMs) to intentionally generate false claims for training the corrector, avoiding the error-prone mask-then-correct paradigm of distant supervision. Experiments show that, under few-shot settings, PivotFEC improves SARI by 11.3 over the best distantly supervised methods and by 7.9 over directly using LLMs for FEC.
OpenReviewOpenReview · June 15, 2023
0
5
AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotators
Xingwei HeZhenghao LinYeyun GongA-Long JinHang ZhangChen LinJian JiaoSiu Ming YiuNan DuanWeizhu Chen
AnnoLLM uses large language models (LLMs) as crowdsourced annotators via a two-step approach: first, it prompts the LLM to explain why a given label was assigned for a demonstration example; then it constructs a few-shot chain-of-thought prompt with that self-generated explanation to annotate new data. Experiments on user-input relevance, BoolQ, and WiC show AnnoLLM matches or surpasses traditional crowdsourcing. The method also produced the first conversation-based information retrieval dataset, verified by human evaluation.
arXivarXiv · · March 29, 2023
0
427
CAPSTONE: Curriculum Sampling for Dense Retrieval with Document Expansion
Xingwei HeYeyun GongA-Long JinHang ZhangAnlei DongJian JiaoSiu Ming YiuNan Duan
CAPSTONE introduces a curriculum sampling strategy for dense retrieval that resolves the training-inference mismatch in query-informed document expansion. Instead of training with real queries and inferring with generated ones, it uses pseudo queries during training and progressively increases their relevance to real queries. This forces the dual-encoder to attend to both the document and the query, producing better document representations. Experiments on in-domain and out-of-domain benchmarks show consistent gains over prior dense retrieval models.
arXivarXiv · · December 18, 2022
0
4
Metric-guided Distillation: Distilling Knowledge from the Metric to Ranker and Retriever for Generative Commonsense Reasoning
Xingwei HeYeyun GongA-Long JinWeizhen QiHang ZhangJian JiaoBartuer ZhouBiao ChengSM YiuNan Duan
Generative commonsense reasoning requires retrieving and re-ranking prototype sentences, but existing rankers treat all candidates equally, often missing the most relevant ones, while relying solely on a retriever degrades generation quality. This paper proposes metric-guided distillation, a rule that transfers knowledge from an automatic metric (e.g., BLEU) to the ranker, and then further distills the ranker's critical knowledge into the retriever. This makes the relevance scores predicted by both the ranker and retriever align better with the metric's quality assessment. On the CommonGen benchmark, a generation model with the distilled ranker achieves state-of-the-art results, and the distilled retriever alone surpasses the previous SOTA.
arXivarXiv · · October 21, 2022
0
28
Parallel Refinements for Lexically Constrained Text Generation with BART
Xingwei He
We propose Constrained BART (CBART) for lexically constrained text generation. CBART extends BART by adding a token-level classifier over the encoder. This classifier instructs the decoder where to replace and insert tokens, decomposing the task to improve sentence quality. The decoder then refines multiple input tokens in one step, inserting tokens before specific positions and re-predicting low-confidence tokens, with all token predictions performed in parallel to reduce inference latency. Experiments on One-Billion-Word and Yelp show CBART generates plausible, high-quality, diverse text while significantly accelerating inference.
arXivarXiv · · September 26, 2021
0
Show Me How To Revise: Improving Lexically Constrained Sentence Generation with XLNet
Xingwei HeVictor O.K. Li
This paper improves lexically constrained sentence generation, where output must contain given words. The authors criticize prior MCMC-based methods that randomly choose edit positions and actions, causing many invalid refinements. They propose a "Predict and Revise" approach: first, a classifier fine-tuned on synthetic data learns a prior over where and how to edit; then, MCMC sampling draws from this prior to perform a focused, sampled action at a sampled position. Experiments on constrained generation and text infilling show better fluency and diversity than strong baselines.
arXivarXiv · · September 13, 2021
0
28
Authors with the same name
Xingwei He #0003 · 12 papers
Xingwei He #0007 · 2 papers
Xingwei He #0008 · 1 papers
Xingwei He · 1 papers
Frequent collaborators
Yuan Yuan (12)
A-Long Jin (12)
Yeyun Gong (9)
Hang Zhang (9)
Siu Ming Yiu (8)
Siu-Ming Yiu (6)
Qianru Zhang (6)
Jian Jiao (6)
Nan Duan (6)
Jiakun Li (5)
Hongzheng Chai (5)
Jun Ma (4)