Few-Shot Learning with Foundation Models
1. Definition and Key Concepts
1.1 Definition and Key Concepts
Few-shot learning (FSL) refers to the ability of a machine learning model to generalize from a minimal number of labeled examples, typically ranging from one to a few dozen samples per class. Foundation models, such as large-scale pretrained transformers (e.g., GPT, CLIP, DALL-E), have revolutionized FSL by leveraging their broad pretraining on massive datasets to enable rapid adaptation to new tasks with limited supervision.
Core Principles of Few-Shot Learning
The effectiveness of few-shot learning with foundation models stems from three key principles:
- Meta-Learning: The model learns a general-purpose representation during pretraining that captures transferable features across diverse tasks. This is formalized as learning a prior over task distributions:
where θ represents model parameters, 𝒟meta is the meta-training data, and 𝒟task are individual tasks.
- Inductive Bias: Foundation models incorporate architectural choices (e.g., self-attention in transformers) that bias them toward learning representations amenable to few-shot adaptation.
- In-Context Learning: Large language models demonstrate the ability to perform tasks by conditioning on a few examples provided in the input context, without parameter updates.
Mathematical Formulation
Given a support set S = {(xi, yi)}i=1N with N examples (N typically ≤ 100) and a query x, few-shot learning aims to predict the corresponding y. The prediction can be framed as:
where θ represents the model parameters. Foundation models approximate this through either:
- Fine-tuning: Updating θ on S via gradient descent
- Prompt-based inference: Using the support set as context without modifying θ
Key Architectural Components
Modern few-shot learning systems with foundation models typically employ:
- Pretrained Backbones: Large transformer architectures with hundreds of millions to billions of parameters, pretrained on web-scale data
- Adaptation Mechanisms: Techniques like prompt tuning, adapter layers, or soft prefix tuning that modify only a small fraction of parameters
- Metric Learning: Distance-based classifiers (e.g., prototypical networks) in the model's embedding space
Performance Metrics
Few-shot learning performance is typically evaluated through:
where Ntest is the number of test examples and 𝕀 is the indicator function. More sophisticated evaluations may measure:
- Cross-domain generalization
- Sample efficiency (learning curve as function of N)
- Computational cost of adaptation
Practical Considerations
Effective deployment requires addressing several challenges:
- Task Ambiguity: With very few examples, multiple hypotheses may explain the data equally well
- Distribution Shift: Mismatch between pretraining data and target tasks
- Catastrophic Forgetting: Overfitting to the small support set at the expense of general knowledge
Challenges in Traditional Machine Learning
Traditional machine learning models rely heavily on large-scale labeled datasets for training, a requirement that becomes problematic in scenarios where labeled data is scarce or expensive to acquire. The core assumption of independent and identically distributed (i.i.d.) data between training and test sets often fails in real-world applications, leading to poor generalization. Additionally, these models typically require task-specific architectures and extensive hyperparameter tuning, making them inflexible for rapid adaptation to new tasks.
Data Dependency and Generalization
Supervised learning frameworks optimize a loss function L(θ) over a dataset D = {(xi, yi)}i=1N, where θ represents model parameters. The empirical risk minimization (ERM) principle:
fails when N is small, as the model overfits to the limited training samples. The generalization error ϵ can be quantified using the Rademacher complexity ℜN(ℱ) of the hypothesis class ℱ:
This bound becomes vacuous when N is small, exposing the fundamental limitation of data-hungry algorithms.
Task-Specific Architecture Limitations
Conventional pipelines require manual feature engineering and architecture design for each new task. For instance, a ResNet-50 model pretrained on ImageNet cannot directly process natural language inputs without structural modifications. The lack of cross-modal adaptability forces practitioners to:
- Develop separate models for vision, text, and tabular data
- Retrain entire networks from scratch for minor task variations
- Maintain multiple specialized inference pipelines
Catastrophic Forgetting in Sequential Learning
When fine-tuned on new tasks, neural networks exhibit catastrophic forgetting—previously learned knowledge is overwritten by new training signals. The phenomenon stems from the plasticity-stability dilemma in gradient-based optimization. Consider a model with parameters θ initially trained on task A. Upon fine-tuning for task B, the parameter update:
causes abrupt drift in directions critical for task A, as evidenced by the Fisher Information Matrix FA of the original task:
where Δθ represents the parameter change during fine-tuning.
Computational and Environmental Costs
Training modern architectures like Vision Transformers (ViTs) from scratch requires massive computational resources. The energy consumption E for training a single model scales with:
where PUE (Power Usage Effectiveness) accounts for data center overhead. For reference, training GPT-3 emitted approximately 552 metric tons of CO2 equivalent—highlighting the unsustainable nature of repeatedly training specialized models.
1.3 Role of Foundation Models
Foundation models, such as GPT-3, BERT, and CLIP, serve as the backbone for few-shot learning by leveraging their pre-trained knowledge from vast datasets. These models are trained on diverse tasks, enabling them to generalize across domains with minimal task-specific data. The key mechanism lies in their ability to encode rich, transferable representations that capture high-level semantic features, reducing the need for extensive fine-tuning.
Representation Learning and Transferability
The effectiveness of foundation models in few-shot learning stems from their hierarchical representation learning. During pre-training, these models develop multi-scale feature extractors, where lower layers capture generic patterns (e.g., edges in images or syntactic structures in text) and higher layers encode task-specific semantics. Mathematically, this can be expressed as a nested function composition:
Here, each fi represents a layer transforming input x into progressively abstract representations. The pre-trained weights serve as an initialization point, allowing adaptation to new tasks with limited labeled examples via techniques like:
- Prompt-based tuning: Reformulating tasks as natural language prompts to exploit the model's linguistic priors.
- Adapter layers: Inserting lightweight trainable modules while freezing the bulk of the model.
- Meta-learning: Optimizing the model's initialization for rapid adaptation to novel tasks.
Scaling Laws and Emergent Abilities
Empirical studies reveal that foundation models exhibit emergent few-shot capabilities as their parameter count (N) and training data (D) scale. The performance P often follows a power-law relationship:
where α and β are scaling exponents typically between 0.07–0.1. This scaling enables models to perform competitively with only k-shot examples, where k can be as low as 1–5 for well-structured tasks.
Case Study: CLIP for Visual Few-Shot Learning
Contrastive Language-Image Pre-training (CLIP) demonstrates how foundation models bridge modalities. By aligning image and text embeddings during pre-training, CLIP achieves few-shot classification by comparing test images to textual class descriptors (e.g., "a photo of a dog"). The similarity score S between an image embedding v and text embedding t is computed as:
This zero-shot transfer capability can be further refined with few-shot examples through linear probing on the frozen embeddings.

