Prompt Refinement or Fine-tuning? Best Practices for using LLMs in Computational Social Science Tasks

Anders Giovanni Møller, Luca Maria Aiello
8/2/2024
cs.CYcs.CLphysics.soc-ph

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Large Language Models are expressive tools that enable complex tasks of text understanding within Computational Social Science. Their versatility, while beneficial, poses a barrier for establishing standardized best practices within the field. To bring clarity on the values of different strategies, we present an overview of the performance of modern LLM-based classification methods on a benchmark of 23 social knowledge tasks. Our results point to three best practices: select models with larger vocabulary and pre-training corpora; avoid simple zero-shot in favor of AI-enhanced prompting; fine-tune on task-specific data, and consider more complex forms instruction-tuning on multiple datasets only when only training data is more abundant.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mller2024prompt,
  title  = {Prompt Refinement or Fine-tuning? Best Practices for using LLMs in Computational Social Science Tasks},
  author = {Anders Giovanni Møller and Luca Maria Aiello},
  year   = {2024},
  eprint = {2408.01346},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.01346v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.01346.svg)](https://codeofpaper.com/paper/2408.01346)

Discussion