Contrastive Fine-Tuning With Negative Models for LLM Alignment

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current alignment methods for language models, such as supervised fine-tuning (SFT), reinforcement learning from human feedback (RLHF), and direct preference optimization (DPO), require significant human effort and resources, and fail to effectively suppress misaligned responses in existing models, leading to inefficiencies in response quality and accuracy.

Innovation Solution

The contrastive fine-tuning method involves training a separate negative model to generate misaligned responses, which are then used to create unlikelihood training data to train the base model to suppress these responses, thereby aligning it with human preferences without requiring expensive human feedback.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If supervised fine-tuning or reinforcement learning from human feedback is used to align language models, then the model's alignment with human preferences is improved, but the human effort and resources required increase significantly

Engineering Contradiction:
Improvealignment with human preferencesVSAvoidhuman effort and resources
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent creates synthetic misaligned response data by copying and adapting from a smaller set of seed misaligned responses. A template-based generation system replicates misaligned response patterns without requiring human annotation of every training example, thus reducing human effort while maintaining alignment quality

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent performs preliminary action by pre-generating a compact set of seed misaligned responses that capture essential misalignment patterns. These seed responses are then used to automatically generate the full training dataset through templating, eliminating the need for extensive human annotation during the main training process

Inventive Principle:
Principle #10Preliminary action

2Reliability

If conventional alignment methods are used, then some alignment is achieved, but misaligned responses are not effectively suppressed in the model

Engineering Contradiction:
Improveresponse alignmentVSAvoidmisaligned responses
Core Design Contradiction:
ReliabilityVSObject-generated harmful factors

Solution Approach 1:

The patent applies preliminary anti-action by explicitly training the model to recognize and suppress misaligned response patterns before deployment. The unlikelihood training objective preemptively penalizes misaligned responses during training, so the model learns to avoid these harmful outputs rather than correcting them after generation

Inventive Principle:
Principle #9Preliminary anti-action

Solution Approach 2:

The patent converts harmful misaligned responses into beneficial training signals. By using misaligned responses as negative examples in unlikelihood training, the model learns from what it should avoid, transforming potentially harmful outputs into valuable instructional data that improves alignment

Inventive Principle:
Principle #22Blessing in disguise (Convert harm into benefit)

3Reliability

If more comprehensive training data is used to improve alignment, then the training cost and computational resources increase

Engineering Contradiction:
Improvealignment qualityVSAvoidtraining computational resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent uses template-based copying to generate diverse training examples from a small set of seed responses. This approach creates comprehensive training coverage without proportionally increasing computational resources, as the templating process is automated and efficient

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent changes the training objective parameter from likelihood maximization to unlikelihood minimization. This parameter change allows the model to learn alignment more efficiently by focusing on suppressing specific harmful patterns rather than broadly maximizing alignment across all possible responses

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250371044A1Contrastive fine-tuning alignment
Publication Date: 2025.12.04 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20250371044A1 patent drawing
  • US20250371044A1 patent drawing
  • US20250371044A1 patent drawing

AI summary

A contrastive fine-tuning alignment system trains language models to simultaneous increase the likelihood of helpful, human-aligned responses while actively decreasing the likelihood of harmful or misaligned responses. The system trains a separate negative model to behave as a “negative persona” using datasets of human-misaligned responses, or responses that do not align with the human preferences for which a base model is being trained. The trained negative model is then used to generate training data comprising misaligned responses paired with corresponding prompts, and the resulting training data is used to train the base model on the unlikelihood objective. This approach reduces or eliminates the need for expensive human feedback during the model training process and does not require expensive teaching models, and is therefore a simple and effective alignment technique for training language models to generate responses that adhere to human values and preferences across diverse tasks.