AUTOMATIC QUESTION GENERATION USING OPEN-WEIGHT MODELS: A COMPARISON OF DIRECT GENERATION, RAG, AND MULTI-AGENT SYSTEMS IN TERMS OF COMPUTATIONAL COST AND STRUCTURAL COMPLIANCE

Authors

  • Arthur Sousa Furtado Author
  • Carlos Antonio dos Santo Mello Junior Author
  • Dadilton Bastos Melo Author
  • Thiago Nelson Faria dos Reis Author

DOI:

https://doi.org/10.56238/arev8n11-037

Keywords:

Automatic Question Generation, Large Language Models, Retrieval-Augmented Generation, Multi-Agent Systems, Computational Cost, Open-Weight Models

Abstract

Automatic question generation can support the creation of educational activities, but its cost and output structure depend on implementation. This study compares direct generation (A0), Retrieval-Augmented Generation (A1), and a graph-coordinated multi-agent system (A2), using local gemma3:1b, granite3.1-moe:1b, and llama3.2:1b models across ten Software Engineering topics. The balanced dataset includes 270 runs, three per approach–model–topic combination, and 1,223 recorded questions. Median execution time and total tokens were 4.32 seconds and 1,238.5 for A0, 7.91 seconds and 3,120.5 for A1, and 20.77 seconds and 13,951 for A2. Exploratory model–topic block analysis identified differences in time and tokens, with significant pairwise comparisons after Holm correction. Structurally conforming items accounted for 28.8% in A0, 14.0% in A1, and 33.8% in A2. The multi-agent system returned five questions in every run, but no run contained five simultaneously conforming items. Higher RAG cost coexisted with lower observed conformity; differences in prompts and implementation prevent attributing this result exclusively to retrieval. Structural evaluation does not establish conceptual correctness or pedagogical quality.

Downloads

Download data is not yet available.

References

ALSHEHRI, Aziz. Developing a multi-layer agent framework to enhance AI-generated educational questions for cybersecurity. Journal of Umm Al-Qura University for Engineering and Architecture, v. 16, p. 1045-1056, 2025. DOI: 10.1007/s43995-025-00136-x. DOI: https://doi.org/10.1007/s43995-025-00136-x

DUAN, Xiaojing; NWANGANGA, Frederick; WANG, Chaoli. CODE-GEN: a human-in-the-loop RAG-based agentic AI system for multiple-choice question generation. arXiv, 2026. arXiv:2604.03926. DOI: 10.48550/arXiv.2604.03926. DOI: https://doi.org/10.1007/978-3-032-29760-0_10

FAWZI, Fares; BALAN, Sarang; CUKUROVA, Mutlu; YILMAZ, Emine; BULATHWELA, Sahan. Towards human-like educational question generation with small language models. In: ARTIFICIAL INTELLIGENCE IN EDUCATION, 25., 2024, Recife. Proceedings [...]. Cham: Springer, 2024. p. 295-303. DOI: 10.1007/978-3-031-64315-6_25. DOI: https://doi.org/10.1007/978-3-031-64315-6_25

FU, Weiping et al. QGEval: benchmarking multi-dimensional evaluation for question generation. In: CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING, 2024, Miami. Proceedings [...]. Miami: Association for Computational Linguistics, 2024. p. 11783-11803. DOI: 10.18653/v1/2024.emnlp-main.658. DOI: https://doi.org/10.18653/v1/2024.emnlp-main.658

GUO, Taicheng et al. Large language model based multi-agents: a survey of progress and challenges. In: INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 33., 2024, Jeju. Proceedings [...]. IJCAI, 2024. p. 8048-8057. DOI: 10.24963/ijcai.2024/890. DOI: https://doi.org/10.24963/ijcai.2024/890

LEWIS, Patrick et al. Retrieval-Augmented Generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, v. 33, p. 9459-9474, 2020.

LI, Xinyi et al. A survey on LLM-based multi-agent systems: workflow, infrastructure, and challenges. Vicinagearth, v. 1, art. 9, 2024. DOI: 10.1007/s44336-024-00009-2. DOI: https://doi.org/10.1007/s44336-024-00009-2

MAITY, Subhankar; DEROY, Aniket; SARKAR, Sudeshna. How effective is GPT-4 Turbo in generating school-level questions from textbooks based on Bloom's Revised Taxonomy? arXiv, 2024. arXiv:2406.15211. DOI: 10.48550/arXiv.2406.15211. DOI: https://doi.org/10.36227/techrxiv.172373851.19725442/v1

NEO, Alana Viana Borges da Silva et al. Revisão sobre a geração automática de questões na educação: técnicas, conjuntos de dados e métricas de avaliação. Revista dos Mestrados Profissionais, v. 14, n. 1, p. 55-75, 2025. DOI: 10.51359/2317-0115.2025.265432. DOI: https://doi.org/10.51359/2317-0115.2025.265432

PAULA, Felipe S. F.; MICHELIN, Cassiana R. L.; MOREIRA, Viviane P. Evaluation of question answer generation for Portuguese: insights and datasets. In: FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: EMNLP 2024, Miami. Proceedings [...]. Association for Computational Linguistics, 2024. p. 5315-5327. DOI: 10.18653/v1/2024.findings-emnlp.306. DOI: https://doi.org/10.18653/v1/2024.findings-emnlp.306

PRESSMAN, Roger S.; MAXIM, Bruce R. Engenharia de software: uma abordagem profissional. 9. ed. Porto Alegre: AMGH, 2021.

SANTOS, Matheus Santi dos. Geração de questões utilizando transformers para sistemas tutores inteligentes. 2023. 95 f. Dissertação (Mestrado em Ciência da Computação) - Universidade Estadual Paulista, São José do Rio Preto, 2023.

SINGH, Somay; MEENA, Rohitash; HOON, Rajdeep Singh; MEHTA, Vivek. An AI-driven quiz system using multi-agent retrieval-augmented generation. Indian Journal of Computer Science and Technology, v. 5, n. 2, p. 129-136, 2026. DOI: 10.59256/indjcst.20260502014. DOI: https://doi.org/10.59256/indjcst.20260502014

WANG, Jiayi; XIAO, Ruiwei; TSENG, Ying-Jui. Generating AI literacy MCQs: a multi-agent LLM approach. In: ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, 56., 2025, Pittsburgh. Proceedings [...]. New York: ACM, 2025. p. 1651-1652. DOI: 10.1145/3641555.3705189. DOI: https://doi.org/10.1145/3641555.3705189

ZHANG, Ruqing et al. A review on question generation from natural language text. ACM Transactions on Information Systems, v. 40, n. 1, art. 14, p. 1-43, 2021. DOI: 10.1145/3468889. DOI: https://doi.org/10.1145/3468889

ZHAO, Peng; BLAKE, John; PYSHKIN, Evgeny. A modular multi-agentic architecture for automating multiple-choice question generation in language assessment. Procedia Computer Science, v. 275, p. 602-609, 2026. DOI: 10.1016/j.procs.2026.01.070. DOI: https://doi.org/10.1016/j.procs.2026.01.070

Published

2026-11-06

Issue

Section

Articles

How to Cite

FURTADO, A. S. et al. AUTOMATIC QUESTION GENERATION USING OPEN-WEIGHT MODELS: A COMPARISON OF DIRECT GENERATION, RAG, AND MULTI-AGENT SYSTEMS IN TERMS OF COMPUTATIONAL COST AND STRUCTURAL COMPLIANCE. ARACÊ, v. 8, n. 11, p. e15261, 6 Nov.2026.