LLMs for Social Scientists
A Working Draft
Preface
Social scientists have always studied things we cannot fully see β institutions, norms, beliefs. Now we work alongside a new kind of opaque object: large language models. We use them to code text, summarize interviews, and simulate respondents, usually without knowing what happens between our prompt and their answer.
This book is my attempt to change that, one layer at a time. It grew out of teaching β the BLISS workshops at Northeastern, the AIDE summer bootcamp, and a SICSS-Istanbul lecture on what I call the anthropology of machines β and it keeps the spirit of those rooms: everything by hand first, everything connected to a real research task, and honest about what we do and do not know.
The arc of the book
The book moves through four ways of relating to a language model:
- Use β the plumbing. Running open models with Hugging Face, calling frontier models through APIs, and scaling from one prompt to ten thousand documents (LLMs in Action).
- Steer β getting better answers without touching a single weight: prompting informed by the evidence rather than folklore, and context engineering β RAG, GraphRAG, and research tools you can put in front of colleagues (Steering LLMs).
- Read β mechanistic interpretability: opening the model and observing what happens inside, from the logit lens to sparse autoencoders. This is where social-scientific instincts β coding, interpretation, validity β turn out to matter most (Reading LLMs).
- Change β fine-tuning and adapting models for your own research programs (Changing LLMs).
Before all that, Foundations builds the conceptual floor β neural networks, embeddings, transformers, attention β by hand, on paper, with numbers small enough to trust. And a Python refresher gets you set up if you are coming back to code after a while.
Who this is for
Graduate students and researchers in the social sciences who want to use language models seriously: not just prompt them, but understand them well enough to defend a method section. Basic Python helps; no machine learning background is assumed. Every technique in this book is taught against real research tasks β classifying documents, annotating text at scale, building corpora, interrogating what a model represents.
How to read this draft
- Status badges. Every chapter opens with its status:
outlineβdraftedβtaughtβrevised. Drafted chapters are real but unpolished; taught chapters have survived contact with a classroom. - Comments. Each page has a discussion thread at the bottom (via GitHub). You can also open an issue or suggest an edit with the links in the sidebar.
- Code. Code is shown, not executed, in the rendered book; companion notebooks are linked from chapters as they are released. Code is MIT-licensed; the text is CC BY-NC 4.0.
Citing this draft
Tapan, Y. E. (2026). LLMs for Social Scientists (working draft). https://yemretapan.com/llms4socialscientists
Acknowledgments
This book owes its existence to the communities I taught it in first: the BLISS community at Northeastern, supported by the NULab for Digital Humanities and Computational Social Science; the AIDE summer bootcamp; and SICSS-Istanbul.