Comparison of LLM Prompting Strategies for Identifying Indonesian-Language Hoax Narratives
DOI:
https://doi.org/10.58344/jws.v5i9.1715Keywords:
Large Language Model, Hoax Detection, Zero-Shot Prompting, Few-Shot Prompting, Text Classification, Indonesian LanguageAbstract
Large language models (LLMs) can classify text through instructions alone, but their output may depend on the prompting strategy, and the effect of adding labelled examples on the identification of Indonesian-language hoax narratives has rarely been tested empirically. This study aimed to (1) compare the initial results of zero-shot and few-shot prompting with 2, 4, and 8 examples, (2) examine the relationship between the number of examples and latency, and (3) formulate a validation protocol for trustworthy HOAX/NON-HOAX evaluation. A comparative quantitative experiment applied the four configurations to a single LLM accessed through an API, using a dataset of 4,000 narratives (1,000 HOAX and 3,000 NON-HOAX). Recorded accuracy, macro-F1, and mean latency were audited analytically through single-class metric identities, 95% Wilson intervals, and a least-squares latency trend. The recorded test set contained only 400 HOAX items, and every recorded macro-F1 equalled A/(1 + A); the recorded accuracies (86.75%, 65.75%, 70.50%, and 52.00%) therefore represent hoax recall rather than binary performance. Hoax recall was highest for zero-shot, and its gap from every few-shot configuration exceeded sampling uncertainty. Mean latency rose almost linearly from 0.418 to 0.923 seconds, about 0.065 seconds per added example, reaching 2.21 times the zero-shot value. Adding examples increased computational cost without improving hoax recall, whereas binary classification performance remains undetermined. Because the model identity and few-shot examples were not preserved, the proposed protocol stratified splitting, leakage-free example selection, per-class metrics, and complete model documentation must be satisfied before any configuration is declared superior.
References
Aïmeur, E., Amri, S., & Brassard, G. (2023). Fake news, disinformation and misinformation in social media: a review. Social Network Analysis and Mining, 13(1), 30. https://doi.org/10.1007/s13278-023-01028-5
Al Amin, M. Z., Furqon, M. A., & Wijonarko, D. (2025). Indonesian hoax news detection using one-dimensional convolutional neural network. Jurnal Nasional Teknik Elektro Dan Teknologi Informasi, 14(2), 161–169. https://doi.org/10.22146/jnteti.v14i2.19050
Balloccu, S., Schmidtová, P., Lango, M., & Dusek, O. (2024). Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMs. Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), 67–93. https://doi.org/10.18653/v1/2024.eacl-long.5
Chen, C., & Shu, K. (2024). Combating misinformation in the age of LLMs: Opportunities and challenges. AI Magazine, 45(3), 354–368. https://doi.org/10.1002/aaai.12188
Dong, Q., Li, L., Dai, D., Zheng, C., Ma, J., Li, R., Xia, H., Xu, J., Wu, Z., Chang, B., Sun, X., Li, L., & Sui, Z. (2024). A Survey on In-context Learning. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 1107–1128. https://doi.org/10.18653/v1/2024.emnlp-main.64
Du, M., He, F., Zou, N., Tao, D., & Hu, X. (2024). Shortcut Learning of Large Language Models in Natural Language Understanding. Communications of the ACM, 67(1), 110–120. https://doi.org/10.1145/3596490
Guo, Z., Schlichtkrull, M., & Vlachos, A. (2022). A Survey on Automated Fact-Checking. Transactions of the Association for Computational Linguistics, 10, 178–206. https://doi.org/10.1162/tacl_a_00454
Haupt, M. R., Yang, L., Purnat, T., & Mackey, T. (2024). Evaluating the influence of role-playing prompts on ChatGPT’s misinformation detection accuracy: Quantitative study. JMIR Infodemiology, 4, e60678. https://doi.org/10.2196/60678
Hu, B., Sheng, Q., Cao, J., Shi, Y., Li, Y., Wang, D., & Qi, P. (2024). Bad Actor, Good Advisor: Exploring the Role of Large Language Models in Fake News Detection. Proceedings of the AAAI Conference on Artificial Intelligence, 38(20), 22105–22113. https://doi.org/10.1609/aaai.v38i20.30214
Hu, Y., & Tian, X. (2025). Evaluating reasoning large language models on rumor generation, detection, and debunking tasks. IScience, 28(11), 113690. https://doi.org/10.1016/j.isci.2025.113690
Jiang, H., Wu, Q., Lin, C.-Y., Yang, Y., & Qiu, L. (2023). LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 13358–13376. https://doi.org/10.18653/v1/2023.emnlp-main.825
Jin, W., Gao, Y., Tao, T., Wang, X., Wang, N., Wu, B., & Zhao, B. (2025). Veracity-oriented context-aware large language models-based prompting optimization for fake news detection. International Journal of Intelligent Systems, 2025(1), 5920142. https://doi.org/10.1155/int/5920142
Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
Liu, J., Shen, D., Zhang, Y., Dolan, B., Carin, L., & Chen, W. (2022). What Makes Good In-Context Examples for GPT-3? Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, 100–114. https://doi.org/10.18653/v1/2022.deelio-1.10
Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., & Neubig, G. (2023). Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing. ACM Computing Surveys, 55(9), 1–35. https://doi.org/10.1145/3560815
Opitz, J. (2024). A Closer Look at Classification Evaluation Metrics and a Critical Reflection of Common Evaluation Practice. Transactions of the Association for Computational Linguistics, 12, 820–836. https://doi.org/10.1162/tacl_a_00675
Papageorgiou, E., Chronis, C., Varlamis, I., & Himeur, Y. (2024). A survey on the use of large language models (LLMs) in fake news. Future Internet, 16(8), 298. https://doi.org/10.3390/fi16080298
Pendyala, V. S., & Hall, C. E. (2024). Explaining misinformation detection using large language models. Electronics, 13(9), 1673. https://doi.org/10.3390/electronics13091673
Roslan, M. N. S., & Mohd, M. (2025). Performance comparison of zero-shot and two-shot prompting in detecting fake news using large language models. Malaysian Journal of Computer Science, 38, 130–140. https://doi.org/10.22452/mjcs.vol38spc.8
Safira, R. E., & Nurlayli, A. (2023). Comparative analysis of Indonesian news validity detection accuracy using machine learning. Journal of Engineering and Applied Technology, 4(1), 40–51. https://doi.org/10.21831/jeatech.v4i1.58791
Yefferson, D. Y., Lawijaya, V., & Girsang, A. S. (2024). Hybrid model: IndoBERT and long short-term memory for detecting Indonesian hoax news. IAES International Journal of Artificial Intelligence (IJ-AI), 13(2), 1913. https://doi.org/10.11591/ijai.v13.i2.pp1913-1924
Ziems, C., Held, W., Shaikh, O., Chen, J., Zhang, Z., & Yang, D. (2024). Can Large Language Models Transform Computational Social Science? Computational Linguistics, 50(1), 237–291. https://doi.org/10.1162/coli_a_00502
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Silvie Zahwa Ardiansyah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike 4.0 International. that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.






