MCP
YW

Yanting Wang

66 papers in the library

Papers

30
Cognitive-Level Prefix-MoE Reward Modeling for Curriculum Alignment of Medical Language Models
Hao WangWendi FengChun KangYanting WangRui LiLei Sha
Medical language models are increasingly evaluated on open-ended clinical reasoning, where good responses must combine factual recall, evidence integration, decision making, and synthesis. However, standard reward models compress these different standards into one reward score, while medical RL with answer keys mainly rewards multiple-choice correctness. This makes it difficult to improve non-multiple-choice medical reasoning without losing performance on exam-style benchmarks. In this paper, we propose a Prefix Mixture-of-Experts Reward Model (Prefix-MoE RM), which routes each query-response pair across recall, analysis, decision, and synthesis prefix experts, softly fuses their trainable prefixes, and then predicts one reward score. The MoE structure allows different abilities to use different scoring experts to reduce reward conflicts, while continuous prefixes provide a more expressive conditioning signal than fixed hard prompts. The reward model is trained on non-multiple-choice medical preferences and then used in mixed-data curriculum GRPO, where multiple-choice prompts provide additional answer-key feedback. On held-out reward-model evaluation, Prefix-MoE RM improves pairwise accuracy from 79.8 to 93.0 over a shared RM; with the RL pipeline fixed, replacing it with a shared RM or soft expert-head MoE lowers HealthBench from 43.8 to 24.8 and 34.6, respectively. With Qwen3-8B as the policy backbone, the full system outperforms the larger Qwen3-32B base on MedXpertQA and HealthBench, while the Qwen3-32B version reaches 50.1 HealthBench and 4.55 LLMEval-Med, remaining competitive with stronger closed general models and retaining an advantage on non-multiple-choice metrics.
ACL AnthologyACL Anthology · October 2026
1
PISanitizer: Preventing Prompt Injection to Long-Context LLMs via Prompt Sanitization
Runpeng GengYanting WangChenlong YinMinhao ChengYing ChenJinyuan Jia
Long-context LLMs are vulnerable to prompt injection, where an attacker injects an instruction into a long context to hijack the LLM’s output. Existing defenses, designed for short contexts, have limited effectiveness in long-context scenarios because the injected instruction constitutes only a small portion of the context. We propose PISanitizer, which pinpoints and sanitizes injected tokens in a context before a backend LLM generates its response. PISanitizer builds on two observations: (1) prompt injection attacks craft instructions that compel an LLM to follow them, and (2) LLMs leverage attention to focus on influential input tokens during generation. Accordingly, we intentionally let an LLM follow any instructions in the context and then sanitize tokens receiving high attention from the resulting instruction-following behavior. This design creates a dilemma for attackers: the more effectively an injected instruction compels the LLM to follow it, the more likely it is to be sanitized. Comprehensive evaluations demonstrate that PISanitizer successfully and efficiently prevents prompt injection, maintains utility, outperforms existing defenses, and is robust to optimization-based and adaptive attacks. The code is available at https://github.com/sleeepeer/PISanitizer.
ACL AnthologyACL Anthology · October 2026
0
Full-Distribution Self-Distillation for Optimizing Soft Latent Reasoning
Ziyong LinYanting WangZixia JiaZilong Zheng
Soft latent reasoning extends chain-of-thought reasoning beyond discrete token sequences by using continuous concept tokens. However, effectively training models in this space remains challenging: conventional reinforcement learning methods mainly optimize sampled rollout-action likelihoods and therefore underuse the full distributions produced during soft rollouts. We propose **Full-Distribution Self-Distillation (FDSD)**, an off-policy training framework that treats stochastic soft rollout distributions as dense pseudo-labels. FDSD aligns the current model distribution with advantage-weighted rollout targets via KL minimization and importance correction, enabling the model to learn from the full rollout distribution rather than only from sampled-action likelihoods. Experiments on GSM8K, MATH-500, OlympiadBench, and out-of-domain benchmarks show that FDSD achieves consistent average improvements in mathematical reasoning across model scales while preserving OOD generalization, with only modest computational overhead. These results suggest that full-distribution alignment is a promising training direction for soft latent reasoning.
ACL AnthologyACL Anthology · October 2026
0
Climbing the Hill: Prompt Injection Red-Teaming Against Frontier Models with Curriculum Reinforcement Learning
Chenlong YinXiaolong JinWei ZouYanting WangJinyuan Jia
This paper tackles the cold-start problem in RL-based prompt-injection red-teaming of frontier LLMs, where all initial attack attempts fail and yield zero reward. The authors propose a curriculum RL method: train the attacker LLM against a sequence of increasingly robust target LLMs, each stage warm-starting from the previous attacker. They find the curriculum is critical—each stage must partially succeed against the next target to provide learning signals. On AgentDyn, this achieves 93.8% and 45.0% ASR@10 against GPT-5.6-Luna and GPT-5.6-Terra, versus 0% for prior RL methods, and the attacker transfers to other frontier LLMs.
arXivarXiv · · September 27, 2026
0
JustMem: Just-Enough Memory Access for Long-Term Conversations
Guanhua ChenYanting WangWenjing ZhiLei Sha
JustMem formulates memory access along two dimensions—discovery breadth (how broadly evidence is searched) and reading fidelity (whether evidence is read compactly or from the original conversation)—and adapts both to each query. It stores conversation history as compact atomic memories and selects among three modes: LOOKUP for local evidence, COMPOSE for distributed evidence, and REPLAY for fidelity-sensitive evidence. On LoCoMo and LongMemEval-S, JustMem achieves the highest mean accuracy and recall while using substantially fewer tokens.
arXivarXiv · · September 17, 2026
0
Agent Against Agent: An Agentic System for Automatic Prompt Injection Red Teaming
Yanting WangChenlong YinRunpeng GengJinyuan Jia
PIMiner is an agentic system for prompt injection red-teaming that builds a strategy library during training on (dataset, target model) pairs and transfers it zero-shot to unseen LLMs at test time, needing only about 10 queries per sample. It achieves 76.2% ASR on IPIArena and 86.7% ASR on AgentDojo against Gemini-2.5-Pro, with strong results against GPT-5.1 and Claude-Sonnet-4.5, outperforming RL-based methods that generalize poorly.
arXivarXiv · · August 5, 2026
0
1
PIArena: A Platform for Prompt Injection Evaluation
Runpeng GengChenlong YinYanting WangYing ChenJinyuan Jia
PIArena is a unified, extensible platform for prompt injection evaluation that integrates state-of-the-art attacks and defenses across diverse benchmarks. It also introduces a dynamic strategy-based attack that adaptively optimizes injected prompts using defense feedback. Comprehensive evaluation reveals that current defenses suffer from limited task generalizability, susceptibility to adaptive attacks, and fundamental difficulties when the injected task aligns with the target task.
ACL AnthologyACL Anthology · · July 2026
0
Be Your Own Red Teamer: Safety Alignment via Self-Play and Reflective Experience Replay
Hao WangYanting WangHao LiRui LiLei Sha
Large Language Models (LLMs) have achieved remarkable capabilities but remain vulnerable to adversarial “jailbreak” attacks designed to bypass safety guardrails. Current safety alignment methods depend heavily on static external red teaming, utilizing fixed defense prompts or pre-collected adversarial datasets. This leads to a rigid defense that overfits known patterns and fails to generalize to novel, sophisticated threats. To address this critical limitation, we propose empowering the model to be its own red teamer, capable of achieving autonomous and evolving adversarial attacks. Specifically, we introduce Safety Self- Play (SSP), a system that utilizes a single LLM to act concurrently as both the Attacker (generating jailbreaks) and the Defender (refusing harmful requests) within a unified Reinforcement Learning (RL) loop, dynamically evolving attack strategies to uncover vulnerabilities while simultaneously strengthening defense mechanisms. To ensure the Defender effectively addresses critical safety issues during the self-play, we introduce an advanced Reflective Experience Replay Mechanism, which uses an experience pool accumulated throughout the process. The mechanism employs a Upper Confidence Bound (UCB) sampling strategy to focus on failure cases with low rewards, helping the model learn from past hard mistakes while balancing exploration and exploitation. Extensive experiments demonstrate that our SSP approach autonomously evolves robust defense capabilities, significantly outperforming baselines trained on static adversarial datasets and establishing a new benchmark for proactive safety alignment.
ACL AnthologyACL Anthology · July 2026
0
Two-Dimensional Phase Transitions in Classical Systems: 60 Years after the Hohenberg-Mermin-Wagner Theorem
Ruijian ZhuYanting Wang
This review examines two-dimensional(2D) phase transitions, starting from the 1966 Hohenberg-Mermin-Wagner theorem, which states that long-wavelength fluctuations destroy continuous-symmetry long-range order in 2D. It then covers the 1970s BKT theory, where topological defect binding-unbinding drives a transition between quasi-long-range and short-range order, with application to 2D crystal melting whose mechanisms remain incomplete. The review further discusses recent theoretical and computational progress in passive 2D melting and extends to active matter, where non-equilibrium effects produce phenomena beyond the theorem. It concludes with promising directions for predicting 2D melting and understanding non-equilibrium nature in active systems.
arXivarXiv · · June 23, 2026
0
TASO: Jailbreak LLMs via Alternative Template and Suffix Optimization
Yanting WangRunpeng GengJinghui ChenMinhao ChengJinyuan Jia
TASO is a jailbreak method that alternates optimization of a semantic template and a suffix, exploiting their complementarity: the suffix reliably controls only the first few output tokens, while the template guides the entire output but cannot govern those initial tokens, which strongly shape the subsequent response. Evaluated on HarmBench and AdvBench across 24 leading LLMs, including models from the Llama family, OpenAI, and DeepSeek, TASO effectively jailbreaks existing LLMs.
OpenReviewOpenReview · · June 3, 2026
0
FlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruption
Yanting WangChenlong YinYing ChenJinyuan Jia
FlashRT is a framework that improves the computational and memory efficiency of optimization-based red-teaming attacks—specifically prompt injection and knowledge corruption—for long-context large language models. It achieves a 2x–7x speedup and 2x–4x reduction in GPU memory consumption compared to the baseline nanoGCG, reducing runtime from one hour to under ten minutes and memory from 264.1 GB to 65.7 GB for a 32K-token context. FlashRT is broadly applicable to black-box optimization methods like TAP and AutoDAN.
arXivarXiv · · April 30, 2026
0
1
PIArena: A Platform for Prompt Injection Evaluation
Runpeng GengChenlong YinYanting WangYing ChenJinyuan Jia
PIArena is a unified, extensible platform for evaluating prompt injection attacks and defenses. It integrates state-of-the-art methods across diverse benchmarks and includes a dynamic strategy-based attack that adaptively optimizes injected prompts based on defense feedback. Using PIArena, the authors reveal critical limitations of current defenses: poor generalizability across tasks, vulnerability to adaptive attacks, and fundamental difficulties when the injected task aligns with the target task.
arXivarXiv · · April 9, 2026
0
11
AgentWatcher: A Rule-based Prompt Injection Monitor
Yanting WangWei ZouRunpeng GengJinyuan Jia
AgentWatcher is a rule-based monitor that detects prompt injection in LLM agents. It first attributes the agent's output to a small set of causally influential context segments, keeping detection tractable for long inputs. It then uses a monitor LLM to reason over explicit rules defining what constitutes injection, making decisions explainable. Evaluated on tool-use agent benchmarks, AgentWatcher effectively detects attacks while maintaining utility without attacks.
arXivarXiv · · April 1, 2026
0
7
EnsembleSHAP: Faithful and Certifiably Robust Attribution for Random Subspace Method
Yanting WangJinyuan Jia
EnsembleSHAP provides an intrinsically faithful and certifiably robust feature attribution method for the random subspace method by reusing its computational byproducts. It achieves computational efficiency, preserves local accuracy, and offers guaranteed protection against privacy-preserving attacks on attributions. This is the first work to establish provable robustness against explanation-preserving attacks. Evaluations include backdoor, adversarial, and jailbreak attacks.
arXivarXiv · · March 31, 2026
0
0
Universal scaling laws for dynamical-thermal hysteresis
Yachao SunXuesong LiYanting WangJing ZhouHaiyang BaiYuliang Jin
This paper identifies a universal crossover in dynamical-thermal hysteresis: the loop area $A$ relative to the quasi-static value $A_0$ scales as $A - A_0 \propto R^{1/3}$ for sweep rates $R$ below a threshold $R^*$ and as $R^{2/3}$ above it, with $R^* \propto T/T_c$ depending on temperature $T$ and critical temperature $T_c$. The scaling is derived from competition between field sweep and thermal fluctuations and is validated across experiments on magnetic materials, simulations of Ising and metal-organic framework models, and analytical solutions of a stochastic Langevin equation.
arXivarXiv · · March 25, 2026
0
1
PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defenses
Chenlong YinRunpeng GengYanting WangJinyuan Jia
PISmith is an RL-based red-teaming framework that evaluates prompt-injection defenses by training an attack LLM in a black-box setting. Standard GRPO fails on strong defenses due to reward sparsity and entropy collapse, so PISmith adds adaptive entropy regularization and dynamic advantage weighting. Evaluations on 13 benchmarks show state-of-the-art defenses remain vulnerable, and PISmith outperforms 7 baselines across attack categories, achieving high success rates in agentic settings on InjecAgent and AgentDojo with both open-source and closed-source LLMs.
OpenReviewOpenReview · · March 17, 2026
0
MCPTox: A Benchmark for Tool Poisoning on Real-World MCP Servers
Zhiqiang WangYichao GaoYanting WangSuyuan LiuHaifeng SunHaoran ChengGuanquan ShiHaohua DuXiangyang Li
By providing a standardized interface for LLM agents to interact with external tools, the Model Context Protocol (MCP) is quickly becoming a cornerstone of the modern autonomous agent ecosystem. However, it creates novel attack surfaces due to untrusted external tools. While prior work has focused on attacks injected through external tool outputs, we investigate a more fundamental vulnerability: Tool Poisoning, where malicious instructions are embedded within a tool's metadata at the registration stage. To date, this threat has been primarily demonstrated through isolated cases, lacking a systematic, large-scale evaluation. We introduce MCPTox, the first benchmark to systematically evaluate agent robustness against Tool Poisoning in realistic MCP settings. MCPTox is constructed upon 45 live, real-world MCP servers and 353 authentic tools. To achieve this, we design three distinct attack templates to generate a comprehensive suite of 1348 malicious test cases by few-shot learning, covering 10 categories of potential risks. Our evaluation on 20 prominent LLM agents setting reveals a widespread vulnerability to Tool Poisoning, with GPT-o1-mini, achieving an attack success rate of 72.8%. We find that more capable models are often more susceptible, as the attack exploits their superior instruction-following abilities. Finally, the failure case analysis reveals that agents rarely refuse these attacks, with the highest refused rate (Claude-3.7-Sonnet) less than 3%, demonstrating that existing safety alignment is ineffective against malicious actions that use legitimate tools for unauthorized operation. Our findings create a crucial empirical baseline for understanding and mitigating this widespread threat, and we release MCPTox for the development of verifiably safer AI agents.
AAAI · March 14, 2026
0
PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defenses
Chenlong YinRunpeng GengYanting WangJinyuan Jia
PISmith is a reinforcement learning (RL) framework that evaluates prompt injection defenses by training an attack LLM to craft injected prompts in a black-box setting. Standard GRPO fails against strong defenses due to reward sparsity, where most prompts are blocked and rare successes are not learned effectively. PISmith addresses this with adaptive entropy regularization and dynamic advantage weighting to sustain exploration and amplify learning from scarce successes. Evaluations on 13 benchmarks and two agentic benchmarks show that state-of-the-art defenses remain vulnerable to adaptive attacks, with PISmith achieving the highest attack success rates among 7 baselines.
arXivarXiv · · March 13, 2026
0
11
Be Your Own Red Teamer: Safety Alignment via Self-Play and Reflective Experience Replay
Hao WangYanting WangHao LiRui LiLei Sha
Safety Self-Play (SSP) lets a single LLM act as both Attacker and Defender in a unified RL loop, generating jailbreaks and learning to refuse them without external data. A Reflective Experience Replay, using UCB sampling, prioritizes low-reward failures to strengthen the Defender. Experiments show SSP outperforms static baselines, establishing a new benchmark for proactive safety alignment.
arXivarXiv · · January 15, 2026
0
2
Native Parallel Reasoner: Reasoning in Parallelism via Self-Distilled Reinforcement Learning
Tong WuYang LiuJun BaiZixia JiaShuyi ZhangZiyong LinYanting WangSong-Chun ZhuZilong Zheng
This paper introduces Native Parallel Reasoner (NPR), a teacher-free framework that enables LLMs to self-evolve genuine parallel reasoning capabilities. NPR relies on three components: self-distilled progressive training transitioning from format discovery to strict topological constraints without external supervision; Parallel-Aware Policy Optimization (PAPO), which optimizes branching policies within the execution graph via trial and error; and an NPR Engine refactoring SGLang's memory and flow control for stable large-scale parallel RL training. On eight reasoning benchmarks, NPR trained on Qwen3-4B attains up to 24.5% performance gains and up to 4.6x inference speedups, demonstrating 100% genuine parallel execution and establishing a new standard for self-evolving, efficient, scalable agentic reasoning.
OpenReviewOpenReview · · January 12, 2026
0
Native Parallel Reasoner: Reasoning in Parallelism via Self-Distilled Reinforcement Learning
Tong WuYang LiuJun BaiZixia JiaShuyi ZhangZiyong LinYanting WangSong-Chun ZhuZilong Zheng
This paper introduces Native Parallel Reasoner (NPR), a framework enabling large language models to self-evolve parallel reasoning without teacher supervision. NPR uses a self-distilled progressive training paradigm, a Parallel-Aware Policy Optimization (PAPO) algorithm that optimizes branching policies directly in the execution graph, and a refactored engine for stable parallel reinforcement learning. On Qwen3-4B, NPR achieves up to 24.5% accuracy gains and 4.6x speedups across eight benchmarks, with 100% genuine parallel execution, setting a new standard for self-evolving, efficient reasoning.
arXivarXiv · · December 8, 2025
0
11
TASO: Jailbreak LLMs via Alternative Template and Suffix Optimization
Yanting WangRunpeng GengJinghui ChenMinhao ChengJinyuan Jia
TASO (Template and Suffix Optimization) attacks LLMs by alternatingly optimizing a semantic template and a suffix. Template optimization steers the overall output quality, while suffix optimization controls the first few tokens, which strongly influence subsequent responses. Combining these complementary mechanisms yields effective jailbreaks. Evaluation on HarmBench and AdvBench across 24 LLMs (including Llama, OpenAI, and DeepSeek families) confirms the method's effectiveness.
arXivarXiv · · November 23, 2025
0
0
ATLAS: A High-Difficulty, Multidisciplinary Benchmark for Frontier Scientific Reasoning
Hongwei LiuJunnan Liu…Yanting Wang
ATLAS is a cross-disciplinary benchmark of about 800 original problems created by PhD-level experts across seven scientific fields. It is designed to resist data contamination by using newly composed questions, to require multi-step reasoning with complex, LaTeX-formatted open-ended answers, and to integrate knowledge across domains. Initial results show that ATLAS effectively differentiates advanced scientific reasoning capabilities among leading LLMs, providing a more rigorous and realistic evaluation for frontier models than existing benchmarks.
arXivarXiv · · November 18, 2025
0
12
PISanitizer: Preventing Prompt Injection to Long-Context LLMs via Prompt Sanitization
Runpeng GengYanting WangChenlong YinMinhao ChengYing ChenJinyuan Jia
PISanitizer defends long-context LLMs against prompt injection by first letting the model follow any instruction in the context, then sanitizing tokens that receive high attention, because injected instructions that compel strong compliance also attract high attention. This creates an attacker dilemma: the more effective the injection, the more likely it is to be removed. Experiments show PISanitizer outperforms existing defenses, preserves utility, and resists adaptive attacks.
arXivarXiv · · November 13, 2025
0
16
Expectation-Realization Interpretation of Quantum Superposition
Yanting Wang
The paper proposes an expectation-realization interpretation of quantum superposition: a superposition is an expectation over eigenstates weighted by wave-like probabilities, and upon a triggering event the system randomly realizes into one eigenstate. This view treats measurement as a procedure that uses such an event to produce a macroscopic outcome, making wavefunction collapse, many worlds, and decoherence unnecessary. Bell's inequalities are reframed as tests of wave-like probability rather than non-locality.
arXivarXiv · · November 6, 2025
0
PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features
Wei ZouYupei LiuYanting WangYing ChenNeil GongJinyuan Jia
PIShield detects prompt injection attacks by using the internal representations of instruction-tuned LLMs, without requiring fine-tuning or response generation. It feeds the residual-stream representations from the LLM into a simple linear classifier. Evaluations on short- and long-context benchmarks show that PIShield consistently achieves low false positive and false negative rates, outperforming existing baselines.
arXivarXiv · · October 15, 2025
0
15
SecInfer: Preventing Prompt Injection via Inference-time Scaling
Yupei LiuYanting WangYuqi JiaJinyuan JiaNeil Zhenqiang Gong
SecInfer defends against prompt injection attacks by scaling compute at inference time rather than relying solely on fine-tuning. It first generates diverse responses via system-prompt-guided sampling, then selects the response most likely to achieve the intended task through target-task-guided aggregation. Experiments show that this approach outperforms existing defenses, including other inference-time scaling methods, against both known and adaptive attacks.
arXivarXiv · · September 29, 2025
0
10
EnsembleSHAP: Faithful and Certifiably Robust Attribution for Random Subspace Method
Yanting WangJinyuan Jia
EnsembleSHAP is proposed as a feature attribution method for random subspace methods, which are used in defenses against adversarial, backdoor, and jailbreaking attacks but lack efficient and secure explanations. It reuses computational byproducts to be computationally efficient, preserves essential properties like local accuracy, and provides the first provable robustness against explanation-preserving attacks. Evaluations cover backdoor, adversarial, and jailbreak attacks, with code available at https://github.com/Wang-Yanting/EnsembleSHAP.
OpenReviewOpenReview · · September 19, 2025
0
UniC-RAG: Universal Knowledge Corruption Attacks to Retrieval-Augmented Generation
Runpeng GengYanting WangYing ChenJinyuan Jia
UniC-RAG is a universal knowledge corruption attack against retrieval-augmented generation (RAG) systems. Unlike prior work targeting specific queries, it jointly optimizes a small number of adversarial texts to simultaneously attack a large and diverse set of user queries. Formulated as an optimization problem with a balanced similarity-based clustering method, the attack can achieve, for example, over 90% success by injecting only 100 adversarial texts into a million-text database to attack 2,000 queries. Existing defenses are shown insufficient, highlighting the need for new mechanisms.
arXivarXiv · · August 26, 2025
0
11
MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers
Zhiqiang WangYichao GaoYanting WangSuyuan LiuHaifeng SunHaoran ChengGuanquan ShiHaohua DuXiangyang Li
MCPTox is the first benchmark for systematically evaluating LLM agents' robustness against Tool Poisoning, where malicious instructions are embedded in tool metadata without execution. Built on 45 live MCP servers and 353 authentic tools, it uses three attack templates via few-shot learning to generate 1,348 malicious cases across 10 risk categories. Testing 20 agents revealed widespread vulnerability, with o1-mini achieving a 72.8% attack success rate and more capable models being more susceptible. Agents rarely refuse attacks; Claude-3.7-Sonnet had the highest refusal rate, under 3%.
arXivarXiv · · August 19, 2025
1
Authors with the same name
Yanting Wang · 6 papers
Yanting Wang #0001 · 18 papers
Frequent collaborators
Jinyuan Jia (25)
Runpeng Geng (13)
Chenlong Yin (9)
Ying Chen (8)
Wei Zou (7)
Lei Sha (4)
Minhao Cheng (4)
Xin Zhou (4)
S. Teitel (4)
Hao Wang (3)
Rui Li (3)
Ziyong Lin (3)