Abstract
dc:description.abstractIn recent years, advancements in Natural Language Processing have been driven by the development of Large Language Models (LLMs), enabling significant progress in multiple tasks such as Relation Extraction (RE), a key component of Information Extraction (IE). RE plays a critical role in structuring unstructured natural language data. It produces outputs that are not only machine-readable but also interpretable by humans, making it invaluable for decision-making and knowledge discovery. However, proprietary LLMs, such as those used by ChatGPT, pose high-cost challenges, limited access, and restricted adaptability. Addressing these issues calls for exploring open alternatives, which offer flexibility, affordability, and greater transparency. This work focuses on researching and evaluating open LLMs of different sizes and architectures for RE tasks, benchmarking their performance against proprietary models in terms of cost-effectiveness, reliability, and control. Emphasis is placed on developing solutions for Portuguese, a low-resource language compared to more widely spoken languages like English. The study explores various techniques, with a particular focus on prompt engineering and its ramifications, alongside supervised fine-tuning. Data plays a central role in this exploration, and a key contribution is the creation of RelEx-PT, a balanced and simplified sentence-level dataset for Portuguese RE. Experiments show that robust open generative LLMs, such as Gemma3-27B and DeepSeek-V3, can match or even outperform proprietary models like GPT-4o in RE tasks via prompting, offering highly competitive results at a fraction of the cost. Nevertheless, supervised fine-tuning proves to be an effective alternative, enabling much smaller open models, such as BERTimbau and Albertina PTPT, to perform notably better than larger proprietary counterparts. These smaller models excel particularly in structured tasks like Relation Classification, and are also much easier to operate. In contrast, Relation Triple Extraction presents a greater challenge due to its comprehensive nature, leading to lower model performance. This research contributes toward more accessible and sustainable IE solutions in Portuguese, demonstrating that open and more affordable technologies cansupport high-quality knowledge acquisition at scale.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Pinto, Tomás Cerveira da Cruz
- Advisor dc:contributor.advisor
-
- Oliveira, Hugo Ricardo Gonçalo
Subjects
dc:subject × 10Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204038154