Generative Large Language Models (LLMs), such as Llama and Gemma, offer zero-shot and few-shot capabilities without requiring fine-tuning. However, few studies have directly compared these models with embedding-similarity-based encoder models, such as IndoBERT and SBERT, under equivalent evaluation conditions, particularly for Indonesian–English multilingual sentiment analysis. This study aims to evaluate and compare the performance of these four models under zero-shot and few-shot settings without fine-tuning. The study uses the parallel NusaX-senti dataset, which was stratified and divided into an 80% training pool and a 20% test pool, with six few-shot examples and 100 evaluation scenarios. Model performance was assessed using accuracy, precision, recall, and macro-F1 scores, supplemented by confusion matrix analysis. Differences across experimental conditions were examined using McNemar's test and bootstrap confidence intervals. The results show that few-shot prompting improved F1 scores across all models, with statistically significant improvements in four of the seven model–language combinations. The largest improvement was observed for IndoBERT, whose F1 score increased from 0.297 to 0.616, whereas SBERT showed a smaller improvement (ΔF1 ≈ 0.07) that was not statistically significant. The highest F1 score was achieved by Llama-3.2-3B under the English few-shot setting (0.780; 95% CI: 0.696–0.857). However, 23–24% of Llama's few-shot responses were truncated due to the 60-token limit, although sentiment ratings could still be extracted from all responses. SBERT exhibited the lowest variation in F1 scores across experimental conditions (0.511–0.619), although this stability was accompanied by lower performance than Llama. Performance differences between Indonesian and English were not statistically significant for any of the models. These findings provide insights into the development of computationally efficient Indonesian sentiment analysis systems without requiring model training.
Copyrights © 2026