Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Prompts

Hanhua Hong, Chenghao Xiao, Yang Wang, Yiqi Liu, Wenge Rong, Chenghua LinarXiv 2025 · DOI

Abstract

Evaluating Natural Language Generation (NLG) tasks remains a significant challenge due to the inherent subjectivity and variety of valid outputs. While Large Language Models (LLMs) have emerged as effective "judges," they suffer from extreme prompt sensitivity and a lack of cross-model generalization. This paper proposes Inversion Learning, a generative approach that trains an inverse model to produce optimal, model-specific evaluation prompts from just a single annotated example. Our method eliminates the need for manual prompt engineering and outperforms state-of-the-art prompt optimization techniques by significant margins, particularly in complex tasks like abstractive summarization.

Introduction: The Challenge of Prompt Sensitivity

The "LLM-as-a-Judge" paradigm is transforming how we evaluate summarization, translation, and dialogue systems. However, this approach has a major weakness: prompt sensitivity. Minor linguistic variations in a prompt can lead to inconsistent scoring. Furthermore, the community typically uses generic human-crafted prompts, ignoring that different LLMs interpret instructions differently. Existing Automatic Prompt Optimization (APO) methods attempt to solve this but are often computationally prohibitive and require large validation datasets.

Methodology: Inversion Learning

To address these limitations, we introduce a generative framework called Inversion Learning. Instead of searching for prompts, we train a model to work backward from a desired output to the instruction that likely produced it.

The Inversion Learning framework consists of Inversion Modelling to train the inverse model and Inversion Prompting to generate task-specific templates.

The process involves three key steps:

  1. Inversion Dataset Distillation: We "flip" the standard instruction-tuning process. By feeding a large dataset of instructions into a target LLM (e.g., Qwen-Instruct) and collecting its outputs, we can train a base model to predict the original instructions from those outputs. This teaches the inverse model the specific linguistic preferences of the target judge.
  2. One-Shot Inversion Prompting: For a new evaluation task, a user provides a "meta-prompt" containing a single example of text and its human-assigned score. The inverse model generates the specific prompt that would lead the target LLM to replicate that evaluation.
  3. Templating: The specific content from the one-shot example is replaced with placeholders, creating a reusable, tailored prompt template for the entire evaluation task.

Experimental Results

We evaluated our approach across several NLG benchmarks, including SummEval (summarization), Topical-Chat (dialogue), and WMT-22 (translation).

Performance comparison of Inverse Prompts against human-crafted and forward prompts across multiple NLG benchmarks.

Superior Correlation and Performance

Inverse prompts consistently achieved higher Spearman ($\rho$) and Pearson ($r$) correlations with human judgments compared to human-crafted or standard forward prompts. Notably, when using Qwen-2.5-7B as the judge, our one-shot inverse prompt outperformed HPSS (a state-of-the-art optimization method) by 56% on average, even when HPSS was provided with 100 tuning examples.

Task-Specific Gains

The effectiveness of inversion learning was most pronounced in complex tasks. In abstractive summarization (QAGS-XSUM), inverse prompts yielded performance gains between 100% and 250% over standard baselines. While gains in simpler tasks like machine translation were more modest, the consistency across benchmarks remains a key strength.

Key Insights

  • Model-Specific "Personalities": Prompts are not interchangeable. A prompt optimized for Qwen performs poorly on LLaMA, confirming that evaluation prompts must be tailored to the specific judge.
  • AI-Centric Language: Generated prompts often adopted formal AI personas (e.g., "You are an advanced AI assistant") and utilized strict logic, suggesting that LLMs respond better to "AI-speak" than conversational human instructions.
  • Robustness: The inverse model is remarkably robust to numerical noise; it prioritizes the structural logic of the task over the exact score provided in the one-shot example.

Conclusion

Inversion Learning represents a shift from manual prompt engineering toward automated, model-aligned evaluation. By leveraging the generative capabilities of LLMs to "invert" the instruction-following process, we can create highly effective, task-specific evaluation frameworks with minimal human effort. Future work will explore the application of this paradigm to even broader sets of reasoning and creative tasks.

Summary updated

BibTeX
@misc{hong2025beyond,
  author = {Hanhua Hong and Chenghao Xiao and Yang Wang and Yiqi Liu and Wenge Rong and Chenghua Lin},
  title = {{Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Prompts}},
  year = {2025},
  eprint = {2504.21117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.21117},
}
Figure