TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregation

Bartosz Dziuba, Kacper Kuchta, Paweł Batorski, Przemysław Spurek, Paul Swoboda
2/6/2026
1 citation
cs.CLcs.AI

Official code: BMD223/TATRA (0 stars, Python, last commit 2026-02-07).

Abstract

Large Language Models (LLMs) have improved substantially alignment, yet their behavior remains highly sensitive to prompt phrasing. This brittleness has motivated automated prompt engineering, but most existing methods (i) require a task-specific training set, (ii) rely on expensive iterative optimization to produce a single dataset-level prompt, and (iii) must be rerun from scratch for each new task.

Show full abstract

We introduce TATRA, a dataset-free prompting method that constructs instance-specific few-shot prompts by synthesizing on-the-fly examples to accompany a user-provided instruction. TATRA requires no labeled training data and avoids task-specific optimization loops, while retaining the benefits of demonstration-based prompting. Across standard text classification benchmarks, TATRA matches or improves over strong prompt-optimization baselines that depend on training data and extensive search. On mathematical reasoning benchmarks, TATRA achieves state-of-the-art performance on GSM8K and DeepMath, outperforming methods that explicitly optimize prompts on those tasks. Our results suggest that per-instance construction of effective in-context examples is more important than running long, expensive optimization loops to produce a single prompt per task. We will make all code publicly available upon acceptance of the paper. Code is available at https://github.com/BMD223/TATRA

View on arXivView PDF

Code Implementations(1)

BMD223/TATRAOfficial100%

Repository for the TATRA project

00PythonFeb 1, 20269 months ago

Similar Papers

Cite this paper

@article{dziuba2026tatra,
  title  = {TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregation},
  author = {Bartosz Dziuba and Kacper Kuchta and Paweł Batorski and Przemysław Spurek and Paul Swoboda},
  year   = {2026},
  eprint = {2603.03298},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.03298v1}
}

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/2603.03298.svg)](https://codeofpaper.com/paper/2603.03298)

Discussion