PoliPrompt: A High-Performance Cost-Effective LLM-Based Text Classification Framework for Political Science
<|reference_start|>PoliPrompt: A High-Performance Cost-Effective LLM-Based Text Classification Framework for Political Science: Recent advancements in large language models (LLMs) have opened new avenues for enhancing text classification efficiency in political science, surpassing traditional machine learning methods that often require extensive feature engineering, human labeling, and task-specific training. However, their effectiveness in achieving high classification accuracy remains questionable. This paper introduces a three-stage in-context learning approach that leverages LLMs to improve classification accuracy while minimizing experimental costs. Our method incorporates automatic enhanced prompt generation, adaptive exemplar selection, and a consensus mechanism that resolves discrepancies between two weaker LLMs, refined by an advanced LLM. We validate our approach using datasets from the BBC news reports, Kavanaugh Supreme Court confirmation, and 2018 election campaign ads. The results show significant improvements in classification F1 score (+0.36 for zero-shot classification) with manageable economic costs (-78% compared with human labeling), demonstrating that our method effectively addresses the limitations of traditional machine learning while offering a scalable and reliable solution for text analysis in political science.<|reference_end|>
@article{liu2024poliprompt:,
    title={PoliPrompt: A High-Performance Cost-Effective LLM-Based Text
  Classification Framework for Political Science},
    author={Menglin Liu, Ge Shi},
    journal={arXiv preprint arXiv:2409.01466},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.01466},
    primaryClass={cs.CL cs.AI}
}