Saved in:
Bibliographic Details
Main Authors: Nasuto, Andrea, Iacus, Stefano Maria, Rowe, Francisco, Jain, Devika
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.06435
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909977251151872
author Nasuto, Andrea
Iacus, Stefano Maria
Rowe, Francisco
Jain, Devika
author_facet Nasuto, Andrea
Iacus, Stefano Maria
Rowe, Francisco
Jain, Devika
contents Large language models (LLMs) offer new opportunities for scalable analysis of online discourse. Yet their use in multilingual social science research remains constrained by model size, cost and linguistic bias. We develop a lightweight, open-source LLM framework using fine-tuned LLaMA 3.2-3B models to classify immigration-related tweets across 13 languages. Unlike prior work relying on BERT style models or translation pipelines, we combine topic classification with stance detection and demonstrate that LLMs fine-tuned in just one or two languages can generalize topic understanding to unseen languages. Capturing ideological nuance, however, benefits from multilingual fine-tuning. Our approach corrects pretraining biases with minimal data from under-represented languages and avoids reliance on proprietary systems. With 26-168x faster inference and over 1000x cost savings compared to commercial LLMs, our method supports real-time analysis of billions of tweets. This scale-first framework enables inclusive, reproducible research on public attitudes across linguistic and cultural contexts.
format Preprint
id arxiv_https___arxiv_org_abs_2508_06435
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Learning the Topic, Not the Language: How LLMs Classify Online Immigration Discourse Across Languages
Nasuto, Andrea
Iacus, Stefano Maria
Rowe, Francisco
Jain, Devika
Computation and Language
Artificial Intelligence
Large language models (LLMs) offer new opportunities for scalable analysis of online discourse. Yet their use in multilingual social science research remains constrained by model size, cost and linguistic bias. We develop a lightweight, open-source LLM framework using fine-tuned LLaMA 3.2-3B models to classify immigration-related tweets across 13 languages. Unlike prior work relying on BERT style models or translation pipelines, we combine topic classification with stance detection and demonstrate that LLMs fine-tuned in just one or two languages can generalize topic understanding to unseen languages. Capturing ideological nuance, however, benefits from multilingual fine-tuning. Our approach corrects pretraining biases with minimal data from under-represented languages and avoids reliance on proprietary systems. With 26-168x faster inference and over 1000x cost savings compared to commercial LLMs, our method supports real-time analysis of billions of tweets. This scale-first framework enables inclusive, reproducible research on public attitudes across linguistic and cultural contexts.
title Learning the Topic, Not the Language: How LLMs Classify Online Immigration Discourse Across Languages
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2508.06435