A tutorial on open-source large language models for behavioral science

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.

Authors

Institutions

Publication Details

Journal
Behavior Research Methods
Published
2024-08-15
DOI
https://doi.org/10.3758/s13428-024-02455-8
Citations
52
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
18.06

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A tutorial on open-source large language models for behavioral science

Marcel Binz, Dirk U. Wulff, Rui Mata, Z. Hussain
52 citations
Behavior Research Methods
Topic Modeling
18.06
article

A tutorial on open-source large language models for behavioral science

Marcel Binz, Dirk U. Wulff, Rui Mata, Z. Hussain
article en
52 citations

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.

Behavior Research MethodsVol. 56(8)
University of Basel (CH), Helmholtz Zentrum München (DE), Max Planck Institute for Biological Cybernetics (DE), Max Planck Institute for Human Development (DE)
Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
Quality Education
Openalex Percentile: Top 1%
Topic Modeling
18.06
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.