Abstract
Social media generates massive amounts of unstructured, multilingual textual data that contain many sentiments, emotions, and opinions from users that provide insights for enterprises undergoing digital transformation. In this paper, we evaluate a variety of commercially available, lightweight large language models (LLMs) for sentiment, emotion, aspect-based sentiment, and toxic speech detection on noisy, real-world social media datasets. These lightweight models are compared (against traditional RoBERTa-based classifiers and heavyweight “pro” LLMs) in terms of performance, latency, and cost trade-offs that are key for scalable deployment across the enterprise. Our results show that lightweight LLMs achieve good accuracy with considerably lower response times and costs, which makes them suitable as the next step in digital transformation for real-time social media analytics. Additionally, we investigate the importance of prompt engineering and show that preprocessing can be very limited for LLMs. This study provides operational guidelines regarding model selection based on latency, accuracy, and cost trade-offs as well as optimal prompt engineering techniques. Finally, it evaluates the intersection of operational performance and resource efficiency to help researchers and developers integrate LLM-based social media analytics into digitized business practices.
IPC Classification
Keywords
€ 4.00