Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

GLiNER2: An Efficient Multi-Task Information Extraction System with Schema-Driven Interface

About

Information extraction (IE) is fundamental to numerous NLP applications, yet existing solutions often require specialized models for different tasks or rely on computationally expensive large language models. We present GLiNER2, a unified framework that enhances the original GLiNER architecture to support named entity recognition, text classification, and hierarchical structured data extraction within a single efficient model. Built pretrained transformer encoder architecture, GLiNER2 maintains CPU efficiency and compact size while introducing multi-task composition through an intuitive schema-based interface. Our experiments demonstrate competitive performance across extraction and classification tasks with substantial improvements in deployment accessibility compared to LLM-based alternatives. We release GLiNER2 as an open-source pip-installable library with pre-trained models and documentation at https://github.com/fastino-ai/GLiNER2.

Urchade Zaratiana, Gil Pasternak, Oliver Boyd, George Hurn-Maloney, Ash Lewis• 2025

Related benchmarks

TaskDatasetResultRank
Safety ModerationStrongREJECT
F1 Score95.7
15
Safety ModerationPolyGuard
Prompt F160.3
15
Safety ModerationAegis, StrongReject, PolyGuard Aggregate 2.0
Average F1 Score66.6
15
Safety ModerationAegis 2.0
Prompt F171.4
15
PII detectionPII-Bench
Name F185.2
10
Inference EfficiencyA100 80 GB GPU
Latency (s)0.021
5
Showing 6 of 6 rows

Other info

Follow for update