Quantum integration in swin transformer mitigates overfitting in breast cancer screening

Z Zongyu Xie X Xiaoguang Yang S Shuni Zhang J Jingru Yang Y Yun Zhu (Department of Chemistry) A Aoqi Zhang H Haitao Sun (State Key Laboratory of Precision Spectroscopy, School of Physics) Q Qun Dai L Lei Li H Hongde Liu W Wenlong Ming M Menghan Dou

Abstract

Abstract To explore the potential of quantum computing in advancing transformer-based deep learning models for breast cancer screening, this study introduces the Quantum-Enhanced Swin Transformer (QEST). This model integrates a Variational Quantum Circuit (VQC) to replace the fully connected layer responsible for classification in the Swin Transformer architecture. In simulations, QEST exhibited competitive accuracy and generalization performance compared to the original Swin Transformer, while also demonstrating an effect in mitigating overfitting. Specifically, in 16-qubit simulations, the VQC reduced the parameter count by 62.5% compared with the replaced fully connected layer and improved the Balanced Accuracy (BACC) by 3.62% in external validation. Furthermore, validation experiments conducted on an actual quantum computer have corroborated the effectiveness of QEST.

Article Details

Volume / Issue Vol. 15, Issue 1
Published August 27, 2025
ISSN 2045-2322
Publisher Nature Portfolio

Journal Info

Scientific Reports

Nature Portfolio

ISSN: 2045-2322 Open Access Life Sciences

Authors (12)

Z

Zongyu Xie

X

Xiaoguang Yang

S

Shuni Zhang

J

Jingru Yang

Y

Yun Zhu

Department of Chemistry

A

Aoqi Zhang

H

Haitao Sun

State Key Laboratory of Precision Spectroscopy, School of Physics

Q

Qun Dai

L

Lei Li

H

Hongde Liu

W

Wenlong Ming

M

Menghan Dou