main-instruction-tuning-eval
MAIN: Mutual Alignment Is Necessary for instruction tuning — Yang et al. (2025) (arXiv:2504.12913, 2025)
What this evaluates
Evaluates the instruction-following capability, output preference quality, and general reasoning performance of fine-tuned LLMs. It probes how well models adhere to explicit constraints, generate preferred responses relative to a baseline, and solve standard academic benchmarks.
Datasets
- AlpacaEval — total 805; splits: test (805)
- IFEval — total ?; splits: test (-1)
- ARC — total ?; splits: test (-1)
- HellaSwag — total ?; splits: test (-1)
- Winogrande — total ?; splits: test (-1)
- MMLU — total ?; splits: test (-1)
- TruthfulQA — total ?; splits: test (-1)
Metrics
AlpacaEval (primary) — range: percent
- Percentage of pairwise comparisons where the model's output is judged better than text-davinci-003 by GPT-4. Calculated as (number of wins / total instructions) * 100.
IFEval — range: percent
- Accuracy across four variants: Prompt-level Strict (P-S), Instruction-level Strict (I-S), Prompt-level Loose (P-L), and Instruction-level Loose (I-L). Measures whether generated outputs satisfy explicit formatting and constraint instructions.
OpenLLM Leaderboard accuracy — range: percent
- Standard accuracy scores on ARC, HellaSwag, Winogrande, MMLU, and TruthfulQA, evaluated using the Language Model Evaluation Harness.
Input / output format
Input: Instruction or prompt text; for IFEval, prompts include explicit formatting/constraint instructions; for OpenLLM tasks, multiple-choice or open-ended questions.
Output: Model-generated text response.
Scoring recipe
def score_alpaca_eval(predictions, baseline_outputs):
wins = 0
for pred, base in zip(predictions, baseline_outputs):
if gpt4_judge(pred, base) == 'win':
wins += 1
return (wins / len(predictions)) * 100
def score_ifeval(predictions, prompts):
accuracies = []
for pred, prompt in zip(predictions, prompts):
accuracies.append(check_constraints(pred, prompt))
return sum(accuracies) / len(accuracies) * 100
Common pitfalls
- AlpacaEval win rates are relative to text-davinci-003, not gold references, so scores reflect preference over a specific baseline rather than absolute quality.
- IFEval reports four distinct strict/loose variants; reporting only one metric can significantly misrepresent instruction-following capability.
- OpenLLM tasks are evaluated via the Language Model Evaluation Harness, which may apply specific prompting or few-shot templates that differ from standard zero-shot setups.
Evidence (verbatim from paper)
We assess output preference using 805 instructions from the AlpacaEval dataset. Model outputs are compared against text-davinci-003 in a pairwise setting, with GPT-4-based judgments determining win rates. Instruction-following ability is evaluated with IFEval, which reports accuracy across four metrics: Prompt-level Strict (P-S), Instruction-level Strict (I-S), Prompt-level Loose (P-L), Instruction-level Loose (I-L) ensuring a comprehensive assessment of instruction adherence.
Citation
@misc{yang2025main,
title={MAIN: Mutual Alignment Is Necessary for instruction tuning},
author={Yang et al. (2025)},
year={2025},
note={arXiv:2504.12913}
}
1---2name: main-instruction-tuning-eval3description: Evaluates the instruction-following capability, output preference quality, and general reasoning performance of fine-tuned LLMs. It probes how well models adhere to explicit constraints, generate preferred responses relative to a baseline, and solve standard academic benchmarks. Use when the user wants to benchmark on AlpacaEval, IFEval, ARC, HellaSwag, Winogrande, MMLU, TruthfulQA, or asks about evaluating this task. Reports AlpacaEval.4---56# main-instruction-tuning-eval78> MAIN: Mutual Alignment Is Necessary for instruction tuning — Yang et al. (2025) (arXiv:2504.12913, 2025)910## What this evaluates1112Evaluates the instruction-following capability, output preference quality, and general reasoning performance of fine-tuned LLMs. It probes how well models adhere to explicit constraints, generate preferred responses relative to a baseline, and solve standard academic benchmarks.1314## Datasets1516- **AlpacaEval** — total 805; splits: test (805)17- **IFEval** — total ?; splits: test (-1)18- **ARC** — total ?; splits: test (-1)19- **HellaSwag** — total ?; splits: test (-1)20- **Winogrande** — total ?; splits: test (-1)21- **MMLU** — total ?; splits: test (-1)22- **TruthfulQA** — total ?; splits: test (-1)2324## Metrics2526- `AlpacaEval` **(primary)** — range: percent27 - Percentage of pairwise comparisons where the model's output is judged better than text-davinci-003 by GPT-4. Calculated as (number of wins / total instructions) * 100.28- `IFEval` — range: percent29 - Accuracy across four variants: Prompt-level Strict (P-S), Instruction-level Strict (I-S), Prompt-level Loose (P-L), and Instruction-level Loose (I-L). Measures whether generated outputs satisfy explicit formatting and constraint instructions.30- `OpenLLM Leaderboard accuracy` — range: percent31 - Standard accuracy scores on ARC, HellaSwag, Winogrande, MMLU, and TruthfulQA, evaluated using the Language Model Evaluation Harness.3233## Input / output format3435**Input**: Instruction or prompt text; for IFEval, prompts include explicit formatting/constraint instructions; for OpenLLM tasks, multiple-choice or open-ended questions.3637**Output**: Model-generated text response.3839## Scoring recipe4041```python42def score_alpaca_eval(predictions, baseline_outputs):43 wins = 044 for pred, base in zip(predictions, baseline_outputs):45 if gpt4_judge(pred, base) == 'win':46 wins += 147 return (wins / len(predictions)) * 1004849def score_ifeval(predictions, prompts):50 accuracies = []51 for pred, prompt in zip(predictions, prompts):52 accuracies.append(check_constraints(pred, prompt))53 return sum(accuracies) / len(accuracies) * 10054```5556## Common pitfalls5758- AlpacaEval win rates are relative to text-davinci-003, not gold references, so scores reflect preference over a specific baseline rather than absolute quality.59- IFEval reports four distinct strict/loose variants; reporting only one metric can significantly misrepresent instruction-following capability.60- OpenLLM tasks are evaluated via the Language Model Evaluation Harness, which may apply specific prompting or few-shot templates that differ from standard zero-shot setups.6162## Evidence (verbatim from paper)6364> We assess output preference using 805 instructions from the AlpacaEval dataset. Model outputs are compared against text-davinci-003 in a pairwise setting, with GPT-4-based judgments determining win rates. Instruction-following ability is evaluated with IFEval, which reports accuracy across four metrics: Prompt-level Strict (P-S), Instruction-level Strict (I-S), Prompt-level Loose (P-L), Instruction-level Loose (I-L) ensuring a comprehensive assessment of instruction adherence.6566## Citation6768```bibtex69@misc{yang2025main,70 title={MAIN: Mutual Alignment Is Necessary for instruction tuning},71 author={Yang et al. (2025)},72 year={2025},73 note={arXiv:2504.12913}74}75```7677- arXiv: 2504.12913