Nanyang Technological University
Demonstration exemplar selection for context-based sentiment analysis tasks
Abstract
dc:description.abstractIn the task of exemplar selection, how to construct exemplars that can effectively improve the classification performance of the model is the primary goal. This thesis proposes an exemplar selection method that balances relevance and diversity. The main contributions of the thesis are as follows: (1) Framework construction: a comprehensive exemplar selection framework for unsupervised classification (ICL) binary sentiment classification is proposed. The framework systematically balances semantic relevance and sample diversity. (2) Stability analysis: the first phase of the experiment systematically evaluates the effects of cue templates and exemplar ordering on ICL stability and accuracy. Based on these findings, a unified and stable foundation is established for subsequent comparison of selection strategies. (3) Algorithmic innovation: the repulsive greedy selection (RGS) algorithm is proposed. The method reduces redundancy while maintaining relevance through the product scoring mechanism. Experiments on the Twitter-Sentiment dataset show that the RGS algorithm performs better than the random method, improving the accuracy by about 7-10 percentage points in 4, 6, 10, and 16 sampling scenarios. In addition, in multiple method comparisons, i.e., nine rounds of repetitive comparisons of four methods, i.e., random, NNR, MMR, and RGS, the present method demonstrates a significant ranking advantage in low-sample scenarios. Specifically, the performance is outstanding in 4, 6, and 10shots scenarios. (4) Implementation framework: the article provides a complete implementation process from retrieval recall, semantic reordering to final example selection, which provides an actionable path for the replication and extension of subsequent research.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Shi, Minda
- Advisor dc:contributor.supervisor
-
- Mao Kezhi
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/212865