{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,27]],"date-time":"2026-07-27T18:46:33Z","timestamp":1785177993381,"version":"3.55.0"},"reference-count":56,"publisher":"PeerJ","license":[{"start":{"date-parts":[[2026,4,6]],"date-time":"2026-04-06T00:00:00Z","timestamp":1775433600000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Portuguese Funda\u00e7\u00e3o para a Ci\u00eancia e Tecnologia (FCT)\/Minist\u00e9rio da Ci\u00eancia, Tecnologia e Ensino Superior","award":["UID\/50008\/2025"],"award-info":[{"award-number":["UID\/50008\/2025"]}]},{"name":"FCT Doctoral","award":["2020.09847.BD, 2021.04905.BD"],"award-info":[{"award-number":["2020.09847.BD, 2021.04905.BD"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"abstract":"<jats:p>\n                    State-of-the-art defense mechanisms are typically evaluated in the context of white-box attacks, which is not realistic, as it assumes the attacker can access the gradients of the target network. To protect against this scenario, Adversarial Training (AT) and Adversarial Distillation (AD) include adversarial examples during the training phase, and Adversarial Purification uses a generative model to reconstruct all the images given to the classifier. This article considers an even more realistic evaluation scenario: gray-box attacks, which assume that the attacker knows the architecture and the dataset used to train the target network, but cannot access its gradients. We provide empirical evidence that models are vulnerable to gray-box attacks and propose Learning Image Similarity Adversarial Defense (LISArD), a defense mechanism that does not require training extra models despite slightly increasing training cost, which provides robustness against gray- and white-box attacks without including AT. Our method constructs a cross-correlation matrix by multiplying the embeddings of noisy (augmented with random Gaussian noise) and clean images, then approximates it to a diagonal matrix while simultaneously promoting correct image classification. This process allows the model to recognize noisy image embeddings as similar to those of clean images, thereby improving its generalization. The results show that LISArD can effectively protect against gray-box attacks across different datasets and can be successfully used in multiple architectures. Additionally, without additional training, LISArD resilience carries over to white-box and black-box scenarios, demonstrating its ability to withstand zero-day attacks (\n                    <jats:italic>i.e<\/jats:italic>\n                    ., previously unseen adversarial samples). Finally, the results show that state-of-the-art AD models underperform significantly when AT is removed and\/or when moving to gray-box settings, highlighting their lack of robustness across various conditions and further emphasizing the importance of LISArD. All the source code is available at\n                    <jats:uri xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:href=\"https:\/\/github.com\/Joana-Cabral\/LISArD\">https:\/\/github.com\/Joana-Cabral\/LISArD<\/jats:uri>\n                    .\n                  <\/jats:p>","DOI":"10.7717\/peerj-cs.3735","type":"journal-article","created":{"date-parts":[[2026,4,6]],"date-time":"2026-04-06T08:22:56Z","timestamp":1775463776000},"page":"e3735","source":"Crossref","is-referenced-by-count":1,"title":["LISArD: learning image similarity to defend against gray-box adversarial attacks"],"prefix":"10.7717","volume":"12","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3995-4621","authenticated-orcid":true,"given":"Joana","family":"Cabral Costa","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tiago","family":"Roxo","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hugo","family":"Proen\u00e7a","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8221-0666","authenticated-orcid":true,"given":"Pedro R. M.","family":"In\u00e1cio","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"4443","published-online":{"date-parts":[[2026,4,6]]},"reference":[{"key":"10.7717\/peerj-cs.3735\/ref-1","first-page":"484","article-title":"Square attack: a query-efficient black-box adversarial attack via random search","author":"Andriushchenko","year":"2020"},{"issue":"12","key":"10.7717\/peerj-cs.3735\/ref-2","doi-asserted-by":"publisher","first-page":"103427","DOI":"10.1016\/j.cose.2023.103427","article-title":"FePN: a robust feature purification network to defend against adversarial examples","volume":"134","author":"Cao","year":"2023","journal-title":"Computers & Security"},{"key":"10.7717\/peerj-cs.3735\/ref-3","first-page":"32","article-title":"Unlabeled data improves adversarial robustness","author":"Carmon","year":"2019"},{"key":"10.7717\/peerj-cs.3735\/ref-4","article-title":"Densepure: understanding diffusion models towards adversarial robustness","author":"Chen","year":"2022"},{"key":"10.7717\/peerj-cs.3735\/ref-5","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2111.02331","article-title":"LTD: low temperature distillation for robust adversarial training","author":"Chen","year":"2021"},{"key":"10.7717\/peerj-cs.3735\/ref-6","doi-asserted-by":"crossref","DOI":"10.1109\/TIFS.2024.3422923","article-title":"Diffilter: defending against adversarial perturbations with diffusion filter","author":"Chen","year":"2024"},{"issue":"10","key":"10.7717\/peerj-cs.3735\/ref-7","doi-asserted-by":"publisher","first-page":"59125","DOI":"10.1109\/access.2022.3179692","article-title":"Predicting CVSS metric via description interpretation","volume":"10","author":"Costa","year":"2022","journal-title":"IEEE Access"},{"issue":"6","key":"10.7717\/peerj-cs.3735\/ref-8","doi-asserted-by":"publisher","first-page":"6437","DOI":"10.1609\/aaai.v36i6.20595","article-title":"Sparse-RS: a versatile framework for query-efficient sparse black-box adversarial attacks","volume":"36","author":"Croce","year":"2022","journal-title":"Proceedings of the AAAI Conference on Artificial Intelligence"},{"key":"10.7717\/peerj-cs.3735\/ref-9","first-page":"4724","article-title":"Sparse and imperceivable adversarial attacks","author":"Croce","year":"2019"},{"key":"10.7717\/peerj-cs.3735\/ref-10","first-page":"2196","article-title":"Minimally distorted adversarial examples with a fast adaptive boundary attack","author":"Croce","year":"2020a"},{"key":"10.7717\/peerj-cs.3735\/ref-11","first-page":"2206","article-title":"Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks","author":"Croce","year":"2020b"},{"key":"10.7717\/peerj-cs.3735\/ref-12","first-page":"2665","article-title":"SmoothFool: an efficient framework for computing smooth adversarial perturbations","author":"Dabouei","year":"2020"},{"key":"10.7717\/peerj-cs.3735\/ref-13","article-title":"Biometric decision landscapes. Technical report, University of Cambridge, Computer Laboratory","author":"Daugman","year":"2000"},{"key":"10.7717\/peerj-cs.3735\/ref-14","first-page":"9185","article-title":"Boosting adversarial attacks with momentum","author":"Dong","year":"2018"},{"issue":"4","key":"10.7717\/peerj-cs.3735\/ref-15","doi-asserted-by":"publisher","first-page":"3996","DOI":"10.1609\/aaai.v34i04.5816","article-title":"Adversarially robust distillation","volume":"34","author":"Goldblum","year":"2020","journal-title":"Proceedings of the AAAI Conference on Artificial Intelligence"},{"key":"10.7717\/peerj-cs.3735\/ref-16","doi-asserted-by":"publisher","first-page":"20","DOI":"10.48550\/arXiv.1412.6572","article-title":"Explaining and harnessing adversarial examples","volume":"1050","author":"Goodfellow","year":"2015","journal-title":"Stat"},{"key":"10.7717\/peerj-cs.3735\/ref-17","first-page":"770","article-title":"Deep residual learning for image recognition","author":"He","year":"2016"},{"key":"10.7717\/peerj-cs.3735\/ref-18","article-title":"Benchmarking neural network robustness to common corruptions and perturbations","author":"Hendrycks","year":"2019"},{"key":"10.7717\/peerj-cs.3735\/ref-19","doi-asserted-by":"publisher","first-page":"6840","DOI":"10.2139\/ssrn.5358689","article-title":"Denoising diffusion probabilistic models","volume":"33","author":"Ho","year":"2020","journal-title":"Advances in Neural Information Processing Systems"},{"key":"10.7717\/peerj-cs.3735\/ref-20","first-page":"24668","article-title":"Boosting accuracy and robustness of student models via adaptive adversarial distillation","author":"Huang","year":"2023"},{"key":"10.7717\/peerj-cs.3735\/ref-21","first-page":"24482","article-title":"PeerAiD: improving adversarial distillation from a specialized peer tutor","author":"Jung","year":"2024"},{"key":"10.7717\/peerj-cs.3735\/ref-22","doi-asserted-by":"publisher","first-page":"26565","DOI":"10.52202\/079017-0610","article-title":"Elucidating the design space of diffusion-based generative models","volume":"35","author":"Karras","year":"2022","journal-title":"Advances in Neural Information Processing Systems"},{"issue":"1","key":"10.7717\/peerj-cs.3735\/ref-23","doi-asserted-by":"publisher","first-page":"128","DOI":"10.1109\/TNNLS.2020.2977142","article-title":"Gradients cannot be tamed: behind the impossible paradox of blocking targeted adversarial attacks","volume":"32","author":"Katzir","year":"2020","journal-title":"IEEE Transactions on Neural Networks and Learning Systems"},{"key":"10.7717\/peerj-cs.3735\/ref-24","article-title":"Learning multiple layers of features from tiny images. Master\u2019s thesis. University of Tront","author":"Krizhevsky","year":"2009"},{"key":"10.7717\/peerj-cs.3735\/ref-25","article-title":"Improving adversarial robustness via information bottleneck distillation","volume":"36","author":"Kuang","year":"2024"},{"issue":"7","key":"10.7717\/peerj-cs.3735\/ref-26","first-page":"3","article-title":"Tiny imagenet visual recognition challenge","volume":"7","author":"Le","year":"2015","journal-title":"CS 231N"},{"key":"10.7717\/peerj-cs.3735\/ref-27","first-page":"134","article-title":"Robust evaluation of diffusion-based adversarial purification","author":"Lee","year":"2023"},{"key":"10.7717\/peerj-cs.3735\/ref-28","article-title":"Towards deep learning models resistant to adversarial attacks","author":"Madry","year":"2018"},{"key":"10.7717\/peerj-cs.3735\/ref-29","first-page":"2574","article-title":"DeepFool: a simple and accurate method to fool deep neural networks","author":"Moosavi-Dezfooli","year":"2016"},{"key":"10.7717\/peerj-cs.3735\/ref-30","first-page":"16805","article-title":"Diffusion models for adversarial purification","author":"Nie","year":"2022"},{"key":"10.7717\/peerj-cs.3735\/ref-31","first-page":"372","article-title":"The limitations of deep learning in adversarial settings","author":"Papernot","year":"2016a"},{"key":"10.7717\/peerj-cs.3735\/ref-32","first-page":"582","article-title":"Distillation as a defense to adversarial perturbations against deep neural networks","author":"Papernot","year":"2016b"},{"key":"10.7717\/peerj-cs.3735\/ref-33","first-page":"204","article-title":"Dynamic guidance adversarial distillation with enhanced teacher knowledge","author":"Park","year":"2025"},{"key":"10.7717\/peerj-cs.3735\/ref-34","volume-title":"PyTorch: an imperative style, high-performance deep learning library","author":"Paszke","year":"2019"},{"key":"10.7717\/peerj-cs.3735\/ref-35","first-page":"3799","article-title":"Coherent concept-based explanations in medical image and its application to skin lesion diagnosis","author":"Patr\u00edcio","year":"2023"},{"key":"10.7717\/peerj-cs.3735\/ref-36","doi-asserted-by":"publisher","DOI":"10.1109\/wifs58808.2023.10374734","article-title":"On exploring audio anomaly in speech","author":"Roxo","year":"2023"},{"issue":"3","key":"10.7717\/peerj-cs.3735\/ref-37","doi-asserted-by":"publisher","first-page":"410","DOI":"10.1109\/tbiom.2024.3520030","article-title":"BIAS: a body-based interpretable active speaker approach","volume":"7","author":"Roxo","year":"2024","journal-title":"IEEE Transactions on Biometrics, Behavior, and Identity Science"},{"key":"10.7717\/peerj-cs.3735\/ref-38","doi-asserted-by":"crossref","DOI":"10.1109\/IJCB65343.2025.11410746","article-title":"ASDNB: merging face with body cues for robust active speaker detection","author":"Roxo","year":"2025"},{"key":"10.7717\/peerj-cs.3735\/ref-39","first-page":"4510","article-title":"MobileNETV2: inverted residuals and linear bottlenecks","author":"Sandler","year":"2018"},{"key":"10.7717\/peerj-cs.3735\/ref-40","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.1409.1556","article-title":"Very deep convolutional networks for large-scale image recognition","author":"Simonyan","year":"2014"},{"key":"10.7717\/peerj-cs.3735\/ref-41","first-page":"24665","article-title":"MimicDiffusion: purifying adversarial perturbation via mimicking clean diffusion model","author":"Song","year":"2024"},{"key":"10.7717\/peerj-cs.3735\/ref-42","first-page":"2818","article-title":"Rethinking the inception architecture for computer vision","author":"Szegedy","year":"2016"},{"key":"10.7717\/peerj-cs.3735\/ref-43","article-title":"Intriguing properties of neural networks","author":"Szegedy","year":"2014"},{"key":"10.7717\/peerj-cs.3735\/ref-44","first-page":"6105","article-title":"EfficientNet: rethinking model scaling for convolutional neural networks","author":"Tan","year":"2019"},{"issue":"8","key":"10.7717\/peerj-cs.3735\/ref-45","doi-asserted-by":"publisher","first-page":"1930","DOI":"10.1038\/s41591-023-02448-8","article-title":"Large language models in medicine","volume":"29","author":"Thirunavukarasu","year":"2023","journal-title":"Nature Medicine"},{"key":"10.7717\/peerj-cs.3735\/ref-46","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2307.09288","article-title":"Llama 2: open foundation and fine-tuned chat models","author":"Touvron","year":"2023"},{"key":"10.7717\/peerj-cs.3735\/ref-47","doi-asserted-by":"publisher","first-page":"23","DOI":"10.48550\/arXiv.1704.03453","article-title":"The space of transferable adversarial examples","volume":"1050","author":"Tram\u00e8r","year":"2017","journal-title":"Stat"},{"key":"10.7717\/peerj-cs.3735\/ref-48","article-title":"Robustness may be at odds with accuracy","author":"Tsipras","year":"2019"},{"key":"10.7717\/peerj-cs.3735\/ref-49","first-page":"36246","article-title":"Better diffusion models further improve adversarial training","author":"Wang","year":"2023"},{"key":"10.7717\/peerj-cs.3735\/ref-50","first-page":"12062","article-title":"Adversarial purification with score-based generative models","author":"Yoon","year":"2021"},{"key":"10.7717\/peerj-cs.3735\/ref-51","article-title":"Revisiting adversarial robustness distillation from the perspective of robust fairness","volume":"36","author":"Yue","year":"2024"},{"key":"10.7717\/peerj-cs.3735\/ref-52","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.1605.07146","article-title":"Wide residual networks","author":"Zagoruyko","year":"2016"},{"key":"10.7717\/peerj-cs.3735\/ref-53","first-page":"12310","article-title":"Barlow twins: self-supervised learning via redundancy reduction","author":"Zbontar","year":"2021"},{"key":"10.7717\/peerj-cs.3735\/ref-54","first-page":"4424","article-title":"Improving generalization of adversarial training via robust critical fine-tuning","author":"Zhu","year":"2023"},{"key":"10.7717\/peerj-cs.3735\/ref-55","article-title":"Reliable adversarial distillation with unreliable teachers","author":"Zhu","year":"2021"},{"key":"10.7717\/peerj-cs.3735\/ref-56","first-page":"16443","article-title":"Revisiting adversarial robustness distillation: robust soft labels make student better","author":"Zi","year":"2021"}],"container-title":["PeerJ Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/peerj.com\/articles\/cs-3735.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-3735.xml","content-type":"application\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-3735.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-3735.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,4,6]],"date-time":"2026-04-06T08:23:02Z","timestamp":1775463782000},"score":1,"resource":{"primary":{"URL":"https:\/\/peerj.com\/articles\/cs-3735"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,6]]},"references-count":56,"alternative-id":["10.7717\/peerj-cs.3735"],"URL":"https:\/\/doi.org\/10.7717\/peerj-cs.3735","archive":["CLOCKSS","LOCKSS","Portico"],"relation":{},"ISSN":["2376-5992"],"issn-type":[{"value":"2376-5992","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,6]]},"article-number":"e3735"}}