paper-with-me

Papers

Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiency

2023-05-18 · Lingfeng Shen, Weiting Tan, Boyuan Zheng, Daniel Khashabi

With growing capabilities of large language models, prompting them has become the dominant way to access them. This has motivated the development of strategies for automatically selecting effective language prompts. In this paper, we introduce prompt flatness, a new metric to quantify the expected utility of a language prompt. This metric is inspired by flatness regularization in statistical learning that quantifies the robustness of the model towards its parameter perturbations. We provide theoretical foundations for this metric and its relationship with other prompt selection metrics, providing a comprehensive understanding of existing methods. Empirically, we show that combining prompt flatness with existing metrics improves both performance and sample efficiency. Our metric outperforms the previous prompt selection metrics with an average increase of 5% in accuracy and 10% in Pearson correlation across 6 classification benchmarks.

📄 PDF Abstract BibTeX arXiv:2305.10713

Code (1)

shadowkiller33/flatness 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Data Augmented Flatness-aware Gradient Projection for Continual Learning

2023-01-01 · ICCV 2023 1 · Enneng Yang, Li Shen, Zhenyi Wang, Shiwei Liu 외

The goal of continual learning (CL) is to continuously learn new tasks without forgetting previously learned old tasks. To alleviate catastrophic forgetting, gradient projection based CL methods require that the grad…

Continual Learning

Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalization

2023-03-03 · CVPR 2023 1 · Xingxuan Zhang, Renzhe Xu, Han Yu, Hao Zou 외

Recently, flat minima are proven to be effective for improving generalization and sharpness-aware minimization (SAM) achieves state-of-the-art performance. Yet the current definition of flatness discussed in SAM and its …

Flatness-Aware Minimization for Domain Generalization

2023-07-20 · ICCV 2023 1 · Xingxuan Zhang, Renzhe Xu, Han Yu, Yancheng Dong 외

Domain generalization (DG) seeks to learn robust models that generalize well under unknown distribution shifts. As a critical aspect of DG, optimizer selection has not been explored in depth. Currently, most DG methods f…

Domain GeneralizationFAD

FAM: Relative Flatness Aware Minimization

2023-07-05 · Linara Adilova, Amr Abourayya, Jianning Li, Amin Dada 외

Flatness of the loss curve around a model at hand has been shown to empirically correlate with its generalization ability. Optimizing for flatness has been proposed as early as 1994 by Hochreiter and Schmidthuber, and wa…

Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretraining

2026-04-30 · Hyeonseo Jang, Jaebyeong Jeon, Joong-Won Hwang, Kibok Lee arxiv

Test-time prompt tuning (TPT) has emerged as a promising technique for enhancing the adaptability of vision-language models by optimizing textual prompts using unlabeled test data. However, prior studies have observed th…