liu.seSearch for publications in DiVA
12345673 of 16
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Composing Meaning from Text: Improving Entity Representations for Ontology-based Document Modeling using Masked Language Models
Linköping University, Department of Computer and Information Science, Human-Centered Systems. Linköping University, Faculty of Science & Engineering.ORCID iD: 0009-0009-3977-2706
2026 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

Modern knowledge-centric systems often use knowledge graphs (KGs) to represent information in a structured, queryable way, with the semantics underlying that structure described by an ontology. However, due to how rapidly knowledge can change in many real-world applications, handcrafting or even manually maintaining these KGs is not scalable. If the KGs are backed by a known data source, such as a collection of documents, then one solution is to partially automate the process, for example by automatically extracting facts from newly added documents. Ideally, such automation is accurate and faithful to the contents of each document. However, since automatic fact extraction from text often relies on language models, the results can be inaccurate for many reasons, such as underlying biases or a lack of pre-training data for a particular domain. This can be especially challenging in industry scenarios, where information from a variety of sources may need to be modeled, such as legal documents or scientific studies. This thesis aims to better understand the source of these inaccuracies and address them for encoder-only masked language models (MLMs), answering the question How can ontology-guided document modeling be performed using encoder-only MLMs?

The main contributions of this thesis are three-fold. First, it develops a framework for evaluating the entity representations produced by MLMs using a document-level relation extraction (DLRE) setting. In this setting, each document can be represented by a KG that describes its contents according to some ontology. Possible subject-relation-object triples from each document are verbalized into candidate statements, then scored by a given MLM and ranked, where that ranking is analyzed in various ways. By changing only the input representations of the subject and object entities of these statements and keeping all else constant, the experimental framework enables experiments that look at the effects of changes to those representations. Second, the thesis presents two zero-shot methods for improving those entity representations relative to document contents, both of which do not update the underlying MLM in any way. These representations were evaluated on three DLRE datasets based on Wikipedia articles, news articles, and biomedical paper abstracts. In one case, general-domain MLMs that used these improved representations even performed better on biomedical data than biomedical-specific MLMs that did not use them. Finally, the thesis develops a procedure for modifying general-domain DLRE datasets to be adversarial by intentionally using well-known entities in unusual contexts. The thesis found that MLMs overwhelmingly favored their background knowledge rather than the text of a document when performing statement ranking, so this adversarial data served to ensure that any improvements on the statement-ranking task were due to MLMs correctly using the documents’ text. These contributions are implemented in the publicly-available software package LINTEXT.

Place, publisher, year, edition, pages
Linköping: Linköping University Electronic Press, 2026. , p. 85
Series
Linköping Studies in Science and Technology. Dissertations, ISSN 0345-7524 ; 2536
National Category
Natural Language Processing
Identifiers
URN: urn:nbn:se:liu:diva-226764DOI: 10.3384/9789181186321ISBN: 9789181186314 (print)ISBN: 9789181186321 (electronic)OAI: oai:DiVA.org:liu-226764DiVA, id: diva2:2093014
Public defence
2026-09-15, Ada Lovelace, B-building, Campus Valla, Linköping, 13:15 (English)
Opponent
Supervisors
Note

Funding: This work was funded in part by the Swedish National Graduate School in Computer Science (CUGS).

Available from: 2026-08-18 Created: 2026-08-18 Last updated: 2026-08-18Bibliographically approved
List of papers
1. Towards Tailored Knowledge Base Modeling using Masked Language Models
Open this publication in new window or tab >>Towards Tailored Knowledge Base Modeling using Masked Language Models
2023 (English)In: Joint Proceedings of the Second International Workshop on Knowledge Graph Generation From Text and the First International BiKE Challengeco-located with 20th Extended Semantic Conference (ESWC 2023) / [ed] Sanju Tiwari, Nandana Mihindukulasooriya, Francesco Osborne, Dimitris Kontokostas, Jennifer D’Souza, Mayank Kejriwal, Edgard Marx, CEUR-WS , 2023, Vol. 3447, p. 118-131Conference paper, Published paper (Refereed)
Abstract [en]

We propose a methodology for leveraging aspects of ontology design principles to guide the use of a masked language model (MLM) as a query engine over raw text documents. By using targeted fill-in-the blank-style prompts to define relations, we show how a domain expert could use BERT, a well-known MLM, to extract triples from unseen documents without any fine-tuning. We evaluate our proposed methodology using a modified document-level relation extraction task, highlighting early successes but also numerous areas that need improvement. Despite these shortcomings, we then discuss why we are still hopeful that this paves the way toward flexible text-based query engines which use collections of unstructured documents.

