What is relation extraction?
Relation extraction is the information extraction task of finding semantic relations between pairs of entities in text, such as a person being employed by an organisation or a place lying in a region. The resulting facts populate knowledge bases and knowledge graphs.
Unlike named entity recognition, which finds names of people, organisations and places, relation extraction determines how those entities connect. Document-level datasets therefore annotate both entities and relations.
- Topic
- Natural language processing and Turkish
- Also known as
- Relation classification
- Origin
- NIST ACE evaluation corpora, 2003 and 2004; 2009 distant supervision method
How relation extraction works
- Supervised systems learn relation types from sentences hand-labelled for entities and relations.
- Distant supervision takes entity pairs from a knowledge base and trains on sentences mentioning them.
- At document level relations span several sentences and the model combines the whole document.
- Generative large language models produce relations from prompts and examples.
Commonly confused terms
| Term | How it differs |
|---|---|
| Entity linking | Entity linking maps an entity mention in text to the correct record in a knowledge base. Relation extraction determines the type of link between two entities; together they feed knowledge graphs. |
Why relation extraction matters for on-premises AI
Labelled data is costly and classifiers trained on one corpus lean towards its domain. A 2009 distant supervision method therefore turned to unlabelled text and extracted 10,000 instances of 102 relations at 67.6% precision. A 2017 study, noting that populating knowledge bases from documents had improved frustratingly slowly, released a dataset of 119,474 examples.
An insurer extracts relations between policyholders, vehicles, accident sites and repair shops from free-text claim notes. Merged into a knowledge graph, they reveal a repair shop linked to recurring people across claims; low-confidence relations need expert approval before entering the graph.
Common questions
How does relation extraction differ from named entity recognition?
Entity recognition finds names in text and their types. Relation extraction determines the link between those entities, such as a person working for an organisation.
What is distant supervision?
It is a training method that uses relations already stored in a knowledge base instead of hand labels. Sentences containing an entity pair related in the knowledge base become training examples automatically, so no labelled corpus is needed.
How have large language models changed relation extraction?
Generative models can produce relations from a prompt; a 2023 survey groups this work under generative information extraction. Structured output can keep the result aligned with a schema.
Related terms
Sources
- Distant supervision for relation extraction without labeled data, ACL, 2009
- Position-aware Attention and Supervised Data Improve Slot Filling, EMNLP, 2017
- DocRED: A Large-Scale Document-Level Relation Extraction Dataset, ACL, 2019
- Large Language Models for Generative Information Extraction: A Survey, arXiv, 2023
In the glossary: Glossary, R to Z