A HUMAN-IN-THE-LOOP ARCHITECTURE FOR WORKFLOW AUTOMATION WITH LARGE LANGUAGE MODELS IN SMALL AND MEDIUM-SIZED ENTERPRISES
DOI:
https://doi.org/10.56238/isevmjv3n6-018Keywords:
Large Language Models, Workflow Automation, Human-In-The-Loop, Retrieval-Augmented Generation, SMEs, AI GovernanceAbstract
Large language models (LLMs) can read unstructured text, extract information and draft responses, which makes them attractive for automating administrative workflows in small and medium-sized enterprises (SMEs). Their outputs, however, may be fluent but incorrect, and SMEs rarely have the data-science teams needed to manage these risks. Based on the literature published up to 2022, this paper proposes a reference architecture for LLM-based workflow automation in which every model output passes through a validation layer and, depending on risk and confidence, through human review. The architecture combines retrieval-augmented generation over company documents, prompt templates with structured outputs, schema and business-rule validation, a risk-based routing policy, and an audit and feedback loop that builds evaluation datasets from human corrections. A task-classification matrix is proposed to decide which workflows can be executed automatically and which require review. Survey data show that organisational adoption of AI rose from 20% in 2017 to 50% in 2022, while the average number of AI capabilities per adopting organisation doubled, indicating that the challenge is shifting from experimentation to reliable operation.
References
[1] W. M. P. van der Aalst, M. Bichler, and A. Heinzl, “Robotic process automation,” Bus. Inf. Syst. Eng., vol. 60, no. 4, pp. 269–272, 2018.
[2] A. Vaswani et al., “Attention is all you need,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 30, 2017.
[3] T. B. Brown et al., “Language models are few-shot learners,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 33, 2020, pp. 1877–1901.
[4] L. Ouyang et al., “Training language models to follow instructions with human feedback,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 35, 2022.
[5] M. Chui, B. Hall, H. Mayhew, A. Singla, and A. Sukharevsky, “The state of AI in 2022—and a half decade in review,” McKinsey & Company, Dec. 2022.
[6] Z. Ji et al., “Survey of hallucination in natural language generation,” 2022, arXiv:2202.03629.
[7] R. Bommasani et al., “On the opportunities and risks of foundation models,” 2021, arXiv:2108.07258.
[8] J. Wei et al., “Chain-of-thought prompting elicits reasoning in large language models,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 35, 2022.
[9] P. Lewis et al., “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 33, 2020, pp. 9459–9474.
[10] V. Karpukhin et al., “Dense passage retrieval for open-domain question answering,” in Proc. Conf. Empirical Methods Natural Lang. Process. (EMNLP), 2020, pp. 6769–6781.
[11] J. Johnson, M. Douze, and H. Jégou, “Billion-scale similarity search with GPUs,” IEEE Trans. Big Data, vol. 7, no. 3, pp. 535–547, 2021.
[12] S. Amershi et al., “Guidelines for human-AI interaction,” in Proc. CHI Conf. Human Factors Comput. Syst., 2019, pp. 1–13.
[13] B. Shneiderman, “Human-centered artificial intelligence: Reliable, safe & trustworthy,” Int. J. Hum.-Comput. Interact., vol. 36, no. 6, pp. 495–504, 2020.
[14] M. Mitchell et al., “Model cards for model reporting,” in Proc. Conf. Fairness, Accountability, Transparency (FAT*), 2019, pp. 220–229.
[15] D. Sculley et al., “Hidden technical debt in machine learning systems,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 28, 2015, pp. 2503–2511.
[16] W. M. P. van der Aalst, Process Mining: Data Science in Action, 2nd ed. Berlin, Germany: Springer, 2016.
[17] F. Perez and I. Ribeiro, “Ignore previous prompt: Attack techniques for language models,” 2022, arXiv:2211.09527.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Gabriel Moraes

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.