Learning from Prompt itself: the Hierarchical Attribution Prompt Optimization

Dongyu Chen, Jian Ma, Xianpeng Zhang, Lei Zhang, Haonan Lu +3 more
1/6/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Optimization is fundamental across numerous disciplines, typically following an iterative process of refining an initial solution to enhance performance. This principle is equally critical in prompt engineering, where designing effective prompts for large language models constitutes a complex optimization challenge.

Show full abstract

A structured optimization approach requires automated or semi-automated procedures to develop improved prompts, thereby reducing manual effort, improving performance, and yielding an interpretable process. However, current prompt optimization methods often induce prompt drift, where new prompts fix prior failures but impair performance on previously successful tasks. Additionally, generating prompts from scratch can compromise interpretability. To address these limitations, this study proposes the Hierarchical Attribution Prompt Optimization (HAPO) framework, which introduces three innovations: (1) a dynamic attribution mechanism targeting error patterns in training data and prompting history, (2) semantic-unit optimization for editing functional prompt segments, and (3) multimodal-friendly progression supporting both end-to-end LLM and LLM-MLLM workflows. Applied in contexts like single/multi-image QA (e.g., OCRV2) and complex task analysis (e.g., BBH), HAPO demonstrates enhanced optimization efficiency, outperforming comparable automated prompt optimization methods and establishing an extensible paradigm for scalable prompt engineering.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2026learning,
  title  = {Learning from Prompt itself: the Hierarchical Attribution Prompt Optimization},
  author = {Dongyu Chen and Jian Ma and Xianpeng Zhang and Lei Zhang and Haonan Lu and Chen Chen and Chuangchuang Wang and Kai Tang},
  year   = {2026},
  eprint = {2601.02683},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.02683v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.02683.svg)](https://codeofpaper.com/paper/2601.02683)

Discussion