This guide introduces Large Language Models (LLM) as a highly versatile text analysis method within the social sciences. As LLMs are easy-to-use, cheap, fast, and applicable on a broad range of text analysis tasks, ranging from text annotation and classification to sentiment analysis and critical discourse analysis, many scholars believe that LLMs will transform how we do text analysis. This how-to guide is aimed at students and researchers with limited programming experience, and offers a simple introduction to how LLMs can be used for text analysis in your own research project, as well as advice on best practices. We will go through each of the steps of analyzing textual data with LLMs using Python: installing the software, setting up the API, loading the data, developing an analysis prompt, analyzing the text, and validating the results. As an illustrative example, we will use the challenging task of identifying populism in political texts, and show how LLMs move beyond the existing state-of-the-art.
Detoxify: A framework for abusive text transformation using LLMs
Transitional Artificial Intelligence Research Group, School of Mathematics and Statistics, UNSW(过渡人工智能研究组,数学与统计学学院,新南威尔士大学);Centre for Artificial Intelligence and Innovation, Pingla Institute(人工智能与创新中心,Pingla研究所)
Can LLMs Reason Over Non-Text Modalities in a Training-Free Manner? A Case Study with In-Context Representation Learning
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);AI-X, Interdisciplinary Graduate Programme, Nanyang Technological University(南洋理工大学人工智能交叉研究生项目);Lee Kong Chian School of Medicine, Nanyang Technological University(南洋理工大学李科钦医学院);Centre of AI in Medicine (C-AIM), Nanyang Technological University(南洋理工大学医学人工智能中心);University of Toronto(多伦多大学);Brigham and Women’s Hospital, Harvard Medical School(哈佛医学院布里洛妇女医院);Massachusetts Institute of Technology(麻省理工学院)
Understanding Textual Capability Degradation in Speech LLMs via Parameter Importance Analysis
National Engineering Research Center of Speech and Language Information Processing(语音与语言信息处理国家级工程研究中心);University of Science and Technology of China(中国科学技术大学)
HawkEye: Training Video-Text LLMs for Grounding Text in Videos
Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Beijing Institute for General Artificial Intelligence(北京通用人工智能研究院)
Cue-CoT: Chain-of-thought Prompting for Responding to In-depth Dialogue Questions with LLMs
The Chinese University of Hong Kong(香港中文大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Huawei Noah’s Ark Lab(华为诺亚方舟实验室);National University of Singapore(新加坡国立大学);Peng Cheng Laboratory(鹏城实验室)
"I know myself better, but not really greatly": How Well Can LLMs Detect and Explain LLM-Generated Texts?
School of Cyber Science and Engineering, Shanghai Jiao Tong University, China(上海交通大学信息科学与工程学院);Department of Computing Science, University of Aberdeen, UK(阿伯丁大学计算机科学系);Institute of Cyber Security for Society (iCSS) & School of Computing, University of Kent, UK(社会网络安全研究所(iCSS)及肯特大学计算机学院)
Automated Detection of Pre-training Text in Black-box LLMs
Key Laboratory of Trustworthy Distributed Computing and Service (MoE), Beijing University of Posts and Telecommunications, China(可信分布式计算与服务重点实验室,北京邮电大学,中国);Zhongguancun Laboratory, China(中关村实验室,中国)
CausalAbstain: Enhancing Multilingual LLMs with Causal Reasoning for Trustworthy Abstention
Department of Computer Science, Hong Kong Baptist University(香港 Baptist 大学计算机科学系);School of Mathematics and Statistics, The University of Melbourne(墨尔本大学数学与统计学学院);School of Computing and Information Systems, Singapore Management University(新加坡管理大学计算与信息系统学院)
Open-Source LLMs for Text Annotation: A Practical Guide for Model Setting and Fine-Tuning
University of Zurich(苏黎世大学);Institute for Fundamental Research(基础研究所);Allameh Tabataba’i University(阿拉梅·塔巴塔巴伊大学);Iran University of Science and Technology(伊朗科技大学)
Vulnerability of LLMs to Vertically Aligned Text Manipulations
University of California, San Diego(加州大学圣地亚哥分校);University of California, Los Angeles(加州大学洛杉矶分校);The University of Queensland(昆士兰大学);National University of Singapore(新加坡国立大学);University of Southern California(南加州大学);University of California, Merced(加州大学默塞德分校)