Investigating what AI detection tools consider to be generative AI in code and text
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Undersökning av vad AI-detektorer anser vara generativ AI i kod och text (Swedish)
Abstract [en]
Detection tools for artificial intelligence have the purpose of detecting the likelihood that some content is generated by generative AI. Similarly to the generative tools themselves, the detection tools follow complex algorithms to return the results of the likelihood. As such, whether the detection tools are reliable or not, altering parts of the content, even minor changes, can lead to different results. In this thesis, we tried to find out what the effects of making specific changes to parts of text and code could have on three different detection tools, for the purpose of finding out what is considered more AI or not by them. We found that overall in text, using symbols such as ampersands or having choppy sentence lengths caused texts to be considered more likely to be human-written, while heavily simplified text was considered more likely to be AI generated. For C++ code, on the other hand, the introduction of lambda functions was deemed to be less likely to be AI generated. However, this was not consistent in all AI detectors, showing that the detectors do not work the same and are not built the same.
Abstract [sv]
Detektionsverktyg för artificiell intelligens har syftet att upptäcka sannolikheten att ett innehåll är genererat av generativ AI. Likt de generativa verktygen följer detektionsverktygen komplexa algoritmer för att ge resultat om sannolikheten. Oavsett om detekteringsverktygen är tillförlitliga eller inte kan ändringar av delar av innehållet, hur små de än är, leda till olika resultat. I denna avhandling försökte vi ta reda på vilka effekter specifika ändringar på delar av text och kod hade på tre olika detektionsverktyg, i syfte att få reda på vad som anses vara mer AI eller inte av dem. Vi fann att det i text generellt ansågs vara mer sannolikt att vara skrivet av en människa när texten innehöll symboler som och-tecken eller med hackiga meningslängder, medan väldigt simplifierad text ansågs vara mer sannolikt genererat av AI. För C++ kod å andra sidan var det främst introduktionen av lambda funktioner som ansågs vara mindre sannolikt att vara AI genererat. Dock var det inte konsekvent i alla AI detektorer, något som visar att detectorerna fungerar olika och är uppbygda på olika sätt.
Place, publisher, year, edition, pages
2025. , p. 24
Series
TRITA-EECS-EX ; 2025:322
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367661OAI: oai:DiVA.org:kth-367661DiVA, id: diva2:1985741
Supervisors
Examiners
2025-08-052025-07-272025-08-05Bibliographically approved