TRANSMISSION // 2406.14745v3

Fine-tuning helps language models identify relations in text

Source published

Fine-tuning improved relation-extraction scores on three benchmarks, but results varied by model and when retrieval was added. The findings do not establish broader performance.

AI-generated conceptual illustration for Fine-tuning helps language models identify relations in text
AI-generated conceptual illustration; not documentary evidence.

Can training a general-purpose language model on examples of entity relationships make it better at finding those relationships in text? A study tested fine-tuned models on three relation-extraction benchmarks, both on their own and inside a retrieval-augmented system. The results show strong scores on these datasets, while leaving open how well the approach transfers beyond them.

Relation extraction is the task of identifying how two entities in a sentence are connected. For example, a system might detect that a person lives in a city. These structured facts can support knowledge graphs, search and question-answering systems—but models must learn the specific relationship labels used in a task.

Sefika Efeoglu and Adrian Paschke asked whether fine-tuning large language models (LLMs) on relation-extraction examples could improve performance, and whether adapted models would work better inside a retrieval-augmented generation (RAG) system. In the RAG4RE approach used here, an embedding database is part of the data-augmentation module, which retrieves the most similar sentence for the system. The paper notes that this sentence may have a low similarity score; the supplied description does not detail the retrieval mechanics further.

How the study was set up

The researchers evaluated Flan-T5 Large, a model with 770 million parameters, and the 7-billion-parameter models Llama 2 and Mistral. They fine-tuned the models on supervised examples formatted as prompts. Their QLoRA procedure quantized the model and then applied LoRA to selected modules, a setup intended to reduce memory use.

Tests used TACRED, TACRED-Revisited (TACREV) and Re-TACRED, three sentence-level relation-extraction benchmarks. The paper says prompt examples were generated from the validation partitions, training data was used in RAG4RE’s embedding database, and test splits were reserved for evaluation. The researchers measured micro-precision, micro-recall and micro-F1, which calculate precision, recall and F1 by aggregating counts across labels. The paper notes that the datasets are imbalanced and says this motivated using micro metrics. Micro-averaging does not, by itself, remove the influence of common labels such as “no_relation.”

The team also replaced the generation model in RAG4RE with each fine-tuned model, leaving the other components unchanged. Because of GPU limits, they used Flan-T5 Large rather than the XL model used in the original RAG4RE study.

What the results show

Fine-tuning alone produced high micro-F1 scores for Mistral: 89.64% on TACRED, 94.61% on TACREV and 90.09% on Re-TACRED. Adding RAG did not improve every model’s score. With Flan-T5 Large, RAG plus fine-tuning reached 92.00% on TACRED and 93.01% on Re-TACRED. On TACREV, fine-tuned Mistral scored 94.61%, compared with 94.34% for Flan-T5 Large paired with RAG.

The pattern varied by model. Flan-T5 combined with RAG scored higher than its fine-tuning-only version on all three datasets. Adding RAG lowered the fine-tuned Mistral scores on all three; for Llama 2, scores fell on TACRED and TACREV but rose on Re-TACRED. The authors suggest that single-task fine-tuning and possible catastrophic forgetting might help explain some declines, but the experiments do not establish that explanation.

The paper also compares its best results with figures from previous studies. Those comparisons should be treated cautiously: the supplied text does not establish that every prior result used an identical evaluation setup. The within-study results support a narrower takeaway: fine-tuning performed well on these benchmarks, while the additional contribution of RAG depended on the model and dataset.

Uncertainty and limits

The reported evaluation covers three benchmarks. The evidence available here does not establish how well the approach transfers to other datasets, domains or practical settings. The authors also note that models may have encountered benchmark material during pretraining, which could complicate interpretation of test-set performance. They caution that a sentence retrieved by RAG may have low similarity to the query sentence.

The source metadata links this work to an arXiv record, while the extracted paper text includes an ACM-style citation with placeholder conference and DOI details. Those placeholders do not establish a finalized publication or peer review, and the material supplied does not verify the work’s publication status. The reported numbers should therefore be read as the authors’ experimental results, not settled evidence about relation extraction in general.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Better Context Helps a Smaller AI Answer Questions About Scientific Figures

    Shared method: Both studies combine retrieval-augmented generation with parameter-efficient fine-tuning: the origin paper inserts fine-tuned models into RAG4RE, while RE-SciVQA pairs context-aware retrieval with LoRA adaptation. Their tasks and retrieval designs differ, so this is a methodological connection, not evidence of comparable performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2406.14745v3 — Original paper

      Excerpt reference: static/papers/2406.14745v3.md:295-363
      Basis: Paper text
      Source SHA-256: 2e618488d660bcd663a19be32cb0aaaed7584d6e064fa2aad9edbc756c91ae36

    • 2611.00242v1 — Original paper

      Excerpt reference: static/papers/2611.00242v1.md:201-289
      Basis: Paper text
      Source SHA-256: f0d1858cf871a5e06e65d56f52ce662068e28d2e8f6fde9be5ff480047bbf7c4

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.