Fine-Tune an SLM or Prompt an LLM? The Case of Generating Low-Code Workflows
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) such as GPT-4o can handle a wide range of complex tasks with the right prompt. As per token costs are reduced, the advantages of fine-tuning Small Language Models (SLMs) for real-world applications -- faster inference, lower costs -- may no longer be clear. In this work, we present evidence that, for domain-specific tasks that require structured outputs, SLMs still have a quality advantage. We compare fine-tuning an SLM against prompting LLMs on the task of generating low-code workflows in JSON form. We observe that while a good prompt can yield reasonable results, fine-tuning improves quality by 10% on average. We also perform systematic error analysis to reveal model limitations.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 19 of its 29 references that are in the map. First posted on arXiv 30 May 2025.
Builds on
19 of 29 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2023BloombergGPT: A Large Language Model for Financecited by 939
- 2018The Natural Language Decathlon: Multitask Learning as Question Answeringcited by 236
- 2020TIDE: A General Toolbox for Identifying Object Detection Errorscited by 114
- 2024Reducing hallucination in structured outputs via Retrieval-Augmented Generationcited by 93
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agentscited by 83
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 53
7 more
- 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Taskscited by 41
- 2024SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domaincited by 39
- 2024Tiny Titans: Can Smaller Large Language Models Punch Above Their Weight in the Real World for Meeting Summarization?cited by 33
- 2024FlowMind: Automatic Workflow Generation with LLMscited by 30
- 2024Automating the Enterprise with Foundation Modelscited by 14
- 2024A Comparative Study of DSL Code Generation: Fine-Tuning vs. Optimized Retrieval Augmentationcited by 10
- 2022Azimuth: Systematic Error Analysis for Text Classificationcited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Performance Trade-offs of Optimizing Small Language Models for E-Commercecited by 1
- 2026On the Generalization Gap in LLM Planning: Tests and Verifier-Reward RLcited by 1
- 2025Trained Miniatures: Low cost, High Efficacy SLMs for Sales & Marketingcited by 0
- 2026FlowMind: Execute-Summarize for Structured Workflow Generation from LLM Reasoningcited by 0
- 2026LIFT: Last-Mile Fine-Tuning for Table Explicitationcited by 0
- 2026Quantifying Prior Dominance in RAG Systemscited by 0
- 2026LIFT: Last-Mile Fine-Tuning for Table Explicitation13 May 2026
- 2026Quantifying Prior Dominance in RAG Systems29 Apr 2026
- 2026FlowMind: Execute-Summarize for Structured Workflow Generation from LLM Reasoning12 Feb 2026
- 2026On the Generalization Gap in LLM Planning: Tests and Verifier-Reward RL20 Jan 2026
- 2025Performance Trade-offs of Optimizing Small Language Models for E-Commerce24 Oct 2025
- 2025Trained Miniatures: Low cost, High Efficacy SLMs for Sales & Marketing21 Aug 2025