skills/skillxiv-v0.0.2-claude-opus-4.6/arm-thinker-reward-modeling/SKILL.md
Agentic reward model framework enabling active tool invocation (cropping, retrieval, validation) to ground judgments in verifiable evidence, using multi-stage GRPO with adaptive reward shaping for systematic evidence-based evaluation.
npx skillsauth add ADu2021/skillXiv arm-thinker-reward-modelingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ARM-Thinker introduces an agentic reward modeling framework that enables multimodal reward models to actively invoke external tools—image cropping, document retrieval, instruction validators—to ground judgments in verifiable evidence. Rather than passively scoring responses, the framework follows a "think-act-observe" loop with multi-stage reinforcement learning for adaptive tool-calling optimization.
Think-Act-Observe Loop: Reward models actively reason about what evidence is needed:
Multi-Stage GRPO: Two-phase reinforcement learning:
Adaptive Reward Shaping: Progressively weight tool-calling versus accuracy optimization:
reward = λ_tool * tool_call_quality + λ_acc * accuracy_bonus
Tool invocation architecture:
class ToolCallAgent:
def __init__(self):
self.planner = llm # Plans tool calls
self.tools = {
'crop_image': crop_image_tool,
'retrieve_docs': doc_retrieval_tool,
'validate_instruction': instruction_validator
}
def think_act_observe(self, response, evidence):
# Plan what to verify
plan = self.planner(f"What should I verify about {response}?")
# Execute tool calls
observations = []
for tool_call in parse_tool_calls(plan):
tool_name, args = tool_call
result = self.tools[tool_name](**args)
observations.append((tool_name, result))
return observations
Reward computation with evidence:
def compute_evidence_reward(response, observations, ground_truth):
# Score based on verified facts
accuracy = 0.0
for tool_name, observation in observations:
if tool_name == 'crop_image':
# Check if crop correctly identifies object
matches_gt = compare_visual_features(observation, ground_truth_region)
accuracy += 0.3 * matches_gt
elif tool_name == 'retrieve_docs':
# Check if retrieval is relevant
relevance = compute_relevance(observation, response)
accuracy += 0.4 * relevance
elif tool_name == 'validate_instruction':
# Check if instruction follows constraints
valid = instruction_is_valid(observation)
accuracy += 0.3 * valid
return accuracy
Multi-stage GRPO:
# Stage 1: Optimize tool selection
for step in range(num_steps_phase1):
trajectory = agent.rollout(problem)
tool_quality = evaluate_tool_calls(trajectory)
agent.update(trajectory, reward=tool_quality)
# Stage 2: Refine accuracy
for step in range(num_steps_phase2):
trajectory = agent.rollout(problem)
accuracy = evaluate_response_accuracy(trajectory)
agent.update(trajectory, reward=accuracy)
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.