Few-Shot Linear Probe Calibration for Foundation Model In-Context Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In-context learning (ICL) is sensitive to varying prompt templates, demonstration permutations, label proportions, and is restricted by a maximum sequence length limit of a tokenizer, leading to unreliable predictions.

Innovation Solution

The method involves using few-shot linear probe calibration with foundation models, where a validation prompt is processed to generate an output probability, and calibration parameters are updated based on a calibration loss to improve inferencing results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If in-context learning uses demonstration samples in prompts, then the model can perform task learning without large training sets, but the predictions become unreliable due to sensitivity to prompt variations and sequence length limits

Engineering Contradiction:
Improvetraining samplesVSAvoidprediction reliability
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent applies preliminary action by performing calibration using a validation set before the model is deployed for actual tasks. The calibration process pre-adjusts the model's response to demonstration samples, establishing stable baseline performance before encountering new evaluation data. This preliminary calibration step ensures that the model's in-context learning behavior is optimized and reliable before it performs actual inference tasks.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback through the calibration process where the model's performance on validation prompts is measured and used to adjust calibration parameters. The calibration loss function provides feedback signals that guide the optimization of calibration parameters, creating a closed-loop system that continuously refines the model's in-context learning behavior to improve prediction reliability.

Inventive Principle:
Principle #23Feedback

2Productivity

If the model uses foundation models with in-context learning, then computational efficiency is improved by eliminating large training sets, but the model performance becomes sensitive to prompt templates and demonstration permutations

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidmodel performance stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies parameter changes by introducing and optimizing calibration parameters that adjust the model's response characteristics. These calibration parameters are learned from validation data and modify how the foundation model processes demonstration samples and generates predictions. By changing these parameters based on validation performance, the system stabilizes model behavior across different prompt templates and demonstration permutations while maintaining computational efficiency.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If the validation prompt includes multiple demonstration samples, then the model can learn task patterns, but the sequence length limit of the tokenizer restricts the number of demonstrations that can be included

Engineering Contradiction:
Improvetask learning capabilityVSAvoidsequence length
Core Design Contradiction:
Adaptability or versatilityVSLength of stationary object

Solution Approach 1:

The patent applies partial action by using a limited number of demonstration samples in the validation prompts, optimized to provide sufficient task learning information without exceeding tokenizer sequence length limits. The calibration process learns to extract maximum learning value from a concise set of demonstrations, achieving effective task adaptation with fewer samples than would be needed without calibration, thus working within the sequence length constraint.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20250190853A1Enhancing in-context learning with foundation models via few-shot linear probe calibration
Publication Date: 2025.06.12 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20250190853A1 patent drawing
  • US20250190853A1 patent drawing
  • US20250190853A1 patent drawing

AI summary

Aspects provide in-context learning with calibration for a foundation model. A validation prompt including one or more demonstration samples and an evaluation example is received and an output probability generated using the foundation model and the validation prompt. A calibration loss is computed based on the output probability and a set of calibration parameters. The set of calibration parameters is updated based on the calibration loss using an optimization algorithm. An inferencing operation is performed using the updated calibration parameters.