atlas

Research map / Large language models / Agents, code and math

How to Auto-optimize Prompts for Domain Tasks? Adaptive Prompting and Reasoning through Evolutionary Domain Knowledge Adaptation

NeurIPS 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes EGO-Prompt, which evolves an expert-built semantic causal graph and system prompts via textual gradients, generating instance-specific reasoning guidance, to improve LLM prediction on public health, traffic crash, and travel mode choice tasks.

Problem

Domain-specific LLM prompting relies on incomplete or imperfect expert knowledge and static graph databases; it is unclear how to jointly optimize prompts, reasoning, and domain causal graphs without fine-tuning.

Approach

Two-stage graph-guided reasoning: a graph description model turns the expert SCG plus each instance into deterministic causal guidance, which a predictor uses; the SCG (add/delete/edit operations) and prompts are iteratively refined with textual gradients from ground-truth labels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add instance-specific reasoning guidance decomposition (ablation)EGO-Prompt · PandemicF1: 0.397 -> 0.399Helped
add instance-specific reasoning guidance decomposition (ablation)EGO-Prompt · TrafficSafeF1: 0.247 -> 0.333Helped
add instance-specific reasoning guidance decomposition (ablation)EGO-Prompt · SwissmetroF1: 0.445 -> 0.498Helped
optimize the prompt and graph instead of removing optimization (ablation)EGO-Prompt · PandemicF1: 0.359 -> 0.399Helped
optimize the prompt and graph instead of removing optimization (ablation)EGO-Prompt · TrafficSafeF1: 0.293 -> 0.333Helped
optimize the prompt and graph instead of removing optimization (ablation)EGO-Prompt · SwissmetroF1: 0.434 -> 0.498Helped
use iterative optimization (ablation)EGO-Prompt · PandemicF1: 0.369 -> 0.399Helped
use iterative optimization (ablation)EGO-Prompt · TrafficSafeF1: 0.272 -> 0.333Helped
use iterative optimization (ablation)EGO-Prompt · SwissmetroF1: 0.447 -> 0.498Helped
use EGO-Prompt instead of the strongest listed baselineGPT-4o mini · PandemicF1: 0.361 -> 0.399Helped
use EGO-Prompt instead of the strongest listed baselineGPT-4o mini · TrafficSafeF1: 0.304 -> 0.333Helped
use EGO-Prompt instead of the strongest listed baselineGPT-4o mini · Mode ChoiceF1: 0.481 -> 0.498Helped

Surprising findings

Limitations

Experimental setup

Datasets: Pandemic Hospitalization dataset TrafficSafe crash dataset Swissmetro travel mode choice dataset

Benchmarks: Pandemic TrafficSafe Swissmetro

Metrics: weighted F1 accuracy inference cost per 100 samples

Baselines: Organized Prompt Zero-Shot-CoT ProTeGi Auto-CoT PHP TextGrad o1 o3 o3-mini o4-mini Gemini 2.5 pro

Builds on: TextGrad ProTeGi PHP Zero-Shot-CoT Auto-CoT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy