Cross-Transformer Similarity Matching for Few-Shot Classification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing neural networks struggle to recognize data items from categories not seen during training without requiring re-training and often fail to generalize well to novel categories due to supervision collapse.

Innovation Solution

A neural network system that generates key and value embeddings for query and support data items, using attention maps to determine similarity measures, allowing for recognition of novel categories with limited examples, and a training method that uses transformed data items in episodic training to enhance generalizability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If traditional neural networks are used for classification, then they can recognize data items from trained categories, but they fail to generalize to novel categories without re-training

Engineering Contradiction:
Improvegeneralization to novel categoriesVSAvoidrecognition accuracy
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary actions by generating key and value embeddings for support data items before the actual query classification. These embeddings are stored and reused when queries arrive, allowing the system to quickly adapt to novel categories without re-training. The cross-attention mechanism is pre-configured to enable flexible matching between query and support embeddings.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system changes parameters by transforming data items through learned embedding functions that map inputs to continuous vector spaces. By adjusting the embedding dimensionality and using temperature scaling in the attention mechanism, the system can adapt its sensitivity to similarities, enabling generalization to novel categories while maintaining reliable classification.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If more support data items are collected for each category, then recognition accuracy improves, but memory and processing requirements increase

Engineering Contradiction:
Improvesimilarity determination accuracyVSAvoidmemory and processing requirements
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The system extracts only the essential features of support data items by transforming them into compact key and value embeddings. Instead of storing and processing entire support datasets, the system extracts discriminative embeddings that capture category-essential information, significantly reducing memory requirements while maintaining accurate similarity determination.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system transitions from working with raw high-dimensional data to operating in embedding spaces of optimized dimensions. By projecting data into carefully chosen embedding dimensions and using attention mechanisms that operate on these compressed representations, the system achieves accurate similarity measurement with reduced computational and memory overhead.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Adaptability or versatility

If the neural network is trained on limited examples (few-shot learning), then it can handle data scarcity, but it suffers from supervision collapse and poor feature learning

Engineering Contradiction:
Improvefew-shot learning capabilityVSAvoidfeature learning quality
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system introduces cross-attention mechanisms as intermediaries between support and query embeddings. This intermediary mechanism enables the model to learn effective representations from limited examples by attending to relevant features in support data, preventing supervision collapse while maintaining reliable few-shot learning capability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The embedding networks are designed to be universal and category-agnostic, serving multiple functions: they encode both support and query data, generate attention weights, and produce similarity scores. This multi-functionality allows the system to generalize from few examples across different categories without overfitting to specific training data.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12530574B2Cross-transformer neural network system for few-shot similarity determination and classification
Publication Date: 2026.01.20 GDM HOLDING LLC
  • US12530574B2 patent drawing
  • US12530574B2 patent drawing
  • US12530574B2 patent drawing

AI summary

There is described a neural network system for determining a similarity measure between a query data item and a set of support data items. The neural network system is implemented by one or more computers and one or more storage devices storing instructions that when executed by the one or more computers cause the one or more computers to perform operations comprising receiving the query data item and obtaining a support set of one or more support data items comprising a support key embedding and a support value embedding for each respective support data item in the support set. The operations further comprise generating a query key embedding for the query data item using a key embedding neural network subsystem configured to process a data item to generate a key embedding.