Saved in:
Bibliographic Details
Main Author: Hilbig, Hanno
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.19275
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909055543410688
author Hilbig, Hanno
author_facet Hilbig, Hanno
contents Can researchers use local open-weight models instead of commercial APIs for LLM text classification? Local models avoid marginal API charges, keep data on the researcher's machine, and make exact model versions easier to preserve. I benchmark five local models against four commercial API models on 34 political science classification tasks. Local models are often competitive, especially on simpler tasks. In a task-specific oracle comparison, local models match or exceed API performance on 9 tasks; on average, the best API model exceeds the best local model by 0.015 F1. The four strongest observed model means fall within 0.021 F1. API models have their clearest edge on complex tasks with many labels or multiple outputs per item. Batching several items in one prompt usually reduces local runtime per item, but specific model-task pairs can return invalid response formats or labels. Taken together, the results make local open-weight models a practical candidate alternative for many political science classification tasks, provided researchers validate candidate models on task-specific labels and check batching reliability before scaling up.
format Preprint
id arxiv_https___arxiv_org_abs_2605_19275
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Open-Weight LLMs Are Often Competitive with Commercial APIs for Political Science Text Classification
Hilbig, Hanno
Applications
Can researchers use local open-weight models instead of commercial APIs for LLM text classification? Local models avoid marginal API charges, keep data on the researcher's machine, and make exact model versions easier to preserve. I benchmark five local models against four commercial API models on 34 political science classification tasks. Local models are often competitive, especially on simpler tasks. In a task-specific oracle comparison, local models match or exceed API performance on 9 tasks; on average, the best API model exceeds the best local model by 0.015 F1. The four strongest observed model means fall within 0.021 F1. API models have their clearest edge on complex tasks with many labels or multiple outputs per item. Batching several items in one prompt usually reduces local runtime per item, but specific model-task pairs can return invalid response formats or labels. Taken together, the results make local open-weight models a practical candidate alternative for many political science classification tasks, provided researchers validate candidate models on task-specific labels and check batching reliability before scaling up.
title Open-Weight LLMs Are Often Competitive with Commercial APIs for Political Science Text Classification
topic Applications
url https://arxiv.org/abs/2605.19275