Performance of ChatGPT and Bard on the medical licensing examinations varies across different cultures: a comparison study Authors: Yikai Chen, Xiujie Huang, Fangjie Yang, Haiming Lin, Haoyu Lin, Zhuoqun Zheng, Qifeng Liang, Jinhai Zhang, Xinxin Li Published: 2024 ABSTRACT BackgroundThis study aimed to evaluate the performance of GPT-3.5, GPT-4, GPT-4o and Google Bard on the United States Medical Licensing Examination (USMLE), the Professional and Linguistic Assessments Board (PLAB), the Hong Kong Medical Licensing Examination (HKMLE) and the National Medical Licensing Examination (NMLE).MethodsThis study was conducted in June 2023. Four LLMs (Large Language Models) (GPT-3.5, GPT-4, GPT-4o and Google Bard) were applied to four medical standardized tests (USMLE, PLAB, HKMLE and NMLE). All questions are multiple-choice questions and were sourced from the question banks of these examinations.ResultsIn USMLE step 1, step 2CK and Step 3, there are accuracy rates of 91.5%, 94.2% and 92.7% provided from GPT-4o, 93.2%, 95.0% and 92.0% provided from GPT-4, 65.6%, 71.6% and 68.5% provided from GPT-3.5, and 64.3%, 55.6%, 58.1% from Google Bard, respectively. In PLAB, HKMLE and NMLE, GPT-4o scored 93.3%, 91.7% and 84.9%, GPT-4 scored 86.7%, 89.6% and 69.8%, GPT-3.5 scored 80.0%, 68.1% and 60.4%, and Google Bard scored 54.2%, 71.7% and 61.3%. There was significant difference in the accuracy rates of four LLMs in the four medical licensing examinations.ConclusionGPT-4o performed better in the medical licensing examinations than other three LLMs. The performance of the four models in the NMLE examination needs further improvement.Clinical trial numberNot applicable.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12909-024-06309-x. Introduction The large language models (LLMs) developed by artificial intelligence (AI) has experienced explosive growth. LLMs will revolutionize medical education [1–3]. LLMs can help medical students memorize and understand a large amount of information, enabling them to get personalized and interactive learning experiences [2, 4]. LLMs can encourage self-directed learning and provide the opportunity to practice clinical decision-making for medical students [4]. LLMs could assist students in preparing for multiple-choice examinations and objective structured clinical examinations [5]. In China, a prominent advantage of LLMs may be that it can enable medical students in remote or resource-poor areas to receive better assistance. The Chat Generative Pre-Trained Transformer (ChatGPT) was developed by OpenAI (San Francisco, California) and was released in November 2022. ChatGPT is the most extensively studied LLMs, including GPT-3.5, GPT-4 and GPT-4o versions [6]. In March 2023, Google Bard, which is the LLM developed by Google (Mountain View, California), was released [7]. Both ChatGPT and Google Bard have the ability to generate text, translate languages, write different kinds of creative content, and answer questions in an informative way. They have both been used in studies for medical examinations in various countries [8–12]. The performance of ChatGPT and Google Bard varies across different medical examinations. In English-speaking countries, ChatGPT has achieved exciting results on the United States Medical Licensing Examination (USMLE) and the UK Standardized Admission Tests [13, 14]. While in the National Medical Licensing Examination (NMLE) in China, chatGPT did not meet the passing criteria and performed worse than Chinese students [15, 16]. While GPT-4 has demonstrated excellent performance in most examinations [8–10], Bard has also shown certain advantages in some examinations [9, 12]. Although the latest version of GPT, GPT-4o, has only been released for a short period, research has already shown that it performs well in the European Interventional Radiology Examination and the Japanese Medical Licensing Examination(JMLE) [17–19]. Notably, GPT-4o demonstrates higher accuracy than GPT-4 specifically in JMLE [19]. Current investigations remain devoid of explorations regarding the performance of ChatGPT and Bard, particularly GPT-4o, in medical standardized tests of different cultures. There is also a lack of comparative studies on the application of different models in the Chinese NMLE. Consequently, in the pursuit of this research, we propose an evaluation of GPT-4’s capabilities in clinical reasoning and medical education by scrutinizing its performance in standardized examinations such as the USMLE, the Professional and Linguistic Assessments Board (PLAB) test, the Hong Kong Medical Licensing Examination (HKMLE) and the NMLE. Among these exams, USMLE, PLAB, and HKMLE serve as benchmarks for global medical standards in English-speaking contexts, while the NMLE represents a standardized medical examination in Chinese-speaking regions. Collectively, these four standardized exams are highly recognized on an international level. This study aims to evaluate the performance of four LLMs (GPT-3.5, GPT-4, GPT-4o and Bard) on four licensing examinations (USMLE, PLAB, HKMLE and NMLE) and assess their knowledge and potential applications for medical education. Materials and methods Study design The cross-sectional study was conducted in June 2023. Four LLMs (GPT-3.5, GPT-4, GPT-4o and Google Bard) were applied to four medical standardized tests (USMLE, PLAB, HKMLE and NMLE) to compare the performance of the LLMs. As GPT-3.5 lacks image input capabilities, we excluded all questions containing images from its test set. Data set All questions were multiple-choice questions. The questions of USMLE, PLAB and HKMLE were written in English, while the questions of NMLE were written in Chinese. The sample questions were obtained from USMLE (www.usmle.org/prepare-your-exam), PLAB (https://www.gmc-uk.org/registration-and-licensing/join-the-register/plab), and HKMLE (https://leip.mchk.org.hk/EN/quiz.html). In detail, we acquired 592 USMLE sample questions, 30 PLAB part I sample questions, and 48 HKMLE part I sample questions. For USMLE, the update times for the Step 1, Step 2CK, and Step 3 question banks were June 2022, March 2023, and August 2022, respectively. The HKMLE question bank was last updated in March 2021. We also referred to the NMLE official sample question book published in 2023, extracting 10 questions from each topic (or all if less than 10), ultimately integrating into a collection of 139 questions to evaluate ChatGPT’s performance in NMLE. We also categorized the test questions based on each official exam guideline to evaluate the performance of the four LLMs across different medical topics. Although the passing thresholds for the USMLE and PLAB vary slightly each year, they generally remain around the 60% level [20, 21]. Similarly, the NMLE’s passing threshold is set at 60%. As for the HKMLE, its pass rate varies by the year of the paper, with an average pass rate of 32.8% over the past three years [22]. Prompt engineering The input format of the dataset was standardized first, as prompt engineering has been proven to significantly affect the output of generative language models [23]. The input directives were established as follows: “Please answer the following medical question, choose the correct answer, and provide an explanation.”. Notably, since HKMLE Part II requires answers to be written on a specific answer book and mainly evaluates the English proficiency of participants. Each candidate must pass Part I and Part II Examinations before applying for Part III. Moreover, Part III is an OSCE examination, so we chose only the first part’s questions for our test. This was done to ensure the accuracy of ChatGPT’s responses relied entirely on its ability to synthesize medical knowledge from descriptive texts and make accurate judgments, rather than parsing complex textual inputs [14]. Example of question prompt and answers is presented in Fig. 1. No additional pre-training was conducted in the study. The researchers manually input all questions into GPT-4o, GPT-4, GPT-3.5, and Google Bard, collected their responses. Subsequently, the answers generated by the models were compared with the standard answers, and the corresponding scores were calculated. Fig. 1Template of question posed to ChatGPT and the responses from ChatGPT Template of question posed to ChatGPT and the responses from ChatGPT Statistical methods Statistical analyses were conducted using the SPSS 21.0 (IBM Corp., Amronk, NewYork, United States). The responses generated by GPT-4o, GPT-4, GPT-3.5 and Bard were documented and corroborated, followed by categorization of the questions by subject. Categorical variables are presented as frequencies and percentages. Chi-square tests and Fisher exact tests were used for comparisons between groups. P < 0.05 was considered statistically significant. For post-hoc tests following a Chi-square, the Bonferroni correction was applied for adjusting P-value. Result Performance of GPT-4o, GPT-4, GPT-3.5 and Google Bard on USMLE, PLAB, HKMLE and NMLE Due to the limitations of GPT-3.5 in processing image inputs and the ethical review of questions by the four LLMs, some questions cannot be answered by these LLMs. GPT-4o, GPT-4, GPT-3.5, and Google Bard answered 592, 591, 542, and 516 questions from four examinations, respectively, with corresponding accuracy rates of 87.1%, 67.2%, and 60.8%. In USMLE step 1, step 2CK and Step 3, GPT-4o provided correct answers with accuracy rates of 91.5%, 94.2%, and 92.7%, which GPT-4 provided correct answers with accuracy rates of 93.2%, 95.0%, and 92.0%, while GPT-3.5 provided answers with accuracy rates of 65.6% 71.6% and 68.5%, and Google Bard provided answers with accuracy rates of 64.3%, 55.6%, and 58.1%, respectively. In the other three examinations, PLAB, HKMLE and NMLE, GPT-4 scored 86.7%, 89.6% and 69.8%, GPT-3.5 scored 80.0%, 68.1% and 60.4%, and Google Bard scored 54.2%, 71.7% and 61.3% (Table 1). On the overall questions (all the questions in total) from USMLE, PLAB, HKMLE and NMLE, the accuracy rate for answering questions is ranked in descending order as follows: GPT-4o (90.9%), GPT-4 (87.1%), GPT-3.5 (67.2%), and Google Bard (60.9%). There was not significantly difference on the performance on the overall questions between GPT-4o and GPT-4 (p = 0.040). The accuracy rate of GPT-4o and GPT-4 is significantly higher than that of GPT-3.5 and Google Bard (both p < 0.001). In the meanwhile, there was not significantly difference on the performance on the overall questions between GPT-3.5 and Google Bard (p = 0.027). The performance on USMLE, PLAB, HKMLE and NMLE significantly vary among four LLMs. Except NMLE (p = 0.003), there was not significantly difference on the performance on the overall questions between GPT-4o and GPT-4 on USMLE step 1 (p = 0.637), step 2CK (p = 0.776), Step 3 (p = 0.820), PLAB (p = 0.671) and HKMLE (p = 1.000). GPT-4o’s score surpassed GPT-3.5 on USMLE step 1 (p < 0.001), step 2CK (p < 0.001), Step 3 (p < 0.001) and HKMLE (p = 0.010), and surpassed Google Bard on USMLE step 1(p < 0.001), step 2CK(p < 0.001), Step 3 (p < 0.001), HKMLE (0.012) and PLAB(p <0.001). GPT-4’s score surpassed GPT-3.5 on USMLE step 1 (p < 0.001), step 2CK (p < 0.001), Step 3 (p < 0.001) and HKMLE (p = 0.010), and surpassed Google Bard on USMLE step 1(p < 0.001), step 2CK(p < 0.001), Step 3 (p < 0.001) and PLAB(p = 0.008). On the contrary, there was not significantly difference between GPT-3.5 and Google Bard on USMLE, PLAB, HKMLE and NMLE. There was no significant difference in the accuracy rates between any two of GPT-4, GPT-3, and Google Bard in the NMLE (p = 0.102, p = 0.102, p = 1.000) (Table 2). Table 1Performance of GPT-4o, GPT-4, GPT-3.5 and Google Bard in USMLE, PLAB, HKMLE and NMLE.GPT-4o (n/N, %)GPT-4 (n/N, %)GPT-3.5 (n/N, %)Google Bard (n/N, %)Overall538/592(90.9%)515/591(87.1%)364/542(67.2%)314/516(60.9%)USMLEStep 1 (119)108/118(91.5%)109/117(93.2%)61/93(65.6%)73/114(64.3%)Step 2CK (120)113/120(94.2%)114/120(95.0%)78/109(71.6%)50/90(55.6%)Step 3 (137)127/137(92.7%)126/137(92.0%)85/124(68.5%)61/105(58.1%)PLAB (30)28/30(93.3%)26/30(86.7%)24/30(80.0%)13/24(54.2%)HKMLE (48)44/48(91.7%)43/48(89.6%)32/47(68.1%)33/46(71.7%)NMLE (139)118/139(84.9%)97/139(69.8%)84/139(60.4%)84/137(61.3%)USMLE = United State Medical Licensing Examination; PLAB = Professional and Linguistic Assessments Board; HKMLE = Hong Kong Medical Licensing Examination; NMLE = National Medical Licensing Examination Table 1Performance of GPT-4o, GPT-4, GPT-3.5 and Google Bard in USMLE, PLAB, HKMLE and NMLE.GPT-4o (n/N, %)GPT-4 (n/N, %)GPT-3.5 (n/N, %)Google Bard (n/N, %)Overall538/592(90.9%)515/591(87.1%)364/542(67.2%)314/516(60.9%)USMLEStep 1 (119)108/118(91.5%)109/117(93.2%)61/93(65.6%)73/114(64.3%)Step 2CK (120)113/120(94.2%)114/120(95.0%)78/109(71.6%)50/90(55.6%)Step 3 (137)127/137(92.7%)126/137(92.0%)85/124(68.5%)61/105(58.1%)PLAB (30)28/30(93.3%)26/30(86.7%)24/30(80.0%)13/24(54.2%)HKMLE (48)44/48(91.7%)43/48(89.6%)32/47(68.1%)33/46(71.7%)NMLE (139)118/139(84.9%)97/139(69.8%)84/139(60.4%)84/137(61.3%)USMLE = United State Medical Licensing Examination; PLAB = Professional and Linguistic Assessments Board; HKMLE = Hong Kong Medical Licensing Examination; NMLE = National Medical Licensing Examination Performance of GPT-4o, GPT-4, GPT-3.5 and Google Bard in USMLE, PLAB, HKMLE and NMLE. USMLE = United State Medical Licensing Examination; PLAB = Professional and Linguistic Assessments Board; HKMLE = Hong Kong Medical Licensing Examination; NMLE = National Medical Licensing Examination Table 2Comparison of performance among GPT-4o, GPT-4, GPT-3.5 and Google Bard and Google Bard in USMLE, PLAB, HKMLE and NMLE P 4o,4.0, 3.5 & Bard4o vs. 4.0**4o vs. 3.5**4o vs. bard**4.0 vs. 3.5**4.0vsBard**3.5vsBard**Overall<0.0010.040<0.001<0.001<0.001<0.0010.027USMLEStep 1 (119)<0.0010.637<0.001<0.001<0.001<0.0010.814Step 2CK (120)<0.0010.776<0.001<0.001<0.001<0.0010.019Step 3 (137)<0.0010.820<0.001<0.001<0.001<0.0010.101PLAB (30)<0.0050.671*0.254*<0.0010.4880.0080.042HKMLE (48)<0.0051.000*0.0040.0120.0100.0280.701NMLE (139)<0.0010.003<0.001<0.0010.1020.1021.000Note * Fisher exact tests** The significance of the P value was assessed at 0.0125 (0.05/4) after Bonferroni correction4o = GPT-4o; 4.0 = GPT-4; 3.5 = GPT-3.5;bard = Google Bard Table 2Comparison of performance among GPT-4o, GPT-4, GPT-3.5 and Google Bard and Google Bard in USMLE, PLAB, HKMLE and NMLE P 4o,4.0, 3.5 & Bard4o vs. 4.0**4o vs. 3.5**4o vs. bard**4.0 vs. 3.5**4.0vsBard**3.5vsBard**Overall<0.0010.040<0.001<0.001<0.001<0.0010.027USMLEStep 1 (119)<0.0010.637<0.001<0.001<0.001<0.0010.814Step 2CK (120)<0.0010.776<0.001<0.001<0.001<0.0010.019Step 3 (137)<0.0010.820<0.001<0.001<0.001<0.0010.101PLAB (30)<0.0050.671*0.254*<0.0010.4880.0080.042HKMLE (48)<0.0051.000*0.0040.0120.0100.0280.701NMLE (139)<0.0010.003<0.001<0.0010.1020.1021.000Note * Fisher exact tests** The significance of the P value was assessed at 0.0125 (0.05/4) after Bonferroni correction4o = GPT-4o; 4.0 = GPT-4; 3.5 = GPT-3.5;bard = Google Bard Comparison of performance among GPT-4o, GPT-4, GPT-3.5 and Google Bard and Google Bard in USMLE, PLAB, HKMLE and NMLE Note * Fisher exact tests ** The significance of the P value was assessed at 0.0125 (0.05/4) after Bonferroni correction 4o = GPT-4o; 4.0 = GPT-4; 3.5 = GPT-3.5;bard = Google Bard Performance of GPT-4o, GPT-4 GPT-3.5 and Google Bard on USMLE, PLAB, HKMLE and NMLE, stratified by subject category In the medical licensing examination, the performance of the four LLMs varied across different subjects. Specifically, in the USMLE, both GPT-4o and GPT-4 excelled by scoring over 80% in most subjects. However, their performance dipped in the categories of the hematolymphoid systems, and behavioral health, which was lower than 70%. As for PLAB and HKMLE, GPT-4o scored over 80% in all subjects. However, for PLAB and HKMLE, GPT-4’s accuracy was notably lower in medical ethics and orthopedics questions, with accuracies of only 50% and 66.6% respectively. On the other hand, GPT-3.5 and Google Bard scored below 60% in several subjects for both the USMLE and PLAB. In USMLE Step 2 CK, GPT-3.5’s accuracy was only 33.3% for questions related to the immune system and basic sciences. For questions involving multiple disciplines, Google Bard’s accuracy stood at just 22.2%. Their performance in questions on doctor-patient communication and medical ethics also lagged significantly behind that of GPT-4o and GPT-4. As for NMLE, GPT-4o performed well in NMLE by scoring over 70% in all subjects except neurology scored 60.0%. Overall, these four LLMs faced challenges in the NMLE, with the accuracy of GPT-4, GPT-3.5, and Bard all failing to reach 70% accuracy. GPT-4o’s accuracy also declined compared to its performance on the other three English-based exams. Notably, in neurology, the accuracy rates of GPT-4, GPT-3.5 and Google Bard was 30%, 30% and 40%, respectively. Additionally, in pediatrics and surgery, the rates did not surpass 60%. (Supplementary Table 1, Fig. 2). Fig. 2The performance of GPT-4o, GPT-4, GPT-3.5 and Google Bard in USMLE (a) Step 1, (b) Step 2, (c) Step 3, (d)PLAB, (e)HKMLE and (f) NMLE, stratified by subject category The performance of GPT-4o, GPT-4, GPT-3.5 and Google Bard in USMLE (a) Step 1, (b) Step 2, (c) Step 3, (d)PLAB, (e)HKMLE and (f) NMLE, stratified by subject category Performance of GPT-4o, GPT-4, and Google Bard on imaging-based questions In the overall questions based on images from USMLE, the accuracy rates of GPT-4o, GPT-4, GPT-3.5 and Google Bard significantly varied from 44/49(89.8%), 87.5% (42/48), 12/24(50%), respectively. However, there was no significant difference found between GPT-4o and GPT-4, while both them outperformed Google Bard by 39.8% (p < 0.001) and 37.5% (p < 0.001). GPT-4o scored 80.0% (20/25), 100% (11/11) and 100% (13/13) in USLME Step 1, Step 2CK and Step 3. GPT-4 scored 83.3% (20/24), 100% (11/11) and 84.6% (11/13) in USLME Step 1, Step 2CK and Step 3. Google Bard scored 50% (11/22) in USLME Step 1 which was significantly lower than GPT-4, and 50% (1/2) in Step 3 (Table 3). Table 3Performance of GPT-4o, GPT-4 and Google Bard in imaging-based questions in USMLEGPT-4o(n/N, %)GPT-4(n/N, %)Google Bard(n/N, %) P 4o, 4.0 & bard4o vs. 4.0**4o vs. bard**4.0 vs. bard**Overall44/49(89.8%)42/48(87.5%)12/24(50%)<0.0010.721432<0.001<0.001USMLEStep 1 (119)20/25(80.0%)20/24(83.3%)11/22(50%)0.0226451.000*0.0300.016Step 2CK (120)11/11(100%)11/11(100%)-----Step 3 (137)13/13(100%)11/13(84.6%)1/2(50%)0.103175*0.480*0.133*0.255Note * Fisher exact tests** The significance of the P value was assessed at 0.0167 (0.05/3) after Bonferroni correction4o = GPT-4o; 4.0 = GPT-4; 3.5 = GPT-3.5;bard = Google Bard Table 3Performance of GPT-4o, GPT-4 and Google Bard in imaging-based questions in USMLEGPT-4o(n/N, %)GPT-4(n/N, %)Google Bard(n/N, %) P 4o, 4.0 & bard4o vs. 4.0**4o vs. bard**4.0 vs. bard**Overall44/49(89.8%)42/48(87.5%)12/24(50%)<0.0010.721432<0.001<0.001USMLEStep 1 (119)20/25(80.0%)20/24(83.3%)11/22(50%)0.0226451.000*0.0300.016Step 2CK (120)11/11(100%)11/11(100%)-----Step 3 (137)13/13(100%)11/13(84.6%)1/2(50%)0.103175*0.480*0.133*0.255Note * Fisher exact tests** The significance of the P value was assessed at 0.0167 (0.05/3) after Bonferroni correction4o = GPT-4o; 4.0 = GPT-4; 3.5 = GPT-3.5;bard = Google Bard Performance of GPT-4o, GPT-4 and Google Bard in imaging-based questions in USMLE Note * Fisher exact tests ** The significance of the P value was assessed at 0.0167 (0.05/3) after Bonferroni correction 4o = GPT-4o; 4.0 = GPT-4; 3.5 = GPT-3.5;bard = Google Bard Discussion The present study assessed the performance of GPT-3.5, GPT-4, GPT-4o and Google Bard in medical licensing examinations. Compared to GPT-3.5 and Google Bard, GPT-4o and GPT-4 exhibits superior capabilities in handling complex medical and clinical tasks. To the best of our knowledge, our study is among the few that have evaluated this aspect to date. Our findings can be divided into two main themes: [1] GPT-4o and GPT-4, in comparison to GPT-3.5 and Google Bard, has significantly improved in accuracy, exceeding the passing threshold of four standardized medical examinations; [2] The varied performance of the four LLMs across different cultures, disciplines, and subjects. Following the release of GPT-3.5 by OpenAI, researchers quickly tested its performance in the USMLE, finding that GPT-3.5’s accuracy exceeded 50% in most assessments, and in some analyses, even surpassed 60% [14, 20]. Upon GPT-4’s introduction, subsequent studies indicated a notable increase in accuracy for USMLE [14]. At the same time, Google Bard also performed well in medical examinations [8, 24]. However, the situation differs significantly in the NMLE. Our research indicates that all four LLMs showed a decline in accuracy on the NMLE, with GPT-4, GPT-3.5, and Bard all failing to reach the 70% accuracy threshold. Even GPT-4o demonstrated lower accuracy compared to its performance on the other three English-based exams. This outcome could be attributed to multiple factors. Firstly, the training datasets of ChatGPT and Google Bard were mainly derived from English data, potentially restricting their effectiveness in non-English contexts. Previous studies highlighted similar situations [25], for example, ChatGPT’s accuracy in the NMLE examination was 56%, but in translated versions, the accuracy was 76% [26]. In addition, previous studies have also discovered that ChatGPT scored 79.9% in the JMLE, another non-English medical examination, which is lower than the average candidate score of 84.9% [27]. Recent research also demonstrates that GPT-4o’s accuracy on the JMLE is significantly higher than that of GPT-4, although it remains lower than its performance on the USMLE [19]. This finding indirectly supports the reliability of our study. Secondly, NMLE is structured as a multiple-choice examination, requiring the model to select the best answer from given options. This indicates LLMs still face challenges in identifying the most suitable answer. Furthermore, the NMLE’s examination content is focuses more on China’s healthcare situation, touching upon medical policies and legal contexts unique to China. For instance, there are significant legal differences between China and Western countries on issues such as abortion and euthanasia [28]. Such differences might result in biases in LLMs when tackling these issues, given their training predominantly on Western healthcare data and laws. Simultaneously, epidemiological data unique to China is a significant factor affecting LLMs’ performance. Some diseases have markedly different incidences and prevalence between China and Western countries, with some data only available in Chinese. The potential inadequacy of exposure to such data during training might lead to subpar performance by LLMs on relevant matters. Lastly, there are differences in medical communication styles between China and Western countries. In the patient communication questions of NMLE, the three LLMs performed worse than in the physician examinations of other countries. This may be due to difficulties LLMs have in simulating communication between Chinese doctors and patients, failing to accurately understand and respond to patients’ needs and emotions. In conclusion, factors such as language, culture, law, and data acquisition may all impact LLMs’ performance in medical examinations within a Chinese context. The four LLMs demonstrated varying accuracies in different medical licensing examinations. Overall, GPT-4o performed the best in these examinations, with its accuracy in all four medical licensing examinations surpassing that of the other three LLMs. It also outperformed GPT-4 and Bard in accuracy on imaging-based questions. In the three steps of the USMLE, GPT-4o’s and GPT-4’s accuracy improved compared to before, and its accuracy in HKMLE was significantly higher than the examination’s average passing rate of 32.8% over the past three years [29]. Furthermore, in the Peruvian medical licensing examination, GPT-4 achieved an accuracy of 86%, surpassing the average candidate score of 54% [10]. In JMLE, GPT-4o reached an accuracy rate of 89.2%, exceeding the average candidate score [19]. These achievements should be attributed to OpenAI’s continuous optimization of the model, also demonstrating that GPT-4o and GPT-4 performs consistently in English-language medical licensing examinations. In contrast, Google Bard and GPT-3.5 exhibited similar performance levels across the four medical licensing examinations, consistent with previous research findings. Some studies have found that Bard even outperforms GPT-4 in certain specific examinations [24]. In contrast to ChatGPT, Bard exhibits considerable fluctuations in accuracy across standardized medical exams. Its accuracy in USMLE Step 1, USMLE Step 2, and PLAB exam remains below 60%. In the three English-language standardized medical exams, GPT-4o consistently achieved an accuracy rate above 90%, significantly surpassing the passing scores of all three exams. In the NMLE, GPT-4o also attained a score of 84.9%, notably outperforming GPT-4. These results can be attributed to OpenAI’s ongoing model optimizations, which also highlight the stability of GPT-4o’s performance in English-language medical licensing exams. Naturally, GPT-4o, similar to other LLMs, also faces the issue of “hallucination”, meaning the generated text might include errors that appear semantically or grammatically logical but are in fact incorrect or nonsensical [30]. GPT-4o may occasionally exhibit flawed reasoning while still arriving at the correct final answer [31]. However, despite these imperfections, OpenAI’s ongoing updates and refinements have enabled GPT-4o to be available for limited free use. Currently, GPT-4o demonstrates the most impressive performance in standardized medical exams, potentially making it the most suitable LLM for medical students and educators. Our research additionally revealed notable variations in the accuracy rates of the four LLMs across various disciplines. In USMLE, GPT-4o and GPT-4 demonstrated higher accuracy in questions involving medical knowledge of a single system compared to the other two LLMs. However, when the questions integrated knowledge from multiple systems, the performance of the three LLMs other than GPT-4o was less than satisfactory, failing to provide satisfactory answers. This finding indicates that although LLMs excel in certain specific medical fields, they still face challenges in dealing with more complex, interdisciplinary medical scenarios, further confirming previous research results about limitations of LLMs in complex medical tasks [32–35]. Simultaneously, in tests of certain subjects, we found that the LLMs performed relatively poorly, with a higher error rate. GPT-4’s accuracy in orthopedics in the HKMLE and neurology in the NMLE was only 66.7% and 30%, respectively. Previous studies have also demonstrated the limitations of LLMs when applied in specialized medical fields [36, 37]. This may be due to subspecialty examinations typically presenting more complex clinical scenarios, requiring higher levels of reasoning skills and the ability to synthesize information from multiple sources. Since LLMs are not specifically trained for the medical field, although they can understand context, they may struggle with these complex specific scenarios, possibly leading to insufficient accuracy due to a lack of data representativeness. With the continuous updates of these models, such as GPT-4o and future iterations, this challenge can gradually be overcome. We also conducted an interesting experiment aimed at testing the self-correction capabilities of three LLMs. When faced with their incorrect responses, we attempted to correct them and provided the right answers, which they would change after our correction. However, when we initiated a new session and re-entered the same questions, these models still reverted to the original incorrect responses. This finding indicates that although the models are capable of self-correction within a single session, they are unable to retain this corrected knowledge across sessions. This limitation may stem from the fact that current LLMs largely depend on extensive data supplied by developers during training, without effectively integrating feedback from regular users into the training process. This means that although users can correct errors in a single session, these corrections fail to change the model’s behavior in a broader context. It has also been noted that continuous user feedback and model improvements by developers are expected to improve the self-correcting ability of LLM chatbots over time [38]. Although challenges such as ethical and legal issues, bias risks, content accuracy, and public acceptance must still be addressed, numerous practical and observational studies support the utilization of LLMs in the medical field [39]. Moreover, it’s undeniable that the emergence of GPT-4o and Google Bard has showcased different directions in AI development. GPT-4o represents continuous iterations on its original training to achieve higher performance levels. The internet connectivity feature of Google Bard enables AI to persistently learn current information, thereby furnishing users with superior responses. With the ongoing iteration and refinement of LLMs, their latest versions have progressively enhanced capabilities for processing complex text, images, video, and audio. Medical students can leverage LLMs to synthesize knowledge across diverse medical disciplines, enabling them to manage complex, interdisciplinary cases more effectively. Additionally, LLMs’ interactive features allow for clinical scenario simulations, providing performance-based feedback that supports medical students in steadily developing their clinical competence. Besides medical education, LLMs like ChatGPT have shown extensive application potential in clinical practice and scientific research. Research shows that ChatGPT can bolster clinical decision support [40] and act as an auxiliary resource for patients [41, 42], while also serving as a powerful tool for scientific research [43]. We believe that with the continuous development of LLMs, they are poised to become indispensable support tools for medical scholars, practitioners, patients, and researchers, significantly contributing to the advancement of medical science and patient care. Limitation There are a few limitations to this study. Firstly, ChatGPT was initially trained on a corpus comprised of data available up to or before 2021. Although some of the sample questions we used are from 2022 and beyond, the examination syllabus has not undergone significant changes, thus not being affected by the timeliness of the ChatGPT training dataset. Secondly, the ethical constraints imposed on LLMs mean that certain questions may not be processed through their review process, thus hindering the acquisition of valid responses. Finally, we repeatedly attempted to correct the LLMs, but when starting a new session, these models still returned the original erroneous answers. This limitation may stem from the fact that current LLMs still largely depend on the extensive data provided by developers during training. However, these are the common problems faced by researchers. With the ongoing learning and iteration of LLMs, we are optimistic about the progressive enhancement of their AI capabilities, which is expected to enable researchers to conduct more comprehensive tests in the medical field. Conclusion In conclusion, our research results show that GPT-4o and GPT-4 demonstrated consistently strong performance across evaluations, while the results of GPT-3.5 and Google Bard were more variable and inconsistent, with Google Bard even failing to meet the passing threshold in certain examinations. However, the performance of the four models in the NMLE examination needs further improvement. GPT-4o and GPT-4 have a significant performance advantage over GPT 3.5 and Google Bard in the English-language medical licensing examinations. Taking into account the internet connectivity and better accessibility of GPT-4o, it may be more suitable for medical students after continuous improvement and development. Moreover, we acknowledge that while LLMs exhibit significant potential in medical examination preparation, they also encounter several challenges and limitations. Therefore, ongoing strategy exploration and evaluations are essential to enhance and confirm the effectiveness of these tools further. As technology continuously advances and models are further optimized, we anticipate more advanced LLM chatbots playing an increased role in medical education and examination preparation, offering more accurate and efficient learning support and decision-making assistance to medical students, residents, and experienced physicians. Electronic supplementary material Below is the link to the electronic supplementary material. Supplementary Material 1 Supplementary Material 1