scieee AI-readable full text Open interactive document viewer

Generalizing max pooling via (a, b)-grouping functions for Convolutional Neural Networks

Rodríguez Martínez, Iosu,Herrera Triguero, Francisco

Abstract

Financial support of Tracasa Instrumental (iTRACASA) and of the Gobierno de Navarra - Departamento de Universidad, Innovación y Transformación Digital, as well as that of the Spanish Ministry of Science (project PID2019-108392GB-I00 (AEI/10.13039/501100011033)) and the project PC095-096 FUSIPROD. T. Asmus and G.P. Dimuro are supported by the projects CNPq (301618/2019-4) and FAPERGS (19/2551-0001279-9). F. Herrera is supported by the Andalusian Excellence project P18-FR-4961. Z. Takáč is supported by grant VEGA 1/0267/21. Open access funding provided by Universidad Pública de Navarra

Full text

Information Fusion 99 (2023) 101893 Available online 21 June 2023 1566-2535/© 2023 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). Contents lists available at ScienceDirect Information Fusion journal homepage: www.elsevier.com/locate/inffus Full Length Article Generalizing max pooling via (𝑎, 𝑏)-grouping functions for Convolutional Neural Networks Iosu Rodriguez-Martineza, Tiago da Cruz Asmusb, Graçaliz Pereira Dimuroa,c, Francisco Herrerad, Zdenko Takáče, Humberto Bustincea,∗ aUniversidad Pública de Navarra, Departamento de Estadística, Informática y Matemáticas, Campus Arrosadia s/n, Pamplona, 31006, Navarra, Spain bUniversidade Federal do Rio Grande, Instituto de Matemática, Estadística e Física, Av. Itália km 08, Campus Carreiros, Rio Grande, 96201-900, Rio Grande, Brazil cUniversidade Federal do Rio Grande, Centro de ciencia Computacionais, Av. Itália km 08, Campus Carreiros, Rio Grande, 96201-900, Rio Grande, Brazil dUniversidad de Granada, Instituto Andaluz Interuniversitario en Data Science and Computational Intelligence, Av. del Conocimiento 41, Granada, 18071, Granada, Spain eSlovak University of Technology in Bratislava, Faculty of Materials Science and Technology in Trnava, Jana Bottu 2781/25, Trnava, 917 24, Trnava, Slovakia ARTICLE INFO Keywords: Convolutional neural networks Grouping functions Pooling functions Image classification ABSTRACT Due to their high adaptability to varied settings and effective optimization algorithm, Convolutional Neural Networks (CNNs) have set the state-of-the-art on image processing jobs for the previous decade. CNNs work in a sequential fashion, alternating between extracting significant features from an input image and aggregating these features locally through ‘‘pooling" functions, in order to produce a more compact representation. Functions like the arithmetic mean or, more typically, the maximum are commonly used to perform this downsampling operation. Despite the fact that many studies have been devoted to the development of alternative pooling algorithms, in practice, ‘‘max-pooling" still equals or exceeds most of these possibilities, and has become the standard for CNN construction. In this paper we focus on the properties that make the maximum such an efficient solution in the context of CNN feature downsampling and propose its replacement by grouping functions, a family of functions that share those desirable properties. In order to adapt these functions to the context of CNNs, we present (𝑎, 𝑏)- grouping functions, an extension of grouping functions to work with real valued data. We present different construction methods for (𝑎, 𝑏)-grouping functions, and demonstrate their empirical applicability for replacing max-pooling by using them to replace the pooling function of many well-known CNN architectures, finding promising results. 1. Introduction The irruption of Deep Learning [1] during the last decade has revolutionized the field of machine learning research, with impressive results in fields as diverse as medicine [2,3], natural language processing [4] or synthetic image generation [5]. In the field of computer vision, Convolutional Neural Networks (CNNs) have been established as the state-of-the-art technique for classification [6–8] and segmentation tasks [2,9], among others [10–12]. Unlike traditional Computer Vision methods such as Bag of Features (BoF) [13], the parameters of these models are automatically optimized through gradient descent optimization in a supervised way, easing their application and motivating their wide adoption. CNNs extract complex ∗Corresponding author. E-mail address: [email protected] (H. Bustince). visual features in a sequential process, generating feature vectors which can be later fed to different algorithms. If no feature reduction technique were applied, the dimensionality of these feature vectors would be too high. Pooling layers take care of this, performing image downsampling through the fusion of local areas of the feature images the model works with, while trying to preserve the most discriminative values. This data fusion process is usually performed by simple operations such as the arithmetic mean or, more commonly in practice, the maximum. Both theoretical studies [14,15] as well as empirical claims seem to set maximum pooling as the default pooling operator. Even so, there are some problems with maximum pooling. While providing some amount of shift invariance to the model, maximum https://doi.org/10.1016/j.inffus.2023.101893 Received 28 February 2023; Received in revised form 13 June 2023; Accepted 15 June 2023 Information Fusion 99 (2023) 101893 2 I. Rodriguez-Martinez et al. pooling discards many potentially discriminative information in favour of prioritizing high activations. This, in turn, implies that the gradient flow of the model gets truncated for all non maximum values of a neighbourhood, which may slow convergence. Although some alternatives have been proposed in order to try to address these problems [16–19], max pooling remains the most commonly adapted strategy. Previous work has demonstrated that other functions with similar properties to the maximum can act as powerful alternatives as pooling functions. In [20], t-conorm functions, a family of functions to which the maximum belongs, outperformed models which implemented max pooling, despite requiring a suboptimal implementation. Grouping functions [21,22] are a generalization of t-conorms which ignore the associative property, avoiding those implementation mishaps. They have been used with success in different domains such as decision making [21] and image thresholding [23], and we consider them an interesting family of functions to explore in search of a replacement for the maximum as pooling operator. In this work, we present (𝑎, 𝑏)-grouping functions, an adaptation of the concept of grouping function to work with real valued data, which makes them suitable to act as pooling the operator of a CNN. Several construction methods are presented, and many examples of grouping functions are explored, in search of the most interesting properties for CNNs. In particular, we demonstrate that (𝑎, 𝑏)-grouping functions can be constructed through the composition of (𝑎, 𝑏)-grouping functions as well as through their convex combination, which offers a wide spectrum of functions to apply. We empirically test the suitability of these functions in a range of CNN models of different depth and complexity, obtaining favourable results with most options. We also analyse the activations and gradients produced by these functions, comparing them with the effect of traditional pooling operators. The paper is structured in the following way: Section 2recalls some important notions about CNNs and grouping functions; Section 3intro- duces (𝑎, 𝑏)-grouping functions, providing several construction methods and examples of such functions, as well as exploring their suitability as pooling candidates; Section 4is dedicated to our new pooling operators, as well as to reviewing some other recently introduced in the literature pooling layers. Section 5presents our experiments and offers some insights into the challenges of replacing maximum pooling by other functions; finally, Section 6concludes the paper with some final remarks and future lines of research. 2. Preliminaries 2.1. Convolutional Neural Networks CNNs are a family of Neural Network specialized in the ‘‘automatic’’ extraction of local features from a given data source, such as an image or video. We say that this process is ‘‘automatic’’ because the backpropagation algorithm is used for finetuning the model parameters through gradient descent optimization [1], instead of requiring careful manual adjustments. Similarly to other neural network models, CNNs are formed by a series of ‘‘layers’’ which act sequentially over a given input. In particular, the feature extraction process is taken care of in ‘‘convolutional layers’’, where a series of ‘‘feature filters’’ are convolved over different regions of an input, before applying a non-linear activation function to the result. This generates an output which represents the presence or absence of a given feature along the different positions of the input. In the case of image data, a convolutional layer counts with a series of small two dimensional filters which represent visual characteristics. After filtering the input image by 𝑛such filters, 𝑛different ‘‘feature images’’ are generated. Each of them is appended as a different channel of an output matrix which the layer finally outputs. Given the sequential nature of CNNs, future convolution layers act over the output of the initial layers. This implies that the features extracted at deeper levels of the model are progressively more complex, since they combine the simpler features obtained by previous layers. The extracted features can be later fed as the input of several algorithms, depending on the task at hand. In the case of image classification, a Multilayer Perceptron (MLP) is typically used, since it is an efficient classifier which shares the same optimization procedure as the rest of the model. Whatever the classifier, however, its behaviour can be expected to improve the smaller the number of features fed to it is. Unfortunately, in order to capture as rich descriptors as possible from the input image, convolutional layers typically have many filters, which increases the number of channels of the generated feature matrices. Several strategies can be used in order to reduce the dimensionality of the feature extractor output. One of the most common ones is the addition of ‘‘pooling layers’’ along the feature extractor, in order to perform an image downsampling process to the obtained feature images. In this way, each of these feature images is divided in small disjoint windows whose values are aggregated into single representatives, through functions such as the arithmetic mean or the maximum. This strategy is based on the idea that much of the information represented by feature images is redundant, and helps to provide the model with some amount of invariance to slight displacement of the detected features. Some authors have proposed replacing simple average and maximum pooling by other data fusion operations: in [16] Stochastic pooling is proposed, which chooses one of the input values as output according to a multinomial distribution based on their magnitudes; Ordered Weighted Average aggregation operators (OWA) [24] were proposed in [18] as another trial at replacing pooling functions by learnable aggregation functions; in [25], another family of functions based on the minimization of the distance among the input values and the produced reduced output are proposed; in [17] authors propose to combine both average and maximum pooling through a strategy referred to as Mixed Pooling, via a convex combination with learnable coefficients; in [19] we proposed a generalization of this approach in which several increasing functions were combined obtaining increasing pooling functions as a result. A new pooling strategy is proposed in the remainder of this paper, based on the concept of grouping functions, which we recall in the following section. 2.2. Grouping functions In this section, we recall some theoretical concepts which have served as a basis for the new proposed pooling functions. Let us denote 𝑥 = (𝑥1,…, 𝑥𝑛) ∈ [0,1]𝑛. Definition 2.1 ([26]).A function 𝑁∶ [0,1] →[0,1] is a fuzzy negation if the following conditions hold: (N1) 𝑁(0) = 1 and 𝑁(1) = 0; (N2) If 𝑥≤𝑦then 𝑁(𝑦)≤𝑁(𝑥), for all 𝑥, 𝑦 ∈ [0,1]. If 𝑁also satisfies the involutive property, (N3) 𝑁(𝑁(𝑥)) = 𝑥, for all 𝑥∈ [0,1], then it is said to be a strong fuzzy negation. Example 2.1. The Zadeh negation given, for all 𝑥∈ [0,1], by 𝑁𝑍(𝑥) = 1 − 𝑥, is a strong fuzzy negation. Example 2.2. The functions 𝑁1= 1 − 𝑥2and 𝑁2=√1 − 𝑥are examples of non-strong fuzzy negations. Information Fusion 99 (2023) 101893 3 I. Rodriguez-Martinez et al. Definition 2.2 ([26]).Given a strong fuzzy negation 𝑁∶ [0,1] →[0,1] and function 𝐹∶ [0,1]𝑛→[0,1], then the function 𝐹𝑁∶ [0,1]𝑛→[0,1] defined, for all 𝑥 ∈ [0,1]𝑛, by 𝐹𝑁(𝑥) = 𝑁(𝐹(𝑁(𝑥1),…, 𝑁(𝑥𝑛))),(1) is the 𝑁-dual of 𝐹. Functions of the type 𝐹∶ [0,1]𝑛→[0,1] are usually referred to as fusion functions [27]. An interesting subclass of fusion functions is that of aggregation functions. Note that from now on, by the monotonicity (increasingness /decreasingness) of n-ary functions we understand the monotonicity in each variable. Definition 2.3 ([28]).An aggregation function is any function 𝐴∶ [0,1]𝑛→[0,1] that respects the following conditions: (A1) 𝐴is increasing; (A2) 𝐴(0,…,0) = 0 and 𝐴(1,…,1) = 1. Example 2.3. Consider  𝑤∈ [0,1]𝑛such that ∑𝑛 𝑖=1 𝑤𝑖= 1. Then, the function 𝐴𝑊 ∶ [0,1]𝑛→[0,1] (weighted arithmetic mean), given, for all 𝑥 ∈ [0,1]𝑛, by 𝐴𝑊 (𝑥) = 𝑛 ∑ 𝑖=1 𝑤𝑖⋅𝑥𝑖,(2) is an aggregation function. When 𝑤𝑖= 1∕𝑛for every 𝑖∈ {1,…, 𝑛}, we can rewrite Eq. (2) to express the usual arithmetic mean 𝐴𝑀 ∶ [0,1]𝑛→ [0,1], given by 𝐴𝑀(𝑥) = ∑𝑛 𝑖=1 𝑥𝑖 𝑛,(3) which is also an aggregation function. There are many subclasses of aggregation functions defined in the literature. Here we highlight some of them that are going to be of importance to this work. Definition 2.4 ([29,30]).A function 𝑂∶ [0,1]𝑛→[0,1] is an 𝑛dimensional overlap function if, for all 𝑥 ∈ [0,1]𝑛, the following conditions hold: (O1) 𝑂is symmetric; (O2) 𝑂(𝑥)=0if and only if ∏𝑛 𝑖=1 𝑥𝑖= 0; (O3) 𝑂(𝑥)=1if and only if ∏𝑛 𝑖=1 𝑥𝑖= 1; (O4) 𝑂is increasing; (O5) 𝑂is continuous. A 2-dimensional overlap function is just called overlap function [22, 31]. Example 2.4. (a) The function 𝑂𝑚𝑖𝑛 ∶ [0,1]𝑛→[0,1] (minimum) given, for all 𝑥 ∈ [0,1]𝑛, by 𝑂𝑚𝑖𝑛(𝑥) = min{𝑥1,…, 𝑥𝑛}(4) is an 𝑛-dimensional overlap function. (b) The function 𝑂𝑔𝑒𝑜𝑚 ∶ [0,1]𝑛→[0,1] (geometric mean), given, for all 𝑥 ∈ [0,1]𝑛, by 𝑂𝑔𝑒𝑜𝑚(𝑥) = 𝑛 √ √ √ √𝑛 ∏ 𝑖=1 𝑥𝑖,(5) is an 𝑛-dimensional overlap function. Table 1 Examples of 𝑛-dimensional Grouping Functions. 𝐺𝑚𝑎𝑥(𝑥1,…, 𝑥𝑛) = (max{𝑥1,…, 𝑥𝑛})𝑝, with 𝑝 > 0 𝐺𝑝𝑟𝑜𝑑 (𝑥1,…, 𝑥𝑛) = 1 − ∏𝑛 𝑖=1(1 − 𝑥𝑖)𝑝, with 𝑝 > 0 𝐺𝑔𝑒𝑜𝑚(𝑥1,…, 𝑥𝑛) = 1 − 𝑛 √∏𝑛 𝑖=1(1 − 𝑥𝑖)𝑝, with 𝑝 > 0 𝐺𝑜𝑏(𝑥1,…, 𝑥𝑛) = 1 − (√(∏𝑛 𝑖=1 1 − 𝑥𝑖)⋅min{1 − 𝑥1,…,1 − 𝑥𝑛}) 𝐺𝑢(𝑥1,…, 𝑥𝑛) = max{𝑥1,…,𝑥𝑛} max{𝑥1,…,𝑥𝑛}+ 𝑛 √∏𝑛 𝑖=1 (1−𝑥𝑖) Definition 2.5 ([29]).A function 𝐺∶ [0,1]𝑛→[0,1] is said to be an 𝑛-dimensional grouping function if, for all 𝑥 ∈ [0,1]𝑛, the following conditions hold: (G1) 𝐺is symmetric; (G2) 𝐺(𝑥)=0if and only if 𝑥𝑖= 0 for all 𝑖∈ {1,…, 𝑛}; (G3) 𝐺(𝑥)=1if and only if there exists 𝑖∈ {1,…, 𝑛}such that 𝑥𝑖= 1; (G4) 𝐺is increasing; (G5) 𝐺is continuous. By N-duality, one can obtain 𝑛-dimensional grouping functions from 𝑛-dimensional overlap functions, and vice-versa. Example 2.5. (a) The function 𝐺𝑚𝑎𝑥 ∶ [0,1]𝑛→[0,1] (maximum), given, for all 𝑥 ∈ [0,1]𝑛, by 𝐺𝑚𝑎𝑥(𝑥) = max{𝑥1,…, 𝑥𝑛},(6) is an 𝑛-dimensional grouping function. (b) The function 𝐺𝑔𝑒𝑜𝑚 ∶ [0,1]𝑛→[0,1] (dual of the geometric mean), given, for all 𝑥 ∈ [0,1]𝑛, by 𝐺𝑔𝑒𝑜𝑚(𝑥) = 1 − 𝑛 √ √ √ √𝑛 ∏ 𝑖=1 1 − 𝑥𝑖,(7) is an 𝑛-dimensional grouping function. In Table 1, we show some other examples of 𝑛-dimensional grouping functions. 2.3. (a, b)-aggregation functions Grouping functions are restricted to the domain [0,1], but CNNs operate with real values. A strategy for adapting the definition of several aggregation functions to work with real valued data is recalled here. Let 𝑎, 𝑏 ∈R, such that 𝑎<𝑏. In [28], fusion functions, as well as aggregation functions were already defined in the context of a domain [𝑎, 𝑏]. Here, to avoid confusion, we will call them fusion and aggregation functions only when 𝑎= 0 and 𝑏= 1 (Definition 2.3). Otherwise, we will call them (𝑎, 𝑏)-fusion functions and (𝑎, 𝑏)-aggregation functions, just to standardize the notation. (𝑎, 𝑏)-fusion functions are arbitrary functions of the type 𝐹𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏]. The definition of (𝑎, 𝑏)-aggregation function is given as follows: Definition 2.6 ([28]).An (𝑎, 𝑏)-aggregation function is any function 𝐴𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏]that respects the following conditions: (AB1) 𝐴𝑎,𝑏 is increasing; (AB2) 𝐴𝑎,𝑏(𝑎, …, 𝑎) = 𝑎and 𝐴𝑎,𝑏(𝑏, …, 𝑏) = 𝑏. Example 2.6. (a) The arithmetic mean 𝐴𝑀 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], given by Eq. (3) is an (𝑎, 𝑏)-aggregation function; Information Fusion 99 (2023) 101893 4 I. Rodriguez-Martinez et al. (b) If 𝑎≠0or 𝑏≠1, then neither the geometric mean 𝑂𝑔𝑒𝑜𝑚 ∶ [𝑎, 𝑏]𝑛→ [𝑎, 𝑏], given by Eq. (5), nor its dual 𝐺𝑔𝑒𝑜𝑚 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], given by Eq. (7), are (𝑎, 𝑏)-aggregation functions. In [20], different (𝑎, 𝑏)-aggregation functions were defined in a similar manner as Definition 2.6. Let us recall the definition of (𝑎, 𝑏)-overlap functions: Definition 2.7 ([20]).A function 𝑂𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏]is said to be an (𝑎, 𝑏)-overlap function if, for all 𝑥 ∈ [𝑎, 𝑏]𝑛, the following conditions hold: (OAB1) 𝑂𝑎,𝑏 is symmetric; (OAB2) 𝑂𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑎if and only if ∏𝑛 𝑖=1(𝑥𝑖−𝑎)=0; (OAB3) 𝑂𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑏if and only if ∏𝑛 𝑖=1(𝑥𝑖−𝑎 𝑏−𝑎)=1; (OAB4) 𝑂𝑎,𝑏 is increasing; (OAB5) 𝑂𝑎,𝑏 is continuous. 3. (𝒂, 𝒃)-grouping functions Here, we introduce the concept of (𝑎, 𝑏)-grouping function as follows: Definition 3.1. A function 𝐺𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏]is said to be an (𝑎, 𝑏)-grouping function if, for all 𝑥 ∈ [𝑎, 𝑏]𝑛, the following conditions hold: (GAB1) 𝐺𝑎,𝑏 is symmetric; (GAB2) 𝐺𝑎,𝑏(𝑥) = 𝑎if and only if 𝑥𝑖=𝑎for all 𝑖∈ {1,…, 𝑛}; (GAB3) 𝐺𝑎,𝑏(𝑥) = 𝑏if and only if there exists 𝑖∈ {1,…, 𝑛}such that 𝑥𝑖=𝑏; (GAB4) 𝐺𝑎,𝑏 is increasing; (GAB5) 𝐺𝑎,𝑏 is continuous. It is immediate that every (𝑎, 𝑏)-grouping function is also an (𝑎, 𝑏)- aggregation function, but the converse does not hold. Example 3.1. The function 𝐺𝑎,𝑏 𝑚𝑎𝑥 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏](maximum), given, for all 𝑥 ∈ [0,1]𝑛, by 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝑥) = max{𝑥1,…, 𝑥𝑛},(8) is an 𝑛-dimensional (𝑎, 𝑏)-grouping function. 3.1. Construction methods Although Definition 3.1 seems intuitive and keeps the same properties of Definition 2.5 in the context of the domain [𝑎, 𝑏], it is not trivial to obtain expressions for (𝑎, 𝑏)-grouping functions, since the expressions of some known 𝑛-dimensional grouping functions (as the ones shown in Table 1) do not respect the conditions from Definition 3.1. So, in the following, we introduce some construction methods for (𝑎, 𝑏)-grouping functions. Theorem 3.1. Consider a fusion function 𝐺∶ [0,1]𝑛→[0,1], an increasing and bijective function 𝜙∶ [𝑎, 𝑏]→[0,1] and an (𝑎, 𝑏)-fusion function 𝐺𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏]given, for all 𝑥1,…, 𝑥𝑛∈ [𝑎, 𝑏], by 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝜙−1 (𝐺(𝜙(𝑥1),…, 𝜙(𝑥𝑛))),(9) Then, 𝐺𝑎,𝑏 is an 𝑛-dimensional (𝑎, 𝑏)-grouping function if and only if 𝐺is an 𝑛-dimensional grouping function. Proof. →Suppose that 𝐺𝑎,𝑏 is an 𝑛-dimensional (𝑎, 𝑏)-grouping function. Then, it is immediate that 𝐺is increasing, symmetric and continuous. Let us prove that 𝐺respects the remaining conditions of Definition 2.5: (G2) 𝐺(𝑥1,…, 𝑥𝑛)=0 ⇔𝐺(𝜙(𝜙−1(𝑥1)),…, 𝜙(𝜙−1(𝑥𝑛))) = 0, since 𝜙is bijective ⇔𝜙−1(𝐺(𝜙(𝜙−1(𝑥1)),…, 𝜙(𝜙−1(𝑥𝑛)))) = 𝜙−1(0) ⇔𝐺𝑎,𝑏(𝜙−1(𝑥1),…, 𝜙−1(𝑥𝑛)) = 𝑎, by Eq. (9) ⇔𝜙−1(𝑥𝑖) = 𝑎, for all 𝑖∈ {1,…, 𝑛}, by (𝐆𝐀𝐁𝟐) ⇔𝑥𝑖= 0,for all 𝑖∈ {1,…, 𝑛}. (G3) 𝐺(𝑥1,…, 𝑥𝑛)=1 ⇔𝐺(𝜙(𝜙−1(𝑥1)),…, 𝜙(𝜙−1(𝑥𝑛))) = 1, since 𝜙is bijective ⇔𝜙−1(𝐺(𝜙(𝜙−1(𝑥1)),…, 𝜙(𝜙−1(𝑥𝑛)))) = 𝜙−1(1) ⇔𝐺𝑎,𝑏(𝜙−1(𝑥1),…, 𝜙−1(𝑥𝑛)) = 𝑏, by Eq. (9) ⇔𝜙−1(𝑥𝑖) = 𝑏, for some 𝑖∈ {1,…, 𝑛}, by (𝐆𝐀𝐁𝟑) ⇔𝑥𝑖= 1,for some 𝑖∈ {1,…, 𝑛}. (⇐) Suppose that 𝐺is an 𝑛-dimensional grouping function. From (G1),(G4) and (G5), we also have that 𝐺𝑎,𝑏 is symmetric, increasing and continuous. Now, let us prove that it respects the remaining conditions of Definition 3.1: (GAB2) Suppose that 𝐺𝑎,𝑏(𝑥) = 𝑎, for some 𝑥 ∈ [𝑎, 𝑏]𝑛. Then, from Eq. (9), we have that: 𝑎=𝜙−1 (𝐺(𝜙(𝑥1),…, 𝜙(𝑥𝑛)))if and only if 0 = 𝐺(𝜙(𝑥1),…, 𝜙(𝑥𝑛)), since 𝜙is increasing and bijective. From (G2), it follows that: 𝜙(𝑥𝑖)=0for all 𝑖∈ {1,…, 𝑛}if and only if 𝑥𝑖=𝑎for all 𝑖∈ {1,…, 𝑛}. (GAB3) Suppose that 𝐺𝑎,𝑏(𝑥) = 𝑏, for some 𝑥 ∈ [𝑎, 𝑏]𝑛. Then, from Eq. (9), we have that: 𝑏=𝜙−1 (𝐺(𝜙(𝑥1),…, 𝜙(𝑥𝑛)))if and only if 1 = 𝐺(𝜙(𝑥1),…, 𝜙(𝑥𝑛)), since 𝜙is increasing and bijective. From (G3), it follows that: 𝜙(𝑥𝑖)=1for some 𝑖∈ {1,…, 𝑛}if and only if 𝑥𝑖=𝑏for some 𝑖∈ {1,…, 𝑛}.□ Example 3.2. Consider the 𝑛-dimensional grouping functions 𝐺𝑝𝑟𝑜𝑑 , 𝐺𝑔𝑒𝑜𝑚 ∶ [0,1]𝑛→[0,1] defined in Table 1 and Example 2.5, respectively, and the increasing and bijective function 𝜙∶ [𝑎, 𝑏]→[0,1], defined, for all 𝑥∈ [𝑎, 𝑏], by 𝜙(𝑥) = (𝑥−𝑎 𝑏−𝑎)𝑝, 𝑝 > 0.(10) Then, the functions 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 , 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], given, for all 𝑥 ∈ [𝑎, 𝑏]𝑛, respectively, by 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝑥) = 𝜙−1 (𝐺𝑝𝑟𝑜𝑑 (𝜙(𝑥1),…, 𝜙(𝑥𝑛))) (11) and 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚(𝑥) = 𝜙−1 (𝐺𝑔𝑒𝑜𝑚 (𝜙(𝑥1),…, 𝜙(𝑥𝑛))) (12) Information Fusion 99 (2023) 101893 5 I. Rodriguez-Martinez et al. are 𝑛-dimensional (𝑎, 𝑏)-grouping functions. By taking 𝑝= 1, we can rewrite Eqs. (11) and (12), respectively as follows: 𝐺𝑝𝑟𝑜𝑑 𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝐺𝑝𝑟𝑜𝑑 (𝑥1−𝑎 𝑏−𝑎,…,𝑥𝑛−𝑎 𝑏−𝑎)⋅(𝑏−𝑎) + 𝑎, (13) and 𝐺𝑔𝑒𝑜𝑚𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝐺𝑔𝑒𝑜𝑚 (𝑥1−𝑎 𝑏−𝑎,…,𝑥𝑛−𝑎 𝑏−𝑎)⋅(𝑏−𝑎) + 𝑎, (14) For 𝑝= 1, the (𝑎, 𝑏)-grouping function 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚, can be simplified as follows: 𝐺𝑔𝑒𝑜𝑚𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝐺𝑔𝑒𝑜𝑚 (𝑥1−𝑎 𝑏−𝑎,…,𝑥𝑛−𝑎 𝑏−𝑎)⋅(𝑏−𝑎) + 𝑎= ⎛⎜⎜⎝ 1 − 𝑛 √ √ √ √𝑛 ∏ 𝑖=1 (1 − 𝑥𝑖−𝑎 𝑏−𝑎)⎞⎟⎟⎠ ⋅(𝑏−𝑎) + 𝑎= 𝑏−𝑛 √ √ √ √𝑛 ∏ 𝑖=1 (𝑏−𝑥𝑖)(15) Remark 3.1. Any 𝑛-dimensional grouping function (such as the ones in Table 1) can be the core of the construction method presented in Theorem 3.1. The constructed 𝑛-dimensional (𝑎, 𝑏)-grouping function is a counterpart in [𝑎, 𝑏]for the core 𝑛-dimensional grouping function defined in [0,1]. The next construction method derives from the composition of (𝑎, 𝑏)-grouping functions by an (𝑎, 𝑏)-aggregation function with some conditions. Theorem 3.2. Consider a continuous (𝑎, 𝑏)-aggregation function 𝐴𝑎,𝑏 ∶ [𝑎, 𝑏]𝑚→[𝑎, 𝑏], such that (PA*) 𝐴𝑎,𝑏(𝑥) = 𝑎if and only if 𝑥𝑖=𝑎for some 𝑖∈ {1,…, 𝑚}; (PB*) 𝐴𝑎,𝑏(𝑥) = 𝑏if and only if 𝑥𝑖=𝑏for some 𝑖∈ {1,…, 𝑚}and 𝑥𝑖≠𝑎 for all 𝑖∈ {1,…, 𝑚}, and a tuple  𝐺𝑎,𝑏 = (𝐺𝑎,𝑏 1,…, 𝐺𝑎,𝑏 𝑚)of 𝑛-dimensional (𝑎, 𝑏)-grouping functions. Then, the mapping 𝐴𝑎,𝑏  𝐺𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], defined for all 𝑥 ∈ [𝑎, 𝑏]𝑛, by 𝐴𝑎,𝑏  𝐺𝑎,𝑏 (𝑥) = 𝐴𝑎,𝑏(𝐺𝑎,𝑏 1(𝑥),…, 𝐺𝑎,𝑏 𝑚(𝑥)),(16) is an 𝑛-dimensional (𝑎, 𝑏)-grouping function. Proof. It is immediate that 𝐴𝑎,𝑏  𝐺𝑎,𝑏 is well defined. Then, by (G1),(G4) and (G5), we have that 𝐴𝑎,𝑏  𝐺𝑎,𝑏 respects conditions (GAB1),(GAB4) and (GAB5). Now, let us prove that 𝐴𝑎,𝑏  𝐺𝑎,𝑏 respects the remaining conditions of Definition 3.1: (GAB2) Suppose that 𝐴𝑎,𝑏  𝑂𝑎,𝑏 (𝑥) = 𝑎, for some 𝑥 ∈ [𝑎, 𝑏]𝑛. Then, by Eq. (16) and (PA*), it follows that: 𝐺𝑎,𝑏 𝑗(𝑥) = 𝑎for some 𝑗∈ {1,…, 𝑚}⇔𝑥 = (𝑎, …, 𝑎) by (𝐆𝐀𝐁𝟐). Conversely, if 𝑥 = (𝑎, …, 𝑎), then, by (GAB2),(AB2) and Eq. (16), we have that 𝐴𝑎,𝑏  𝐺𝑎,𝑏 (𝑥) = 𝑎; (OAB3) Suppose that 𝐴𝑎,𝑏  𝐺𝑎,𝑏 (𝑥) = 𝑏, for some 𝑥 ∈ [𝑎, 𝑏]𝑛. Then, by Eq. (16) and (PB*), we have that: 𝐺𝑎,𝑏 𝑗(𝑥) = 𝑏for some 𝑗∈ {1,…, 𝑚}⇔𝑥𝑖=𝑏 for some 𝑖∈ {1,…, 𝑛}by (𝐆𝐀𝐁𝟑). On the other hand, if we take 𝑥 ∈ [𝑎, 𝑏]𝑛, such that 𝑥 = (𝑥1,…, 𝑥𝑖,…, 𝑥𝑛)with 𝑥𝑖=𝑏for some 𝑖∈ {1,…, 𝑛}, then, by (GAB3),(PB*) and Eq. (16), we have that 𝐴𝑎,𝑏  𝐺𝑎,𝑏 (𝑥) = 𝑏.□ Corollary 3.1. Consider an 𝑚-ary (𝑎, 𝑏)-grouping function 𝐺𝐶𝑎,𝑏 ∶ [𝑎, 𝑏]𝑚→[𝑎, 𝑏]and the tuple  𝐺𝑎,𝑏 = (𝐺𝑎,𝑏 1,…, 𝐺𝑎,𝑏 𝑚)of 𝑛-ary (𝑎, 𝑏)-grouping functions. Then, the mapping 𝐺𝐶 𝐺𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], defined for all 𝑥 ∈ [𝑎, 𝑏]𝑛, by 𝐺𝐶 𝐺𝑎,𝑏 (𝑥) = 𝐺𝐶𝑎,𝑏(𝐺𝑎,𝑏 1(𝑥),…, 𝐺𝑎,𝑏 𝑚(𝑥)), is an 𝑛-ary (𝑎, 𝑏)-grouping function. Corollary 3.2. Consider the weighted arithmetic mean 𝐴𝑊 𝑎,𝑏 ∶ [𝑎, 𝑏]𝑚→ [𝑎, 𝑏]given by Eq. (2), with  𝑤∈ [0,1]𝑚such that ∑𝑚 𝑖=1 𝑤𝑖= 1 and the tuple  𝐺𝑎,𝑏 = (𝐺𝑎,𝑏 1,…, 𝐺𝑎,𝑏 𝑚)of 𝑛-ary (𝑎, 𝑏)-grouping functions. Then, the mapping 𝐴𝑊 𝐺𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], defined for all 𝑥 ∈ [𝑎, 𝑏]𝑛, by 𝐴𝑊 𝐺𝑎,𝑏 (𝑥) =𝐴𝑊 𝑎,𝑏(𝐺𝑎,𝑏 1(𝑥),…, 𝐺𝑎,𝑏 𝑚(𝑥)) =𝐺𝑎,𝑏 1(𝑥)⋅𝑤1+⋯+𝐺𝑎,𝑏 𝑚(𝑥)⋅𝑤𝑚, is an 𝑛-ary (𝑎, 𝑏)-grouping function. Remark 3.2. Notice that, by Corollary 3.1, one can state that the class of 𝑛-dimensional (𝑎, 𝑏)-grouping functions is self closed with respect to the generalized composition, and, by Corollary 3.2, one can observe that the convex sum of 𝑛-dimensional (𝑎, 𝑏)-grouping functions is also an 𝑛-dimensional (𝑎, 𝑏)-grouping function. These properties are especially useful in practical applications, since one can combine different 𝑛dimensional (𝑎, 𝑏)-grouping functions to obtain new functions with the same behaviour. This is to be expected, since 𝑛-dimensional grouping functions (and their dual, 𝑛-dimensional overlap functions), for having analogous properties, have been the preferred choice as 𝑛-dimensional aggregation operators over the traditional t-conorms (and their dual, t-norms) on such applications [21,23,30,32]. Example 3.3. (a) Consider the bivariate (𝑎, 𝑏)-grouping function 𝐺𝑎,𝑏 𝑚𝑎𝑥 ∶ [𝑎, 𝑏]2→[𝑎, 𝑏]given by 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝑥, 𝑦) = max{𝑥, 𝑦}. Moreover, take the (𝑎, 𝑏)-grouping functions 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚, 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏] defined in Example 3.2. Then, the function 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], given by 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) (𝑥) = 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚(𝑥), 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝑥)), is an (𝑎, 𝑏)-grouping function. (b) Considering the same (𝑎, 𝑏)-grouping functions 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚, 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], then, the function 𝐴𝑀𝑎,𝑏 (𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏], given by 𝐴𝑀𝑎,𝑏 (𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )(𝑥) = 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚(𝑥) + 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝑥) 2, is also an (𝑎, 𝑏)-grouping function. Theorem 3.3. The function 𝐺𝑎,𝑏 ∶ [𝑎, 𝑏]𝑛→[𝑎, 𝑏]is an (𝑎, 𝑏)-grouping function if and only if 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑎 𝑓(𝑥1,…, 𝑥𝑛) + 𝑏 𝑔(𝑥1,…, 𝑥𝑛) 𝑓(𝑥1,…, 𝑥𝑛) + 𝑔(𝑥1,…, 𝑥𝑛)(17) for some continuous symmetric functions 𝑓, 𝑔 ∶ [𝑎, 𝑏]𝑛→[0, 𝑏 −𝑎] such that •𝑓is non-increasing and satisfies: 𝑓(𝑥1,…, 𝑥𝑛)=0if and only if there exists 𝑖∈ {1,…, 𝑛}such that 𝑥𝑖=𝑏; Information Fusion 99 (2023) 101893 6 I. Rodriguez-Martinez et al. •𝑔is non-decreasing and satisfies: 𝑔(𝑥1,…, 𝑥𝑛)=0if and only if 𝑥𝑖=𝑎for all 𝑖∈ {1,…, 𝑛}. Proof. Observe that the function 𝐺𝑎,𝑏 is well defined since, for all 𝑥1,…, 𝑥𝑛∈ [𝑎, 𝑏],𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) ∈ [𝑎, 𝑏]and 𝑓(𝑥1,…, 𝑥𝑛) + 𝑔(𝑥1,…, 𝑥𝑛) >0. Necessity: Consider (𝑎, 𝑏)-grouping function 𝐺𝑎,𝑏, then the functions 𝑓(𝑥1,…, 𝑥𝑛) = 𝑏−𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛)and 𝑔(𝑥1,…, 𝑥𝑛) = 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) − 𝑎 satisfy all the conditions imposed in theorem. Sufficiency: Conditions (𝐺𝐴𝐵1) and (𝐺𝐴𝐵5) are straightforward. The condition (𝐺𝐴𝐵2) follows from the observation: 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑎 if and only if 𝑔(𝑥1,…, 𝑥𝑛) = 0; and the condition (𝐺𝐴𝐵3) follows from the observation: 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑏if and only if 𝑓(𝑥1,…, 𝑥𝑛)=0. Finally, the condition (𝐺𝐴𝐵4) can be proved by reformulation of Eq. (17) as follows: 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑎 𝑓(𝑥1,…, 𝑥𝑛) + 𝑏 𝑔(𝑥1,…, 𝑥𝑛) 𝑓(𝑥1,…, 𝑥𝑛) + 𝑔(𝑥1,…, 𝑥𝑛)= 𝑏−𝑓(𝑥1,…, 𝑥𝑛) 𝑓(𝑥1,…, 𝑥𝑛) + 𝑔(𝑥1,…, 𝑥𝑛)⋅(𝑏−𝑎)(18) and the fact that 𝑓is non-increasing and 𝑔is non-decreasing. □ Example 3.4. The assumptions of Theorem 3.3 satisfy, for example, the functions: 𝑓(𝑥1,…, 𝑥𝑛) = 1 (𝑏−𝑎)𝑛−1 ⋅ 𝑛 ∏ 𝑖=1 (𝑏−𝑥𝑖) and 𝑔(𝑥1,…, 𝑥𝑛) = 1 𝑛 𝑛 ∑ 𝑖=1 𝑥𝑖−𝑎, hence we obtain the following (𝑎, 𝑏)-grouping function: 𝐺𝑎,𝑏(𝑥1,…, 𝑥𝑛) = 𝑎 (𝑏−𝑎)𝑛−1 ⋅∏𝑛 𝑖=1(𝑏−𝑥𝑖) + 𝑏 𝑛∑𝑛 𝑖=1 𝑥𝑖−𝑎𝑏 1 (𝑏−𝑎)𝑛−1 ⋅∏𝑛 𝑖=1(𝑏−𝑥𝑖) + 1 𝑛∑𝑛 𝑖=1 𝑥𝑖−𝑎 4. Replacing the pooling operator of CNNs 4.1. (𝑎, 𝑏)-grouping functions as pooling operator When a pooling layer receives a feature matrix 𝑋∈R𝑚×𝑛×𝑐as input, it divides each of its 𝑐feature channels in disjoint windows 𝑥 ∈R𝑘1×𝑘2 (or vectors of values 𝑥 ∈R𝑘1⋅𝑘2), usually with 𝑘1=𝑘2a small value. Afterwards, the values of each of those windows is replaced by a single representative computed through a function 𝐹∶R𝑘1⋅𝑘2→R. The output of the layer, therefore, is a feature map 𝑌∈R(𝑚∕𝑘1)×(𝑛∕𝑘2)×𝑐, which effectively reduces the dimensionality of the features extracted by the convolutional layers of the CNN. Although the first CNN models were presented using the arithmetic mean as pooling function [33], more complex models tend to default to maximum pooling [2,6], which usually yields better results in practice. In previous works, maximum pooling has been replaced by (𝑎, 𝑏)-t-conorms, a family of functions to which the maximum belongs, obtaining favourable results [20]. This has motivated us to consider other families of functions, such as grouping functions, as potential replacement for the maximum. One of the main drawbacks of the maximum is the fact that it ignores the information from all values to be aggregated except for one of them. On the one hand, this means that much of the information provided by the neighbour values is discarded, which could be of interest. On the other hand, the derivative of max(𝑥)with respect to 𝑥𝑖 is 0 whenever there exists a value 𝑥𝑗∈𝑥 such that 𝑥𝑗> 𝑥𝑖. If we take into account the fact that during training time, parameters are updated according to the derivative of the loss function with respect to them, then the gradient will not flow through those values which may slow the training of the model. However, preserving high activations offers good empirical results, which seems to justify the popularity of max pooling with respect to average pooling. When combined with the ReLU activation function, e. i. 𝑓(𝑥) = max{0, 𝑥}, it makes sense to prioritize high values, since they reflect the highest presence of a given feature on a feature image. (𝑎, 𝑏)-grouping functions preserve the positive behaviour of maximum pooling while addressing its main drawback. Notice that they are defined in a closed interval [𝑎, 𝑏]⊂Rinstead of the whole real line, so we will set 𝑎= min (𝑋)and 𝑏= max (𝑋). In this way, peak activation values would be preserved after applying the pooling function, as ensured by property (GAB3) of Definition 3.1, while taking into consideration the value of other elements of the pooling window. We will test the suitability of (𝑎, 𝑏)-grouping function based pooling in Section 5.1 4.2. Related work A number of alternative pooling methods have been proposed over the last few years. We review several of the most notorious ones here, and will compare our results against some of them: •‘‘Mixed’’ pooling Introduced in [17], ‘‘mixed’’ pooling presents the idea of combining both maximum and average pooling by means of a convex combination of both reductions. The authors propose the addition of a learnable 𝛼coefficient which can vary on number, depending on if a different coefficient is learnt for each feature channel or patch of the input. The authors find that ‘‘mixed’’ pooling outperforms both maximum and average pooling individually. •‘‘Gated’’ pooling Introduced in tandem with ‘‘mixed’’ pooling, gated pooling differs with respect to the strategy to compute the 𝛼coefficients of the combination. Instead of directly learning 𝛼, a set of weights of size 𝑘×𝑘, with 𝑘being the size of the pooling window, are learnt. Then, prior to aggregating the values of each window, a linear transformation is applied to those same values, using the previous weights. The output is treated as the 𝛼coefficient of the combination. Although it implies an increase in the number of necessary parameters for the model, results obtained with this strategy improve with respect to the simple ‘‘mixed’’ strategy. •‘‘Attention’’ pooling In [34], the authors introduce ‘‘attention-based pooling’’ in the context of an aerial image scene classification problem, as a mean to capture the semantic information of the data being pooled. This pooling layer uses a 1 ×1 convolution layer in order to compute an ‘‘attention’’ matrix whose values represent the relevance of a given pixel according to all feature maps. The values of each pooled region are then weighted by the values of that ‘‘attention’’ matrix, so that the final pooling layer acts as a learnable weighted mean pooling. •Deep Generalized Max pooling This method was presented in [35] as an adaptation of the ideas of [36] to Deep Neural Networks. Unlike previous pooling operators, this layer tries to generalize the Global Average pooling layer common in many modern CNNs [37], which downsamples all values of each feature image after the last convolution layer of a CNN into a single representative value. It tries to utilize the information of small patches of the image in the global pooling process, balancing the frequency of frequent and rare features. To this end, a system of linear equations is constructed with as many unknowns as feature channels, and its solution acts as the output of the layer. 1Code is available at https://github.com/iosurodri/overlapsAndGroupings. Information Fusion 99 (2023) 101893 7 I. Rodriguez-Martinez et al. •‘‘Strip’’ pooling Designed for working with images on real scene parsing in [38], strip pooling replaces the classic square pooling window of traditional methods for thin windows which span all the columns/rows of the image. The main objective of this strategy is to capture the anisotropy context common in real world images, rather than reducing the size of images. In particular, for each position of a feature channel, a horizontal stripe spanning all the columns of the image and a vertical one spanning the rows are used to extract two vectors of values. A 1D convolutional layer is applied to each of those filters, whose outputs are later expanded and combined in order to create a more informed new representative for the value. 5. Experimental evaluation 5.1. Experimental framework 5.1.1. CNN models We have tested grouping pooling in three different classic CNN models of varying ‘‘depth’’ and parameter count. Our intention is to empirically study if the replacement of classic pooling operators by (𝑎, 𝑏)-grouping functions is similar in all cases, or these factors influence the behaviour of the new operators. The employed models have been the following ones. 1. LeNet-5: Presented in [33], this model presents the classic structure of vanilla CNNs. It employs two sets of convolutional and pooling layers as feature extractor followed by a 3 layer MLP which takes charge of the classification task. Batch Normalization layers [39] have been inserted after pooling layers and each hidden layer of the MLP, and we use the ReLU function as activation function. 2. VGG16: This architecture proposed in [6] can be understood as a deeper, more sophisticated version of the first model. While it is still composed of a feature extractor based on convolutions and pooling operations, and a MLP classifier with 3 hidden layers, the feature extractor has 13 convolution layers. Between each reduction step performed by a pooling layer with kernel size 2 ×2, several convolution layers are applied, all of them composed by filters of size 3 ×3. In order to capture more discriminative features, after performing a pooling operation, the number of filters of successive convolution layers is doubled. Furthermore, in order to ease the training of such a deep model, both Dropout [40] and Batch Normalization layers are applied after each convolution layer. 3. ResNet-56: Introduced in [7], ResNet models have become an staple CNN architecture. They receive their name from the concept of ‘‘residual’’ connections, a mechanism which adds the values of the input of a layer to its produced activations. This strategy improves the gradient flow during backpropagation, since the partial derivative of each convolution layer with respect to input activations is added a value of 1. Thus, ResNets can incorporate tens of layers without incurring in vanishing gradient problems. In our experiments, we work with a model of 56 layers with reduced kernel filters of size 3 ×3, to account for the fact that we will be working with small size images. We have also replaced the convolution layers which took care of the image downsampling process at the end of each step by pooling layers, so that our strategy could be tested. We follow a similar training regime for all models: They have been trained along 100 epochs using Stochastic Gradient descent with momentum, with initial learning rates of 0.001 for LeNet-5, 0.01 for VGG16, and 0.1 for ResNet. We control the evolution of the learning rate through Cosine Annealing [41], progressively reducing it from its initial value to 0 on the last epoch. 5.1.2. Datasets •MNIST: Introduced in [33], it consists of gray-scale images representing handwritten numerical digits, which must be classified in 10 classes. Images are of size 28 ×28 and are divided in a 60,000 samples partition and a 10,000 test one. •CIFAR-10/CIFAR-100: Presented in [42], both datasets share the same 32 ×32 RGB images representing animals and objects of the real world, as well as the same 50,000 train partition and 10,000 test partition. Classes are completely balanced. Both versions of the dataset differ with respect of the number of classes in which they need be classified, which are 10 or 100 respectively. The same simple data augmentation procedure employed papers such as [37,43] have been used. It consists of padding 4rows and columns on all sides of the images, taking a random crop of size 32 ×32 and randomly flipping them horizontally with a probability of 0.5. Additionally, data sharing is not applicable to this article as no own datasets were generated or analysed during the current study. 5.2. Experiments and results We have organized the different experiments according to the pooling function used. For each experiment, we have substituted the pooling function of each of the presented CNN models by a different (𝑎, 𝑏)- grouping function. We have tested examples of functions obtained through each of the construction methods presented in Section 3.1. In particular, we refer to functions constructed using Theorem 3.1 as ‘‘individual’’ functions. Corollary 3.2 presents a method for constructing (𝑎, 𝑏)-grouping functions through a convex combination of any other (𝑎, 𝑏)-grouping function. Similarly, Corollary 3.1 shows a method for the construction of (𝑎, 𝑏)-grouping functions as the composition of a set of (𝑎, 𝑏)-grouping functions by another (𝑎, 𝑏)-grouping function. We have set a series of individual functions which are useful to construct new ones. All the considered functions are presented in Table 2. Table 3 shows the obtained results for these initial tests. We report the mean and standard deviation of 5independent runs for each model. We include tests using the average since it is another standard pooling operator. In the case of the MNIST dataset, most models achieve an accuracy above 0.99, with very slight changes between them. Therefore, results on that dataset are not useful for analysis and we have ignored MNIST for the remaining tests. In the case of CIFAR-10 and CIFAR-100, groupings 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and 𝐺𝑎,𝑏 𝑜𝑏 offer well all-around results in most cases, with the latter one performing best. Although their results do not differ too much from results obtained using average or maximum pooling (first two rows on Table 3), they are resilient to changes on the base model, which makes them more reliable to apply in any situation. (𝑎, 𝑏)-groupings constructed through the combination of (𝑎, 𝑏) -grouping functions also offer comparable results, specially when combining the maximum and groupings 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 or 𝐺𝑎,𝑏 𝑜𝑏 , with some instances offering the best all-around results. The same occurs with (𝑎, 𝑏)-grouping compositions. However, we consider that results do not justify their use above individual pooling operators, which are simpler and easier to implement. Finally, in Table 4 we compare our proposed pooling functions with three notable pooling operators: mixed, gated and attention pooling. Notice how the best (𝑎, 𝑏)-grouping functions perform on par with all those alternative pooling layers, while introducing no additional parameters to the model and having a more straight-forward implementation. Interestingly, attention pooling offers poor results for the VGG16 model, which may suggest a difficulty for training the parameters needed for the attention mechanism. Information Fusion 99 (2023) 101893 8 I. Rodriguez-Martinez et al. Table 2 (𝑎, 𝑏)-grouping functions used as pooling operator candidates. Presented divided according to the construction method used for their definition. Name Function Individual groupings 𝐺𝑎,𝑏 𝑚𝑎𝑥 𝐺𝑚𝑎𝑥(𝐱) = max𝑛 𝑖=1 𝑥𝑖 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 𝐺𝑝𝑟𝑜𝑑 (𝐱) = 1 − ∏𝑛 𝑖=1(1 − 𝑥𝑖) 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 𝐺𝑔𝑒𝑜𝑚(𝐱) = 1 − 𝑛 √∏𝑛 𝑖=1(1 − 𝑥𝑖) 𝐺𝑎,𝑏 𝑜𝑏 𝐺𝑜𝑏(𝐱) = 1 − √min𝑛 𝑖=1(1 − 𝑥𝑖)⋅∏𝑛 𝑖=1(1 − 𝑥𝑖) 𝐺𝑎,𝑏 𝑢𝐺𝑢(𝐱) = max𝑛 𝑖=1 𝑥𝑖 max𝑛 𝑖=1 𝑥𝑖+𝑛 √∏𝑛 𝑖=1 (1−𝑥𝑖) Convex combinations 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑜𝑏 )𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑜𝑏 )(𝐱) = 𝑤1𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐱) + 𝑤2𝐺𝑎,𝑏 𝑜𝑏 (𝐱) 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )(𝐱) = 𝑤1𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐱) + 𝑤2𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱) 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 )𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 )(𝐱) = 𝑤1𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱) + 𝑤2𝐺𝑎,𝑏 𝑜𝑏 (𝐱) 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑜𝑏 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑜𝑏 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )(𝐱) = 𝑤1𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐱) + 𝑤2𝐺𝑎,𝑏 𝑜𝑏 (𝐱) + 𝑤3𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱) Grouping compositions 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) (𝐱) = 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱), 𝐺𝑎,𝑏 𝑜𝑏 (𝐱)) 𝐺𝑎,𝑏 𝑜𝑏(𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) 𝐺𝑎,𝑏 𝑜𝑏(𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) (𝐱) = 𝐺𝑎,𝑏 𝑜𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐱), 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱)) 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑜𝑏 ) 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑜𝑏 ) (𝐱) = 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐱), 𝐺𝑎,𝑏 𝑜𝑏 (𝐱)) 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑚𝑎𝑥 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) (𝐱) = 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐱), 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱)) 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) (𝐱) = 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 (𝐱), 𝐺𝑎,𝑏 𝑜𝑏 (𝐱)) Table 3 Accuracy rate obtained for pooling operators based on different (𝑎, 𝑏)-grouping construction methods for the datasets MNIST, CIFAR10 and CIFAR100. In the case of CIFAR-100, top-5 accuracy has also been calculated, and is presented to the right of its top-1 accuracy value. MNIST CIFAR-10 CIFAR-100 LeNet-5 VGG16 ResNet LeNet-5 VGG16 ResNet LeNet-5 VGG16 ResNet 𝐼𝑛𝑑𝑖𝑣𝑖𝑑𝑢𝑎𝑙 Avg 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 0.825 ± 0.003 𝟎.𝟗𝟏𝟓 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟏𝟗 ±𝟎.𝟎𝟎𝟒 0.558 ± 0.002∕0.826 ± 0.001 𝟎.𝟔𝟖𝟐 ±𝟎.𝟎𝟎𝟐∕𝟎.𝟖𝟗𝟏 ±𝟎.𝟎𝟎𝟒 0.681 ± 0.007∕0.902 ± 0.005 Max 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 0.837 ± 0.003 0.911 ± 0.003 𝟎.𝟗𝟏𝟗 ±𝟎.𝟎𝟎𝟑 0.561 ± 0.000∕0.832 ± 0.003 0.676 ± 0.003∕0.888 ± 0.004 0.681 ± 0.005∕0.898 ± 0.004 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟖𝟑𝟗 ±𝟎.𝟎𝟎𝟑 0.912 ± 0.003 0.918 ± 0.004 0.557 ± 0.000∕0.827 ± 0.006 0.678 ± 0.004∕0.889 ± 0.004 0.664 ± 0.014∕0.891 ± 0.010 𝐺𝑎,𝑏 𝑜𝑏 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 0.830 ± 0.003 𝟎.𝟗𝟏𝟓 ±𝟎.𝟎𝟎𝟐 0.918 ± 0.002 𝟎.𝟓𝟔𝟐 ±𝟎.𝟎𝟎𝟑∕𝟎.𝟖𝟑𝟒 ±𝟎.𝟎𝟎𝟐 0.680 ± 0.001∕0.891 ± 0.003 𝟎.𝟔𝟖𝟒 ±𝟎.𝟎𝟏𝟖∕𝟎.𝟗𝟎𝟐 ±𝟎.𝟎𝟎𝟒 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 0.824 ± 0.004 0.906 ± 0.010 0.916 ± 0.009 0.466 ± 0.019∕0.752 ± 0.022 0.639 ± 0.044∕0.864 ± 0.026 0.623 ± 0.046∕0.859 ± 0.047 𝐺𝑎,𝑏 𝑢0.991 ± 0.001 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 0.995 ± 0.000 0.825 ± 0.002 0.911 ± 0.004 0.917 ± 0.005 0.559 ± 0.013∕0.829 ± 0.007 0.650 ± 0.037∕0.871 ± 0.027 0.653 ± 0.031∕0.887 ± 0.032 𝐶𝑜𝑚𝑏𝑖𝑛𝑎𝑡𝑖𝑜𝑛𝑠 𝐴𝑊 𝑎.𝑏 (𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 0.995 ± 0.001 0.829 ± 0.002 0.914 ± 0.002 0.914 ± 0.008 0.561 ± 0.001∕0.833 ± 0.004 0.679 ± 0.002∕0.890 ± 0.001 𝟎.𝟔𝟕𝟒 ±𝟎.𝟎𝟏𝟔∕𝟎.𝟖𝟗𝟖 ±𝟎.𝟎𝟎𝟗 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥.𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 0.828 ± 0.003 0.913 ± 0.002 0.920 ± 0.007 0.565 ± 0.004∕0.833 ± 0.002 0.679 ± 0.002∕0.890 ± 0.003 0.622 ± 0.051∕0.863 ± 0.052 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥,𝐺𝑎,𝑏 𝑜𝑏 ) 0.991 ± 0.001 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 𝟎.𝟖𝟑𝟏 ±𝟎.𝟎𝟎𝟐 0.914 ± 0.001 𝟎.𝟗𝟐𝟑 ±𝟎.𝟎𝟎𝟏 𝟎.𝟓𝟔𝟕 ±𝟎.𝟎𝟎𝟐∕𝟎.𝟖𝟑𝟑 ±𝟎.𝟎𝟎𝟏 0.679 ± 0.004∕0.891 ± 0.002 0.671 ± 0.007∕0.898 ± 0.005 𝐴𝑊 𝑎,𝑏 (𝐺𝑎,𝑏 𝑚𝑎𝑥,𝐺𝑎,𝑏 𝑜𝑏 ,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 0.995 ± 0.001 0.828 ± 0.002 𝟎.𝟗𝟏𝟔 ±𝟎.𝟎𝟎𝟐 0.922 ± 0.002 0.563 ± 0.005∕0.832 ± 0.001 𝟎.𝟔𝟖𝟏 ±𝟎.𝟎𝟎𝟓∕𝟎.𝟖𝟖𝟖 ±𝟎.𝟎𝟎𝟐 𝟎.𝟔𝟕𝟒 ±𝟎.𝟎𝟎𝟔∕𝟎.𝟖𝟗𝟖 ±𝟎.𝟎𝟎𝟐 𝐶𝑜𝑚𝑝𝑜𝑠𝑖𝑡𝑖𝑜𝑛𝑠 𝐺𝑎,𝑏 𝑚𝑎𝑥(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 0.823 ± 0.006 0.913 ± 0.001 𝟎.𝟗𝟏𝟗 ±𝟎.𝟎𝟎𝟒 0.561 ± 0.004∕0.831 ± 0.002 0.678 ± 0.003∕0.888 ± 0.002 0.665 ± 0.019∕0.890 ± 0.020 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑚𝑎𝑥,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 𝟎.𝟖𝟐𝟒 ±𝟎.𝟎𝟎𝟐 0.911 ± 0.003 0.891 ± 0.038 0.561 ± 0.003∕0.831 ± 0.001 0.679 ± 0.005∕0.890 ± 0.002 0.609 ± 0.093∕0.894 ± 0.006 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑚𝑎𝑥,𝐺𝑎,𝑏 𝑜𝑏 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟏 0.995 ± 0.001 0.824 ± 0.005 𝟎.𝟗𝟏𝟒 ±𝟎.𝟎𝟎𝟏 0.900 ± 0.016 0.565 ± 0.002∕0.834 ± 0.001 𝟎.𝟔𝟖𝟏 ±𝟎.𝟎𝟎𝟐∕𝟎.𝟖𝟖𝟗 ±𝟎.𝟎𝟎𝟏 𝟎.𝟔𝟔𝟗 ±𝟎.𝟎𝟐𝟕∕𝟎.𝟖𝟗𝟒 ±𝟎.𝟎𝟎𝟔 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑(𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ,𝐺𝑎,𝑏 𝑜𝑏 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 0.995 ± 0.001 0.820 ± 0.004 0.910 ± 0.001 0.860 ± 0.066 0.562 ± 0.004∕0.830 ± 0.002 0.671 ± 0.006∕0.885 ± 0.003 0.456 ± 0.119∕0.728 ± 0.113 𝐺𝑎,𝑏 𝑜𝑏(𝐺𝑎,𝑏 𝑚𝑎𝑥,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 ) 𝟎.𝟗𝟗𝟐 ±𝟎.𝟎𝟎𝟎 𝟎.𝟗𝟗𝟔 ±𝟎.𝟎𝟎𝟎 0.995 ± 0.001 0.823 ± 0.002 0.912 ± 0.001 0.908 ± 0.013 𝟎.𝟓𝟔𝟕 ±𝟎.𝟎𝟎𝟏∕𝟎.𝟖𝟑𝟒 ±𝟎.𝟎𝟎𝟑 0.677 ± 0.003∕0.889 ± 0.002 0.683 ± 0.040∕0.898 ± 0.004 Table 4 Comparison with modern pooling operators ‘‘mixed’’, ‘‘gated’’ and ‘‘attention’’. Notice how (𝑎, 𝑏)-grouping functions perform in par with most of them, while avoiding the inclusion of additional parameters to the base CNN architecture. CIFAR-10 CIFAR-100 LeNet-5 VGG16 ResNet LeNet-5 VGG16 ResNet Avg 0.825 ± 0.003 0.915 ± 0.001 0.919 ± 0.004 0.558 ± 0.002∕0.826 ± 0.001 0.682 ± 0.002∕0.891 ± 0.004 0.681 ± 0.007∕0.902 ± 0.005 Max 0.837 ± 0.003 0.911 ± 0.003 0.919 ± 0.003 0.561 ± 0.000∕0.832 ± 0.003 0.676 ± 0.003∕0.888 ± 0.004 0.681 ± 0.005∕0.898 ± 0.004 Best grouping 0.839 ± 0.003 𝟎.𝟗𝟏𝟔 ±𝟎.𝟎𝟎𝟐 𝟎.𝟗𝟐𝟑 ±𝟎.𝟎𝟎𝟏 0.567 ± 0.001∕0.834 ± 0.003 0.681 ± 0.002∕0.889 ± 0.001 0.684 ± 0.018∕0.902 ± 0.004 Mixed pooling 𝟎.𝟖𝟒𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟏𝟔 ±𝟎.𝟎𝟎𝟐 0.922 ± 0.002 0.561 ± 0.002∕0.830 ± 0.001 𝟎.𝟔𝟖𝟑 ±𝟎.𝟎𝟎𝟐∕𝟎.𝟖𝟗𝟐 ±𝟎.𝟎𝟎𝟐 0.680 ± 0.002∕0.901 ± 0.001 Gated pooling 𝟎.𝟖𝟒𝟐 ±𝟎.𝟎𝟎𝟑 0.913 ± 0.003 0.922 ± 0.002 𝟎.𝟓𝟕𝟐 ±𝟎.𝟎𝟎𝟒∕𝟎.𝟖𝟑𝟔 ±𝟎.𝟎𝟎𝟏 0.682 ± 0.003∕0.892 ± 0.001 0.686 ± 0.003∕0.901 ± 0.003 Attention pooling 0.836 ± 0.002 0.884 ± 0.008 𝟎.𝟗𝟐𝟑 ±𝟎.𝟎𝟎𝟑 0.563 ± 0.003∕0.830 ± 0.003 0.614 ± 0.006∕0.850 ± 0.008 𝟎.𝟔𝟖𝟏 ±𝟎.𝟎𝟎𝟓∕𝟎.𝟗𝟎𝟑 ±𝟎.𝟎𝟎𝟒 Information Fusion 99 (2023) 101893 9 I. Rodriguez-Martinez et al. Fig. 1. (a) Distribution of activations generated for 10,000 random tuples of 4values sampled from a uniform distribution on [0,1]. Notice how 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and 𝐺𝑎,𝑏 𝑜𝑏 act as a more extreme version of max pooling, while 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 and 𝐺𝑎,𝑏 𝑢output slightly higher values than average pooling. (b) Gradients generated during backward pass for those same activations. Unlike max pooling, 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and 𝐺𝑎,𝑏 𝑜𝑏 return non-zero gradients for values other than the maximum, which may benefit the gradient flow of the model. By contrast, notice how for grouping functions 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 and 𝐺𝑎,𝑏 𝑢gradients have been clipped to an upmost value of 2. Very high outliers can be generated on those functions, leading to exploding gradient problems and difficulties on training, which may explain their subpar behaviour. Table 5 Results offered by combinations of (𝑎, 𝑏)-grouping functions with the arithmetic mean. Mixed pooling corresponds to the combination of average pooling and maximum pooling. CIFAR-10 CIFAR-100 LeNet-5 VGG16 ResNet LeNet-5 VGG16 ResNet Avg 0.825 ± 0.003 0.915 ± 0.001 0.919 ± 0.004 0.558 ± 0.002∕0.826 ± 0.001 0.682 ± 0.002∕0.891 ± 0.004 0.681 ± 0.007∕0.902 ± 0.005 Max 0.837 ± 0.003 0.911 ± 0.003 0.919 ± 0.003 0.561 ± 0.000∕0.832 ± 0.003 0.676 ± 0.003∕0.888 ± 0.004 0.681 ± 0.005∕0.898 ± 0.004 Best grouping 0.839 ± 0.003 𝟎.𝟗𝟏𝟔 ±𝟎.𝟎𝟎𝟐 𝟎.𝟗𝟐𝟑 ±𝟎.𝟎𝟎𝟏 𝟎.𝟓𝟔𝟕 ±𝟎.𝟎𝟎𝟏∕𝟎.𝟖𝟑𝟒 ±𝟎.𝟎𝟎𝟑 0.681 ± 0.002∕0.889 ± 0.001 0.684 ± 0.018∕0.902 ± 0.004 Mixed pooling 𝟎.𝟖𝟒𝟐 ±𝟎.𝟎𝟎𝟏 𝟎.𝟗𝟏𝟔 ±𝟎.𝟎𝟎𝟐 0.922 ± 0.002 0.561 ± 0.002∕0.830 ± 0.001 0.683 ± 0.002∕0.892 ± 0.002 0.680 ± 0.002∕0.901 ± 0.001 𝐴𝑊 𝑎,𝑏 (𝐴𝑣𝑔,𝐺𝑎,𝑏 𝑜𝑏 )0.841 ± 0.001 0.914 ± 0.001 0.921 ± 0.002 0.561 ± 0.001∕0.831 ± 0.001 𝟎.𝟔𝟖𝟏 ±𝟎.𝟎𝟎𝟏∕𝟎.𝟖𝟗𝟑 ±𝟎.𝟎𝟎𝟏 𝟎.𝟔𝟖𝟒 ±𝟎.𝟎𝟎𝟐∕𝟎.𝟗𝟎𝟒 ±𝟎.𝟎𝟎𝟓 𝐴𝑊 𝑎,𝑏 (𝐴𝑣𝑔,𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 )0.837 ± 0.002 0.915 ± 0.001 𝟎.𝟗𝟐𝟑 ±𝟎.𝟎𝟎𝟐 0.560 ± 0.004∕0.830 ± 0.001 0.681 ± 0.003∕0.892 ± 0.001 0.677 ± 0.012∕0.900 ± 0.006 5.3. Feature visualization In order to further understand the impact of (𝑎, 𝑏)-grouping functions as pooling operator, we have studied the activation and gradient values they produce, both during forward pass and backward pass. In Fig. 1, we show the results obtained through a simulation in which 10,000 random tuples of 4values sampled from a random uniform distribution on [0,1] have been reduced through several different pooling functions. We have used max pooling, average pooling, and the individual (𝑎, 𝑏)-grouping functions. Interestingly, while 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and 𝐺𝑎,𝑏 𝑜𝑏 act as a more extreme case of max pooling, with a higher proportion of high activitations being generated, 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 and 𝐺𝑎,𝑏 𝑢behave similarly to average pooling, with a skew with respect to higher activations. After generating the resulting activations, the gradients of the output of each pooling function with respect to its input have also been graphed. An important detail of max pooling is the fact that it outputs a gradient of zero for non-maximal elements of a pooling window, blocking the flow of the gradient through those values. By contrast, 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and specially 𝐺𝑎,𝑏 𝑜𝑏 return non-zero gradients for plenty of elements, which may explain its good performance. In the case of 𝐺𝑎,𝑏 𝑔𝑒𝑜𝑚 and 𝐺𝑎,𝑏 𝑢, gradients have been clipped to a value of 2, but very high outlier values could be generated, producing exploding gradient problems. Therefore, we suggest avoiding their use. In order to further visualize the effect of 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and 𝐺𝑎,𝑏 𝑜𝑏 functions, in Fig. 2, three feature maps extracted from the first block of our ResNet-56 model have been reduced with both functions, together with maximum and average pooling. While both maximum and average pooling output fairly similar feature maps, (𝑎, 𝑏)-grouping functions accentuate high intensity activations, amplifying their result for following layers, with 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 acting in a more extreme way. 5.4. Combinations of (𝑎, 𝑏)-grouping functions with the arithmetic mean As a final study, motivated by the good results offered by both average and mixed pooling layers, we also study the possibility of combining the arithmetic mean with (𝑎, 𝑏)-grouping functions. Table 5 summarize the accuracy rates offered by the different methods. Once again, although good results are obtained, they do not differ much from the ones offered by 𝐺𝑎,𝑏 𝑝𝑟𝑜𝑑 and 𝐺𝑎,𝑏 𝑜𝑏 . The same happens with mixed pooling, which in this case does outperform maximum pooling in most situations. A similar study to that of Fig. 1 has been performed in this case, which we present in Fig. 3. If we compare distributions generated by combinations with the (𝑎, 𝑏)-grouping functions with the ones outputted by their individual versions, we find that their activation distributions behaves as a skewed version of average pooling. However, the gradients of both functions retain the distribution of their individual counterparts. On the contrary, mixed pooling solves the problem on gradient flow of max pooling, with previous gradient values of zero having been replaced by a factor of the derivative of average pooling. We believe that this is the case for mixed pooling outperforming max pooling, similarly to (𝑎, 𝑏)-grouping functions. 6. Conclusions and future work In this paper we have proven that better alternatives to the maximum as a pooling function exist. In particular, (𝑎, 𝑏)-grouping functions