2. Meta-Learning Approaches
Meta-Learning Approaches
Meta-learning, or learning-to-learn, enables models to rapidly adapt to new tasks with minimal data by leveraging prior experience. In few-shot learning with foundation models, meta-learning approaches optimize for task-agnostic representations and adaptation strategies. Three dominant paradigms exist: metric-based, model-based, and optimization-based methods.
Metric-Based Meta-Learning
Metric-based approaches learn an embedding space where similarity metrics (e.g., Euclidean or cosine distance) determine classification. Prototypical Networks exemplify this by computing class prototypes as the mean embedding of support examples:
where \( S_k \) is the support set for class \( k \), and \( f_\theta \) is the embedding function. Query samples are classified via softmax over distances to prototypes:
Modern variants like Relation Networks replace fixed metrics with learnable comparators, while Matching Networks employ attention over the support set for adaptive embeddings.
Model-Based Meta-Learning
These methods use architectures with internal memory or fast parameter adaptation. Memory-Augmented Neural Networks (MANNs), such as Neural Turing Machines, store and retrieve task-specific information via attention mechanisms. For a support set \( S \), the read operation computes:
where \( \mathbf{M}_t \) is the memory matrix at step \( t \), and weights \( w_t(i) \) attend to relevant memories. Meta Networks extend this with fast parameter generation via a meta-learner network.
Optimization-Based Meta-Learning
Optimization methods explicitly learn initialization parameters or update rules for rapid fine-tuning. Model-Agnostic Meta-Learning (MAML) finds initial parameters \( \theta \) that adapt efficiently to new tasks via few gradient steps:
The meta-objective minimizes loss across tasks after adaptation:
First-order approximations (FOMAML) and Reptile simplify Hessian computations, while LEO introduces latent embeddings for parameter optimization. Recent work integrates these with transformer-based foundation models via adapter layers or prompt tuning.
Practical Considerations
- Task Distribution Design: Meta-training tasks must match the diversity and complexity of target applications.
- Embedding Dimensionality: High-dimensional spaces improve discriminability but risk overfitting.
- Cross-Modal Transfer: Vision-language models like CLIP enable zero-shot metric learning by aligning embeddings across modalities.

