vix.ing · top · new · best · stats

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

2024/08/15 by Zak Hussain, Marcel Binz, Rui Mata +1 · 1 voice · 64 citations
Computer Science · Psychology · Social Sciences · #Artificial intelligence #Behavioral modeling #Computational and Text Analysis Methods #Computer science #Computer security #Conceptualization #Data science #Executable #Interpretability #Mental Health via Writing #Open science #Programming language #Topic Modeling #Transparency (behavior)

paper · pdf · doi:10.3758/s13428-024-02455-8

published in Behavior Research Methods 56(8), 8214-8237 (Springer Science+Business Media)

openalex publication_date 2024/08/15 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/06

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.

Citations

Cited by

Discussions

Related