Federico Di Maio
Research Subjects
Research Interests
Federico Di Maio has a total of 1 co-authors. Here are the top co-authors by number of shared publications:
- Manuel Gozzi
Department of Engineering Sciences, Guglielmo Marconi University, 00193 Rome, Italy
1 shared publication
Latest Publications
- Open Access
- 17 October 2024
- Published by MDPI AG in Preprints.org
Comparative Analysis of Prompt Strategies for LLMs: Single-Task vs. Multitasking Prompts
This study examines the impact of prompt engineering on large language models (LLMs), focusing on a comparison between multitasking and single-task prompts. Specifically, we explore whether a single prompt handling multiple tasks — such as Named Entity Recognition (NER), sentiment analysis, and JSON output formatting — can achieve similar efficiency and accuracy to dedicated single-task prompts. The evaluation uses a combination of performance metrics to provide a comprehensive analysis of output quality. Experiments were conducted using a selection of open-source LLMs, including LLama3.1 8B, Qwen2 7B, Mistral 7B, Phi3 Medium, and Gemma2 9B. Results show that single-task prompts do not consistently outperform multitasking prompts, highlighting the significant influence of the model’s data and architecture on performance.
- 17 October 2024
- Published by MDPI AG in Preprints.org
Open AccessComparative Analysis of Prompt Strategies for LLMs: Single-Task vs. Multitasking Prompts
This study examines the impact of prompt engineering on large language models (LLMs), focusing on a comparison between multitasking and single-task prompts. Specifically, we explore whether a single prompt handling multiple tasks — such as Named Entity Recognition (NER), sentiment analysis, and JSON output formatting — can achieve similar efficiency and accuracy to dedicated single-task prompts. The evaluation uses a combination of performance metrics to provide a comprehensive analysis of output quality. Experiments were conducted using a selection of open-source LLMs, including LLama3.1 8B, Qwen2 7B, Mistral 7B, Phi3 Medium, and Gemma2 9B. Results show that single-task prompts do not consistently outperform multitasking prompts, highlighting the significant influence of the model’s data and architecture on performance.