1
GBSVM: Granular-ball Support Vector Machine
Shuyin Xia, Xiaoyu Lian, Guoyin Wang*, Xinbo Gao, Jiancu Chen*, Xiaoli Peng
Abstract—GBSVM (Granular-ball Support Vector Machine) is
a significant attempt to construct a classifier using the coarse-
to-fine granularity of a granular-ball as input, rather than a
single data point. It is the first classifier whose input contains
no points. However, the existing model has some errors, and
its dual model has not been derived. As a result, the current
algorithm cannot be implemented or applied. To address these
problems, this paper has fixed the errors of the original model
of the existing GBSVM, and derived its dual model. Fur-
thermore, a particle swarm optimization algorithm is designed
to solve the dual model. The sequential minimal optimization
algorithm is also carefully designed to solve the dual model.
The solution is faster and more stable than the particle swarm
optimization based version. The experimental results on the
UCI benchmark datasets demonstrate that GBSVM has good
robustness and efficiency. All codes have been released in the open
source library at http://www.cquptshuyinxia.com/GBSVM.html
or https://github.com/syxiaa/GBSVM.
Index Terms—granular computing, granular-ball, classifier,
classification, SVM.
I. INTRODUCTION
HUman cognition has the characteristic of global prece-
dence, i.e., from large to small, coarse to fine [1]. Human
beings have the ability of granulating data and knowledge
into different granularity according to different tasks, and then
solve problems using the relation between these granularity.
Since Lin and Zadeh proposed granular computing in 1996,
more and more scholars began to study information granular
[2], [3], [4], which simulates human cognition to deal with
complexity problems [5], [6]. Granular computing advocates
observing and analyzing the same problem from different
granularity. The coarser the granularity, the more efficient
the learning process and the more robust to noise; while
the finer the granularity, the more details of things can be
reflected. Choosing different granularity according to differ-
ent application scenarios can more effectively solve practical
problems [7], [8], [9], [10]. Wang introduced the cognitive law
of “global precedence” into granular computing and proposed
multi-granularity cognitive computing [1], [11].
Based on multi-granularity cognitive computing, Xia and
Wang further proposed granular-ball computing by partitioning
the dataset into some hyper-balls with different sizes (i.e.,
different granularity), called granular-balls [8]. The reason
why a hyper-ball is used instead of other geometries is that
it has completely symmetrical geometric characteristics and a
simple representation, i.e., that it only contains two parameters
S. Xia, X. Lian, G. Wang, J. Chen, X. Pemg & X. Gao are with
the Chongqing Key Laboratory of Computational Intelligence, Key Labo-
ratory of Big Data Intelligent Computing, Key Laboratory of Cyberspace
Big Data Intelligent Security, Ministry of Education, Chongqing Uni-
versity of Posts and Telecommunications, 400065, Chongqing, China.
E-mail: xiasy@cqupt.edu.cn, 1258852995@qq.com, wanggy@cqupt.edu.cn,
gaoxb@cqupt.edu.cn, chenchen2153@163.com, 93334586@cqupt.edu.cn.
including the center and radius in any dimension. So, it is suit-
able for scaling up to high dimensional data. Other geometries
do not have this characteristic. To simulate the cognitive law of
“global precedence”, granular-balls are generated by splitting
the initial granular-ball of a whole data set from coarse to
fine. As granular-balls adaptively have different sizes, they can
fit various datasets with complex distribution. Instead of the
finest granularity of a data point, a granular-ball can describe
the coarse features of the covered samples. Different from the
traditional AI learning methods whose input representation is
the finest granularity of a point input, based on the granular-
ball representation, granular-ball computing needs to create
new computation models for various AI fields, such as classi-
fication, clustering, optimization, artificial neural networks and
others. As the number of coarse granular-balls is much smaller
than the finest data points, granular-ball computing is much
more efficient than traditional AI computations; in addition,
as a granular-ball is coarse and not easily affected by noise
points, it is robust; furthermore, in comparison with a data
point, a granular-ball can represent a point set and describe an
equivalence class, it has better interpretability. In summary,
Xia and Wang find that the cognitive law of “global prece-
dence” and granular-ball computing have good computation
performance in efficiency, robustness and interpretability at the
same time [8], [12]. These characteristics can be described in
Fig. 1, in the cognitive law of “global precedence”, the human
brain does not need to see the details or information of each
point when recognizing large “H” and large “T”; however,
existing convolutional neural networks need to first convert
the image into a pixel matrix, the finest granularity, and then
calculate the contour information of large “H” and large “T”
based on the pixel matrix. Obviously, the former is efficient.
In addition, “H” and “T” are seen first, and then the “h” and
“t” that make up them. There are two “t”s in the left “H”,
which can be considered as noise, but it still does not affect
the overall appearance of “H”. Therefore, the cognitive law
is robust. Finally, human recognition is based on semantic
“point sets” such as “lines”, rather than the finest granularity
of “points” without any semantics. Therefore, the recognition
process is interpretable. As a “global precedence” cognitive
method, the characteristics of granular-ball computing and the
aforementioned cognition are completely consistent.
The origin of granular-ball computing was originally used
to solve the problem of traditional classifiers not being able
to achieve multi granularity learning. The existing classifiers
such as traditional SVM process data with the finest gran-
ularity, i.e., a sample point or pixel point, as in Fig. 2(a).
Consequently, those classifiers have the disadvantages of low
efficiency and low anti-noise ability [13], [14]. To address
this problem, Xia et al. proposed the granular-ball support
vector machine (GBSVM) using the granular-balls generated
arXiv:2210.03120v2 [cs.LG] 11 Feb 2024