brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
direct_rlaif_rewardingCompute direct-RLAIF rewards from one-to-ten score-token logits without training a separate reward model.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a RLAIF experiment needs the paper's direct reward path: a scorer rates one generated response with score tokens 1 through 10, the token logits become a score distribution, and the expected score is mapped to a normalized reward.
Do not use this skill for pairwise preference labeling or reward-model distillation. Direct-RLAIF is a single-response reward mechanism.
task: summarization or helpful_dialogue.context: source post or dialogue history.response: generated text to score.1 through 10.score_probabilities: probabilities for scores 1 through 10.expected_score: the probability-weighted score.normalized_reward: expected score mapped from [1, 10] to [-1, 1].1 through 10.((expected_score - 1) / 9) * 2 - 1.[-1, 1].Run:
python scripts/direct_reward.py --smoke
python tests/test_direct_reward.py
The tests verify normalization, monotonic score ordering, uniform-distribution behavior, and output bounds.
The bundled scorer is deterministic and is meant for reduced recovery only. A full d-RLAIF run needs an actual off-the-shelf LLM with score-token likelihoods during policy training.