A Cooperative Multi-Agent Framework for Zero-Shot Named Entity Recognition

Zihan Wang, Ziqi Zhao, Yougang Lyu, Zhumin Chen, Maarten de Rijke, Zhaochun Ren

Introduction

Named Entity Recognition (NER)—the task of identifying and classifying entities such as people, locations, and organizations—has traditionally relied on extensive human-labeled datasets. In the era of Large Language Models (LLMs), researchers have pivoted toward "zero-shot" scenarios where no labeled data is available. However, standard LLM approaches face two significant hurdles: context blindness and the "bad example" trap.

Context blindness occurs when models focus solely on the entity string while ignoring "Type-Related Features" (TRFs)—contextual clues like "member" or "teams" that signal an entity's type. The "bad example" trap refers to the fragility of in-context learning; when models are provided with demonstrations retrieved via simple semantic similarity, irrelevant or noisy examples can actively degrade performance.

The CMAS Framework

To address these challenges, this research introduces CMAS (Cooperative Multi-Agent System), a framework that decomposes the NER task into a pipeline managed by four specialized agents. This modular approach prevents a single LLM call from being overwhelmed by complex instructions and ensures rigorous quality control.

The CMAS architecture showing the interaction between the Self-Annotator, TRF Extractor, Discriminator, and Overall Predictor.

Specialized Agent Roles

  1. The Self-Annotator: Utilizes a self-improving strategy to generate a pool of "silver-standard" labeled data from an unlabeled corpus, providing a high-quality source for demonstrations.
  2. The TRF Extractor: Identifies phrases strongly associated with specific entity types (e.g., "musical talents" as a feature for the Person type) using mutual information criteria.
  3. The Demonstration Discriminator: Acts as a quality control layer. It employs a self-reflection mechanism to assign a "helpfulness score" to potential demonstrations, reducing the influence of misleading examples.
  4. The Overall Predictor: Synthesizes the target sentence, extracted TRFs, and high-scoring demonstrations to produce the final entity prediction.

Experimental Evaluation

The framework was evaluated across six diverse benchmarks, including general domain datasets (CoNLL03, WikiGold, WNUT-17, and OntoNotes) and domain-specific biomedical datasets (GENIA and BioNLP11). While GPT-3.5-Turbo served as the primary backbone, the researchers also validated CMAS using open-source models like Llama-3 and Qwen-2.5.

Key Results and Insights

CMAS established new state-of-the-art (SOTA) results for zero-shot NER, demonstrating significant robustness across various settings.

Performance comparison (F1-score) of Vanilla prompting, SILLM, and CMAS across WikiGold, WNUT-17, and GENIA datasets at different N-shot levels.

Performance Gains

  • WNUT-17: CMAS achieved a remarkable 13.21% improvement in F1-score over the previous best baseline (SILLM).
  • Biomedical Domain: On the challenging BioNLP11 dataset, CMAS reached an F1-score of 60.51%, significantly outperforming baselines that struggled to exceed 55%.
  • Few-Shot Stability: Unlike standard LLMs, which often suffer from performance degradation when noisy examples are added, CMAS maintains steady performance as the number of demonstrations increases, thanks to its internal scoring system.

Core Findings

  • NER as a Dual Task: The research suggests that NER is most effective when treated as a two-step process: identifying "what" the entity is and "why" the context supports that classification. By extracting TRFs first, the model builds a logical bridge to the correct entity type.
  • Similarity vs. Helpfulness: The success of the Demonstration Discriminator proves that semantic similarity does not always equate to helpfulness in in-context learning. Selective learning through self-reflection is superior to indiscriminate retrieval.

Limitations and Future Directions

Despite its performance, CMAS entails higher computational costs and latency compared to single-prompt methods due to its multi-agent pipeline. Furthermore, the system remains dependent on the underlying knowledge of the LLM backbone; if the base model fundamentally lacks domain knowledge, the agents may reinforce errors.

Future work may explore multi-turn interactions or "agent debates" to iteratively refine labels, as well as expanding the framework to "Open NER" scenarios where entity types are not predefined.

Summary updated

BibTeX
@inproceedings{wang2025cooperative,
  author = {Zihan Wang and Ziqi Zhao and Yougang Lyu and Zhumin Chen and Maarten de Rijke and Zhaochun Ren},
  title = {{A Cooperative Multi-Agent Framework for Zero-Shot Named Entity Recognition}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure