Nanyang Technological University
Advancing sentiment understanding and safety in NLP systems
Abstract
dc:description.abstractThe rapid advancement of natural language processing (NLP), powered by pretrained and large language models (PLMs and LLMs), has fundamentally transformed human–machine interaction. However, integrating these systems into society demands more than just technical expertise. Their widespread adoption introduces complex ethical, emotional, and social challenges, underscoring the need for two critical pillars: a deep understanding of human sentiment to ensure responsible interactions and robust safeguards to prevent misuse. This thesis addresses these challenges by developing advanced sentiment analysis techniques and proactive safety strategies, aiming to create AI systems that not only uphold human values but also resist malicious exploitation. A key premise of human-centered AI is its ability to understand humans and generalize across diverse expressions of sentiment. Without this capability, AI may misinterpret context, reinforce biases, or struggle with nuanced interactions. To achieve this, we begin by enhancing PLMs, which remain foundational for real-world applications. Specifically, we introduce BGCA, a bidirectional generative framework for cross-domain aspect-based sentiment analysis. By incorporating domain-agnostic sentiment patterns through two-stage data augmentation, BGCA achieves state-of-the-art generalization, enabling PLMs to interpret fine-grained emotions across varied real-world scenarios. While refining PLMs improves sentiment generalization, evaluating the sentiment comprehension of modern LLMs presents a parallel challenge. Despite their strong performance in sentiment classification, LLMs often struggle with structured and nuanced sentiment understanding, revealing a gap between benchmark success and true comprehension. To bridge this gap, we introduce SENTIEVAL, a benchmark designed to mirror the complexity of real-world emotional expression. SENTIEVAL rigorously assesses models’ ability to capture intricate human sentiments, fostering more nuanced and sentiment-aware AI. As AI advances in interpreting emotions, it also becomes more susceptible to exploitation. Systems capable of detecting subtle cues can be manipulated to generate deceptive content or conceal harmful behaviors. Our analysis, for example, highlights how LLMs’ multilingual capabilities can be leveraged for such malicious activities. Malicious actors can exploit linguistic diversity to bypass safety measures through multilingual jailbreaks, enabling LLMs to generate harmful outputs. Moreover, we demonstrate how everyday grammatical errors can be weaponized to manipulate retrieval-augmented systems, triggering backdoor attacks that spread misinformation. Such vulnerabilities are especially concerning in sentiment-driven applications, where a compromised AI could emotionally manipulate users or distort information to influence perceptions. These risks highlight the need for safety frameworks that adapt to diverse contexts while maintaining ethical integrity. To mitigate these threats, we develop proactive safety measures. Our SELF-DEFENSE framework strengthens LLMs against linguistic manipulation by leveraging automatically generated multilingual safety data. Meanwhile, our vulnerability analysis highlights that integrating proactive grammar error correction or paraphrasing into retrieval systems can preempt adversarial exploitation. By combining emotional nuance with proactive safety, we ensure AI remains both empathetic and resilient against misuse. In conclusion, this thesis establishes that human-centered AI requires models to read between the lines of emotion while seeing through adversarial intent. By advancing sentiment understanding and robust safeguards in parallel, our methodologies create AI that is both empathetic and secure.
Degree
thesis:*- College dc:contributor.school
- College of Computing and Data Science
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Deng, Yue
- Advisor dc:contributor.supervisor
-
- Sinno Jialin Pan
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/10356/183610
- Dc Identifier Citation
- Deng, Y. (2025). Advancing sentiment understanding and safety in NLP systems. Doctoral thesis, Nanyang Technological University, Singapore. https://hdl.handle.net/10356/183610