Test It Before You Trust It: Applying Software Testing for Trustworthy In-Context Learning

dc.contributor.authorRacharak T.
dc.contributor.authorRagkhitwetsagul C.
dc.contributor.authorSontesadisai C.
dc.contributor.authorSunetnanta T.
dc.contributor.correspondenceRacharak T.
dc.contributor.otherMahidol University
dc.date.accessioned2026-02-06T18:12:47Z
dc.date.available2026-02-06T18:12:47Z
dc.date.issued2026-01-01
dc.description.abstractIn-context learning (ICL) has emerged as a powerful capability of large language models (LLMs), enabling them to perform new tasks based on a few provided examples without explicit fine-tuning. Despite their impressive adaptability, these models remain vulnerable to subtle adversarial perturbations and exhibit unpredictable behavior when faced with linguistic variations. Inspired by software testing principles, we introduce a software testing-inspired framework, called MMT4NL, for evaluating the trustworthiness of in-context learning by utilizing adversarial perturbations and software testing techniques. It includes diverse evaluation aspects of linguistic capabilities for testing the ICL capabilities of LLMs. MMT4NL is built around the idea of crafting metamorphic adversarial examples from a test set in order to quantify and pinpoint bugs in the designed prompts of ICL. Our philosophy is to treat any LLM as software and validate its functionalities just like testing the software. Finally, we demonstrate applications of MMT4NL on the sentiment analysis and question-answering tasks. Our experiments could reveal various linguistic bugs in state-of-the-art LLMs.
dc.identifier.citationLecture Notes in Computer Science Vol.15836 LNCS (2026) , 243-258
dc.identifier.doi10.1007/978-3-031-97141-9_17
dc.identifier.eissn16113349
dc.identifier.issn03029743
dc.identifier.scopus2-s2.0-105010821204
dc.identifier.urihttps://repository.li.mahidol.ac.th/handle/123456789/114416
dc.rights.holderSCOPUS
dc.subjectMathematics
dc.subjectComputer Science
dc.titleTest It Before You Trust It: Applying Software Testing for Trustworthy In-Context Learning
dc.typeConference Paper
mu.datasource.scopushttps://www.scopus.com/inward/record.uri?partnerID=HzOxMe3b&scp=105010821204&origin=inward
oaire.citation.endPage258
oaire.citation.startPage243
oaire.citation.titleLecture Notes in Computer Science
oaire.citation.volume15836 LNCS
oairecerif.author.affiliationTohoku University
oairecerif.author.affiliationMahidol University
oairecerif.author.affiliationJapan Advanced Institute of Science and Technology

Files

Collections