Stellar-Qwen3-8B-ARM
Stellar-Qwen3-8B-ARM (StellarQwen3ARMForRewardModeling) is an open-weights Associative Reward Model (ARM) built on top of Qwen/Qwen3-8B. Instead of compressing human preferences directly into a single unanchored scalar score, it evaluates responses across six explicit rubric dimensions using in-backbone directed causal query routing, analytic monotonicity constraints, and non-compensatory gatekeeper penalties.
Model Overview & Architecture
Traditional scalar Bradley-Terry reward models collapse multi-faceted quality criteria into a single opaque score, allowing surface fluency or verbosity to compensate for broken reasoning, factual errors, or violated instructions. Stellar-Qwen3-8B-ARM prevents this structural compensation through four core architectural mechanisms:
1. Six-Dimension Rubric Query Appending
The model appends six learnable query embeddings to the end of the tokenized sequence, corresponding to an explicit evaluation hierarchy:
D1_INSTRUCTION_ADHERENCE: Compliance with explicit user constraints, formatting rules, and safety boundaries.D2_RELEVANCE: Directness and topical alignment with prompt intent.D3_COMPLETENESS: Thoroughness and absence of premature truncation or omitted implementation steps.D4_REASONING_VALIDITY: Step-by-step logical coherence and derivation soundness.D5_TASK_CORRECTNESS: Final factual, mathematical, or functional execution accuracy.D6_COMMUNICATION_QUALITY: Clarity, organization, formatting, and presentation style.
2. In-Backbone 4D Directed Causal Attention Masking
During the forward pass through the backbone transformer layers, a custom 4D attention mask enforces a directed causal hierarchy among the query tokens. While all queries attend to the full prompt-response text, query-to-query attention is strictly structured: downstream style and correctness representations are conditioned on upstream reasoning and completeness states, preventing superficial communication quality from masking factual or logical flaws.
3. Causal DAG Projection & Monotonicity Readout
The final hidden states of the six query tokens are projected into a dedicated latent subspace, processed through causal DAG self-attention blocks, and mapped via independent linear heads into raw dimension logits. A smooth softmin prerequisite ceiling guarantees that task correctness cannot mathematically exceed the quality of its prerequisite completeness and reasoning validity.
4. Non-Compensatory Gatekeeper Veto (LRSV)
To synthesize a single scalar preference logit for ranking and RLHF, the model blends a softmax-weighted linear aggregation with a non-compensatory LogSumExp veto penalty over three core gatekeeper dimensions (D1 Adherence, D4 Reasoning, and D5 Correctness). If any gatekeeper dimension fails, the veto penalty drives the score down regardless of how polished or articulate the presentation style is.
Training Details
- Base Architecture:
Qwen/Qwen3-8Bmerged into standaloneStellarQwen3ARMForRewardModelingweights (FP16). - Training Method: 4-bit NF4 QLoRA fine-tuning ($r=16$, $\alpha=32$) with full-precision custom DAG & rubric heads, fully merged into safetensors for standalone inference.
- Supervision Signals: Jointly optimized under pairwise Bradley-Terry preference loss, 6D soft binary cross-entropy across rubric targets, and counterfactual activation-patching consistency loss.
- Dataset Scale: Trained on 7,500 curated preference pairs across 7 alignment regimes (HelpSteer2 General, Math Reasoning, MBPP/Code AST Bugs, IFEval Constraints, Truncated/Incomplete, Off-Diagonal Style-vs-Correctness, Safety Refusal).
How to Load the Model
The model weights are fully merged and packaged with custom remote modeling code (modeling_stellar_arm.py). No external adapter loading is required—load directly via AutoModelForSequenceClassification with trust_remote_code=True:
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "Stellar-lab/Stellar-Qwen3-8B-ARM"
# 1. Load left-padded tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
if tokenizer.pad_token is None:
tokenizer.pad_token = tokenizer.eos_token or "<|endoftext|>"
tokenizer.padding_side = "left"
# 2. Load model (FP16 partitioned across GPUs, or pass BitsAndBytesConfig for 4-bit)
model = AutoModelForSequenceClassification.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.float16,
device_map="auto",
low_cpu_mem_usage=True,
)
model.eval()
# 3. Score a prompt-response pair
prompt = "User: Explain why dividing by zero is undefined.\nAssistant: "
response = "Division by zero is undefined because no number multiplied by 0 equals a non-zero dividend."
device = model.backbone.get_input_embeddings().weight.device
inputs = tokenizer(prompt + response, return_tensors="pt").to(device)
with torch.no_grad():
out = model(**inputs)
scalar_reward = out.logits.item() # Scalar preference score R(x, y)
rubric_scores = out.dim_scores[0].tolist() # [D1_Adh, D2_Rel, D3_Comp, D4_Reas, D5_Corr, D6_Comm] in (0, 1)
veto_penalty = out.veto_penalty.item() # Non-compensatory gatekeeper penalty
print(f"Scalar Reward : {scalar_reward:.4f}")
print(f"Veto Penalty : {veto_penalty:.4f}")
print("Rubric Scores :")
for dim, score in zip(["Adherence", "Relevance", "Completeness", "Reasoning", "Correctness", "Quality"], rubric_scores):
print(f" - {dim:<14}: {score:.4f}")
Intended Use & Limitations
- Intended Use: Multi-objective reward modeling, interpretable 6D rubric scoring ($D_1 \dots D_6$), Best-of-$N$ test-time reranking, and RLHF/DPO preference filtering.
- Limitations: As an 8B parameter model fine-tuned on 7,500 curated preference pairs, evaluations on highly specialized or out-of-distribution domains should be calibrated with domain-specific rubrics. The non-compensatory veto is sensitive to critical failures in gatekeeper dimensions (
D1,D4,D5) and will intentionally penalize responses that are stylistically fluent but fundamentally incorrect.
License
This project is licensed under the Apache License 2.0.