mlsanityData to 7 Oct 2026

Task-oriented Prompt Enhancement via Script Generation

arXiv 2409.16418 ↗First posted 24 Sep 2024cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated remarkable abilities across various tasks, leveraging advanced reasoning. Yet, they struggle with task-oriented prompts due to a lack of specific prior knowledge of the task answers. The current state-of-the-art approach, PAL, utilizes code generation to address this issue. However, PAL depends on manually crafted prompt templates and examples while still producing inaccurate results. In this work, we present TITAN-a novel strategy designed to enhance LLMs' performance on task-oriented prompts. TITAN achieves this by generating scripts using a universal approach and zero-shot learning. Unlike existing methods, TITAN eliminates the need for detailed task-specific instructions and extensive manual efforts. TITAN enhances LLMs' performance on various tasks by utilizing their analytical and code-generation capabilities in a streamlined process. TITAN employs two key techniques: (1) step-back prompting to extract the task's input specifications and (2) chain-of-thought prompting to identify required procedural steps. This information is used to improve the LLMs' code-generation process. TITAN further refines the generated script through post-processing and the script is executed to retrieve the final answer. Our comprehensive evaluation demonstrates TITAN's effectiveness in a diverse set of tasks. On average, TITAN outperforms the state-of-the-art zero-shot approach by 7.6% and 3.9% when paired with GPT-3.5 and GPT-4. Overall, without human annotation, TITAN achieves state-of-the-art performance in 8 out of 11 cases while only marginally losing to few-shot approaches (which needed human intervention) on three occasions by small margins. This work represents a significant advancement in addressing task-oriented prompts, offering a novel solution for effectively utilizing LLMs in everyday life tasks.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 37 of its 51 references that are in the map. First posted on arXiv 24 Sep 2024.

Builds on

37 of 51 references.

References · 37

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  8. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  9. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  10. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  11. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  12. 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
25 more
  1. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  2. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  3. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
  4. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  5. 2021True Few-Shot Learning with Language Modelscited by 343
  6. 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 314
  7. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  8. 2021Generated Knowledge Prompting for Commonsense Reasoningcited by 213
  9. 2023OpenAGI: When LLM Meets Domain Expertscited by 196
  10. 2024A Comprehensive Survey on Process-Oriented Automatic Text Summarization with Exploration of LLM-Based Methodscited by 101
  11. 2023MetaAgents: Large Language Model Based Agents for Decision-Making on Teamingcited by 85
  12. 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
  13. 2024Self-Contrast: Better Reflection Through Inconsistent Solving Perspectivescited by 71
  14. 2023FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answeringcited by 51
  15. 2022How to Prompt? Opportunities and Challenges of Zero- and Few-Shot Learning for Human-AI Interaction in Creative Applications of Generative Modelscited by 43
  16. 2023Empower Large Language Model to Perform Better on Industrial Domain-Specific Question Answeringcited by 41
  17. 2024Synthetic Dialogue Dataset Generation using LLM Agentscited by 39
  18. 2023Automatic Model Selection with Large Language Models for Reasoningcited by 35
  19. 2023Bounding the Capabilities of Large Language Models in Open Text Generation with Prompt Constraintscited by 31
  20. 2023Improving ChatGPT Prompt for Code Generationcited by 28
  21. 2023Compress, Then Prompt: Improving Accuracy-Efficiency Trade-off of LLM Inference with Transferable Promptcited by 28
  22. 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
  23. 2023Plan, Verify and Switch: Integrated Reasoning with Diverse X-of-Thoughtscited by 27
  24. 2023Generative AI vs. AGI: The Cognitive Strengths and Weaknesses of Modern LLMscited by 11
  25. 2022GAP-Gen: Guided Automatic Python Code Generationcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Self-Supervised Prompt Optimization
  2. 2026Enhancing LLM Instruction Following: An Evaluation-Driven Multi-Agentic Workflow for Prompt Instructions Optimization
  3. 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
  4. 2023StrategyLLM: Large Language Models as Strategy Generators, Executors, Optimizers, and Evaluators for Problem Solving
  5. 2024Towards Generalist Prompting for Large Language Models by Mental Models
  6. 2026Not the Example, but the Process: How Self-Generated Examples Enhance LLM Reasoning
  7. 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models
  8. 2024Prompt Selection and Augmentation for Few Examples Code Generation in Large Language Model and its Application in Robotics Control