Prompt Engineering for Few-Shot Tasks
Few-shot learning with foundation models relies heavily on the structure and content of the input prompt to guide the model's behavior. Unlike traditional supervised learning, where the model learns from a large labeled dataset, few-shot learning provides only a handful of examples within the prompt itself. The quality of these examples and their presentation significantly impacts model performance.
Key Components of Effective Few-Shot Prompts
An optimal few-shot prompt consists of three critical elements:
- Task Description: A clear, concise explanation of what the model should do, often including input-output format specifications.
- Demonstration Examples: A small set of representative input-output pairs that illustrate the desired behavior.
- Query: The actual input for which we want the model to generate an output.
The prompt construction follows this general template:
Task: [description of task]
Input: [example input 1] → Output: [example output 1]
Input: [example input 2] → Output: [example output 2]
...
Input: [query input] → Output:
Mathematical Formulation of Prompt Effectiveness
The effectiveness of a prompt can be quantified by measuring the model's conditional probability of generating correct outputs given the prompt structure. For a prompt P containing k examples, the likelihood of correct prediction for query x is:
where T is the length of the output sequence and y<t represents all tokens generated before step t. The prompt's quality directly influences this probability distribution.
Advanced Prompt Engineering Techniques
Example Selection Strategies
Not all examples equally improve model performance. Optimal example selection considers:
- Diversity: Examples should cover the input space's key variations
- Relevance: Examples should be semantically similar to expected queries
- Complexity: Examples should match the difficulty level of target tasks
The similarity between examples ei and query x can be measured using embedding space distance:
where φ represents the model's embedding function and d is a distance metric (typically cosine distance).
Prompt Format Optimization
The surface form of the prompt significantly affects model performance. Key formatting considerations include:
- Delimiter Consistency: Using clear, consistent separators between components
- Instruction Positioning: Placing task descriptions before examples
- Input-Output Alignment: Maintaining parallel structure across examples
Experimental results show that formatting improvements alone can yield accuracy gains of 5-15% on benchmark tasks.
Practical Considerations for Real-World Deployment
When implementing few-shot prompts in production systems, several practical factors must be addressed:
- Token Budget: Managing prompt length within model context window limits
- Latency: Balancing example quantity with inference speed requirements
- Versioning: Tracking prompt variations and their performance characteristics
The optimal number of examples k follows a logarithmic relationship with model size:
where N is the model parameter count, and α, β are task-specific constants determined empirically.
2.3 Data Augmentation and Synthetic Examples
Few-shot learning scenarios often suffer from limited labeled data, making data augmentation and synthetic example generation critical for improving model generalization. Traditional augmentation techniques like rotation, flipping, and color jittering remain useful but are insufficient for complex domains. Instead, modern approaches leverage foundation models to generate semantically meaningful variations.
Foundation Model-Based Augmentation
Large language models (LLMs) and diffusion models can synthesize high-quality training examples conditioned on few-shot prompts. Given a seed example x and label y, a foundation model G generates new samples x' preserving the semantic content of y while introducing controlled variations. The generation process can be formalized as:
where z represents latent noise controlling the variation strength. For vision tasks, diffusion models like Stable Diffusion can generate photorealistic images when provided with text prompts derived from the original labels. In NLP, LLMs can produce diverse paraphrases or style-transferred text while maintaining original semantics.
Controlled Semantic Perturbation
Effective augmentation requires maintaining label consistency while maximizing diversity. This is achieved through:
- Latent space interpolation: Linear combinations of encoded examples in the foundation model's embedding space
- Attention-guided modification: Selective alteration of non-critical features using model attention maps
- Adversarial robustness constraints: Ensuring generated samples lie within the model's valid input manifold
The perturbation bounds can be derived from the model's sensitivity analysis. For a classifier f with Lipschitz constant L, the maximum allowable perturbation ε that preserves the original prediction is:
Cross-Modal Augmentation
Multimodal foundation models enable knowledge transfer between modalities. For instance, CLIP can generate textual descriptions of visual concepts which are then used to create new training images. The alignment score between modalities provides a natural quality control metric:
where Ev and Et are vision and text encoders, and T is the set of possible textual descriptions.
Practical Considerations
When implementing these techniques:
- Balance diversity and fidelity through validation set performance
- Monitor for distribution shift between synthetic and real data
- Combine foundation model augmentation with traditional methods
- Use curriculum learning, gradually increasing augmentation complexity
Recent benchmarks show that properly implemented foundation model augmentation can improve few-shot accuracy by 15-30% across vision and language tasks, while reducing the required labeled examples by an order of magnitude.

