Moving Beyond ChatGPT: Local Large Language Models (LLMs) and the Secure Analysis of Confidential Unstructured Text Data in Social Work Research
Purpose: Large language models (LLMs) have demonstrated remarkable abilities in natural language tasks. However, their use in social work research is limited by confidentiality and security concerns when processing sensitive data. This study addresses these challenges by evaluating the performance of local LLMs (LocalLLMs) in classifying and extracting substance-related problems from unstructured child welfare investigation summaries. LocalLLMs allow researchers to analyze data on their own computers without transmitting information to external servers for processing. Methods: Four state-of-the-art LocalLLMs—Mistral-7b, Mixtral-8 × 7b, LLama3-8b, and Llama3-70b—were tested using zero-shot prompting on 2,956 manually coded summaries. Results: The LocalLLMs achieved exceptional results comparable to human experts in classification and extraction, demonstrating their potential to unlock valuable insights from confidential, unstructured child welfare data. Conclusions: This study highlights the feasibility of using LocalLLMs to efficiently analyze large amounts of textual data while addressing the confidentiality issues associated with proprietary LLMs.
Authors
- Joseph P. Ryan (ORCID: https://orcid.org/0000-0003-2683-1577)
- Brian Edward Perron (ORCID: https://orcid.org/0009-0008-4865-451X)
- Bryan G. Victor (ORCID: https://orcid.org/0000-0002-2092-912X)
- Hui Luan (ORCID: https://orcid.org/0000-0001-9884-8509)
- Oliver Hiltz-Perron
Institutions
- Tianjin University of Technology (CN)
- Wayne State University (US)
- Queen's University (CA)
- University of Michigan (US)
Publication Details
- Journal
- Research on Social Work Practice
- Published
- 2024-09-30
- DOI
- https://doi.org/10.1177/10497315241280686
- Citations
- 14
- Primary Topic
- Mental Health via Writing
- Type
- article
- Field-Weighted Citation Impact
- 9.01