GLiNER-Relex: A Unified Framework for Joint Named Entity Recognition and Relation Extraction

Hugging Face Daily Papers Papers

Summary

GLiNER-Relex is a unified framework for joint named entity recognition and relation extraction that leverages a shared transformer encoder for zero-shot capabilities. The paper demonstrates competitive performance on standard benchmarks and releases the model as an open-source Python package.

Joint named entity recognition (NER) and relation extraction (RE) is a fundamental task in natural language processing for constructing knowledge graphs from unstructured text. While recent approaches treat NER and RE as separate tasks requiring distinct models, we introduce GLiNER-Relex, a unified architecture that extends the GLiNER framework to perform both entity recognition and relation extraction in a single model. Our approach leverages a shared bidirectional transformer encoder to jointly represent text, entity type labels, and relation type labels, enabling zero-shot extraction of arbitrary entity and relation types specified at inference time. GLiNER-Relex constructs entity pair representations from recognized spans and scores them against relation type embeddings using a dedicated relation scoring module. We evaluate our model on four standard relation extraction benchmarks: CoNLL04, DocRED, FewRel, and CrossRE, and demonstrate competitive performance against both specialized relation extraction models and large language models, while maintaining the computational efficiency characteristic of the GLiNER family. The model is released as an open-source Python package with a simple inference API that allows users to specify arbitrary entity and relation type labels at inference time and obtain both entities and relation triplets in a single call. All models and code are publicly available.
Original Article
View Cached Full Text

Cached at: 05/13/26, 08:11 AM

Paper page - GLiNER-Relex: A Unified Framework for Joint Named Entity Recognition and Relation Extraction

Source: https://huggingface.co/papers/2605.10108

Abstract

A unified model for joint named entity recognition and relation extraction that uses a shared transformer encoder to simultaneously identify entities and extract relations with zero-shot capabilities.

Joint named entity recognition(NER) andrelation extraction(RE) is a fundamental task in natural language processing for constructing knowledge graphs from unstructured text. While recent approaches treat NER and RE as separate tasks requiring distinct models, we introduceGLiNER-Relex, a unified architecture that extends theGLiNERframework to perform both entity recognition andrelation extractionin a single model. Our approach leverages a sharedbidirectional transformer encoderto jointly represent text, entity type labels, and relation type labels, enablingzero-shot extractionof arbitrary entity and relation types specified at inference time.GLiNER-Relex constructsentity pair representationsfrom recognized spans and scores them against relation type embeddings using a dedicatedrelation scoring module. We evaluate our model on four standardrelation extractionbenchmarks:CoNLL04,DocRED,FewRel, andCrossRE, and demonstrate competitive performance against both specializedrelation extractionmodels and large language models, while maintaining the computational efficiency characteristic of theGLiNERfamily. The model is released as an open-source Python package with a simple inference API that allows users to specify arbitrary entity and relation type labels at inference time and obtain both entities and relation triplets in a single call. All models and code are publicly available.

View arXiv pageView PDFAdd to collection

Get this paper in your agent:

hf papers read 2605\.10108

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2605.10108 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2605.10108 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2605.10108 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

GiLT: Augmenting Transformer Language Models with Dependency Graphs

arXiv cs.CL

The paper proposes GiLT (Graph-Infused Layers Transformer Language Model), which improves syntactic generalization by modulating attention weights using features from dependency graphs constructed incrementally during token prediction, outperforming baselines while maintaining competitive perplexity.