Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • 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
Creating a Benchmark for Semantic Similarity: A Strategy for Evaluating Semantic Similarity in Texts Generated by Large Language Models
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Skapande av ett Riktmärke för Semantisk Likhet : En Strategi för Evaluering av Semantisk Likhet av Texter Genererade av Stora Språkmodeller (Swedish)
Abstract [en]

Evaluating semantic similarity between two distinct texts poses a significant challenge, particularly in the context of the vast quantities of text generated by Large Language Models. Accurately assessing whether generated text closely resembles original content is crucial, as failure to do so could contribute to the dissemination of misinformation and related issues. However, automating semantic evaluation is inherently complex, given that semantics requires substantial human interpretation and has historically been difficult to model. This thesis aims to develop a benchmark for measuring semantic similarity between texts by comparing various existing strategies alongside novel approaches. The objective is to determine whether these strategies can be employed independently or in combination to effectively evaluate semantic similarity. This was done by systematic evaluation of various strategies and their comparative results, leading to the design and implementation of a Siamese Neural Network. By utilizing Jaccard Similarity for regularization, a benchmark network was established to assess semantic similarity. The benchmark was initially trained on a specific task and subsequently tested on a downstream task involving longer reports. The results demonstrate that the network outperformed all other strategies across most metrics, and the transfer from the initial task to the downstream task was considered successful.

Abstract [sv]

Att utvärdera semantisk likhet mellan två distinkta texter är en utmaning, särskilt i kontexten av de stora mängder text som genereras av stora språkmodeller. Att noggrant bedöma huruvida den genererade texten nära överensstämmer med det ursprungliga innehållet är avgörande, eftersom underlåtenhet att göra detta kan bidra till spridningen av desinformation och relaterade problem. Att automatisera semantisk utvärdering är dock inneboende komplext, då semantik kräver betydande mänsklig tolkning och historiskt har varit svårt att modellera. Denna uppsats syftar till att utveckla ett riktmärke för att mäta semantisk likhet mellan texter genom att jämföra olika befintliga strategier parallellt med nya tillvägagångssätt. Målet är att avgöra huruvida dessa strategier kan användas självständigt eller i kombination för att effektivt utvärdera semantisk likhet. Detta gjordes genom en systematisk utvärdering av olika strategier och ett jämförande av deras resultat, vilket sedan ledde till utformningen och implementeringen av ett Siamesiskt Neuralt Nätverk. Genom att utnyttja Jaccard-likhet för regularisering specialicerades detta nätverk för att bedöma semantisk likhet. Nätverket tränades inledningsvis på en specifik uppgift och testades därefter på en mer komplex uppgift som involverade längre rapporter. Resultaten visar att nätverket överträffade alla andra strategier i de flesta aspekter, och överföringen från den inledande uppgiften till den mer komplexa ansågs framgångsrik.

Place, publisher, year, edition, pages
2025. , p. 67
Series
TRITA-EECS-EX ; 2025:451
Keywords [en]
Semantics, Semantic similarity, Semantic analysis, Natural Language Processing, Large Language Models, Text analysis, Generative AI
Keywords [sv]
Semantik, Semantisk likhet, Semantisk analys, Naturlig språkbehandling, Stora språkmodeller, Textanalys, Generativ AI
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-368249OAI: oai:DiVA.org:kth-368249DiVA, id: diva2:1987986
External cooperation
Alstom AB
Supervisors
Examiners
Available from: 2025-08-10 Created: 2025-08-09 Last updated: 2025-08-10Bibliographically approved

Open Access in DiVA

fulltext(2128 kB)351 downloads
File information
File name FULLTEXT01.pdfFile size 2128 kBChecksum SHA-512
585384ac176efd3b1b28e786d7d8e6dbc6facbff0786536be4777d8ab971e967b38a8464d15e24579777c5a515e2e3f122cf27b9d379a8be69844b7b811440fe
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 355 downloads
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

urn-nbn

Altmetric score

urn-nbn
Total: 969 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • 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