3. Natural Language Processing Examples
3.1 Natural Language Processing Examples
Few-shot learning in natural language processing (NLP) leverages foundation models like GPT-3, T5, and BERT to generalize from minimal labeled examples. These models, pre-trained on vast corpora, exhibit remarkable meta-learning capabilities by conditioning on a small set of demonstrations (k-shot examples) before inferring on new tasks.
Prompt Engineering for Few-Shot NLP
The effectiveness of few-shot learning hinges on prompt design. Given a task like sentiment analysis, the model is conditioned with k labeled examples formatted as:
where x represents input text and y the label. The model then predicts for a new input xtest via:
Optimal performance requires:
- Example selection: Diverse, representative samples that span the task's decision boundaries
- Template design: Natural language framing that aligns with the model's pre-training objectives
- Label space mapping: Clear correspondence between demonstration labels and desired output format
Architectural Adaptations
While vanilla transformer models can perform few-shot learning, specialized architectures enhance sample efficiency:
- Pattern-exploiting training (PET): Wraps inputs in task-specific textual patterns that trigger relevant knowledge in pre-trained models
- Hypothesis-only models: Decompose tasks into verifiable hypotheses that the model can evaluate independently
- Retrieval-augmented generation: Dynamically retrieves relevant few-shot examples from external memory during inference
Case Study: Few-Shot Named Entity Recognition
For entity recognition with limited labeled examples, a hybrid approach combines:
where ℒLM is the standard language modeling loss and ℒspan optimizes for boundary detection. The model first processes demonstrations like:
[Text] "Apple unveiled the M2 chip at WWDC 2022" [Labels] Apple:ORG, M2:PRODUCT, WWDC 2022:EVENT
then generalizes to unseen entities through attention mechanisms that focus on similar contextual patterns.
Calibration Techniques
Few-shot predictions often require calibration to address overconfidence:
where T is a learned temperature parameter that sharpens (T < 1) or smoothes (T > 1) the output distribution. Contextual calibration further adjusts scores by comparing to a null input baseline.
Cross-Lingual Transfer
Multilingual foundation models enable few-shot learning across languages by:
- Template translation: Maintaining parallel prompt structures across source and target languages
- Embedding alignment: Projecting demonstrations into a shared semantic space
- Meta-learning: Optimizing initialization parameters for rapid adaptation to new languages
For low-resource languages, this approach achieves within 5% of fully supervised performance using just 32 examples per class.
3.2 Computer Vision Use Cases
Few-shot learning with foundation models has revolutionized computer vision by enabling rapid adaptation to new tasks with minimal labeled examples. Pre-trained models like CLIP, DALL·E, and Vision Transformers (ViTs) exhibit strong generalization capabilities, making them ideal for scenarios where labeled data is scarce.
Key Architectures and Methodologies
Contrastive Language-Image Pretraining (CLIP) aligns visual and textual embeddings in a shared latent space, allowing zero-shot transfer to downstream tasks. Given an image x and a text prompt t, CLIP computes their similarity using a cosine distance metric:
where fθ and gφ are the image and text encoders, respectively. For few-shot adaptation, a linear probe is trained on top of frozen CLIP embeddings using limited labeled examples.
Practical Applications
Medical Imaging
In histopathology, foundation models pretrained on large-scale datasets like ImageNet can be fine-tuned with just 5–10 labeled examples per class to achieve competitive performance in tumor detection. Prototypical networks leverage class prototypes computed as the mean embedding of support examples:
where Sk is the support set for class k. Query samples are classified based on their Euclidean distance to these prototypes.
Industrial Quality Inspection
Meta-learning frameworks like Model-Agnostic Meta-Learning (MAML) enable rapid adaptation to new defect types in manufacturing. The outer-loop optimization objective is:
where θ′i = θ − α∇θℒ𝒯i(fθ) represents task-specific adaptation via gradient descent.
Advanced Techniques
Recent work in prompt tuning for vision transformers demonstrates that learned soft prompts can outperform linear probing in few-shot settings. Given a pretrained ViT, a set of continuous prompt vectors P ∈ ℝm×d is prepended to the input sequence:
where E is the patch embedding matrix. These prompts are optimized while keeping the base model frozen, achieving state-of-the-art results on benchmarks like Meta-Dataset.
Performance Considerations
When deploying few-shot vision models, the choice of backbone architecture significantly impacts performance. Empirical studies show that larger models (e.g., ViT-L/16) exhibit better transfer capabilities but require careful regularization to prevent overfitting on small support sets. Data augmentation techniques like RandAugment and MixUp are particularly effective in low-data regimes.

