SugarTextNet: A Transformer-Based Framework for Detecting Sugar Dating-Related Content on Social Media with Context-Aware Focal Loss
Lionel Z. WangThe Hong Kong Polytechnic University [email protected], Yulu HuangThe University of Hong Kong [email protected], Shihan BenThe University of Hong Kong [email protected], Simeng QinNortheastern University [email protected] · 2025
Read SugarTextNet: A Transformer-Based Framework for Detecting Sugar Dating-Related Content on Social Media with Context-Aware Focal Loss by Lionel Z. WangThe Hong Kong Polytechnic University [email protected], Yulu HuangThe University of Hong Kong [email protected], Shihan BenThe University of Hong Kong [email protected], Simeng QinNortheastern University [email protected] (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2511-06402.txt.
Introduction
Lionel Wang and co-authors detect social media posts tied to sugar dating, arrangements that trade intimacy for money or gifts. Such content spreads on mainstream platforms and raises social and regulatory worries. Detection is hard because posters hide behind euphemisms and vague wording, and genuine cases are rare next to ordinary posts.
Their system, SugarTextNet, layers a pretrained transformer with an attention-based cue extractor and a phrase encoder that reads context. A new training loss weights hard, rare cases by their surrounding context to fight the imbalance. On a hand-labeled set of about three thousand Weibo posts, the system beat classical models, deep baselines, and large language models.
Catalog record
| CREATOR | Lionel Z. WangThe Hong Kong Polytechnic University [email protected], Yulu HuangThe University of Hong Kong [email protected], Shihan BenThe University of Hong Kong [email protected], Simeng QinNortheastern University [email protected] |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 37 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2511-06402
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
SugarTextNet: A Transformer-Based Framework for Detecting Sugar Dating-Related Content on Social Media with Context-Aware Focal Loss Lionel Z. WangThe Hong Kong Polytechnic University [email protected], Yulu HuangThe University of Hong Kong [email protected], Shihan BenThe University of Hong Kong [email protected], Simeng QinNortheastern University [email protected] Abstract Sugar dating-related content has rapidly proliferated on mainstream social media platforms, giving rise to serious societal and regulatory concerns, including commercialization of intimate relationships and the normalization of transactional relationships. Detecting such content is highly challenging due to the prevalence of subtle euphemisms, ambiguous linguistic cues, and extreme class imbalance in real-world data. In this work, we present SugarTextNet, a novel transformer-based framework specifically designed to identify sugar dating-related posts on social media. SugarTextNet integrates a pretrained transformer encoder, an attention-based cue extractor, and a contextual phrase encoder to capture both salient and nuanced features in user-generated text. To address class imbalance and enhance minority-class detection, we introduce Context-Aware Focal Loss, a tailored loss function that combines focal loss scaling with contextual weighting. We evaluate SugarTextNet on a newly curated, manually annotated dataset of 3,067 Chinese social media posts from Sina Weibo, demonstrating that our approach substantially outperforms traditional machine learning models, deep learning baselines, and large language models across multiple metrics. Comprehensive ablation studies confirm the indispensable role of each component. Our findings highlight the importance of domain-specific, context-aware modeling for sensitive content detection, and provide a robust solution for content moderation in complex, real-world scenarios. Keywords: Sugar Dating, Context-Aware Focal Loss, Natural Language Processing, Social Computing 1 Introduction Online spaces, particularly social media platforms, have become central to modern communication, shaping how individuals exchange ideas, form relationships, and participate in societal trends. Among these trends, sugar dating ( 30 ) , a phenomenon characterized by transactional relationships where financial or material benefits are exchanged for companionship, has seen a significant rise in visibility and activity on social media ( 32 ) . While such arrangements may appear consensual and legal in some contexts, they pose troubling ethical, sociological, and regulatory challenges ( 9 ; 16 ; 34 ) . The most notable concern is the potential exploitation of vulnerable individuals, such as young adults or those in financial distress ( 33 ) , who may feel coerced into these arrangements under the guise of economic necessity. For example, the highly publicized case of the ”SeekingArrangement controversy” 1 1 1 https://x.gd/07xbn in recent years revealed how platforms explicitly promoting sugar dating blurred the lines between consensual relationships and exploitative practices, drawing criticism for their role in exposing younger audiences to predatory behaviors ( 8 ) . In the past, sugar dating was primarily confined to niche platforms specifically catering to this group ( 40 ) . Such platforms were relatively obscure, and sugar dating content rarely appeared on the mainstream social media platforms used by the general public. However, in recent years, the growing popularity of social networks and the expansion of the internet economy ( 43 ) have enabled sugar dating-related posts to proliferate across widely used social media platforms. This shift has significantly exacerbated the social problems and regulatory challenges associated with sugar dating. Compounding the issue is the private and often ambiguous nature of these interactions, which makes it exceedingly difficult for social media platforms to monitor or regulate such exchanges effectively ( 7 ) . This lack of oversight creates an environment where predatory behavior and exploitative arrangements can thrive unchecked, posing significant challenges for both platforms and society at large. The proliferation of sugar dating content on mainstream social media platforms is a quintessential socio-digital issue. It reflects the commodification of intimacy ( 6 ) and the reproduction of power asymmetry ( 5 ) within digital spaces, potentially fueling broader detrimental social dynamics. Given these societal risks and the challenges posed by the unique nature of social media, there is a crucial need to develop effective tools for identifying and regulating sugar dating-related content on these platforms. The detection of such content is far from straightforward. The challenge lies in the nature of the language used in these posts, which often rely on subtle euphemisms ( 41 ) , ambiguous phrasing ( 35 ; 45 ) , or hashtags that serve as cultural markers. This subtlety necessitates the use of advanced natural language processing (NLP) methods capable of capturing semantic nuances and contextual dependencies ( 38 ) . Furthermore, the complexity of the problem is heightened by the overlap between sugar dating-related content and other forms of discussion, such as third-party narratives or indirect descriptions. This creates significant ambiguity in classification, making it difficult to distinguish direct from indirect commentary. Therefore, addressing this issue requires not only technical sophistication in NLP but also an in-depth exploration of social modeling of content and behavior within social computing. Adding to these complexities is the issue of class imbalance in the data ( 25 ) . The overwhelming majority of social media posts are unrelated to sugar dating, making sugar daddy-related posts and indirect narratives rare events in the dataset. Traditional machine learning methods often fail to adequately address such imbalances, as they tend to prioritize the majority class at the expense of minority classes. This imbalance not only affects model performance but also exacerbates the risk of false negatives, which are particularly problematic in this context given the need for high recall in identifying potentially harmful or policy-relevant content. To address these limitations, we propose SugarTextNet , a novel deep learning framework designed to detect and classify sugar daddy-related content on social media. SugarTextNet builds on the strengths of transformer-based architectures but is specifically tailored to address the challenges of this task. The model integrates a transformer encoder for contextual feature extraction, an attention-based cue extractor to identify critical linguistic markers, and a contextual phrase encoder to capture sequential dependencies. To further tackle the problem of class imbalance and improve the recall for minority classes, we introduce Context-Aware Focal Loss (CAFL) , a custom loss function that incorporates focal loss scaling, contextual weighting, and recall-boosting penalties. This loss function is particularly suited for tasks where the minority classes are both semantically nuanced and underrepresented. We extensively evaluate SugarTextNet on a challenging real-world dataset of 3,067 social media posts, which exhibits a pronounced class imbalance. SugarTextNet achieves a macro F1-score of 76.23%, substantially outperforming a wide range of traditional machine learning, deep learning, and large language model baselines across all major metrics. Ablation studies further confirm that each key component of SugarTextNet is crucial to overall performance, with the removal of any single module resulting in a marked decrease in macro F1-score (dropping as low as 51.85%). These results demonstrate that SugarTextNet effectively addresses the specific linguistic and contextual challenges of sugar dating detection in imbalanced social media data. This research makes the following key contributions: 1) We are among the first to notice the growing phenomenon of sugar dating on public mainstream social media and present SugarTextNet, a novel deep learning framework to address the challenges of detecting sugar dating-related content; 2) We introduce Context-Aware Focal Loss (CAFL), a custom loss function that adapts focal loss for multi-class settings by incorporating contextual weighting and recall optimization, making it particularly effective for imbalanced datasets;