Bhramastra at #SMM4H-HeaRD 2026: A Multi-Stage Hunter-Judge Pipeline using DSPy-Optimized LLMs for Multilingual ADE Detection
Summary
Team Bhramastra's submission for the #SMM4H-HeaRD 2026 Shared Task 1 addresses personal Adverse Drug Event (ADE) detection in multilingual social media. The team proposed a decoupled "Hunter-Judge" architecture to manage extreme class imbalance and linguistic diversity across seven languages, including a surprise zero-shot Farsi set. This system utilizes a fine-tuned multilingual mDeBERTa-v3 model as a high-recall "Hunter" filter. Subsequently, a Gemini-2.5-Flash model, optimized via the DSPy framework, functions as a "Judge" for precision-oriented agentic adjudication. By integrating a reasoning protocol based on clinical RAG evidence and universal ingredient mapping, the pipeline achieved the highest average F1-score of 0.6653 among all participating teams. It also demonstrated strong zero-shot generalizability on Farsi, with an F1-score of 0.5863.
Key takeaway
For NLP Engineers developing multilingual health monitoring systems, consider adopting a decoupled Hunter-Judge architecture. This approach, combining a high-recall filter like mDeBERTa-v3 with a DSPy-optimized LLM (e.g., Gemini-2.5-Flash) for precision, effectively addresses class imbalance and linguistic variance. Integrating clinical RAG and universal ingredient mapping can significantly boost zero-shot generalization, especially in low-resource languages, improving overall ADE detection accuracy.
Key insights
A decoupled Hunter-Judge architecture with DSPy-optimized LLMs effectively detects multilingual ADEs, achieving top performance and zero-shot generalization.
Principles
- Decoupled architecture handles class imbalance and linguistic variance.
- Medically-grounded reasoning improves low-resource generalization.
- DSPy optimizes LLMs for precision-oriented agentic tasks.
Method
A multi-stage pipeline uses mDeBERTa-v3 as a high-recall "Hunter" filter, followed by a DSPy-optimized Gemini-2.5-Flash "Judge" for precision-oriented adjudication, leveraging clinical RAG and ingredient mapping.
In practice
- Combine fine-tuned models with LLMs for complex tasks.
- Use DSPy for LLM optimization in specific roles.
- Integrate RAG for evidence-based reasoning in LLM pipelines.
Topics
- Adverse Drug Event Detection
- Multilingual NLP
- LLM Optimization
- DSPy
- Hunter-Judge Architecture
- Social Media Monitoring
- Gemini-2.5-Flash
Best for: AI Engineer, Machine Learning Engineer, AI Scientist, NLP Engineer, Research Scientist
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.