paper-with-me

홈 › Papers

Exploring the Curious Case of Code Prompts

2023-04-26 · Li Zhang, Liam Dugan, Hainiu Xu, Chris Callison-Burch

Recent work has shown that prompting language models with code-like representations of natural language leads to performance improvements on structured reasoning tasks. However, such tasks comprise only a small subset of all natural language tasks. In our work, we seek to answer whether or not code-prompting is the preferred way of interacting with language models in general. We compare code and text prompts across three popular GPT models (davinci, code-davinci-002, and text-davinci-002) on a broader selection of tasks (e.g., QA, sentiment, summarization) and find that with few exceptions, code prompts do not consistently outperform text prompts. Furthermore, we show that the style of code prompt has a large effect on performance for some but not all tasks and that fine-tuning on text instructions leads to better relative performance of code prompts.

📄 PDF Abstract BibTeX arXiv:2304.13250

Code (1)

zharry29/codex_vs_gpt3 공식 구현

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…

Similar Papers 제목 키워드 기반

Curious Explorer: a provable exploration strategy in Policy Learning

2021-06-29 · Marco Miani, Maurizio Parton, Marco Romito

Having access to an exploring restart distribution (the so-called wide coverage assumption) is critical with policy gradient methods. This is due to the fact that, while the objective function is insensitive to updates i…

Policy Gradient Methods

Prompt Waywardness: The Curious Case of Discretized Interpretation of Continuous Prompts

2021-12-15 · NAACL 2022 7 · Daniel Khashabi, Shane Lyu, Sewon Min, Lianhui Qin 외

Fine-tuning continuous prompts for target tasks has recently emerged as a compact alternative to full model fine-tuning. Motivated by these promising results, we investigate the feasibility of extracting a discrete (text…

PROMPT WAYWARDNESS: The Curious Case of Discretized Interpretation of Continuous Prompts

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Fine-tuning continuous prompts for target tasks has recently emerged as a compact alternative to full model fine-tuning. Motivated by these promising results, we investigate the feasibility of extracting a discrete (text…

NOIR: Privacy-Preserving Generation of Code with Open-Source LLMs

2026-01-22 · Khoa Nguyen, Khiem Ton, NhatHai Phan, Issa Khalil 외 arxiv

Although boosting software development performance, large language model (LLM)-powered code generation introduces intellectual property and data security risks rooted in the fact that a service provider (cloud) observes …

Code Generation

Threefold model for AI Readiness: A Case Study with Finnish Healthcare SMEs

2025-03-15 · Mohammed Alnajjar, Khalid Alnajjar, Mika Hämäläinen

This study examines AI adoption among Finnish healthcare SMEs through semi-structured interviews with six health-tech companies. We identify three AI engagement categories: AI-curious (exploring AI), AI-embracing (integr…