3.3 Cross-Domain Adaptation
Cross-domain adaptation in few-shot learning addresses the challenge of transferring knowledge from a source domain, where abundant labeled data exists, to a target domain with limited labeled examples but potentially different data distributions. Foundation models, pretrained on large-scale datasets, provide a robust starting point for such adaptation due to their generalized feature representations.
Domain Shift and Feature Alignment
The core issue in cross-domain adaptation is domain shift, where the joint distribution of inputs and labels differs between source and target domains: PS(X,Y) ≠ PT(X,Y). To mitigate this, feature alignment techniques project both domains into a shared latent space where their distributions are similar. A common approach minimizes the Maximum Mean Discrepancy (MMD) between domains:
where φ(·) is a feature mapping in reproducing kernel Hilbert space H, and nS, nT are sample sizes for source and target domains respectively. For foundation models, this often involves fine-tuning only the final layers while keeping early layers frozen to preserve general features.
Adversarial Domain Adaptation
Adversarial methods train a domain discriminator D to distinguish between source and target features, while the feature extractor G attempts to fool D. The minimax objective is:
Recent work combines this with foundation models by using the pretrained model as G and adding lightweight adaptation modules. For example, Domain-Specific Prompt Tuning (DSPT) learns domain-specific prompts while keeping the base model fixed, enabling efficient adaptation with few target examples.
Meta-Learning for Cross-Domain Adaptation
Model-Agnostic Meta-Learning (MAML) frameworks have been extended to cross-domain scenarios by simulating domain shifts during meta-training. The objective becomes:
where Uθ is the adaptation operator, and p(T) samples tasks from multiple source domains. When applied to foundation models, this approach meta-learns initialization parameters that facilitate rapid adaptation to novel domains with minimal target data.
Practical Considerations
- Feature Disentanglement: Separating domain-invariant and domain-specific features improves adaptation. Techniques like variational autoencoders can learn disentangled representations.
- Self-Supervised Learning: Auxiliary tasks like contrastive learning on unlabeled target data help bridge domain gaps without requiring extensive labels.
- Architectural Choices: Residual adapters or adapter layers inserted into foundation models allow parameter-efficient tuning for new domains.
In real-world applications, cross-domain adaptation enables foundation models to work in specialized areas like medical imaging with only a handful of annotated examples, by transferring knowledge from natural image datasets. The key is balancing adaptation to the target domain while preventing catastrophic forgetting of general knowledge encoded in the foundation model.

