{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T10:23:35Z","timestamp":1794651815327,"version":"4.9.1"},"reference-count":44,"publisher":"Elsevier BV","license":[{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.elsevier.com\/tdm\/userlicense\/1.0\/"},{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.elsevier.com\/legal\/tdmrep-license"},{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-017"},{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-037"},{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-012"},{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-029"},{"start":{"date-parts":[[2027,3,1]],"date-time":"2027-03-01T00:00:00Z","timestamp":1803859200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-004"}],"funder":[{"DOI":"10.13039\/501100001381","name":"National Research Foundation Singapore","doi-asserted-by":"publisher","id":[{"id":"10.13039\/501100001381","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["elsevier.com","sciencedirect.com"],"crossmark-restriction":true},"short-container-title":["Pattern Recognition"],"published-print":{"date-parts":[[2027,3]]},"DOI":"10.1016\/j.patcog.2026.115005","type":"journal-article","created":{"date-parts":[[2026,9,29]],"date-time":"2026-09-29T16:07:29Z","timestamp":1790698049000},"page":"115005","update-policy":"https:\/\/doi.org\/10.1016\/elsevier_cm_policy","source":"Crossref","is-referenced-by-count":0,"special_numbering":"PB","title":["Exploring backdoor attack and defense algorithms in LLMS: Enhancing in-context learning security"],"prefix":"10.1016","volume":"183","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5174-5182","authenticated-orcid":false,"given":"Shuai","family":"Zhao","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhongliang","family":"Guo","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Luwei","family":"Xiao","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Cong-Duy","family":"Nguyen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yanhao","family":"Jia","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xinyi","family":"Wu","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Luu Anh","family":"Tuan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"78","reference":[{"key":"10.1016\/j.patcog.2026.115005_b1","series-title":"Llama: Open and efficient foundation language models","author":"Touvron","year":"2023"},{"key":"10.1016\/j.patcog.2026.115005_b2","doi-asserted-by":"crossref","unstructured":"J. Zhang, B. Wang, L. Li, Y. Nakashima, et al., Instruct Me More! Random Prompting for Visual In-Context Learning, in: Proceedings of the IEEE\/CVF Winter Conference on Applications of Computer Vision, 2024, pp. 2597\u20132606.","DOI":"10.1109\/WACV57701.2024.00258"},{"issue":"2","key":"10.1016\/j.patcog.2026.115005_b3","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3697010","article-title":"An empirical study of the non-determinism of chatgpt in code generation","volume":"34","author":"Ouyang","year":"2025","journal-title":"ACM Trans. Softw. Eng. Methodol."},{"key":"10.1016\/j.patcog.2026.115005_b4","doi-asserted-by":"crossref","DOI":"10.1145\/3596219","article-title":"From softmax to nucleusmax: A novel sparse language model for Chinese radiology report summarization","author":"Zhao","year":"2023","journal-title":"ACM Trans. Asian Low-Resour. Lang. Inf. Process."},{"key":"10.1016\/j.patcog.2026.115005_b5","series-title":"International Conference on Machine Learning","first-page":"19565","article-title":"Transformers as algorithms: Generalization and stability in in-context learning","author":"Li","year":"2023"},{"key":"10.1016\/j.patcog.2026.115005_b6","doi-asserted-by":"crossref","DOI":"10.1016\/j.patcog.2025.112105","article-title":"Artwork protection against unauthorized neural style transfer and aesthetic color distance metric","volume":"171","author":"Guo","year":"2026","journal-title":"Pattern Recognit."},{"key":"10.1016\/j.patcog.2026.115005_b7","doi-asserted-by":"crossref","DOI":"10.1016\/j.eswa.2024.125856","article-title":"Clean-label backdoor attack and defense: An examination of language model vulnerability","volume":"265","author":"Zhao","year":"2025","journal-title":"Expert Syst. Appl."},{"key":"10.1016\/j.patcog.2026.115005_b8","doi-asserted-by":"crossref","first-page":"12918","DOI":"10.1109\/TIFS.2025.3639957","article-title":"A gray-box attack against latent diffusion model-based image editing by posterior collapse","volume":"20","author":"Guo","year":"2025","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"10.1016\/j.patcog.2026.115005_b9","article-title":"Protecting your customized LLM systems from backdoored instructions with metacognitive probing","author":"Zhao","year":"2026","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"10.1016\/j.patcog.2026.115005_b10","article-title":"TSBA: A two-stage Poison-Only backdoor attack on visual object tracking","author":"Zhang","year":"2025","journal-title":"Pattern Recognit."},{"key":"10.1016\/j.patcog.2026.115005_b11","unstructured":"N. Kandpal, M. Jagielski, F. Tram\u00e8r, N. Carlini, Backdoor Attacks for In-Context Learning with Language Models, in: The Second Workshop on New Frontiers in Adversarial Machine Learning, 2023."},{"key":"10.1016\/j.patcog.2026.115005_b12","doi-asserted-by":"crossref","unstructured":"S. Zhao, M. Jia, L.A. Tuan, F. Pan, J. Wen, Universal vulnerabilities in large language models: Backdoor attacks for in-context learning, in: Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, EMNLP, 2024, pp. 11507\u201311522.","DOI":"10.18653\/v1\/2024.emnlp-main.642"},{"key":"10.1016\/j.patcog.2026.115005_b13","doi-asserted-by":"crossref","unstructured":"N. Tishby, N. Zaslavsky, Deep learning and the information bottleneck principle, in: Ieee Information Theory Workshop, Itw, 2015, pp. 1\u20135.","DOI":"10.1109\/ITW.2015.7133169"},{"key":"10.1016\/j.patcog.2026.115005_b14","unstructured":"N. Tishby, F.C. Pereira, W. Bialek, The information bottleneck method, in: Proceedings of the 37-the Annual Allerton Conference on Communication, 2000."},{"key":"10.1016\/j.patcog.2026.115005_b15","article-title":"A survey of recent backdoor attacks and defenses in large language models","author":"Zhao","year":"2025","journal-title":"Trans. Mach. Learn. Res."},{"key":"10.1016\/j.patcog.2026.115005_b16","series-title":"Findings of the Association for Computational Linguistics: ACL","first-page":"4937","article-title":"Unlearning backdoor attacks for LLMs with Weak-to-Strong knowledge distillation","author":"Zhao","year":"2025"},{"key":"10.1016\/j.patcog.2026.115005_b17","doi-asserted-by":"crossref","unstructured":"F. Qi, M. Li, Y. Chen, Z. Zhang, Z. Liu, et al., Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger, in: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, 2021, pp. 443\u2013453.","DOI":"10.18653\/v1\/2021.acl-long.37"},{"key":"10.1016\/j.patcog.2026.115005_b18","doi-asserted-by":"crossref","unstructured":"L. Li, D. Song, X. Li, J. Zeng, R. Ma, Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoning, in: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021, pp. 3023\u20133032.","DOI":"10.18653\/v1\/2021.emnlp-main.241"},{"key":"10.1016\/j.patcog.2026.115005_b19","doi-asserted-by":"crossref","unstructured":"W. Du, Y. Zhao, B. Li, G. Liu, S. Wang, Ppt: Backdoor attacks on pre-trained models via poisoned prompt tuning, in: Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI-22, 2022, pp. 680\u2013686.","DOI":"10.24963\/ijcai.2022\/96"},{"key":"10.1016\/j.patcog.2026.115005_b20","series-title":"Findings of the Association for Computational Linguistics: NAACL","first-page":"1799","article-title":"Exploring the universal vulnerability of Prompt-based learning paradigm","author":"Xu","year":"2022"},{"key":"10.1016\/j.patcog.2026.115005_b21","doi-asserted-by":"crossref","first-page":"37068","DOI":"10.52202\/068431-2686","article-title":"BadPrompt: Backdoor attacks on continuous prompts","volume":"35","author":"Cai","year":"2022","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"10.1016\/j.patcog.2026.115005_b22","doi-asserted-by":"crossref","unstructured":"L. Gan, J. Li, T. Zhang, X. Li, Y. Meng, F. Wu, et al., Triggerless Backdoor Attack for NLP Tasks with Clean Labels, in: Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2022, pp. 2942\u20132952.","DOI":"10.18653\/v1\/2022.naacl-main.214"},{"key":"10.1016\/j.patcog.2026.115005_b23","doi-asserted-by":"crossref","unstructured":"Y. Huang, T.Y. Zhuo, Q. Xu, H. Hu, X. Yuan, C. Chen, Training-free Lexical Backdoor Attacks on Language Models, in: Proceedings of the ACM Web Conference 2023, 2023, pp. 2198\u20132208.","DOI":"10.1145\/3543507.3583348"},{"key":"10.1016\/j.patcog.2026.115005_b24","series-title":"Backdoor attacks for LLMs with Weak-To-Strong knowledge distillation","author":"Zhao","year":"2024"},{"key":"10.1016\/j.patcog.2026.115005_b25","article-title":"Unifle: Uniform fusion of multiple lora experts for backdoor defense in large language models","author":"Zhao","year":"2026","journal-title":"IEEE Trans. Dependable Secur. Comput."},{"key":"10.1016\/j.patcog.2026.115005_b26","series-title":"International Conference on Machine Learning","first-page":"35413","article-title":"Poisoning language models during instruction tuning","author":"Wan","year":"2023"},{"key":"10.1016\/j.patcog.2026.115005_b27","doi-asserted-by":"crossref","unstructured":"J. Xu, M. Ma, F. Wang, C. Xiao, M. Chen, Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models, in: Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2024, pp. 3111\u20133126.","DOI":"10.18653\/v1\/2024.naacl-long.171"},{"key":"10.1016\/j.patcog.2026.115005_b28","unstructured":"Z. Xiang, F. Jiang, Z. Xiong, B. Ramasubramanian, et al., BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models, in: NeurIPS 2023 Workshop on Backdoors in Deep Learning-the Good, the Bad, and the Ugly, 2023."},{"issue":"1","key":"10.1016\/j.patcog.2026.115005_b29","doi-asserted-by":"crossref","first-page":"17","DOI":"10.1007\/s10515-024-00485-2","article-title":"BadCodePrompt: backdoor attacks against prompt engineering of large language models for code generation","volume":"32","author":"Qu","year":"2025","journal-title":"Autom. Softw. Eng."},{"key":"10.1016\/j.patcog.2026.115005_b30","doi-asserted-by":"crossref","DOI":"10.1109\/TAFFC.2025.3631581","article-title":"Affective-ROPTester: capability and bias analysis of LLMs in predicting retinopathy of prematurity","author":"Zhao","year":"2025","journal-title":"IEEE Trans. Affect. Comput."},{"key":"10.1016\/j.patcog.2026.115005_b31","series-title":"Finding supporting examples for in-context learning","author":"Li","year":"2023"},{"key":"10.1016\/j.patcog.2026.115005_b32","series-title":"Findings of the Association for Computational Linguistics ACL 2024","first-page":"283","article-title":"Small models are valuable Plug-ins for large language models","author":"Xu","year":"2024"},{"key":"10.1016\/j.patcog.2026.115005_b33","series-title":"International Conference on Machine Learning","first-page":"39818","article-title":"Compositional exemplars for in-context learning","author":"Ye","year":"2023"},{"key":"10.1016\/j.patcog.2026.115005_b34","article-title":"Jailbreak and guard aligned language models with only few in-context demonstrations","author":"Wei","year":"2026","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"10.1016\/j.patcog.2026.115005_b35","series-title":"Hijacking large language models via adversarial in-context learning","author":"Zhou","year":"2023"},{"key":"10.1016\/j.patcog.2026.115005_b36","doi-asserted-by":"crossref","unstructured":"B. Wang, W. Chen, H. Pei, C. Xie, et al., DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Models, in: Thirty-Seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023.","DOI":"10.52202\/075280-1361"},{"key":"10.1016\/j.patcog.2026.115005_b37","unstructured":"R. Zhang, H. Li, R. Wen, W. Jiang, Y. Zhang, M. Backes, Y. Shen, Y. Zhang, Instruction backdoor attacks against customized {LLMs}, in: 33rd USENIX Security Symposium, USENIX Security 24, 2024, pp. 1849\u20131866."},{"key":"10.1016\/j.patcog.2026.115005_b38","series-title":"Findings of the Association for Computational Linguistics: EMNLP 2022","first-page":"355","article-title":"Fine-mixing: Mitigating backdoors in fine-tuned language models","author":"Zhang","year":"2022"},{"key":"10.1016\/j.patcog.2026.115005_b39","series-title":"Findings of the Association for Computational Linguistics: NAACL","first-page":"3421","article-title":"Defending against Weight-Poisoning backdoor attacks for Parameter-Efficient Fine-Tuning","author":"Zhao","year":"2024"},{"key":"10.1016\/j.patcog.2026.115005_b40","doi-asserted-by":"crossref","unstructured":"F. Qi, Y. Chen, M. Li, Y. Yao, et al., ONION: A Simple and Effective Defense Against Textual Backdoor Attacks, in: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021, pp. 9558\u20139566.","DOI":"10.18653\/v1\/2021.emnlp-main.752"},{"key":"10.1016\/j.patcog.2026.115005_b41","doi-asserted-by":"crossref","unstructured":"W.J. Mo, J. Xu, Q. Liu, J. Wang, J. Yan, H. Askari, C. Xiao, M. Chen, Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations, in: Findings of the Association for Computational Linguistics: NAACL 2025, 2025, pp. 2232\u20132249.","DOI":"10.18653\/v1\/2025.findings-naacl.119"},{"key":"10.1016\/j.patcog.2026.115005_b42","series-title":"2018 IEEE\/ACM 15th International Conference on Mining Software Repositories","first-page":"476","article-title":"Learning to mine aligned code and natural language pairs from stack overflow","author":"Yin","year":"2018"},{"key":"10.1016\/j.patcog.2026.115005_b43","series-title":"Evaluating large language models trained on code","author":"Chen","year":"2021"},{"key":"10.1016\/j.patcog.2026.115005_b44","series-title":"Program synthesis with large language models","author":"Austin","year":"2021"}],"container-title":["Pattern Recognition"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/api.elsevier.com\/content\/article\/PII:S0031320326019692?httpAccept=text\/xml","content-type":"text\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/api.elsevier.com\/content\/article\/PII:S0031320326019692?httpAccept=text\/plain","content-type":"text\/plain","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T10:01:10Z","timestamp":1794650470000},"score":1,"resource":{"primary":{"URL":"https:\/\/linkinghub.elsevier.com\/retrieve\/pii\/S0031320326019692"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2027,3]]},"references-count":44,"alternative-id":["S0031320326019692"],"URL":"https:\/\/doi.org\/10.1016\/j.patcog.2026.115005","relation":{},"ISSN":["0031-3203"],"issn-type":[{"value":"0031-3203","type":"print"}],"subject":[],"published":{"date-parts":[[2027,3]]},"assertion":[{"value":"Elsevier","name":"publisher","label":"This article is maintained by"},{"value":"Exploring backdoor attack and defense algorithms in LLMS: Enhancing in-context learning security","name":"articletitle","label":"Article Title"},{"value":"Pattern Recognition","name":"journaltitle","label":"Journal Title"},{"value":"https:\/\/doi.org\/10.1016\/j.patcog.2026.115005","name":"articlelink","label":"CrossRef DOI link to publisher maintained version"},{"value":"article","name":"content_type","label":"Content Type"},{"value":"\u00a9 2026 Elsevier Ltd. All rights are reserved, including those for text and data mining, AI training, and similar technologies.","name":"copyright","label":"Copyright"}],"article-number":"115005"}}