mlsanityData to 14 Oct 2026

PromptFlow: Training Prompts Like Neural Networks

arXiv 2510.12246 ↗First posted 14 Oct 2025cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated profound impact on Natural Language Processing (NLP) tasks. However, their effective deployment across diverse domains often require domain-specific adaptation strategies, as generic models may underperform when faced with specialized data distributions. Recent advances in prompt engineering (PE) offer a promising alternative to extensive retraining by refining input instructions to align LLM outputs with task objectives. This paradigm has emerged as a rapid and versatile approach for model fine-tuning. Despite its potential, manual prompt design remains labor-intensive and heavily depends on specialized expertise, often requiring iterative human effort to achieve optimal formulations. To address this limitation, automated prompt engineering methodologies have been developed to systematically generate task-specific prompts. However, current implementations predominantly employ static update rules and lack mechanisms for dynamic strategy selection, resulting in suboptimal adaptation to varying NLP task requirements. Furthermore, most methods treat and update the whole prompts at each step, without considering editing prompt sections at a finer granularity. At last, in particular, the problem of how to recycle experience in LLM is still underexplored. To this end, we propose the PromptFlow, a modular training framework inspired by TensorFlow, which integrates meta-prompts, operators, optimization, and evaluator. Our framework can be equipped with the latest optimization methods and autonomously explores optimal prompt refinement trajectories through gradient-based meta-learning, requiring minimal task-specific training data. Specifically, we devise a reinforcement learning method to recycle experience for LLM in the PE process. Finally, we conduct extensive experiments on various datasets, and demonstrate the effectiveness of PromptFlow.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 29 references that are in the map. First posted on arXiv 14 Oct 2025.

Builds on

17 of 29 references.

References · 17

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  5. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  7. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  8. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  9. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
  10. 2016SeqGAN: Sequence Generative Adversarial Nets with Policy Gradientcited by 376
  11. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
  12. 2016Learning to Navigate in Complex Environmentscited by 198
5 more
  1. 2023Self-Evaluation Guided Beam Search for Reasoningcited by 196
  2. 2023Large Language Models as Evolutionary Optimizerscited by 124
  3. 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 35
  4. 2020CLUENER2020: Fine-grained Named Entity Recognition Dataset and Benchmark for Chinesecited by 19
  5. 2024Interactive Prompt Debugging with Sequence Saliencecited by 6

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications
  2. 2024Efficient Prompting Methods for Large Language Models: A Survey
  3. 2026Not All Drift Is a Mechanism: Tracing Prompt Adaptation in LLMs
  4. 2025LLM-AutoDiff: Auto-Differentiate Any LLM Workflow
  5. 2024On the Transformations across Reward Model, Parameter Update, and In-Context Prompt
  6. 2025Self-Supervised Prompt Optimization
  7. 2026Enhancing LLM Instruction Following: An Evaluation-Driven Multi-Agentic Workflow for Prompt Instructions Optimization
  8. 2026Optimizing LLM Prompt Engineering with DSPy Based Declarative Learning