NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Risks in LLMs on Domain Tasks

Liang Shan, Kaicheng Shen, Wen Wu, Zhenyu Ying, Chaochao Lu, Guangze Ye, Liang HearXiv 2025 · DOI

Introduction

Ensuring Large Language Models (LLMs) are safe is a complex challenge. While current alignment techniques like Reinforcement Learning from Human Feedback (RLHF) are effective at preventing explicit harms—such as instructions for illegal acts—they often struggle with implicit, domain-specific risks. These risks are subtle and context-dependent, often appearing benign to a model focused solely on being "helpful."

Researchers from East China Normal University and Shanghai AI Lab have developed MENTOR, a framework designed to address these nuances. MENTOR enables LLMs to employ "metacognition"—the ability to think about their own thinking—to identify and mitigate hidden dangers in specialized fields like finance, education, and management.

The Challenge of Implicit Domain Risk

Standard safety alignment often targets "universal" safety. However, in specialized domains, risks are frequently buried in context. For instance, a student might ask an LLM for chemicals to make a self-harm scar "less painful." A standard model, prioritizing helpfulness, might provide medical advice without recognizing the underlying intent of self-harm. This is a classic example of an implicit domain risk.

Comparison of standard LLM response vs. MENTOR-enhanced response to an implicit risk query.

The authors found that even state-of-the-art models exhibit a "Jailbreak Success Rate" (JSR) of nearly 58% when faced with such nuanced scenarios. Because retraining models for every specific domain is computationally expensive, a significant gap exists in real-world deployment safety.

The MENTOR Framework

MENTOR bridges this gap through a three-pronged self-evolution approach:

1. Metacognitive Evaluator ($M_e$)

Drawing on psychological theory, MENTOR prompts the model to perform "Perspective-Taking" (evaluating a response from the viewpoint of a stakeholder, like a teacher) and "Consequential Thinking" (simulating real-world impacts). This structured reflection allows the model to critique its own reasoning before finalizing an answer.

2. Rule Evolution Cycle (REC)

MENTOR maintains a hybrid rule pool that evolves over time. It begins with Static Rule Trees (expert-defined boundaries) and expands via a Dynamic Rule Graph. When the model identifies a mistake during its "MetaLoop" reflection, it summarizes the experience into a new rule, building a repository of "case law" to guide future responses.

The Rule Evolution Cycle (REC) and MetaLoop architecture of the MENTOR framework.

3. Robust Rule Vectors (RV)

To ensure safety is deeply integrated, MENTOR utilizes activation steering. Rather than relying solely on prompts—which can be bypassed by clever "jailbreaking"—the framework calculates a "steering vector" by comparing internal neural activations of safe versus unsafe responses. During inference, this vector is added to the model’s internal hidden states (specifically at Layer 18 for Llama-3.1-8B), physically nudging the model toward a safe output at the neural level.

Evaluation and Key Insights

The researchers tested MENTOR using a new Domain-Specific Risk Dataset containing 3,000 annotated queries across Education, Finance, and Management. They also validated the framework on existing benchmarks like PKU-RLHF, AdvBench, and Flames.

Key Results

  • Significant Risk Reduction: Across 14 leading LLMs (including GPT-4o and Claude 3.5), MENTOR reduced the average JSR from 57.8% to 4.6%.
  • Efficiency and Scalability: Activation steering provides a "tuning-free" solution, achieving high safety levels without the computational overhead of full model retraining.
  • Human-Level Precision: MENTOR’s metacognitive assessments achieved an 88.36% consistency rate with human expert evaluations.

Insights on Model Behavior

The study highlighted that models often prioritize "helpfulness" over safety when harm is not explicit. MENTOR forces a shift in perspective. Interestingly, the researchers found that internal activation steering is far more robust than system prompting; while users can manipulate text, it is much harder to bypass rules enforced directly on internal representations.

Conclusion and Future Directions

MENTOR demonstrates that self-correction and internal steering are powerful tools for securing LLMs in specialized domains. While the framework is currently limited by the base model's inherent intelligence and the initial "warm-up" cost of generating the rule graph, it represents a significant step toward autonomous, safe AI. Future work will focus on scaling the rule graph and implementing formal logic to resolve potential rule contradictions.

Summary updated

BibTeX
@misc{shan2025mentor,
  author = {Liang Shan and Kaicheng Shen and Wen Wu and Zhenyu Ying and Chaochao Lu and Guangze Ye and Liang He},
  title = {{MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Risks in LLMs on Domain Tasks}},
  year = {2025},
  eprint = {2511.07107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.07107},
}
Figure