mlsanityData to 7 Oct 2026

Auto-Prompting with Retrieval Guidance for Frame Detection in Logistics

arXiv 2512.19247 ↗First posted 22 Dec 2025cs.CL cs.AIcited by 0

On the map: LLM reasoning → Prompting and chain-of-thought reasoning

Abstract (arXiv)

Prompt engineering plays a critical role in adapting large language models (LLMs) to complex reasoning and labeling tasks without the need for extensive fine-tuning. In this paper, we propose a novel prompt optimization pipeline for frame detection in logistics texts, combining retrieval-augmented generation (RAG), few-shot prompting, chain-of-thought (CoT) reasoning, and automatic CoT synthesis (Auto-CoT) to generate highly effective task-specific prompts. Central to our approach is an LLM-based prompt optimizer agent that iteratively refines the prompts using retrieved examples, performance feedback, and internal self-evaluation. Our framework is evaluated on a real-world logistics text annotation task, where reasoning accuracy and labeling efficiency are critical. Experimental results show that the optimized prompts - particularly those enhanced via Auto-CoT and RAG - improve real-world inference accuracy by up to 15% compared to baseline zero-shot or static prompts. The system demonstrates consistent improvements across multiple LLMs, including GPT-4o, Qwen 2.5 (72B), and LLaMA 3.1 (70B), validating its generalizability and practical value. These findings suggest that structured prompt optimization is a viable alternative to full fine-tuning, offering scalable solutions for deploying LLMs in domain-specific NLP applications such as logistics.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 21 of its 26 references that are in the map. First posted on arXiv 22 Dec 2025.

Builds on

21 of 26 references.

Closest ancestors · 4

Same direction, newest first

  1. 2023Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Data24 Feb
  2. 2022Automatic Chain of Thought Prompting in Large Language Models7 Oct
  3. 2022Large Language Models are Zero-Shot Reasoners24 May
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan

Other references · 17

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  6. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  7. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  8. 2022Large Language Models Encode Clinical Knowledgecited by 1,807
  9. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  10. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  11. 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 996
  12. 2019How Can We Know What Language Models Know?cited by 953
5 more
  1. 2023In-Context Retrieval-Augmented Language Modelscited by 694
  2. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  3. 2023FinGPT: Open-Source Financial Large Language Modelscited by 244
  4. 2018The Natural Language Decathlon: Multitask Learning as Question Answeringcited by 235
  5. 2025LLMs for Supply Chain Managementcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Why Prompt Design Matters and Works: A Complexity Analysis of Prompt Search Space in LLMs
  2. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications
  3. 2026Prompt Segmentation and Annotation Optimisation: Controlling LLM Behaviour via Optimised Segment-Level Annotations
  4. 2025Self-Supervised Prompt Optimization
  5. 2023Prompt Space Optimizing Few-shot Reasoning Success with Large Language Models
  6. 2025Emulating Retrieval Augmented Generation via Prompt Engineering for Enhanced Long Context Comprehension in LLMs
  7. 2025You Don't Need Prompt Engineering Anymore: The Prompting Inversion
  8. 2024Towards Generalist Prompting for Large Language Models by Mental Models