paper-with-me

Papers

FamiCom: Further Demystifying Prompts for Language Models with Task-Agnostic Performance Estimation

2024-06-17 · Bangzheng Li, Ben Zhou, Xingyu Fu, Fei Wang, Dan Roth, Muhao Chen

Language models have shown impressive in-context-learning capabilities, which allow them to benefit from input prompts and perform better on downstream end tasks. Existing works investigate the mechanisms behind this observation, and propose label-agnostic prompt metrics that can better estimate end-task performances. One popular approach is using perplexity as a way to measure models' familiarity with the prompt. While showing consistent improvements on in-domain tasks, we found that familiarity metrics such as perplexity cannot accurately estimate performance in complicated situations such as task or domain transferring scenarios. In this work, we propose a revised measure called FamiCom, providing a more comprehensive measure for task-agnostic performance estimation. Specifically, FamiCom combines familiarity with \textit{complexity} -- the inherent difficulty of end tasks, which is an important factor missing from current metrics. Experiments show that FamiCom strongly correlates with end-task performances, producing a 0.85 Spearman's correlation, versus 0.43 of familiarity-only ones'. We further apply FamiCom to automatic prompt and demonstration selection, and outperform existing methods and baselines by more than 7.0% in accuracy.

📄 PDF Abstract BibTeX arXiv:2406.11243

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Similar Papers 제목 키워드 기반

Demystifying Prompts in Language Models via Perplexity Estimation

2022-12-08 · Hila Gonen, Srini Iyer, Terra Blevins, Noah A. Smith 외

Language models can be prompted to perform a wide variety of zero- and few-shot learning problems. However, performance varies significantly with the choice of prompt, and we do not yet understand why this happens or how…

Few-Shot Learning

Demystifying optimized prompts in language models

2025-05-04 · Rimon Melamed, Lucas H. McCabe, H. Howie Huang

Modern language models (LMs) are not robust to out-of-distribution inputs. Machine generated (``optimized'') prompts can be used to modulate LM outputs and induce specific behaviors while appearing completely uninterpret…

Demystifying ChatGPT: How It Masters Genre Recognition

2025-07-05 · Subham Raj, Sriparna Saha, Brijraj Singh, Niranjan Pedanekar arxiv

The introduction of ChatGPT has garnered significant attention within the NLP community and beyond. Previous studies have demonstrated ChatGPT's substantial advancements across various downstream NLP tasks, highlighting …

Malla: Demystifying Real-world Large Language Model Integrated Malicious Services

2024-01-06 · Zilong Lin, Jian Cui, Xiaojing Liao, XiaoFeng Wang

The underground exploitation of large language models (LLMs) for malicious services (i.e., Malla) is witnessing an uptick, amplifying the cyber threat landscape and posing questions about the trustworthiness of LLM techn…

Language ModelingLanguage ModellingLarge Language Model

Demystifying the Slash Pattern in Attention: The Role of RoPE

2026-01-13 · Yuan Cheng, Fengzhuo Zhang, Yunlong Hou, Cunxiao Du 외 arxiv

Large Language Models (LLMs) often exhibit slash attention patterns, where attention scores concentrate along the $Δ$-th sub-diagonal for some offset $Δ$. These patterns play a key role in passing information across toke…