Place, publisher, year, edition, pages
CEUR-WS, 2023
Series
CEUR Workshop Proceedings, ISSN 1613-0073 ; 3447
Keywords
Knowledge Graphs, Masked Language Models, Ontologies, Document-level Relation Extraction
National Category
Natural Language Processing
Identifiers
urn:nbn:se:liu:diva-226749 (URN)2-s2.0-85169151570 (Scopus ID)
Conference
TEXT2KG 2023 & BiKE 2023:Second International Workshop on Knowledge Graph Generation From Text and the First International BiKE Challenge, co-located with 20th Extended Semantic Conference (ESWC 2023), Hersonissos, Greece, May 29th, 2023.
Available from: 2026-08-17 Created: 2026-08-17 Last updated: 2026-08-18Bibliographically approved
2. Contextualizing Entity Representations for Zero-Shot Relation Extraction with Masked Language Models
Open this publication in new window or tab >>Contextualizing Entity Representations for Zero-Shot Relation Extraction with Masked Language Models
2025 (English)In: KNOWLEDGE ENGINEERING AND KNOWLEDGE MANAGEMENT, EKAW 2024, SPRINGER INTERNATIONAL PUBLISHING AG , 2025, Vol. 15370, p. 399-415Conference paper, Published paper (Refereed)
Abstract [en]

Knowledge graphs (KGs) and their related ontologies constitute a key component in modern knowledge-based systems. However, hand-crafting these is not scalable, particularly due to the rate at which knowledge changes in many real-world applications. Partially automating the process of extracting and even modelling knowledge has therefore been a subject of research for many years. Nevertheless, accurate and reliable KG construction from natural language documents still remains a difficult task with many challenges, even in light of the impressive recent advances in language modelling. This paper focuses on one of those challenges, namely the extraction of accurate entity representations from text documents in order to facilitate relation extraction (RE). We present a novel method for generating document-contextualized input representations for entities using a masked language model (MLM) without the need for any sort of fine-tuning. These representations are then used as inputs to the same MLM that generated them, alleviating the need to include entire documents when prompting. Our results show that these representations 1) improve the ability of the MLMs BERT and RoBERTa to identify statements that represent correct relations between two entities; and 2) allow BERT to perform on par with the fine-tuned MLMs BioBERT and PubMedBERT.

Place, publisher, year, edition, pages
SPRINGER INTERNATIONAL PUBLISHING AG, 2025
Series
Lecture Notes in Artificial Intelligence, ISSN 2945-9133
Keywords
Knowledge Graphs; Masked Language Models; Machine Reading; Entity Embedding; Document-level Relation Extraction
National Category
Natural Language Processing
Identifiers
urn:nbn:se:liu:diva-217990 (URN)10.1007/978-3-031-77792-9_24 (DOI)001542675000024 ()2-s2.0-85210848015 (Scopus ID)9783031777912 (ISBN)9783031777929 (ISBN)
Conference
24th International Conference on Knowledge Engineering and Knowledge Management-EKAW, Amsterdam, NETHERLANDS, nov 26-28, 2024
Note

Funding Agencies|Swedish National Graduate School in Computer Science (CUGS) - Excellence Center at Linkoping-Lund in Information Technology (ELLIIT)

Available from: 2025-09-26 Created: 2025-09-26 Last updated: 2026-08-18
3. LINTEXT: A Visual Tool for Exploring and Modeling Knowledge in Text Documents
Open this publication in new window or tab >>LINTEXT: A Visual Tool for Exploring and Modeling Knowledge in Text Documents
2024 (English)In: Joint Proceedings of Posters, Demos, Workshops, and Tutorials of the 24th International Conference on Knowledge Engineering and Knowledge Management (EKAW-PDWT 2024)co-located with 24th International Conference on Knowledge Engineering and Knowledge Management (EKAW 2024) / [ed] Carlos Badenes-Olmedo, Inna Novalija, Enrico Daga, Lise Stork, Reshmi Gopalakrishna Pillai, Laurence Dierickx, Benno Kruit, Victoria Degeler, João Moreira, Bohui Zhang, Reham Alharbi, Yuan He, Arianna Graciotti, Alba Morales Tirado, Valentina Presutti, Enrico Motta, CEUR-WS , 2024, Vol. 3967Conference paper, Published paper (Refereed)
Abstract [en]

A large part of knowledge is commonly encoded into text documents. While extracting this information into a Knowledge Graph (KG) is a common approach, it suffers from challenges when texts are added, removed, or changed, or when the schema of the intended KG changes. Instead we advocate an approach where text and models evolve together in an interactive manner. We present LINTEXT, a system accompanying a published method which allows users to jointly explore and model the information held within text documents. The modeling is accomplished by specifying fill-in-the-blank prompts along with some metadata which are then recorded as specifications for simple relations that can be used to generate an ontology. The exploration aspect is accomplished by having the system complete each prompt with entities identified from the text and presenting the completions as a ranked list to the user, allowing users to verify the quality of the extracted triples. By elevating the development of the ontology to a visual and interactive level, it has an immediate text connection and users can be more certain that the documents they wish to model contain the information they wish to extract or query. Additionally, our system is designed to support the development of relation extraction (RE) pipelines underlying the document analysis, with a particular focus on supporting methods for improving vector representations of the extracted entities. To this end, users can choose to analyze documents from pre-annotated RE data sets to understand how changes in different elements of the pipeline affect the results.

