Confidence-balanced contribution-based XLNet framework for detecting anomalous product prices and sales

For the recognition of anomalies in commodity prices, a binary classification problem, one of the current state-of-the-art algorithms is XLNet. It integrates the AR model and BERT, addressing the shortcomings of inconsistent pre-training and integration content between BERT and the inability of AR to consider contextual information. XLNet employs cross-entropy loss (Loss). However, when dealing with a significantly imbalanced distribution of positive and negative class samples in the presence of a massive volume of data, such as a much larger quantity of normal-priced commodities compared to abnormal-priced ones, there is a problem of overfitting easy-to-classify samples with excessively high confidence. Focal Loss mitigates this issue by reducing the weight of easily classified samples in the loss function, thereby increasing the loss contribution of hard-to-classify samples. However, it focuses solely on the difficulty of classifying individual samples and does not consider the overall discreteness level of easy and hard samples. To address this, a reshaped cross-entropy loss called Slanting Loss is proposed. Slanting Loss retains the contribution of the original loss function for samples with a high level of discreteness while reducing it for samples with lower discreteness. To evaluate the effectiveness of the loss, a simple model, XLNet-PM, is designed and trained using Slanting Loss. Experimental results on the same test set show that XLNet-PM achieves an improvement in F1 score compared to Bert, XLNet, and Roberta by 2.01%, 0.08%, and 0.30%, respectively. Therefore, Slanting Loss demonstrates optimization effectiveness, particularly in scenarios of significantly imbalanced data volume and distribution of positive and negative class samples, making it competitively viable.

Authors

Institutions

Publication Details

Published
2025-04-25
DOI
https://doi.org/10.1117/12.3061090
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Confidence-balanced contribution-based XLNet framework for detecting anomalous product prices and sales

Yan-yi Shen, Wolfgang Lang, Ge Gao, Y. C. Zhu et al.
Anomaly Detection Techniques and Applications
article

Confidence-balanced contribution-based XLNet framework for detecting anomalous product prices and sales

Yan-yi Shen, Wolfgang Lang, Ge Gao, Y. C. Zhu, Wenjuan Ma, Jiawei Li
article en

Abstract

For the recognition of anomalies in commodity prices, a binary classification problem, one of the current state-of-the-art algorithms is XLNet. It integrates the AR model and BERT, addressing the shortcomings of inconsistent pre-training and integration content between BERT and the inability of AR to consider contextual information. XLNet employs cross-entropy loss (Loss). However, when dealing with a significantly imbalanced distribution of positive and negative class samples in the presence of a massive volume of data, such as a much larger quantity of normal-priced commodities compared to abnormal-priced ones, there is a problem of overfitting easy-to-classify samples with excessively high confidence. Focal Loss mitigates this issue by reducing the weight of easily classified samples in the loss function, thereby increasing the loss contribution of hard-to-classify samples. However, it focuses solely on the difficulty of classifying individual samples and does not consider the overall discreteness level of easy and hard samples. To address this, a reshaped cross-entropy loss called Slanting Loss is proposed. Slanting Loss retains the contribution of the original loss function for samples with a high level of discreteness while reducing it for samples with lower discreteness. To evaluate the effectiveness of the loss, a simple model, XLNet-PM, is designed and trained using Slanting Loss. Experimental results on the same test set show that XLNet-PM achieves an improvement in F1 score compared to Bert, XLNet, and Roberta by 2.01%, 0.08%, and 0.30%, respectively. Therefore, Slanting Loss demonstrates optimization effectiveness, particularly in scenarios of significantly imbalanced data volume and distribution of positive and negative class samples, making it competitively viable.

Nanjing University of Science and Technology (CN)
Decent work and economic growth
Openalex Percentile: Top 96%
Anomaly Detection Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.