The Impact of Role Design in In-Context Learning for Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Rouzegar, Hamidreza, Makrehchi, Masoud
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915519525814272
author Rouzegar, Hamidreza
Makrehchi, Masoud
author_facet Rouzegar, Hamidreza
Makrehchi, Masoud
contents In-context learning (ICL) enables Large Language Models (LLMs) to generate predictions based on prompts without additional fine-tuning. While prompt engineering has been widely studied, the impact of role design within prompts remains underexplored. This study examines the influence of role configurations in zero-shot and few-shot learning scenarios using GPT-3.5 and GPT-4o from OpenAI and Llama2-7b and Llama2-13b from Meta. We evaluate the models' performance across datasets, focusing on tasks like sentiment analysis, text classification, question answering, and math reasoning. Our findings suggest the potential of role-based prompt structuring to enhance LLM performance.
format Preprint
id arxiv_https___arxiv_org_abs_2509_23501
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Impact of Role Design in In-Context Learning for Large Language Models
Rouzegar, Hamidreza
Makrehchi, Masoud
Computation and Language
Artificial Intelligence
68T50
I.2.7
In-context learning (ICL) enables Large Language Models (LLMs) to generate predictions based on prompts without additional fine-tuning. While prompt engineering has been widely studied, the impact of role design within prompts remains underexplored. This study examines the influence of role configurations in zero-shot and few-shot learning scenarios using GPT-3.5 and GPT-4o from OpenAI and Llama2-7b and Llama2-13b from Meta. We evaluate the models' performance across datasets, focusing on tasks like sentiment analysis, text classification, question answering, and math reasoning. Our findings suggest the potential of role-based prompt structuring to enhance LLM performance.
title The Impact of Role Design in In-Context Learning for Large Language Models
topic Computation and Language
Artificial Intelligence
68T50
I.2.7
url https://arxiv.org/abs/2509.23501