4. Standard Few-Shot Learning Datasets
4.1 Standard Few-Shot Learning Datasets
Few-shot learning benchmarks are critical for evaluating the generalization capabilities of foundation models under limited supervision. These datasets are carefully designed to simulate real-world scenarios where labeled examples are scarce, enabling rigorous assessment of meta-learning, transfer learning, and prompt-based adaptation techniques.
Omniglot
Omniglot is a widely adopted benchmark for few-shot classification, consisting of 1,623 handwritten characters from 50 alphabets. Each character has 20 instances drawn by different individuals, making it ideal for testing model robustness to intra-class variation. The dataset is structured for N-way-K-shot evaluation, where models must classify novel characters using only K examples per class. Omniglot's hierarchical structure (alphabets → characters → instances) enables cross-alphabet generalization tests that probe compositional learning abilities.
Mini-ImageNet and Tiered-ImageNet
Mini-ImageNet contains 100 classes from ImageNet, with 600 images per class (84×84 pixels). Its split of 64/16/20 classes for train/validation/test ensures evaluation on truly novel categories. Tiered-ImageNet improves upon this with 608 classes grouped into 34 higher-level categories, enforcing stricter separation between training and testing superclasses to prevent information leakage. Both datasets challenge models to handle natural image complexity with minimal supervision.
Meta-Dataset
Meta-Dataset amalgamates 10 diverse image sources including ILSVRC-2012, Omniglot, Aircraft, and Quick Draw. With over 1.7 million images across 1,100 classes, it provides the most comprehensive few-shot benchmark. Key innovations include:
- Variable-way classification (5-50 classes per episode)
- Heterogeneous domain shifts between datasets
- Class imbalance within episodes
FewRel for Relation Extraction
FewRel adapts few-shot learning to NLP by providing 100 relations from Wikipedia with 700 instances each. The dataset evaluates a model's ability to recognize semantic relationships (e.g., capital of, employer) given just 5-10 annotated examples. Its sentence-level annotations require joint understanding of syntax and semantics, making it particularly challenging for foundation models.
Cross-Domain Considerations
Recent benchmarks like Meta-Album (60 image classification datasets across 10 domains) and VTAB+ (19 vision tasks) explicitly test cross-domain generalization. Performance metrics must account for:
where D is the number of domains and Baselined is the performance of a naive prototypical network on domain d.
4.2 Metrics for Performance Assessment
Classification Metrics
In few-shot classification tasks, accuracy alone is insufficient due to small support sets. The N-way K-shot evaluation protocol demands metrics robust to class imbalance and stochasticity. Top-1 accuracy is commonly reported but should be accompanied by:
where TPi and FNi are true positives and false negatives for class i. For probabilistic models, the negative log-likelihood (NLL) captures calibration:
Regression and Structured Prediction
For continuous outputs, normalized mean squared error (NMSE) scales errors by dataset variance:
In few-shot object detection, mean Average Precision (mAP) is adapted by computing AP per novel class and averaging over shots. The intersection-over-union (IoU) threshold is typically relaxed to 0.5 for low-data regimes.
Cross-Domain Generalization
When evaluating foundation models across domains, H-score disentangles transferability from task-specific learning:
where cov(Y) and cov(Ŷ) are covariance matrices of true and predicted features. For language tasks, perplexity is normalized by out-of-domain baseline performance.
Bayesian Few-Shot Metrics
Probabilistic few-shot methods require metrics evaluating both prediction quality and uncertainty calibration. The expected calibration error (ECE) discretizes confidence bins:
where Bm contains samples with predicted confidence in interval m. The Brier score combines calibration and refinement:
with fi as predicted probability and oi as one-hot true label.
Meta-Learning Specific Metrics
For optimization-based meta-learners, task-averaged gradient alignment measures adaptation efficiency:
where τi, τj are sampled tasks. High ρ indicates reusable learning dynamics across tasks.
4.3 Comparing Foundation Models
Foundation models exhibit distinct architectural and performance characteristics that influence their suitability for few-shot learning tasks. Key differentiating factors include model scale, pretraining objectives, and adaptability mechanisms. The most prominent models—GPT-3, T5, and CLIP—leverage transformer architectures but optimize for different modalities and downstream applications.
Architectural and Pretraining Differences
GPT-3 employs a decoder-only transformer pretrained on autoregressive language modeling, enabling strong few-shot generalization through in-context learning. Its performance scales predictably with parameter count, following the power-law relationship:
where N represents model parameters, α and β are scaling coefficients, and L∞ denotes the irreducible loss floor. In contrast, T5 uses an encoder-decoder architecture with span corruption pretraining, achieving superior performance on structured prediction tasks but requiring more fine-tuning for optimal few-shot adaptation.
Modality-Specific Adaptations
CLIP introduces a dual-encoder design pretrained on 400 million image-text pairs, optimizing for cross-modal alignment through contrastive learning. Its few-shot capabilities emerge from the joint embedding space, where linear probes achieve 96.3% of fully supervised performance on ImageNet with just 8 examples per class. The alignment objective minimizes:
where f and g are image and text encoders, τ is a temperature parameter, and B represents the batch of negative samples.
Computational Tradeoffs
Model selection depends critically on computational constraints and task requirements. GPT-3-175B achieves state-of-the-art few-shot performance but requires 3.14E23 FLOPs per forward pass. Smaller variants like T5-Base (220M parameters) offer viable alternatives when fine-tuning is permitted, with a 47× reduction in inference cost. The optimal choice follows a Pareto frontier balancing:
- Pretraining compute budget
- Inference latency constraints
- Downstream adaptation efficiency
Empirical Performance Benchmarks
Standardized evaluation on the RAFT benchmark reveals stark differences in few-shot capabilities. GPT-3 achieves 72.3% accuracy on 16-shot classification versus T5's 68.1%, while CLIP attains 85.4% on vision tasks with equivalent supervision. These disparities stem from pretraining data diversity—CLIP's multimodal exposure yields better visual concept grounding, whereas GPT-3's broader textual corpus enhances linguistic versatility.
5. Key Research Papers
5.1 Key Research Papers
- PDF Few-Shot Object Detection with Foundation Models — Existing works are usually developed based on ImageNet pre-trained vision backbones and design sophis-ticated metric-learning networks for few-shot learning, but still have inferior accuracy. In this work, we study few-shot object detection using modern foundation models.
- PDF Few-Shot Learning with Semi-Supervised Transformers for Electronic ... — 1. Introduction Recent breakthroughs in foundation models (Bommasani et al., 2021) have enabled new opportunities for healthcare applications, notably using transformer-based models to lever-age the longitudinal aspect shared by the natural language and Electronic Health Records (EHRs). Transformer-based models are generally built on the transfer learning paradigm, utilizing pre-training steps ...
- [2205.06743] A Comprehensive Survey of Few-shot Learning ... - ar5iv — Abstract Few-shot learning (FSL) has emerged as an effective learning method and shows great potential. Despite the recent creative works in tackling FSL tasks, learning valid information rapidly from just a few or even zero samples still remains a serious challenge. In this context, we extensively investigated 200+ latest papers on FSL published in the past three years, aiming to present a ...
- Prompt-based learning for few-shot class-incremental learning — In this paper, inspired by the versatility of pre-trained ViT models, we propose leveraging prompts for Few-Shot Class-Incremental Learning tasks to efficiently integrate new knowledge into existing models without the need for extensive retraining. We introduce PL-FSCIL, an innovative strategy that employs prompts to enhance model performance in FSCIL scenarios. PL-FSCIL consists of three key ...
- PDF Recent advances of few-shot learning methods and applications — The rapid development of deep learning provides great convenience for production and life. However, the massive labels re-quired for training models limits further development. Few-shot learning which can obtain a high-performance model by learning few samples in new tasks, providing a solution for many scenarios that lack samples.
- PDF Few-shot Learner Parameterization by Diffusion Time-steps — We formulate few-shot learning (FSL) within the con-text of recent advancements in foundation models ( Sec-tion 3.1), and introduce a theoretical framework that iso-lates nuanced attributes from visually prominent ones by diffusion time-steps (Section 3.3).
- PDF A Closer Look at the Few-Shot Adaptation of Large Vision-Language Models — In fact, popular adapter-based ETL strategies, such as CLIP-Adapter [11] and TIP-Adapter [42], carefully adjust the model-specific hyperparameters, in conjunction with other key hyperpa-rameters related to the learning scheduler, to control the trade-off between initial zero-shot inference and the integra-tion of new information from the ...
- Few-shot class-incremental learning based on representation enhancement — Few-shot class-incremental learning (FSCIL) is crucial and practical for artificial intelligence in the real world, which learns novel classes incrementally from few samples without forgetting the previously learned classes. However, FSCIL confronts two significant challenges: "catastrophic forgetting" and "overfitting new." We focus on convolutional neural network (CNN)-based FSCIL ...
- Learning robust correlation with foundation model for weakly-supervised ... — We propose a Correlation Enhancement Network with foundation model assistance to accurately segment query samples in weakly-supervised few-shot segmentation (WS-FSS).
- (PDF) Learning Robust Correlation with Foundation Model for Weakly ... — To this end, we propose a weakly supervised few-shot semantic segmentation model based on the meta learning framework, which utilizes prior knowledge and adjusts itself according to new tasks.
5.2 Open-Source Implementations
- Learning robust correlation with foundation model for weakly-supervised ... — Learning robust correlation with foundation model for weakly-supervised few-shot segmentation. Author links open overlay panel Xinyang Huang ... 1-shot 5-shot; Empty Cell: 5 0 5 1 5 2 5 3 ... M. Cho, Integrative few-shot learning for classification and segmentation, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern ...
- PDF Few-Shot Object Detection with Foundation Models - CVF Open Access — in-context learning capability of Large Language Model for con-textualized few-shot proposal classification. Our model achieves strong FSOD performance and reduces human effort to design so-phisticated few-shot learning models. object detection is the intensive use of pre-trained large-scale vision-language models, like CLIP [40], which can
- Few-shot learning for defect detection in manufacturing — The few-shot learning models were trained considering one or five labelled images per class and the few-shot learning pipeline proposed by Hu et al. (Citation 2022a), which consists of three steps: pre-training, meta-training, and fine-tuning. The pre-training stage is devoted to training a backbone model used as a feature extractor in a few ...
- PDF Few-Shot Learning with Language Models: Learning from ... - LMU — pretrained models typically do not achieve satisfactory performance in few-shot settings, where only a limited number of examples is available. This is an important issue not only because the need to annotate thousands of examples is a barrier to the more widespread application of such models, but also because few-shot learning is
- Evaluation of open and closed-source LLMs for low-resource language ... — Experimental results demonstrated that the closed-source GPT-4o model, utilizing Few-Shot learning and Chain-of-Thought prompting, achieved the highest performance across multiple tasks: an F1 score of 84.54% for text classification, 99.00% for sentiment analysis, a F 1 b e r t score of 72.87% for summarization, and 58.22% for question answering.
- PDF Few-shot Learner Parameterization by Diffusion Time-steps - CVF Open Access — tion to improve both zero-shot and few-shot performance. The recent CaFo [45] ensembles multiple foundation mod-els to help with feature adaptation. However, they still suf-fer from the spurious correlation. Besides CLIP-based ap-proaches, recent works have explored in-context learning with vision-language models [1], yet their current classifi-
- PDF Multimodal Few-Shot Learning with Frozen Language Models - NeurIPS — true understanding of the language it processes [5, 2]. Here, we present Frozen, a method for giving a pre-trained language model access to visual information in a way that extends its few-shot learning capabilities to a multimodal setting, without changing its weights. Frozen consists of a neural network
- PDF Evaluation of Open and Closed-Source LLMs for a Low ... - ResearchGate — Evaluation of Open and Closed-Source LLMs for a Low-Resource Language with Zero-Shot, Few-Shot, and Chain-of-Thought Prompting Zabir Al Nazi, Md. Rajib Hossain, Faisal Al Mamun
- Few-Shot Class Incremental Learning with Attention-Aware ... - Springer — A base model with good generalization ability is beneficial for adapting to few-shot new classes [36, 61].To prevent overfitting on base classes after sufficient training, and to leverage the generalization ability of pre-trained ViT for learning new classes with limited data, ASP fixes the pre-trained backbone and learns prompts that can transfer the knowledge learned from base classes to new ...
- A Novel Benchmark for Few-Shot Semantic Segmentation — A standard pipeline for few-shot semantic segmentation typically comprises two key components: a pretrained feature extractor, often derived from a vision foundation model, and an adapter method. This setup leverages the knowledge embedded within the feature extractor and adapts it to the limited labeled data without the risk of overfitting.
5.3 Recommended Courses and Books
- PDF Few-Shot Learning with Language Models: Learning from ... - LMU — pretrained models typically do not achieve satisfactory performance in few-shot settings, where only a limited number of examples is available. This is an important issue not only because the need to annotate thousands of examples is a barrier to the more widespread application of such models, but also because few-shot learning is
- Prompt-based learning for few-shot class-incremental learning — Addressing these challenges is central to incremental learning (IL) and few-shot learning (FSL). IL focuses on mitigating catastrophic forgetting, often branching into Task-IL, Domain-IL, and Class-IL [5]. FSL aims to enable models to learn new classes with minimal samples, balancing rich representation from extensive training and adaptation to ...
- PDF Few-Shot Class-Incremental Learning via Class-Aware Bilateral Distillation — performance. For example, we surpass the second best result on mini-ImageNet over 3%. 2. Related work 2.1. Few-Shot Learning Few-Shot Learning (FSL) aims to learn novel categories from scarce training examples. Previous FSL works can be divided into four categories. Metric learning based works [29,31,32,37] attempt to learn appropriate distance
- Multimodal Zero-Shot and Few-Shot Learning - ResearchGate — Zero-shot and few-shot learning have emerged as promising approaches for enabling machine learning models to generalize to novel tasks with minimal or no task-specific training data.
- PDF Few-shot Learner Parameterization by Diffusion Time-steps - CVF Open Access — The final stage involves training a classifier on the few-shot examples. However, multi-modal foundation models al-ready capture extremely profound prior knowledge, hence recent works focus on few-shot adapting such models. FSL with Foundation Models. There are two main ap-proaches that both leverage CLIP. First is prompt tuning,
- I Foundation Models for Few-shot Learning Via Multitask Finetuning — Published at the Workshop on Understanding Foundation Models at ICLR 2023 Main Results. We are interested in comparing the performance of ϕˆ(the model from pre-training) and ϕ′(the model from pre-training + multitask finetuning) on a target taskT 0, i.e., comparing L sup(T 0,ϕˆ) and L sup(T 0,ϕ′).
- Few-shot class-incremental learning based on representation enhancement — Few-shot class-incremental learning (FSCIL) is crucial and practical for artificial intelligence in the real world, which learns novel classes incrementally from few samples without forgetting the previously learned classes. However, FSCIL confronts two significant challenges: "catastrophic forgetting" and "overfitting new." We focus on convolutional neural network (CNN)-based FSCIL ...
- Empowering few-shot learning: a multimodal optimization framework — The development of transformer-based models has significantly advanced research in natural language processing and computer vision, allowing us to create models with excellent results across various domains. However, in real-world scenarios, the model may lack generalization ability and perform poorly due to data distribution shifts, insufficient training data, or low-quality data. This work ...
- Deep Learning — The Deep Learning textbook is a resource intended to help students and practitioners enter the field of machine learning in general and deep learning in particular. The online version of the book is now complete and will remain available online for free.
- JiuZhou: open foundation language models and effective pre-training ... — 2.1. Domain large language models. By training on domain-specific data, LLMs can adapt better to the unique needs of that domain. This training not only enhances the ability of the model to understand domain-specific texts, but also optimises its performance in generating domain-relevant content, ensuring that the produced texts adhere more closely to professional standards and expectations ...








