协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
rlaif_preference_labeling【开发与工程】Build RLAIF pairwise AI-feedback labels from label-token logits, optional chain-of-thought rationales, and swapped-order position-bias mitigation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation needs to convert two candidate responses into the soft AI preference label used by RLAIF. It is appropriate for summarization, helpful-dialogue, or harmless-dialogue pairwise comparisons where an LLM or deterministic scorer can return logits for displayed labels 1 and 2.
Do not use this skill to train a reward model, score a single generation from 1 to 10, or update a policy. Those are separate RLAIF mechanisms.
task: one of summarization, helpful_dialogue, or harmless_dialogue.context: source post or dialogue history.response1, response2: candidate responses in the original order.1 and 2; in tests this is a deterministic fake.[p_response1, p_response2] over the original response order.1 and 2 to probabilities with stable softmax.Run:
python scripts/preference_labeling.py --smoke
python tests/test_preference_labeling.py
The tests verify softmax conversion, swapped-order remapping, chain-of-thought prompt metadata, and the module boundary that preference labels must not contain reward or policy fields.
This skill can emulate the paper's label-token API, but it does not provide a real PaLM 2 labeler. Full paper-scale labeling requires an external LLM endpoint and the original preference datasets.