SAMPLe: SAM-based Optimizer for Prompt Learning in VLMs

· Source: cs.CV updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

Summary

SAMPLe (Sharpness-Aware Minimization Prompt Learning) is a novel, model-agnostic optimizer designed to enhance prompt learning in Vision-Language Models (VLMs) like CLIP. It addresses the performance-generalization dilemma by accounting for loss landscape sharpness, balancing exploitation and exploration. SAMPLe dynamically adapts to the current optimization state, reducing overfitting and improving adaptability to unseen data. Integrated into multiple prompt learning frameworks, including CoOp, CoCoOp, MaPLe, TCP, and Co-Prompt, experiments across 11 diverse datasets (e.g., ImageNet, Flowers102, DTD) demonstrate its effectiveness. SAMPLe consistently outperforms existing optimizers, for instance, improving CoOp's harmonic mean from 77.65 to 78.88, showcasing superior generalization to novel classes and robustness in cross-dataset and cross-domain zero-shot settings.

Key takeaway

For AI Scientists and Machine Learning Engineers developing Vision-Language Models, consider integrating SAMPLe to overcome prompt learning's generalization challenges. This optimizer consistently improves performance across diverse datasets and domains by finding flatter, more stable minima. You should evaluate SAMPLe with your existing prompt learning frameworks like CoOp or MaPLe to enhance base-to-new class generalization and cross-domain robustness without sacrificing training accuracy.

Key insights

SAMPLe enhances VLM prompt generalization by optimizing for flatter, lower-loss minima through dynamic sharpness-aware gradient adjustments.

Principles

Method

SAMPLe optimizes a dual-objective function, aligning SAM gradient updates with empirical risk minimization (ERM) gradients and ensuring orthogonality to the full-batch gradient, dynamically balancing exploration and exploitation.

In practice

Topics

Best for: Research Scientist, Computer Vision Engineer, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CV updates on arXiv.org.