PICLe: Pseudo-annotations for In-Context Learning in Low-Resource Named Entity Detection

Sepideh Mamooler, Syrielle Montariol, Alexander Mathis, Antoine Bosselut

Introduction

Named Entity Detection (NED)—the task of identifying specific terms like chemical compounds or gene sequences in specialized text—traditionally requires significant human expertise to create labeled datasets. While Large Language Models (LLMs) can perform NED via In-Context Learning (ICL) using just a few examples, they are often sensitive to the specific demonstrations provided. This sensitivity creates a bottleneck in low-resource domains where human-annotated "gold" examples are scarce.

Researchers from EPFL have introduced PICLe (Pseudo-annotated In-Context Learning), a framework that challenges the assumption that LLMs require perfect demonstrations. By leveraging the discovery that LLMs are surprisingly resilient to "noisy" examples in structured tasks, PICLe enables models to self-generate and verify their own training data, often outperforming methods that rely on hundreds of human-annotated examples.

The Resilience of ICL in Structured Tasks

To determine what makes a demonstration effective for NED, the authors conducted a perturbation study. Unlike simple classification tasks (e.g., sentiment analysis), NED is a structured task with open-ended outputs. The researchers intentionally corrupted demonstrations by swapping labels, using out-of-distribution (OOD) text, or deleting entities to observe the impact on model performance.

Micro F1 performance across different demonstration perturbation types.

As illustrated in the figure above, while human-perfect "Gold Labels" yield the highest performance, the model remains remarkably effective even when demonstrations are partially incorrect. For instance, corrupted OOD text and labels still significantly outperform zero-shot ("No Demo") baselines. The core insight is that as long as the LLM perceives the correct format and label space, it can navigate the task even if the semantic mapping in the demonstrations is imperfect.

The PICLe Framework

Based on this resilience, PICLe automates the demonstration selection process through a three-stage pipeline:

  1. Pseudo-Annotation and Self-Verification: An LLM labels a pool of unlabeled data in a zero-shot pass. It then performs "self-verification," checking its own work against a definition of the entity type to filter out hallucinations and errors.
  2. Specialized k-means (Sp-k-means) Clustering: To ensure diversity, the pseudo-labeled samples are clustered based on their embeddings. During inference, the system samples demonstrations from these clusters to provide a representative set of contexts for a new query.
  3. Final Verification: After the LLM predicts entities for a test query using these pseudo-labels, it runs a final self-verification step to prune any remaining errors.

Results and Discussion

The framework was evaluated across five high-stakes biomedical benchmarks, including ChemProt and BC5CDR. PICLe improved performance over zero-shot prompting by an average of 10.7% (57.1% F1 vs. 46.4% F1).

Correlation between demonstration quality (F1, Precision, and Recall) and final prediction performance.

The correlation analysis shows that while prediction performance generally scales with demonstration quality, the model can achieve high F1 scores even with sub-optimal demonstration recall or precision. Most notably, in low-resource settings, PICLe (using zero human labels) outperformed standard ICL that utilized 100 human-annotated gold examples (57.1% vs 52.8%).

Conclusion

PICLe demonstrates that the "pickiness" of LLMs regarding demonstrations is less of a barrier in structured tasks like NED than previously thought. By utilizing self-generated pseudo-labels and strategic clustering, PICLe provides a robust path toward high-performing entity detection without the prohibitive cost of human annotation. Future research will investigate if this noise resilience extends to other complex tasks, such as relationship extraction or summarization.

Summary updated

BibTeX
@inproceedings{mamooler2025picle,
  author = {Sepideh Mamooler and Syrielle Montariol and Alexander Mathis and Antoine Bosselut},
  title = {{PICLe: Pseudo-annotations for In-Context Learning in Low-Resource Named Entity Detection}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.518},
}
Figure