Drug and alcohol review

The Accuracy of Large Language Models With in-Context Learning: How to Detect Alcohol More Accurately in Social Media Data.

Jingda Du, Zhen He, Emmanuel Kuntsche, Dan Anderson-Luxford, Jack Delmenico, Joshua Millward, Benjamin Riordan

Computer Science & Information Technology, La Trobe University, Melbourne, Australia. · Centre for Alcohol Policy Research, La Trobe University, Melbourne, Australia.

Key points

From the paper's conclusion
  • We found variations in performance across models and strategies; however, overall, we observed that using recent LLMs for ZSL was accurate in detecting alcohol references in Instagram posts (72%-95% accuracy). Accuracy improved slightly when including examples in the prompt (F1 scores with examples 0.92 vs. without examples 0.90) and when splitting posts into smaller text chunks prior to analysis (F1 score for 45-word chunks 0.92 vs. no splitting 0.90).

Abstract

INTRODUCTION: Research suggests that alcohol-related content is common on social media, but it is difficult to determine just how common it is with current methods (i.e., content analyses). Using large language models (LLM) without further training (known as zero-shot learning (ZSL)) may be an efficient strategy for analysing large text data. We aimed to determine whether LLMs could accurately detect whether alcohol is mentioned in Instagram posts. Additionally, we aimed to identify how to improve results by: (i) comparing different models that can be used for ZSL; (ii) including examples in the prompt (in-context learning); and (iii) breaking the posts into smaller text chunks prior to analysis. METHODS: We annotated whether alcohol was present or not in 8522 Instagram posts from top influencers. We then compared the predictions of different LLMs and techniques to the annotated data to estimate accuracy. RESULTS: We found variations in performance across models and strategies; however, overall, we observed that using recent LLMs for ZSL was accurate in detecting alcohol references in Instagram posts (72%-95% accuracy). Accuracy improved slightly when including examples in the prompt (F1 scores with examples 0.92 vs. without examples 0.90) and when splitting posts into smaller text chunks prior to analysis (F1 score for 45-word chunks 0.92 vs. no splitting 0.90). DISCUSSION AND CONCLUSIONS: LLMs can accurately estimate whether alcohol is referenced in text, particularly when including representative examples in a prompt (in-context learning). The application of these approaches should allow for more accurate estimates of alcohol in social media posts.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

The Accuracy of Large Language Models With in-Context Learning: How to Detect Alcohol More Accurately in Social Media Data — Science Skim