Place, publisher, year, edition, pages
CEUR-WS, 2024
Series
CEUR Workshop Proceedings, ISSN 1613-0073
Keywords
Knowledge Graphs, Masked Language Models, Machine Reading, Entity Embedding, Document-level Relation Extraction, Interactive Knowledge Modeling
National Category
Computer Sciences Natural Language Processing
Identifiers
urn:nbn:se:liu:diva-226750 (URN)2-s2.0-105006925553 (Scopus ID)
Conference
Posters, Demos, Workshops, and Tutorials of the 24th International Conference on Knowledge Engineering and Knowledge Management (EKAW-PDWT 2024) co-located with 24th International Conference on Knowledge Engineering and Knowledge Management (EKAW 2024), Amsterdam, Netherlands, November 26-28, 2024.
Available from: 2026-08-17 Created: 2026-08-17 Last updated: 2026-08-18Bibliographically approved
4. Eco-Friendly Witches: Improving Generalization Through Suspension of Disbelief for Zero-Shot Fact Extraction
Open this publication in new window or tab >>Eco-Friendly Witches: Improving Generalization Through Suspension of Disbelief for Zero-Shot Fact Extraction
2025 (English)In: PROCEEDINGS OF THE 13TH KNOWLEDGE CAPTURE CONFERENCE 2025, K-CAP 2025, Association for Computing Machinery (ACM), 2025, p. 44-51Conference paper, Published paper (Refereed)
Abstract [en]

As language models (LMs) increase in size and complexity, so too does their capacity to capture and recall knowledge from their pre-training data. This property is in some cases desirable, such as when applied to general-domain knowledge graph completion and relation extraction (RE) tasks. However, when extracting information about well-known entities from documents, it can be unclear whether LM-based systems perform well by actually solving the tasks, or instead by leveraging patterns about those entities learned from pre-training data. In realistic scenarios, documents may be domain-specific and unlike anything in the pre-training data, or may use well-known named entities in new ways. In the latter case, LMs need to disregard parts of their background knowledge to succeed, a capability we informally call suspension of disbelief. This paper uses a zero-shot RE setting to investigate whether masked LMs (MLMs) are capable of this. We devise a method called DocShRED to construct adversarial versions of well-known RE data sets like DocRED, by intentionally using named entities in ways that are inconsistent with common pre-training data. We find that BERT and RoBERTa exhibit near-random performance on DocShRED, even when using a zero-shot technique to incorporate the text as supporting information. We also find that both MLMs perform significantly better on DocShRED when entities' surface forms are withheld using a novel method called entity isolation, highlighting the impact of background knowledge on the task. Finally, when we apply entity isolation to the biomedical RE data set BioRED, BERT outperforms BioBERT and PubMedBERT without fine-tuning, suggesting an overall improvement in generalizability.

Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2025
Keywords
Knowledge Graphs; Masked Language Models; Machine Reading; Entity Representation; Document-level Relation Extraction
National Category
Other Computer and Information Science
Identifiers
urn:nbn:se:liu:diva-221321 (URN)10.1145/3731443.3771346 (DOI)001665578100007 ()2-s2.0-105024939839 (Scopus ID)9798400718670 (ISBN)
Conference
13th International Conference on Knowledge Capture-K-CAP, Dayton, OH, dec 10-12, 2025
Note

Funding Agencies|Swedish National Graduate School in Computer Science (CUGS) - Excellence Center at Linkoping-Lund in Information Technology (ELLIIT)

Available from: 2026-02-16 Created: 2026-02-16 Last updated: 2026-08-18

Open Access in DiVA

fulltext(5975 kB)40 downloads
File information
File name FULLTEXT01.pdfFile size 5975 kBChecksum SHA-512
fbfe55764f6f76143cd0a56697dd4e464064a82d43635ac3a785f279d8ef1c6690fd8dcee7dd76824710f745a1cdbbd1abc465529a9b11dc204ed60297766db7
Type fulltextMimetype application/pdf
Order online >>

Other links

Publisher's full text

Authority records

Capshaw, Riley

Search in DiVA

By author/editor
Capshaw, Riley
By organisation
Human-Centered SystemsFaculty of Science & Engineering
Natural Language Processing

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
isbn
urn-nbn

Altmetric score

doi
isbn
urn-nbn
Total: 4858 hits
12345673 of 16
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf