Few-shot Classifier Example Extraction via Gradient Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Few-shot classifiers exhibit varying performance across different tasks due to unexplored robustness to data variations within datasets, and existing benchmarks fail to distinguish between task difficulties, limiting the reliability and safety of deployed models.

Innovation Solution

A computationally efficient method using projected gradient ascent to identify and characterize difficult support sets by learning constrained selection weights, maximizing loss on a query set, which enables the extraction of support sets that cause a few-shot classifier to perform poorly, thereby improving model robustness and scalability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If traditional greedy algorithms are used to identify difficult support sets, then the method is simple to implement, but the computational speed is slow and cannot handle large-scale benchmarking

Engineering Contradiction:
Improvecomputational speedVSAvoidalgorithm complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent replaces the mechanical iterative selection process of greedy algorithms with a gradient-based optimization approach. By formulating the selection of difficult support sets as an optimization problem and using gradient ascent to maximize classifier loss, the system achieves 20-25× speedup while maintaining the ability to identify challenging examples for model robustness evaluation.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If few-shot classifiers are trained with small number of examples, then the classifier can operate in data-scarce scenarios, but the performance varies significantly across different tasks

Engineering Contradiction:
Improveoperability in data-scarce scenariosVSAvoidperformance consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent performs preliminary identification of difficult support sets before deploying the few-shot classifier. By using gradient-based optimization to pre-select examples that will cause high loss on query sets, the system prepares robust training data in advance, enabling the classifier to maintain consistent performance across varying tasks even with limited examples.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements a feedback mechanism where the classifier's performance on query sets is used to guide the selection of difficult support sets. By maximizing the loss on held-out query examples, the system identifies which training examples most challenge the classifier, creating a feedback loop that continuously improves performance consistency across different tasks.

Inventive Principle:
Principle #23Feedback

3Ease of operation

If existing benchmarks are used to evaluate few-shot classifiers, then the evaluation process is straightforward, but the benchmarks fail to distinguish between task difficulties

Engineering Contradiction:
Improveevaluation simplicityVSAvoidtask difficulty differentiation
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The patent changes the evaluation parameter from simple accuracy measurement to loss maximization on query sets. By selecting support sets that maximize classifier loss rather than using random or uniform benchmarks, the system creates differentiated task difficulty levels that provide more precise measurement of classifier robustness while maintaining straightforward evaluation procedures.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20240104161A1Few-shot classifier example extraction
Publication Date: 2024.03.28 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20240104161A1 patent drawing
  • US20240104161A1 patent drawing
  • US20240104161A1 patent drawing

AI summary

In various examples there is a computer-implemented method comprising accessing a pool of examples. The method obtains a query set comprising a plurality of held out examples in a plurality of classes. For each example in the pool, the method assigns a weight to the example and initializes the weight using a default or random value. The method accesses a constrained optimization problem. The constrained optimization is solved using a projected gradient ascent or descent, the solving resulting in optimal weights resulting in an optimal performance of a few-shot classifier on the query set, where the few-shot classifier is trained using the examples from the pool weighted by the optimal weights. The method selects, using the optimal weights, an example per class from the pool, and stores the selected examples.