CouRGe: Counterfactual reviews generator for sentiment analysis
dc.contributor.author | Carraro, Diego | en |
dc.contributor.author | Brown, Kenneth N. | en |
dc.contributor.funder | Science Foundation Ireland | en |
dc.contributor.funder | European Regional Development Fund | en |
dc.date.accessioned | 2023-03-29T12:05:27Z | |
dc.date.available | 2023-03-29T12:05:27Z | |
dc.date.issued | 2022-02-23 | en |
dc.description.abstract | Past literature in Natural Language Processing (NLP) has demonstrated that counterfactual data points are useful, for example, for increasing model generalisation, enhancing model interpretability, and as a data augmentation approach. However, obtaining counterfactual examples often requires human annotation effort, which is an expensive and highly skilled process. For these reasons, solutions that resort to transformer-based language models have been recently proposed to generate counterfactuals automatically, but such solutions show limitations. In this paper, we present CouRGe, a language model that, given a movie review (i.e. a seed review) and its sentiment label, generates a counterfactual review that is close (similar) to the seed review but of the opposite sentiment. CouRGe is trained by supervised fine-tuning of GPT-2 on a task-specific dataset of paired movie reviews, and its generation is prompt-based. The model does not require any modification to the network’s architecture or the design of a specific new task for fine-tuning. Experiments show that CouRGe’s generation is effective at flipping the seed sentiment and produces counterfactuals reasonably close to the seed review. This proves once again the great flexibility of language models towards downstream tasks as hard as counterfactual reasoning and opens up the use of CouRGe’s generated counterfactuals for the applications mentioned above. | en |
dc.description.status | Peer reviewed | en |
dc.description.version | Published Version | en |
dc.format.mimetype | application/pdf | en |
dc.identifier.citation | Carraro, D. and Brown, K. N. (2023) ‘Courge: counterfactual reviews generator for sentiment analysis’, AICS2022, in L. Longo and R. O’Reilly (eds) Artificial Intelligence and Cognitive Science. Cham: Springer Nature Switzerland, pp. 305–317. doi: 10.1007/978-3-031-26438-2_24. | en |
dc.identifier.doi | 10.1007/978-3-031-26438-2_24 | en |
dc.identifier.endpage | 317 | en |
dc.identifier.isbn | 978-3-031-26437-5 | en |
dc.identifier.isbn | 978-3-031-26438-2 | en |
dc.identifier.issued | 305 | en |
dc.identifier.journaltitle | Communications in Computer and Information Science | en |
dc.identifier.startpage | 305 | en |
dc.identifier.uri | https://hdl.handle.net/10468/14334 | |
dc.identifier.volume | 1662 | en |
dc.language.iso | en | en |
dc.publisher | Springer | en |
dc.relation.ispartof | 30th Irish Conference on Artificial Intelligence and Cognitive Science (AICS2022), Munster Technological University, Cork, 8-9 December | en |
dc.relation.project | info:eu-repo/grantAgreement/SFI/SFI Research Centres Programme::Phase 2/12/RC/2289-P2s/IE/INSIGHT Phase 2/ | en |
dc.relation.project | info:eu-repo/grantAgreement/SFI/SFI Research Centres/12/RC/2289/IE/INSIGHT - Irelands Big Data and Analytics Research Centre/ | en |
dc.rights | © 2023 The Author(s). Open Access. This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made | en |
dc.rights.uri | http://creativecommons.org/licenses/by/4.0/ | en |
dc.subject | Natural language processing | en |
dc.subject | Sentiment analysis | en |
dc.subject | Language models | en |
dc.subject | Counterfactual reasoning | en |
dc.subject | Data augmentation | en |
dc.title | CouRGe: Counterfactual reviews generator for sentiment analysis | en |
dc.type | Conference item | en |