TL;DR
The HausaNLP team tackled the SemEval-2025 Mu-SHROOM shared task by fine-tuning a ModernBERT model to perform fine-grained, character-level hallucination detection in LLM outputs. By leveraging a small synthetic dataset of 400 samples, their approach achieved a moderate correlation score of 0.422 in predicting hallucination certainty, though pinpointing exact text boundaries remains a formidable challenge.
What Problem Does This Paper Address?
Large Language Models (LLMs) frequently suffer from "hallucinations"—generating text that is fluent but factually incorrect or unsupported by the source context. While previous benchmarks focused on simple binary classification (i.e., deciding if an entire text block is a hallucination), SemEval-2025 Task 3 (Mu-SHROOM) introduces a much harder problem: fine-grained, span-level detection.
Participants must calculate the exact probability of each character in an LLM's output being part of a hallucination. Furthermore, the task operates in a model-aware setting, meaning detection systems have access not just to the raw text, but also to the generating model's internal tokens and logits.
Methods
To address the lack of fine-grained training data, the authors developed a pipeline centered around token classification:
- Model Selection: They fine-tuned ModernBERT, a recent state-of-the-art bidirectional encoder designed to handle long-context inputs efficiently. This makes it well-suited for token- and character-level classification tasks where context matters.
- Model-Aware Probing: The approach aligns with model-aware detection strategies like Statement Accuracy Prediction based on Language Model Activations (SAPLMA), which look at the internal states and outputs of the target transformer during inference.
- Training Optimizations: To ensure stable and efficient training, the team implemented:
- Cosine Learning Rate Scheduler for smooth convergence.
- Mixed Precision Training (float16/float32) to reduce memory usage and boost speed.
- Gradient Clipping to prevent exploding gradients.
Datasets
Because labeled training data for this specific task was scarce, the authors relied heavily on synthetic data generation:
- Synthetic Training Dataset: 400 diverse, labeled data points generated using ChatGPT, strictly adhering to the official task annotation guidelines.
- Mu-SHROOM Validation & Test Sets: The official benchmark datasets provided by the competition organizers, which feature outputs from various public-weights LLMs. Due to time constraints, the authors restricted their focus entirely to the English portion of the dataset.
Key Insights and Ideas
- The Boundary Problem: The model achieved a decent correlation score but a very low overlap score. This reveals a critical insight: knowing that a model is hallucinating is much easier than knowing exactly where the hallucination begins and ends. Hallucinations blend subtly into fluent text, making exact boundary detection incredibly difficult for token classifiers.
- Synthetic Data Viability: Generating a tiny dataset of just 400 high-quality synthetic examples via ChatGPT was enough to bootstrap a functional token-classification model, proving to be a viable baseline strategy when human annotations are missing.
Key Results
The model was evaluated using standard classification metrics alongside the task's official metrics (Intersection over Union and Correlation):
- Precision: 0.49
- Recall: 0.54
- F1-Score: 0.43
- Intersection over Union (IoU): 0.032 (Ranked 42nd in the competition)
- Correlation Score: 0.422 (Ranked 24th in the competition)
The moderate positive correlation (0.422) shows that the model's confidence scores align reasonably well with actual hallucination occurrences. However, the low IoU (0.032) highlights the model's struggle to cleanly isolate the exact boundaries of the hallucinated text spans.
Limitations and Future Work
The authors acknowledge several limitations in their current implementation:
- Language Constraint: Although Mu-SHROOM is a multilingual task covering 14 languages, the team only evaluated their system on English due to strict time constraints.
- Boundary Precision: The model is highly prone to false positives and false negatives when mapping exact character spans, indicating a need for more sophisticated span-extraction architectures.
- Dataset Scale: A training set of 400 synthetic samples is quite small; scaling up the synthetic data generation pipeline could significantly improve robustness.
Summary updated