Llama-3.1-8B-ErrOPD-teacher-dupid-Fashion
Teacher fine-tuned to make the duplicated-ID error on purpose (one item ID is repeated in the ranking), released with the paper ErrOPD: When Does On-Policy Distillation Transfer Teacher Errors? (Xin Li, Hao Jiang, Annan Wang, Yichi Zhang, Chau Yuen).
Code: https://github.com/LiXin97/ErrOPD · Project page: https://lixin.ai/ErrOPD · All checkpoints and datasets: ErrOPD collection
Built with Llama (Llama 3.1 Community License; see License).
This teacher reproduces an injected duplicated-ID error by design (one item ID is repeated in the ranking). It exists to study how such errors transfer under distillation; do not use it as a task model.
Checkpoint
| Role | Teacher fine-tuned to make the duplicated-ID error on purpose (one item ID is repeated in the ranking) |
| What it is | Teacher fine-tuned (supervised) on Fashion targets in which 20% of the training copies carry an injected duplicated ID (one item ID repeated in the ranking). It reproduces this error by design. |
| Paper reference | Table 1 (Llama / Fashion duplicated ID: teacher) |
| Task | Amazon Fashion review ranking: given a product title and 8 of its reviews, score each review's helpfulness for a buyer (0-10) and return a strict JSON list of 8 {"review_id", "score"} objects in prompt order |
| Training data | teacher_sft/dup_f20_x5.jsonl of XINLI1997/ErrOPD-Fashion: 5 copies of the 1,795 training lists, with the duplicated-ID error injected into about 20% of the copies |
| Base model | meta-llama/Llama-3.1-8B-Instruct |
| Weights | bf16 safetensors, 4 files, 16.06 GB (8.03 B stored parameters). |
Usage
# pip install "transformers>=4.57.0" accelerate datasets torch
import torch
from datasets import load_dataset
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "XINLI1997/Llama-3.1-8B-ErrOPD-teacher-dupid-Fashion"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")
# one held-out prompt (system + user turns) from the evaluation split
example = load_dataset("XINLI1997/ErrOPD-Fashion", split="validation")[0]
messages = [m for m in example["messages"] if m["role"] != "assistant"]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True).to(model.device)
output = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
The expected output is a JSON list of 8 objects {"review_id": ..., "score": ...} in the order of the reviews in the prompt. Prompts, decoding settings and the scoring code used in the paper are in the code repository.
Notes:
- The bundled chat template is the one used for fine-tuning, distillation rollouts and evaluation in the paper.
Training
Teacher fine-tuned (supervised) on Fashion targets in which 20% of the training copies carry an injected duplicated ID (one item ID repeated in the ranking). It reproduces this error by design. Full training configurations and scripts are in the code repository.
Evaluation
This checkpoint is reported in the paper, Table 1 (Llama / Fashion duplicated ID: teacher); see that table for its scores.
Limitations
- Trained for one narrow structured-output task. It is not a general assistant, and outputs for other prompts are not meaningful.
- Teachers in this release were fine-tuned to make an injected format error on purpose; distilled students may inherit it. This is what the paper measures.
- Helpfulness targets are Gemini 2.5 Pro scores under a fixed rubric, not human labels, so the model inherits that rubric's preferences. English, Amazon Fashion only.
License
Built with Llama. Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved. The license (LICENSE) and the Acceptable Use Policy (USE_POLICY.md) are included in this repository; use of this model must comply with both. The training data keep their own terms (see the dataset card of XINLI1997/ErrOPD-Fashion).
Citation
@article{li2026erropd,
title = {ErrOPD: When Does On-Policy Distillation Transfer Teacher Errors?},
author = {Li, Xin and Jiang, Hao and Wang, Annan and Zhang, Yichi and Yuen, Chau},
journal = {arXiv preprint arXiv:2605.08737},
year = {2026}
}