{"id":{"repo_id":"nanyang","oai_identifier":"oai:dr.ntu.edu.sg:10356/200781"},"canonical_url":"https://search.ndltd.org/etd/nanyang/oai:dr.ntu.edu.sg:10356/200781","repository":{"repo_id":"nanyang","name":"Nanyang Technological University","base_url":"https://dr.ntu.edu.sg/oai/request"},"display":{"title":"Demonstration example selection in large language model-based sentiment analysis","abstract":"In-context learning (ICL) introduced a new paradigm for sentiment analysis, where models perform tasks not by parameter updates, but by conditioning on carefully crafted prompts with demonstration examples. This dissertation addresses the critical challenge of demonstration example selection for ICL in sentiment analysis tasks by proposing a novel selection framework named BSR-Cluster. This framework integrates BSR-based semantic similarity scoring with clustering-based diversity promotion to construct prompts that are both relevant and varied, thereby improving model performance. To verify the advantages of the new approach, we did some experiments on two benchmark datasets (SST-2 and IMDb) and three advanced LLMs (LLaMA, DeepSeek and Qwen). Comparative evaluations show that BSR-Cluster consistently outperforms traditional methods under few-shot prompting. Furthermore, ablation studies highlight the importance of label correctness and prompt coherence in ensuring stable model performance. The results of our research provide not only a practical solution for improving sentiment analysis tasks using ICL but also theoretical insights into the general principles of prompt design.","abstract_html":"In-context learning (ICL) introduced a new paradigm for sentiment analysis, where models perform tasks not by parameter updates, but by conditioning on carefully crafted prompts with demonstration examples. This dissertation addresses the critical challenge of demonstration example selection for ICL in sentiment analysis tasks by proposing a novel selection framework named BSR-Cluster. This framework integrates BSR-based semantic similarity scoring with clustering-based diversity promotion to construct prompts that are both relevant and varied, thereby improving model performance. To verify the advantages of the new approach, we did some experiments on two benchmark datasets (SST-2 and IMDb) and three advanced LLMs (LLaMA, DeepSeek and Qwen). Comparative evaluations show that BSR-Cluster consistently outperforms traditional methods under few-shot prompting. Furthermore, ablation studies highlight the importance of label correctness and prompt coherence in ensuring stable model performance. The results of our research provide not only a practical solution for improving sentiment analysis tasks using ICL but also theoretical insights into the general principles of prompt design.","abstract_has_math":false,"creators":["Wang, Binyu"],"institution":"Nanyang Technological University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":"School of Electrical and Electronic Engineering","contributors":[],"advisors":["Mao Kezhi"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-27T08:07:07Z","subjects":["Engineering"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10356/200781","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10356/200781","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Ananyang%3Aoai%3Adr.ntu.edu.sg%3A10356%2F200781","prefix":"oai_dc"},"source_record":{"url":"https://dr.ntu.edu.sg/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.ntu.edu.sg%3A10356%2F200781","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.school","label":"School","values":["School of Electrical and Electronic Engineering"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Mao Kezhi"]},{"key":"dc:creator","label":"Author","values":["Wang, Binyu"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-07-07T07:30:39Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-07-07T07:30:39Z"]},{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:publisher","label":"Institution","values":["Nanyang Technological University"]},{"key":"dc:type","label":"Dc Type","values":["Thesis-Master by Coursework"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10356/200781"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"cerif:openaire","label":"Cerif Openaire","values":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"23a9db11-bdb6-43ca-9d55-874c159f9dd1\"> <Type xmlns=\"https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types\">http://purl.org/coar/resource_type/c_1843</Type> <Language>en</Language> <Title>Demonstration example selection in large language model-based sentiment analysis</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2025</PublicationDate> <Authors> <Author> <DisplayName>Wang, Binyu</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Nanyang Technological University</DisplayName> <OrgUnit /> </Publisher> </Publishers> <Keyword>Engineering</Keyword> <Abstract>In-context learning (ICL) introduced a new paradigm for sentiment analysis, where models perform tasks not by parameter updates, but by conditioning on carefully crafted prompts with demonstration examples. This dissertation addresses the critical challenge of demonstration example selection for ICL in sentiment analysis tasks by proposing a novel selection framework named BSR-Cluster. This framework integrates BSR-based semantic similarity scoring with clustering-based diversity promotion to construct prompts that are both relevant and varied, thereby improving model performance. To verify the advantages of the new approach, we did some experiments on two benchmark datasets (SST-2 and IMDb) and three advanced LLMs (LLaMA, DeepSeek and Qwen). Comparative evaluations show that BSR-Cluster consistently outperforms traditional methods under few-shot prompting. Furthermore, ablation studies highlight the importance of label correctness and prompt coherence in ensuring stable model performance. The results of our research provide not only a practical solution for improving sentiment analysis tasks using ICL but also theoretical insights into the general principles of prompt design.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"]},{"key":"dc:description.abstract","label":"Abstract","values":["In-context learning (ICL) introduced a new paradigm for sentiment analysis, where models perform tasks not by parameter updates, but by conditioning on carefully crafted prompts with demonstration examples. This dissertation addresses the critical challenge of demonstration example selection for ICL in sentiment analysis tasks by proposing a novel selection framework named BSR-Cluster. This framework integrates BSR-based semantic similarity scoring with clustering-based diversity promotion to construct prompts that are both relevant and varied, thereby improving model performance. To verify the advantages of the new approach, we did some experiments on two benchmark datasets (SST-2 and IMDb) and three advanced LLMs (LLaMA, DeepSeek and Qwen). Comparative evaluations show that BSR-Cluster consistently outperforms traditional methods under few-shot prompting. Furthermore, ablation studies highlight the importance of label correctness and prompt coherence in ensuring stable model performance. The results of our research provide not only a practical solution for improving sentiment analysis tasks using ICL but also theoretical insights into the general principles of prompt design."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Master's degree"]},{"key":"dc:title","label":"Title","values":["Demonstration example selection in large language model-based sentiment analysis"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]}]}],"canonical_facts":{"cerif:openaire":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"23a9db11-bdb6-43ca-9d55-874c159f9dd1\"> <Type xmlns=\"https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types\">http://purl.org/coar/resource_type/c_1843</Type> <Language>en</Language> <Title>Demonstration example selection in large language model-based sentiment analysis</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2025</PublicationDate> <Authors> <Author> <DisplayName>Wang, Binyu</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Nanyang Technological University</DisplayName> <OrgUnit /> </Publisher> </Publishers> <Keyword>Engineering</Keyword> <Abstract>In-context learning (ICL) introduced a new paradigm for sentiment analysis, where models perform tasks not by parameter updates, but by conditioning on carefully crafted prompts with demonstration examples. This dissertation addresses the critical challenge of demonstration example selection for ICL in sentiment analysis tasks by proposing a novel selection framework named BSR-Cluster. This framework integrates BSR-based semantic similarity scoring with clustering-based diversity promotion to construct prompts that are both relevant and varied, thereby improving model performance. To verify the advantages of the new approach, we did some experiments on two benchmark datasets (SST-2 and IMDb) and three advanced LLMs (LLaMA, DeepSeek and Qwen). Comparative evaluations show that BSR-Cluster consistently outperforms traditional methods under few-shot prompting. Furthermore, ablation studies highlight the importance of label correctness and prompt coherence in ensuring stable model performance. The results of our research provide not only a practical solution for improving sentiment analysis tasks using ICL but also theoretical insights into the general principles of prompt design.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"],"dc:contributor.school":["School of Electrical and Electronic Engineering"],"dc:contributor.supervisor":["Mao Kezhi"],"dc:creator":["Wang, Binyu"],"dc:date.accessioned":["2025-07-07T07:30:39Z"],"dc:date.available":["2025-07-07T07:30:39Z"],"dc:date.issued":["2025"],"dc:description.abstract":["In-context learning (ICL) introduced a new paradigm for sentiment analysis, where models perform tasks not by parameter updates, but by conditioning on carefully crafted prompts with demonstration examples. This dissertation addresses the critical challenge of demonstration example selection for ICL in sentiment analysis tasks by proposing a novel selection framework named BSR-Cluster. This framework integrates BSR-based semantic similarity scoring with clustering-based diversity promotion to construct prompts that are both relevant and varied, thereby improving model performance. To verify the advantages of the new approach, we did some experiments on two benchmark datasets (SST-2 and IMDb) and three advanced LLMs (LLaMA, DeepSeek and Qwen). Comparative evaluations show that BSR-Cluster consistently outperforms traditional methods under few-shot prompting. Furthermore, ablation studies highlight the importance of label correctness and prompt coherence in ensuring stable model performance. The results of our research provide not only a practical solution for improving sentiment analysis tasks using ICL but also theoretical insights into the general principles of prompt design."],"dc:description.degree":["Master's degree"],"dc:identifier.uri":["https://hdl.handle.net/10356/200781"],"dc:language.iso":["en"],"dc:publisher":["Nanyang Technological University"],"dc:subject":["Engineering"],"dc:title":["Demonstration example selection in large language model-based sentiment analysis"],"dc:type":["Thesis-Master by Coursework"],"dspace:entity.type":["Publication"]},"updated_at":"2026-11-27T08:07:07Z"}