Downloads · 30 days
52
24% of all-time downloads
double7/Qwen2.5-7B-GRRM
Qwen2.5-7B-GRRM is a text generation model from double7. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Qwen2.5-7B-GRRM is a Generative Reward Model (GenRM) specifically optimized for Machine Translation (MT). It implements the Group Quality Metric (GQM) paradigm: the model evaluates a group of candidate translations jo…
Downloads · 30 days
52
24% of all-time downloads
All-time downloads
215
Public
Parameters
7.6B
15.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
Qwen2.5-7B-GRRM is a Generative Reward Model (GenRM) specifically optimized for Machine Translation (MT). It implements the Group Quality Metric (GQM) paradigm: the model evaluates a group of candidate translations jointly (rather than pointwise scoring), then produces a relative ranking and relative reward scores suitable for GRPO-style group-based policy optimization.
The model is initialized from Qwen2.5-7B, cold-started via Supervised Fine-Tuning (SFT) on Chinese–English data, and subsequently optimized for ranking accuracy using Reinforcement Learning with Verifiable Rewards (RLVR).
This model is intended to be used as a reward model for MT outputs, especially inside GRPO.
Typical direct usage:
To match the training distribution, the input should follow these conventions:
A, B, C, D.The model is trained to produce three sections in Markdown:
A > C > B).[!NOTE] For high-throughput inference with vllm and official parsing script, please refer to our code repository.
Here's how you can run the model with Huggingface Transformers:
from transformers import AutoTokenizer, AutoModelForCausalLM
MODEL_PATH = "double7/Qwen2.5-7b-EAX"
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
model = AutoModelForCausalLM.from_pretrained(
MODEL_PATH, device_map="auto", torch_dtype="auto"
)
prompt = """Given a source text in English and multiple translation candidates in Chinese. Perform a step by step analysis and comparison of the translation quality for the candidates. Finally, rank and score the candidates with integer scores on a scale from 0 to 10.
Source text:
```
I have a frog in my throat.
```
Translation A:
```
我嗓子有点哑。
```
Translation B:
```
我嗓子眼里好像有只青蛙。
```
"""
# We use the tokenizer’s chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
messages = [
{"role": "user", "content": prompt},
]
input_text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, do_sample=False, max_new_tokens=8192)
output_text = tokenizer.batch_decode(outputs, skip_special_tokens=False)[0]
print(output_text)
<details><summary>Output Example</summary>
An analysis and comparison of the translation candidates:
**Source Text:** "I have a frog in my throat."
This is an English idiomatic expression. Literally, it doesn't mean a frog is physically stuck in one's throat. It means the person has a tickle, lump, or irritation in their throat that affects their voice, often making them sound hoarse. It is used to describe a temporary condition.
**Translation A: 我嗓子有点哑。**
* **Faithfulness:** This translation is not literal but captures the *consequence* or *function* of the source idiom. "我嗓子有点哑" means "My voice is a little hoarse." This is a very common and natural way in Chinese to express the same situation as "I have a frog in my throat." It correctly conveys the practical meaning in this context.
* **Fluency:** This is a perfectly fluent and idiomatic Chinese expression that a native speaker would use in daily conversation.
* **Overall:** A good translation that prioritizes communicative effectiveness over literalism. It is highly acceptable.
**Translation B: 我嗓子眼里好像有只青蛙。**
* **Faithfulness:** This translation is very literal. "我嗓子眼里" means "in my throat," and "好像" ("as if" or "seemingly") is an attempt to translate the metaphorical nature of the source. The main problem is "有只青蛙" (there is a frog). This is a direct, word-for-word physical translation that completely misses the idiomatic meaning. It explains the phrase as if one was literally trying to describe a real frog in the throat.
* **Fluency:** This sentence is grammatically correct, but it sounds highly unnatural and awkward in Chinese. While hypothetically it could be understood literally by some as a form of sick and disturbing joke, it is not used to express hoarseness in any common, standard way.
* **Overall:** A poor translation because it fails to convey the correct idiomatic meaning and results in an unnatural, almost comical phrasing.
**Conclusion:**
* **Translation A** is the superior choice. It effectively communicates the intended meaning in a natural, idiomatic way that is common in Chinese.
* **Translation B** is a very literal, inaccurate, and awkward attempt that misses the point of the idiom and sounds incorrect.
### Final Ranking:
A > B
### Scores:
A: 8, B: 3
</details>
The model was trained on the Chinese-English subset of TowerBlocks, comprising approximately 18.8k samples (held out 512 samples for validation). For each source sentence, sample 2–4 translation candidates; labels are derived under GQM prompting using an external LLM judge (Gemini-2.5-Pro).
The model is trained in two stages:
Hardware: 16 × NVIDIA A100 (80GB)
SFT (cold start):
RLVR (reward model optimization):
Ranking accuracy (%) on the held-out test set (Gemini-annotated) versus human-annotated benchmarks and the challenge set. GRRM achieves state-of-the-art ranking performance, especially on complex reasoning scenarios (Seed-X-Challenge).
| Model | Paradigm | held-out (Zh↔En) | NT20 (Zh→En) | GenMT22 (En→Zh) | GenMT22 (Zh→En) | GenMT22 (En→De) | GenMT22 (En→Ru) | Seed-X-Challenge | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| LLM-as-a-Judge | |||||||||
| DeepSeek-R1-0528 | SQM | 66.11 | 48.42 | 43.67 | 58.09 | 53.64 | 59.13 | 47.22 | 51.69 |
| DeepSeek-R1-0528 | GQM | 80.92 | 61.98 | 64.38 | 65.79 | 63.26 | 69.15 | 81.82 | 67.73 |
| Discriminative RMs | |||||||||
| CometKiwi-XXL | SQM | 72.01 | 57.82 | 66.49 | 61.60 | 61.20 | 67.12 | 46.72 | 60.16 |
| BT-RM | SQM | 82.62 | 58.16 | 66.49 | 64.92 | 58.14 | 66.10 | 58.84 | 62.11 |
| Generative RMs | |||||||||
| SQM-GenRM (RLVR) | SQM | 64.25 | 49.21 | 39.42 | 60.37 | 49.16 | 54.82 | 38.38 | 48.56 |
| GRRM (RLVR) | GQM | 82.58 | 57.77 | 62.17 | 66.00 | 61.04 | 66.67 | 70.39 | 64.01 |
@article{yang2026grrmgrouprelativereward,
title={GRRM: Group Relative Reward Modeling for Machine Translation},
author={Sen Yang and Shanbo Cheng and Lu Xu and Jianbing Zhang and Shujian Huang},
year={2026},
eprint={2602.14028},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2602.14028},
}