ParetoMIL: Early Risk Detection in Dialogue under Weak Supervision

Avinash Baidya, Xinran Liang, Ruocheng Guo, Kamalika Das, Xiang GaoMTI-LLM @ NeurIPS 2025

TL;DR

This paper introduces ParetoMIL, a novel framework for detecting risks in multi-turn dialogues early and effectively. It combines multi-instance learning with early classification techniques to provide controllable alerts, balancing the need for timely detection with accuracy, even with only dialogue-level supervision.

What Problem Does This Paper Address?

As Large Language Models (LLMs) become more integrated into multi-turn conversations, the ability to detect and respond to potential issues during the interaction is crucial. Imagine a customer service chatbot or a sensitive content moderation system; a failure detected too late can lead to significant user frustration, financial loss, or even harm. The core challenge is to identify risky turns within a dialogue and trigger an alert before the conversation escalates, all while dealing with limited, dialogue-level supervision (i.e., we only know if the whole conversation was risky, not which specific turns were problematic). Existing methods struggle with this: process reward modeling requires detailed step-wise labels, multi-instance learning (MIL) often misses the "earliness" aspect, and early time-series classification methods don't fully capture the complex, accumulating nature of dialogue risk.

Methods

ParetoMIL tackles these challenges with a two-stage approach:

  1. Stage 1: Soft MIL Scorer: This stage focuses on learning calibrated, turn-level risk scores from weak dialogue-level supervision. It uses a soft MIL formulation, where each turn's risk is influenced by its preceding context (prefix-conditioned encodings). A monotone pooling mechanism (like noisy-OR or log-sum-exp) aggregates these turn-level scores into a non-decreasing prefix risk. This ensures that the risk estimate generally increases as the dialogue progresses, making it suitable for early detection. The loss function combines a focal loss for imbalanced data with a sparsity regularizer to encourage sharp risk emergence.
  2. Stage 2: $\lambda$-Conditioned RL Trigger: Building on the prefix risk scores from Stage 1, this stage trains a reinforcement learning (RL) agent to decide when to "flag" a dialogue as risky. The key innovation here is that the RL policy is conditioned on a parameter $\lambda$. This $\lambda$ controls the trade-off between earliness and accuracy. By varying $\lambda$ at inference time, users can trace the Pareto frontier—finding the optimal balance for their specific needs—without retraining the model. This is achieved using a PPO-based actor-critic architecture. Special training procedures, including imbalance-aware pretraining and anchored fine-tuning, are employed to handle the rarity of risky dialogues and ensure stable learning.

Datasets

The primary dataset used is the Schema-Guided Dialogue (SGD) dataset. For supervision, the authors leverage human satisfaction labels from the USS dataset, which provides turn-level and dialogue-level annotations for a subset of SGD. These labels serve as proxies for user risk. The paper notes that only about 10% of labeled dialogues are flagged as risky, highlighting the significant class imbalance inherent in this problem.

Key Insights and Ideas

  • The Power of Soft MIL for Dialogue Risk: Standard MIL often treats instances independently. By using a soft MIL approach with prefix conditioning and monotone pooling, ParetoMIL effectively models how risk accumulates turn-by-turn in a dialogue, which is crucial for early detection.
  • Controllable Earliness-Accuracy Trade-off: The $\lambda$-conditioned RL trigger is a significant contribution. Instead of training separate models for different trade-offs, a single policy can dynamically adjust its alerting behavior based on the desired balance between speed and precision. This is a more practical and efficient approach for real-world deployment.
  • Pareto Frontier Tracing: The ability to trace the Pareto frontier with a single model is a major advantage. It allows users to explore the optimal operating points without extensive retraining, making the system adaptable to various application requirements.
  • Handling Imbalance and Abruptness: The proposed training strategies (imbalance-aware pretraining, anchored fine-tuning) are critical for making the RL trigger robust to the rare and often abrupt nature of risky dialogues.

Key Results

  • Improved Dialogue-Level Classification: The MIL-based scorer (Stage 1) significantly outperforms non-MIL baselines and LLM-as-judge approaches in terms of F1 score for dialogue-level risk classification, achieving an F1 of 0.731 compared to 0.649 for the non-MIL baseline. This indicates better calibration of turn-level scores.
  • Superior Earliness-Accuracy Trade-off: Figure 2 shows that ParetoMIL achieves a superior Pareto frontier compared to a monotone max-pooling baseline. It consistently triggers earlier at similar or higher F1 scores. The best ParetoMIL setting reached an F1 of 0.802.
  • Benefits of $\lambda$-Conditioned Triggering: Table 2 demonstrates that the $\lambda$-conditioned policy consistently achieves better F1 scores than independently trained fixed-$\lambda$ policies, with gains of up to 5 points in F1 for certain $\lambda$ values. This highlights the generalization benefits of multi-task learning and goal-conditioned control.

Limitations and Future Work

  • Limitations: The paper acknowledges the challenge of extreme class imbalance and the abrupt nature of risk onset, which can destabilize credit assignment. While their methods aim to mitigate this, it remains an inherent difficulty. The reliance on human satisfaction labels as a proxy for risk is also a potential limitation, as user satisfaction might not perfectly capture all forms of dialogue risk.
  • Future Work: The authors suggest that this framework could be a foundation for broader process-level supervision tasks. This includes dynamic response selection, model self-monitoring, and intervention-aware training. Extending the framework to handle more complex risk types or to integrate with other forms of feedback could be promising future directions.

Summary updated

BibTeX
@inproceedings{baidya2025paretomil,
  author = {Avinash Baidya and Xinran Liang and Ruocheng Guo and Kamalika Das and Xiang Gao},
  title = {{ParetoMIL: Early Risk Detection in Dialogue under Weak Supervision}},
  booktitle = {MTI-LLM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=Gc4CcLKZP5},
}

Loading related content...

Figure