A tutorial on open-source large language models for behavioral science
Authors:
Top Cited Papers
Open Access
- 15 August 2024
- journal article
- research article
- Published by Springer Nature in Behavior Research Methods
- Vol. 56 (8) , 8214-8237
Abstract
Large language models (LLMs) have the potential to revolutionize behavioral science by accelerating and improving the research cycle, from conceptualization to data analysis. Unlike closed-source solutions, open-source frameworks for LLMs can enable transparency, reproducibility, and adherence to data protection standards, which gives them a crucial advantage for use in behavioral science. To help researchers harness the promise of LLMs, this tutorial offers a primer on the open-source Hugging Face ecosystem and demonstrates several applications that advance conceptual and empirical work in behavioral science, including feature extraction, fine-tuning of models for prediction, and generation of behavioral responses. Executable code is made available at github.com/Zak-Hussain/LLM4BeSci.git. Finally, the tutorial discusses challenges faced by research with (open-source) LLMs related to interpretability and safety and offers a perspective on future research at the intersection of language modeling and behavioral science.Keywords
All Related Versions
Funding Information
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung (197315,204700)
This publication has 64 references indexed in Scilit:
- How Accurate are GPT-3’s Hypotheses About Social Science Phenomena?Digital Society, 2023
- Out of One, Many: Using Language Models to Simulate Human SamplesPolitical Analysis, 2023
- Creating and Comparing Dictionary, Word Embedding, and Transformer-Based Models to Measure Discrete Emotions in German Political TextPolitical Analysis, 2022
- Analyzing and interpreting neural networks for NLP: A report on the first BlackboxNLP workshopNatural Language Engineering, 2019
- Open Science now: A systematic literature review for an integrated definitionJournal of Business Research, 2018
- Deconstructing the human algorithms for explorationCognition, 2018
- Humans use directed and random exploration to solve the explore–exploit dilemma.Journal of Experimental Psychology: General, 2014
- Supervised Sequence Labelling with Recurrent Neural Networks2012
- The international personality item pool and the future of public-domain personality measuresJournal of Research in Personality, 2006
- Minds, brains, and programsBehavioral and Brain Sciences, 1980