Legend: Using representation engineering to annotate safety margins for preference datasetsLegend: Leveraging Representation Engineering to Annotate Safety Margin for Preference Datasets
AI summary
The paper proposes the Legend framework, which uses representation engineering to construct a direction representing safety in the LLM embedding space and thereby automatically annotates safety margins for paired responses. The method quantifies how much more harmless one response is than another by computing the semantic distance between the paired responses along this safety direction, thereby helping to construct preference datasets with margin information. The authors conducted experimental validation on two tasks: reward modeling and harmlessness alignment. The framework requires only inference and no additional training, making it easy to implement and extend.