Title: FSPOOL: LEARNING SET REPRESENTATIONS WITH FEATUREWISE SORT POOLING

Abstract: Traditional set prediction models can struggle with simple datasets due to an issue we call the responsibility problem. We introduce a pooling method for sets of feature vectors based on sorting features across elements of the set. This can be used to construct a permutation-equivariant auto-encoder that avoids this responsibility problem. On a toy dataset of polygons and a set version of MNIST, we show that such an auto-encoder produces considerably better reconstructions and representations. Replacing the pooling function in existing set encoders with FSPool improves accuracy and convergence speed on a variety of datasets.
Consider the following task: you have a dataset wherein each datapoint is a set of 2-d points that form the vertices of a regular polygon, and the goal is to learn an auto-encoder on this dataset. The only variable is the rotation of this polygon around the origin, with the number of points, size, and centre of it fixed. Because the inputs and outputs are sets, this problem has some unique challenges.
Encoder: This turns the set of points into a latent space. The order of the elements in the set is irrelevant, so the feature vector the encoder produces should be invariant to permutations of the elements in the set. While there has been recent progress on learning such functions (Zaheer et al., 2017; Qi et al., 2017) , they compress a set of any size down to a single feature vector in one step. This can be a significant bottleneck in what these functions can represent efficiently, particularly when relations between elements of the set need to be modeled (Murphy et al., 2019; Zhang et al., 2019b).
Decoder: This turns the latent space back into a set. The elements in the target set have an arbitrary order, so a standard reconstruction loss cannot be used naïvely -the decoder would have to somehow output the elements in the same arbitrary order. Methods like those in Achlioptas et al. (2018) therefore use an assignment mechanism to match up elements (section 2), after which a usual reconstruction loss can be computed. Surprisingly, their model is still unable to solve the polygon reconstruction task with close-to-zero reconstruction error, despite the apparent simplicity of the dataset.
In this paper, we introduce a set pooling method for neural networks that addresses both the encoding bottleneck issue and the decoding failure issue. We make the following contributions:
1. We identify the responsibility problem (section 3). This is a fundamental issue with existing set prediction models that has not been considered in the literature before, explaining why these models struggle to model even the simple polygon dataset. 2. We introduce FSPOOL: a differentiable, sorting-based pooling method for variable-size sets (section 4). By using our pooling in the encoder of a set auto-encoder and inverting the

:

sorting in the decoder, we can train it with the usual MSE loss for reconstruction without the need for an assignment-based loss. This avoids the responsibility problem.

3. We show that our auto-encoder can learn polygon reconstructions with close-to-zero error, which is not possible with existing set auto-encoders (subsection 6.1). This benefit transfers over to a set version of MNIST, where the quality of reconstruction and learned representation is improved (subsection 6.2). In further classification experiments on CLEVR (subsection 6.3) and several graph classification datasets (subsection 6.4), using FSPool in a set encoder improves over many non-trivial baselines. Lastly, we show that combining FSPool with Relation Networks significantly improves over standard Relation Networks in a model that heavily relies on the quality of the representation (subsection 6.5).

2. BACKGROUND:

The problem with predicting sets is that the output order of the elements is arbitrary, so computing an elementwise mean squared error does not make sense; there is no guarantee that the elements in the target set happen to be in the same order as they were generated. The existing solution around this problem is an assignment-based loss, which assigns each predicted element to its "closest" neighbour in the target set first, after which a traditional pairwise loss can be computed.

We have a predicted set Ŷ with feature vectors as elements and a ground-truth set Y , and we want to measure how different the two sets are. These sets can be represented as matrices with the feature vectors placed in the columns in some arbitrary order, so Ŷ = [ŷ (1) , . . . , ŷ(n) ] and Y = [y (1) , . . . , y (n) ] with n as the set size (columns) and d as the number of features per element (rows). In this work, we assume that these two sets have the same size. The usual way to produce Ŷ is with a multi-layer perceptron (MLP) that has d × n outputs.

Linear assignment One way to do this assignment is to find a linear assignment that minimises the total loss, which can be solved with the Hungarian algorithm in O(n 3 ) time. With Π as the space of all n-length permutations:

L H ( Ŷ , Y ) = min π∈Π n i ||ŷ (i) -y (π(i)) || 2

(1)

Chamfer loss Alternatively, we can assign each element directly to the closest element in the target set. To ensure that all points in the target set are covered, a term is added to the loss wherein each element in the target set is also assigned to the closest element in the predicted set. This has O(n 2 ) time complexity and can be run efficiently on GPUs.

EQUATION

Both of these losses are examples of permutation-invariant functions: the loss is the same regardless of how the columns of Y and Ŷ are permuted.

3. RESPONSIBILITY PROBLEM:

It turns out that standard neural networks struggle with modeling symmetries that arise because there are n! different list representations of the same set, which we highlight here with an example. Suppose we want to train an auto-encoder on our polygon dataset and have a square (so a set of 4 points with the x-y coordinates as features) with some arbitrary initial rotation (see Figure 1 ). Each pair in the 8 outputs of the MLP decoder is responsible for producing one of the points in this square.

We mark each such pair with a different colour in the figure.

If we rotate the square (top left in figure) by 90 degrees (top right in figure), we simply permute the elements within the set. They are the same set, so they also encode to the same latent representation

90 • 30 • 60 • -

Figure 1 : Discontinuity (red arrow) when rotating the set of points. The coloured points denote which output of the network is responsible for which point. In the top path, the set rotated by 90 • is the same set (exactly the same shape before and after rotation) and encodes to the same feature vector, so the output responsibility (colouring) must be the same too. In this example, after 30 • and a further small clockwise rotation by , the point that each output pair is responsible for has to suddenly change.

and decode to the same list representation. This means that each output is still responsible for producing the point at the same position after the rotation, i.e. the dark red output is still responsible for the top left point, the light red output is responsible for the top right point, etc. However, this also means that at some point during that 90 degree rotation (bottom path in figure), there must exist a discontinuous jump (red arrow in figure) in how the outputs are assigned. We know that the 90 degree rotation must start and end with the top left point being produced by the dark red output. Thus, we know that there is a rotation where all the outputs must simultaneously change which point they are responsible for, so that completing the rotation results in the top left point being produced by the dark red output. Even though we change the set continuously, the list representation (MLP or RNN outputs) must change discontinuously.

This is a challenge for neural networks to learn, since they can typically only model functions without discontinuous jumps. As we increase the number of vertices in the polygon (number of set elements), it must learn an increasing frequency of situations where all the outputs must discontinuously change at once, which becomes very difficult to model. Our experiment in subsection 6.1 confirms this.

This example highlights a more general issue: whenever there are at least two set elements that can be smoothly interchanged, these discontinuities arise. We show this more formally in Appendix A. For example, the set of bounding boxes in object detection can be interchanged in much the same way as the points of our square here. An MLP or RNN that tries to generate these (like in Rezatofighi et al. (2018) ; Stewart & Andriluka (2016) ) must handle which of its outputs is responsible for what element in a discontinuous way. Note that traditional object detectors like Faster R-CNN do not have this responsibility problem, because they do not treat object detection as a proper set prediction task with their anchor-based approach. When the set elements come from a finite domain (often a set of labels) and not R d , it does not make sense to interpolate set elements. Thus, the responsibility problem does not apply to methods for such problems, for example Welleck et al. (2018); Rezatofighi. et al. (2017) .

4. FEATUREWISE SORT POOLING:

The main idea behind our pooling method is simple: sorting each feature across the elements of the set and performing a weighted sum. The numerical sorting ensures the property of permutationinvariance. The difficulty lies in how to determine the weights for the weighted sum in a way that works for variable-sized sets.

A key insight for auto-encoding is that we can store the permutation that the sorting applies in the encoder and apply the inverse of that permutation in the decoder. This allows the model to restore the arbitrary order of the set element so that it no longer needs an assignment-based loss for training. This avoids the problem in Figure 1 , because rotating the square by 90 • also permutes the outputs of the network accordingly. Thus, there is no longer a discontinuity in the outputs during this rotation.

In other words, we make the auto-encoder permutation-equivariant: permuting the input set also permutes the neural network's output in the same way.

We describe the model for the simplest case of encoding fixed-size sets in subsection 4.1, extend it to variable-sized sets in subsection 4.2, then discuss how to use this in an auto-encoder in subsection 4.3.

X sort X y dot product f ([0, 1 3 , 2 3 ,1], W ) discretise f (•, W )

Figure 2 : Overview of our FSPOOL model for variable-sized sets. In this example, the weights define piecewise linear functions with two pieces. The four dots on each line correspond to the positions where f is evaluated for a set of size four.

4.1. FIXED-SIZE SETS:

We are given a set of n feature vectors X = [x (1) , . . . , x (n) ] where each x (i) is a column vector of dimension d placed in some arbitrary order in the columns of X ∈ R d×n . From this, the goal is to produce a single feature vector in a way that is invariant to permutation of the columns in the matrix.

We first sort each of the d features across the elements of the set by numerically sorting within the rows of X to obtain the matrix of sorted features X:

X i,j = SORT(X i,: ) j (3)

where X i,: is the ith row of X and SORT(•) sorts a vector in descending order. While this may appear strange since the columns of X no longer correspond to individual elements of the set, there are good reasons for this. A transformation (such as with an MLP) prior to the pooling can ensure that the features being sorted are mostly independent so that little information is lost by treating the features independently. Also, if we were to sort whole elements by one feature, there would be discontinuities whenever two elements swap order. This problem is avoided by our featurewise sorting.

Efficient parallel implementations of SORT are available in Deep Learning frameworks such as PyTorch, which uses a bitonic sort (O(log 2 n) parallel time, O(n log 2 n) comparisons). While the permutation that the sorting applies is not differentiable, gradients can still be propagated pathwise according to this permutation in a similar way as for max pooling.

Then, we apply a learnable weight matrix W ∈ R d×n to X by elementwise multiplying and summing over the columns (row-wise dot products).

EQUATION

y ∈ R d is the final pooled representation of X. The weight vector allows different weightings of different ranks and is similar in spirit to the parametric version of the gather step in Gather-Excite (Hu et al., 2018) . This is a generalisation of both max and sum pooling, since max pooling can be obtained with the weight vector [1, 0, . . . , 0] and sum pooling can be obtained with the 1 vector. Thus, it is also a maximally powerful pooling method for multi-sets (Xu et al., 2019) while being potentially more flexible (Murphy et al., 2019) in what it can represent.

4.2. VARIABLE-SIZE SETS:

When the size n of sets can vary, our previous weight matrix can no longer have a fixed number of columns. To deal with this, we define a continuous version of the weight vector in each row: we use a fixed number of weights to parametrise a piecewise linear function f : [0, 1] → R, also known as calibrator function (Jaderberg et al., 2015) . For a set of size three, this function would be evaluated at 0, 0.5, and 1 to determine the three weights for the weighted sum. For a set of size four, it would be evaluated at 0, 1/3, 2/3, and 1. This decouples the number of columns in the weight matrix from the set size that it processes, which allows it to be used for variable-sized sets.

To parametrise a piecewise linear function f , we have a weight vector w ∈ R k where k -1 is the number of pieces defined by the k points. With the ratio r ∈ [0, 1],

EQUATION

The max(•) term selects the two nearest points to r and linearly interpolates them. For example, if k = 3, choosing r ∈ [0, 0.5] interpolates between the first two points in the weight vector with (1 -2r)w 1 + 2rw 2 .

We have a different w for each of the d features and place them in the rows of a weight matrix W ∈ R d×k , which no longer depends on n. Using these rows with f to determine the weights:

EQUATION

y is now the pooled representation with a potentially varying set size n as input. When n = k, this reduces back to Equation 4. For most experiments, we simply set k = 20 without tuning it.

4.3. AUTO-ENCODER:

To create an auto-encoder, we need a decoder that turns the latent space back into a set. Analogously to image auto-encoders, we want this decoder to roughly perform the operations of the encoder in reverse. The FSPool in the encoder has two parts: sorting the features, and pooling the features. Thus, the FSUnpool version should "unpool" the features, and "unsort" the features. For the former, we define an unpooling version of Equation 6 that distributes information from one feature vector to a variable-size list of feature vectors. For the latter, the idea is to store the permutation of the sorting from the encoder and use the inverse of it in the decoder to unsort it. This allows the auto-encoder to restore the original ordering of set elements, which makes it permutation-equivariant.

With y ∈ R d as the vector to be unpooled, we define the unpooling similarly to Equation 6 as

EQUATION

In the non-autoencoder setting, the lack of differentiability of the permutation is not a problem due to the pathwise differentiability. However, in the auto-encoder setting we make use of the permutation in the decoder. While gradients can still be propagated through it, it introduces discontinuities whenever the sorting order in the encoder for a set changes, which we empirically observed to be a problem.

To avoid this issue, we need the permutation that the sort produces to be differentiable. To achieve this, we use the recently proposed sorting networks (Grover et al., 2019) , which is a continuous relaxation of numerical sorting. This gives us a differentiable approximation of a permutation matrix

P i ∈ [0, 1] n×n , i ∈ {1, .

. . , d} for each of the d features, which we can use in the decoder while still keeping the model fully differentiable. It comes with the trade-off of increased computation costs with O(n 2 ) time and space complexity, so we only use the relaxed sorting in the auto-encoder setting. It is possible to decay the temperature of the relaxed sort throughout training to 0, which allows the more efficient traditional sorting algorithm to be used at inference time.

Lastly, we can use the inverse of the permutation from the encoder to restore the original order.

X i,j = ( X i,:

EQUATION

where P T i permutes the elements of the ith row in X . Because the permutation is stored and used in the decoder, this makes our auto-encoder similar to a U-net architecture (Long et al., 2015) since it is possible for the network to skip the small latent space. Typically we find that this only starts to become a problem when d is too big, in which case it is possible to only use a subset of the P i in the decoder to counteract this.

5. RELATED WORK:

We are proposing a differentiable function that maps a set of feature vectors to a single feature vector. This has been studied in many works such as Deep Sets (Zaheer et al., 2017) and PointNet (Qi et al., 2017) , with universal approximation theorems being proven. In our notation, the Deep Sets model is g( j h(X :,j )) where h : R d → R p and g : R p → R q . Since this is O(n) in the set size n, it is clear that while it may be able to approximate any set function, problems that depend on higher-order interactions between different elements of the set will be difficult to model aside from pure memorisation. This explains the success of relation networks (RN), which simply perform this sum over all pairs of elements, and has been extended to higher orders by Murphy et al. (2019) . Our work proposes an alternative operator to the sum that is intended to allow some relations between elements to be modeled through the sorting, while not incurring as large of a computational cost as the O(n 2 ) complexity of RNs.

Sorting-based set functions The use of sorting has often been considered in the set learning literature due to its natural way of ensuring permutation-invariance. The typical approach is to sort elements of the set as units rather than our approach of sorting each feature individually.

For example, the similarly-named SortPooling (Zhang et al., 2018) sorts the elements based on one feature of each element. However, this introduces discontinuities into the optimisation whenever two elements swap positions after the sort. For variable-sized sets, they simply truncate (which again adds discontinuities) or pad the sorted list to a fixed length and process this with a CNN, treating the sorted vectors as a sequence. Similarly, Cangea et al. (2018) and Gao & Ji (2019) truncate to a fixed-size set by computing a score for each element and keeping elements with the top-k scores. In contrast, our pooling handles variable set sizes without discontinuities through the featurewise sort and continuous weight space. Gao & Ji (2019) propose a graph auto-encoder where the decoder use the "inverse" of what the top-k operator does in the encoder, similar to our approach. Instead of numerically sorting, Mena et al. (2018) and Zhang et al. (2019b) learn an ordering of set elements instead.

Outside of the set learning literature, rank-based pooling in a convolutional neural network has been used in Shi et al. (2016) , where the rank is turned into a weight. Sorting within a single feature vector has been used for modeling more powerful functions under a Lipschitz constraint for Wasserstein GANs (Anil et al., 2018) and improved robustness to adversarial examples (Cisse et al., 2017) .

Set prediction Assignment-based losses combined with an MLP or similar are a popular choice for various auto-encoding and generative tasks on point clouds (Fan et al., 2017; Yang et al., 2018; Achlioptas et al., 2018 ). An interesting alternative approach is to perform the set generation sequentially (Stewart & Andriluka, 2016; Johnson, 2017; You et al., 2018) . The difficulty lies in how to turn the set into one or multiple sequences, which these papers try to solve in different ways. Since the initial release of this paper, Zhang et al. (2019a) developed a set prediction method which uses FSPool as a core component and motivate their work by our observations about the responsibility problem. Interestingly, their model uses the gradient of the set encoder, which involves computing the gradient of FSPool; this is closely related to the FSUnpool we proposed.

6. EXPERIMENTS:

We start with two auto-encoder experiments, then move to tasks where we replace the pooling in an established model with FSPool. Full results can be found in the appendices, experimental details can be found in Appendix H, and we provide our code for reproducibility at [redacted].

6.1. ROTATING POLYGONS:

We start with our simple dataset of auto-encoding regular polygons (section 3), with each point in a set corresponding to the x-y coordinate of a vertex in that polygon. This dataset is designed to explicitly test whether the responsibility problem occurs in practice. We keep the set size the same within a training run and only vary the rotation. We try this with set sizes of increasing powers of 2.

Model The encoder contains a 2-layer MLP applied to each set element, FSPool, and a 2-layer MLP to produce the latent space. The decoder contains a 2-layer MLP, FSUnpool, and a 2-layer MLP Results First, we verified that if the latent space is always zeroed out, the model with FSPool is unable to train, suggesting that the latent space is being used and is necessary. For our training runs with set sizes up to 128, our auto-encoder is able to reconstruct the point set close to perfectly (see Appendix B). Meanwhile, the baseline converges significantly slower with high reconstruction error when the number of points is 8 or fewer and outputs the same set irrespective of input above that, regardless of loss function. Even when significantly increasing the latent size, dimensionality of layers, tweaking the learning rate, and replacing FSPool in the encoder with sum, mean, or max, the baseline trained with the linear assignment or Chamfer loss fails completely at 16 points. We verified that for 4 points, the baseline shows the discontinuous jump behaviour in the outputs as we predict in Figure 1 . This experiment highlights the difficulty of learning this simple dataset with traditional approaches due to the responsibility problem, while our model is able to fit this dataset with ease. 6.2 NOISY MNIST SETS Next, we turn to the harder task of auto-encoding MNIST images -turned into sets of points -using a denoising auto-encoder. Each pixel that is above the mean pixel level is considered to be part of the set with its x-y coordinates as feature, scaled to be within the range of [0, 1]. The set size varies between examples and is 133 on average. We add Gaussian noise to the points in the set and use the set without noise as training target for the denoising auto-encoder.

Model We use exactly the same architecture as on the polygon dataset. As baseline models, we combine sum/mean/max pooling encoders with MLP/LSTM decoders and train with the Chamfer loss. This closely corresponds to the AE-CD approach (Achlioptas et al., 2018) with the MLP decoder and the model by Stewart & Andriluka (2016) with the LSTM decoder. We tried the approach by Zhang et al. (2019a) , but it performs much worse than the other baselines, likely because it requires a bigger encoder (our encoder has ∼3000 parameters, their encoder has ∼85000 parameters).

Results:

We show example outputs in Figure 3 and the full results in Appendix C. We focus on comparing our FSPool-FSUnpool model against the best baseline, which uses the sum pooling encoder and MLP decoder. In general, our model can reconstruct the digits much better than the baseline, which tends to predict too few points even though it always has 342 (the maximum set size) times 2 outputs available. Occasionally, the baseline also makes big errors such as turning 5s into 8s (first σ = 0.01 example), which we have not observed with our model. Instead of auto-encoding MNIST sets, we can also classify them. We use the same dataset and replace the set decoder in our model and the baseline with a 2-layer MLP classifier. We consider three variants: using the trained auto-encoder weights for the encoder and freezing them, not freezing them (finetuning), and training all weights from random initialisation. This tests how informative the learned representations of the pre-trained auto-encoder and the encoder are.

We show our results for σ = 0.05 in Table 1 . Results for σ = 0.00 and 100 epochs are shown in Appendix D. Even though our model can store information in the permutation that skips the latent space, our latent space contains more information to correctly classify a set, even when the weights are fixed. Our model with fixed encoder weights already performs better after 1 epoch of training than the baseline models with unfrozen weights after 10 epochs of training. This shows the benefit of the FSPool-FSUnpool auto-encoder to the representation. When allowing the encoder weights to change (Unfrozen and Random init), our results again improve significantly over the baselines. Interestingly, switching the relaxed sort to the unrelaxed sort in our model when using the fixed auto-encoder weights does not hurt accuracy. Training the FSPool model takes 45 seconds per epoch on a GTX 1080 GPU, only slightly more than the baselines with 37 seconds per epoch.

6.3. CLEVR:

CLEVR (Johnson, 2017) is a visual question answering dataset where the task is to classify an answer to a question about an image. The images show scenes of 3D objects with different attributes, and the task is to answer reasoning questions such as "what size is the sphere that is left of the green thing". Since we are interested in sets, we use this dataset with the ground-truth state description -the set of objects (maximum size 10) and their attributes -as input instead of an image of the rendered scene.

Model For this dataset, we compare against relation networks (RN) (Santoro et al., 2017 ) -explicitly modeling all pairwise relations -Janossy pooling (Murphy et al., 2019) , and regular pooling functions. While the original RN paper reports a result of 96.4% for this dataset, we use a tuned implementation by Messina et al. (2018) with 2.6% better accuracy. For our model, we modify this to not operate on pairwise relations and replace the existing sum pooling with FSPool. We use the same hyperparameters for our model as the strong RN baseline without further tuning them.

Over 10 runs, Table 2 shows that our FSPool model reaches the best accuracy and also reaches the listed accuracy milestones in fewer epochs than all baselines. The difference in accuracy is statistically significant (two-tailed t-tests against sum, mean, RN, all with p ≈ 0.01). Also, FSPool reaches 99% accuracy in 5.3 h, while the fastest baseline, mean pooling, reaches the same accuracy in 6.2 h. Surprisingly, RNs do not provide any benefit here, despite the hyperparameters being explicitly tuned for the RN model. We show some of the functions f (•, W ) that FSPool has learned in Appendix E. These confirm that FSPool uses more complex functions than just sums or maximums, which allow it to capture more information about the set than other pooling functions. We perform a large number of experiments on various graph classification datasets from the TU repository (Kersting et al., 2016) : 4 graph datasets from bioinformatics (for example with the graph encoding the structure of a molecule) and 5 datasets from social networks (for example with the graph encoding connectivity between people who worked with each other). The task is to classify the whole graph into one of multiple classes such as positive or negative drug response.

Model We use the state-of-the-art graph neural network GIN (Xu et al., 2019) as baseline. This involves a series of graph convolutions (which includes aggregation of features from each node's set of neighbours into the node), a readout (which aggregates the set of all nodes into one feature vector), and a classification with an MLP. We replace the usual sum or mean pooling readout with FSPool k = 5 for our model. We repeat 10-fold cross-validation on each dataset 10 times and use the same hyperparameter ranges as Xu et al. (2019) for our model and the GIN baseline.

We show the results in Appendix F. On 6 out of 9 datasets, FSPool achieves better test accuracy. On a different 6 datasets, it converges to the best validation accuracy faster. A Wilcoxon signed-rank test shows that the difference in accuracy to the standard GIN has p ≈ 0.07 (W = 7) and the difference in convergence speed has p ≈ 0.11 (W = 9). Keep in mind that just because the results have p > 0.05, it does not mean that the results are invalid.

6.5. CLEVR WITH DEEP SET PREDICTION NETWORKS:

Zhang et al. (2019a) build on the ideas in this paper to develop a model that can predict sets from an image. Their model requires from a set encoder that the more similar two set inputs are, the more similar their representations should be. This is harder than classification, because different inputs (of the same class) should no longer map to the same representation. In this experiment, we quantify the benefit of the RN + FSPool set encoder they used. We use their experimental set-up and replace FSPool with sum (this gives the normal RN model) or max pooling. We train this on CLEVR to predict the set of bounding boxes or the state description (this was the input in subsection 6.3).

Appendix G shows that for both bounding box and state prediction models, the RN encoder using FSPool is much better than sum or max. This shows that it is possible to improve on standard Relation Networks simply by replacing the sum with FSPool when the task is challenging enough.

7. DISCUSSION:

In this paper, we identified the responsibility problem with existing approaches for predicting sets and introduced FSPool, which provides a way around this issue in auto-encoders. In experiments on two datasets of point clouds, we showed that this results in much better reconstructions. We believe that this is an important step towards set prediction tasks with more complex set elements. However, because our decoder uses information from the encoder, it is not easily possible to turn it into a generative set model, which is the main limitation of our approach. Still, we find that using the auto-encoder to obtain better representations and pre-trained weights can be beneficial by itself.

Our insights about the responsibility problem have already been successfully used to create a model without the limitations of our auto-encoder (Zhang et al., 2019a) .

In classification experiments, we also showed that simply replacing the pooling function in an existing model with FSPool can give us better results and faster convergence. We showed that FSPool consistently learns better set representations at a relatively small computational cost, leading to improved results in the downstream task. Our model thus has immediate applications in various types of set models that have traditionally used sum or max pooling. It would be useful to theoretically characterise what types of relations are more easily expressed by FSPool through an analysis like in Murphy et al. (2019) . This may result in further insights into how to learn better set representations efficiently.

A FORMAL RESPONSIBILITY PROBLEM:

The following theorem is a more formal treatment of the responsibility problem resulting in discontinuities.

Theorem 1. For any set function f :

S d n → R d×n (d ≥ 2, n ≥ 2, S d

n is the set of all sets of size n with elements in R d ) from a set of points S = {x 1 , x 2 , . . . , x n } to a list representation of that set L = [x σ(1) , x σ(2) , . . . , x σ(n) ] with some fixed permutation σ ∈ Π, there will be a discontinuity in f : there exists an ε > 0 such that for all δ > 0, there exist two sets S 1 and S 2 where:

EQUATION

)

d s is a measure of the distance between two sets (e.g. Chamfer loss) and d l is the sum of Euclidean distances (d l (A, B) = j a j -b j 2 ).

θ Proof. We prove the theorem by considering mappings from a set of two points in two dimensions.

For larger sets or sets with more dimensions, we can isolate two points and two dimensions and ignore the remaining points and dimensions.

Let us consider the set of two points S(θ) =

-cos(θ)

-sin(θ) , cos(θ) sin(θ)

(see Figure 4 ). This is mapped to a list L(θ) = f (S(θ)). Without loss of generality, we can assume that our list representation for θ = 0 is L(0) = -cos(0) cos(0) -sin(0) sin(0) = -1 1 0 0 . Since the order of set elements is irrelevant and f is a (permutation-invariant) set function, S(π) = S(0) and therefore L(π) = L(0) = -1 1 0 0 . This implies that for at least one value of θ = θ * , there is a change in responsibility such that for θ ≤ θ * , the list representation will be L 1 (θ) = -cos(θ) -sin(θ) cos(θ) sin(θ) while for θ > θ * , the list representation will be L 2 (θ) = cos(θ) sin(θ) -cos(θ) -sin(θ) in order to satisfy L(π) = L(0). For any θ, d l (L 1 (θ), L 2 (θ)) = 4.

Let ε = 3.9 and δ be given. We can find a sufficiently small α > 0 so that d s (S(θ * ), S(θ

* + α)) < δ and d l (L(θ * ), L(θ * + α)) > ε.

The reason why this does not apply to our method is that rather than choosing a fixed σ for the list representation, the permutation-equivariance (instead of the invariance of set functions) allows our model to have L(π) = L(0).

B POLYGONS:

Results In Table 3, Table 4, and Table 5 , we show the results of various model and training loss combinations. We include a random baseline that outputs a polygon with the correct size and centre, but random rotation.

These show that FSPool with the direct MSE training loss is clearly better than the baseline with either linear assignment or Chamfer loss on all the evaluation metrics. When the set size is 16 or greater, the other combinations only perform as well as the random baseline because they output the same constant set regardless of input. 

D MNIST CLASSIFICATION:

Results Table 8 and Table 9 show the results for σ = 0.00 and for 100 epochs for both σ = 0.05 and σ = 0.00 respectively. Note that these are based on pre-trained models from the default MNIST setting without mask feature. Like before, the FSPool-based models are consistently superior to all the baselines. Note that while (Qi et al., 2017) report an accuracy of ∼99% on a similar set version of MNIST, our model uses noisy sets as input and is much smaller and simpler: we have 3820 parameters, while their model has 1.6 million parameters. Our model also does not use dropout, batch norm, a branching network architecture, and a stepped learning rate schedule. When we try to match their model size, our accuracies for σ = 0.00 increase to ∼99% as well.

E CLEVR:

Figure 5 : Shapes of piecewise linear functions learned by the FSPool model on CLEVR. These show r ∈ [0, 1] on the x-axis and f (r, w) on the y-axis for a particular w of a fully-trained model. A common shape among these functions are variants of max pooling: close to 0 weight for most ranks and a large non-zero weight on either the maximum or the minimum value, for example in row 2 column 2. There are many functions that simple maximums or sums can not easily represent, such as a variant of max pooling with the values slightly below the max receiving a weight of the opposite sign (see row 1 column 1) or the shape in the penultimate row column 5. The functions shown here may have a stronger tendency towards 0 values than normal due to the use of weight decay on CLEVR.

F GRAPH CLASSIFICATION:



Experimental setup:

The datasets and node features used are the same as in GIN; we did not cherry-pick them. Because the social network datasets are purely structural without node features, a (Zhang et al., 2018) 70.0 ±0.9 47.8 ±0.9 --73.8 ±0.5 DIFFPOOL (Ying et al., 2018) ----75.5 WL* (Xu et al., 2019) 73.8 50.9 81.0 52.5 78.9 GIN-BASE* (Xu et al., 2019) 75 75.9 ±2.8 60.0 ±4.8 78.6 ±1.9 SORTPOOL (Zhang et al., 2018) 85.8 ±1.7 75.5 ±0.9 58.6 ±2.5 74.4 ±0.5 DIFFPOOL (Ying et al., 2018) -76.3 --WL (Shervashidze et al., 2011) 84.1 ±1.9 74.7 ±0.5 58.0 ±2.5 85.5 ±0.5 WL* (Xu et al., 2019) 90.4 75.0 59.9 86.0 GIN-BASE* (Xu et al., 2019) 89 constant 1 feature is used on the RDT datasets and the one-hot-encoded node degree is used on the other social network datasets. The hyperparameter sweep is done based on best validation accuracy for each fold in the cross-validation individually and over the same combinations as specified in GIN.

Note that in GIN, hyperparameters are selected based on best test accuracy. This is a problem, because they consider the number of epochs a hyperparameter when accuracies tend to significantly vary between individual epochs. For example, our average result on the PROTEINS dataset would change from 73.8% to 77.1% if we were to select based on best test accuracy, which would be better than their 76.2%.

While we initially also used k = 20 in FSPool for this experiment, we found that k = 5 was consistently an improvement. The k = 20 model still better than the baseline on average by a smaller margin.

We show our results of GIN-FSPool and the GIN baseline averaged over 10 repeats in Table 10 . On the majority of datasets, FSPool has slightly better accuracies than the strong baseline and consistently takes fewer epochs to reach its highest validation accuracy. On the two RDT datasets, this improvement is large. Interestingly, these are the two datasets where the number of nodes to be pooled is by far the largest with an average of 400+ nodes per graph, compared to the next largest COLLAB with an average of 75 nodes. This is perhaps evidence that FSPool is helping to avoid the bottleneck problem of pooling a large set of feature vectors to a single feature vector.

We emphasise that the main comparison to be made is between the GIN-Base and the GIN-FSPool model, since that is the only comparison where the only factor of difference is the pooling method.

When comparing against other models, the network architecture, training hyperparameters, and evaluation methodology can differ significantly.

Keep in mind that while GIN-Base looks much worse than the original GIN-Base*, the difference is that our implementation has hyperparameters properly selected by validation accuracy, while GIN-Base* selected them by test accuracy. If we were to select based on test accuracy, our implementation frequently outperforms their results. Also, they only performed a single run of 10-fold crossvalidation.

G DEEP SET PREDICTION NETWORKS 12 show that the FSPool-based RN encoder is much better than any of the baselines. The representation of DSPN-RN-FSPool is good enough that iterating the DSPN algorithm for more steps than the model was trained with can benefit the prediction, while for the baselines it generally just worsens. This is especially apparent for the harder dataset of state prediction, where more information has to be compressed into the latent space.

H EXPERIMENTAL DETAILS:

We provide the code to reproduce all experiments at [redacted] .

For almost all experiments, we used FSPool and the unpooling version of it with k = 20. We guessed this value without tuning, and we did not observe any major differences when we tried to change this on CLEVR to k = 5 and k = 40. W can be initialised in different ways, such as by sampling from a standard Gaussian. However, for the purposes of starting the model as similarly as possible to the sum pooling baseline on CLEVR and on the graph classification datasets, we initialise W to a matrix of all 1s on them.

H.1 POLYGONS:

The polygons are centred on 0 with a radius of 1. The points in the set are randomly permuted to remove any ordering in the set from the generation process that a model that is not permutationinvariant or permutation-equivariant could exploit. We use a batch size of 16 for all three models and train it for 10240 steps. We use the Adam optimiser (Kingma & Ba, 2015) with 0.001 learning rate and their suggested values for the other optimiser parameters (PyTorch defaults). Weights of linear and convolutional layers are initialised as suggested in Glorot & Bengio (2010) . The size of every hidden layer is set to 16 and the latent space is set to 1 (it should only need to store the rotation as latent variable). We have also tried much hidden and latent space sizes of 128 when we tried to get better results for the baselines.

H.2 MNIST RECONSTRUCTION:

We train on the training set of MNIST for 10 epochs and the shown results come from the test set of MNIST. For an image, the coordinate of a pixel is included if the pixel is above the mean pixel level of 0.1307 (with pixel levels ranging 0-1). Again, the order of the points are randomised. We did not include results of the linear assignment loss because we did not get the model to converge to results of similar quality to the direct MSE loss or Chamfer loss, and training time took too long (> 1 day) in order to find better parameters.

The latent space is increased from 1 to 16 and the size of the hidden layers is increased from 16 to 32. All other hyperparameters are the the same as for the Polygons dataset.

H.3 CLEVR:

The architecture and hyperparameters come from the third-party open-source implementation available at https://github.com/mesnico/RelationNetworks-CLEVR. For the RN baseline, the set is first expanded into the set of all pairs by concatenating the 2 feature vectors of the pair for all pairs of elements in the set. For the Janossy Pooling baseline, we use the model configuration from Murphy et al. (2019) that appeared best in their experiments, which uses π-SGD with an LSTM that has |h| as neighbourhood size.

The question representation coming from the 256-unit LSTM, processing the question tokens in reverse with each token embedded into 32 dimensions, is concatenated to all elements in the set. Each element of this new set is first processed by a 4-layer MLP with 512 neurons in each layer and ReLU activations. The set of feature vectors is pooled with a pooling method like sum and the output of this is processed with a 3-layer MLP (hidden sizes 512, 1024, and number of answer classes) with ReLU activations. A dropout rate of 0.05 is applied before the last layer of this MLP. Adam is used with a starting learning rate of 0.000005, which doubles every 20 epochs until the maximum learning rate of 0.0005 is reached. Weight decay of 0.0001 is applied. The model is trained for 350 epochs. The GIN architecture starts with 5 sequential blocks of graph convolutions. Each block starts with summing the feature vector of each node's neighbours into the node's own feature vector. Then, an MLP is applied to the feature vectors of all the nodes individually. The details of this MLP were somewhat unclear in Xu et al. (2019) and we chose Linear-ReLU-BN-Linear-ReLU-BN in the end. We tried Linear-BN-ReLU-Linear-BN-ReLU as well, which gave us slightly worse validation results for both the baseline and the FSPool version. The outputs of each of the 5 blocks are concatenated and pooled, either with a sum for the social network datasets, mean for the social network datasets (this is as specified in GIN), or with FSPool for both types of datasets. This is followed by BN-Linear-ReLU-Dropout-Linear as classifier with a softmax output and cross-entropy loss. We used the torch-geometric library (Fey et al., 2018) to implement this model.

The starting learning rate for Adam is 0.01 and is reduced every 50 epochs. Weights are initialised as suggested in Glorot & Bengio (2010) . The hyperparameters to choose from are: dropout ratio ∈ {0, 0.5}, batch size ∈ {32, 128}, if bioinformatics dataset hidden sizes of all layers ∈ {16, 32} and 500 epochs, if social network dataset the hidden size is 64 and 250 epochs. Due to GPU memory limitations we used a batch size of 100 instead of 128 for social network datasets. The best hyperparameters are selected based on best average validation accuracy across the 10-fold cross-validation, where one of the 9 training folds is used as validation set each time. In other words, within one 10-fold cross-validation run the hyperparameters used for the test set are the same, while across the 10 repeats of this with different seeds the best hyperparameters may differ.

H.5 DEEP SET PREDICTION NETWORKS:

The architecture and hyperparameters come from the third-party open-source implementation available at https://github.com/Cyanogenoid/dspn. The only thing we change from this is replacing the pooling in the RN. All other hyperparameters are kept the same.

The input image is encoded with a ResNet-34 with two additional convolutional layers with 512 filters and stride two to obtain a feature vector for the image. This feature vector is decoded into a set using the DSPN algorithm, which requires encoding an intermediate set with the set encoder and performing gradient descent on it. This set encoder creates all pairs of sets like in normal RNs, processes each pair with a 2-layer MLP with 512 neurons with one ReLU activation in the middle, then pools this into a feature vector. The intermediate set is updated with the gradient 10 times in training, but can be iterated a different amount in evaluation. The model is trained to minimise the linear assignment loss with the Adam optimiser for 100 epochs using a learning rate of 0.0003.



Figures and Tables:

Figure 3: MNIST as point sets with different amounts of Gaussian noise (σ) and their reconstructions.The baseline uses sum pooling and an MLP decoder, which had the best quantitative results among the baselines. We used the best network for our model (0.28 × 10 4 average Chamfer loss) and the best network for the baseline model (0.20 × 10 4 average Chamfer loss). The examples are not cherry-picked.

Figure 4: Example of the set with two points.

MNIST classification accuracy over 6 runs (different pre-trained networks between runs): mean ± stdev for σ = 0.05. Frozen: training with frozen pre-trained auto-encoder weights. Unfrozen: unfrozen auto-encoder weights (fine-tuning). Random init: auto-encoder weights not used.

Table content: <table><tr><td/><td/><td>1 epoch of training</td><td>10 epochs of training</td></tr><tr><td/><td>Frozen</td><td colspan="2">Unfrozen Random init Frozen</td><td>Unfrozen Random init</td></tr><tr><td colspan="4">FSPOOL 82.2%±2.1 86.9%±1.3 84.7%±1.9 84.3%± 1.8 91.5%±0.5 91.9%±0.5</td></tr><tr><td>SUM</td><td colspan="3">76.6%±1.3 68.7%±3.5 30.3%±5.6 79.0%±1.0 77.7%±2.3 72.7%±3.4</td></tr><tr><td>MEAN</td><td colspan="3">25.7%±3.6 32.2%±10.5 30.1%±1.6 36.8%±5.0 75.0%±2.7 73.0%±1.7</td></tr><tr><td>MAX</td><td colspan="3">73.6%±1.3 73.0%±3.5 56.1%±5.6 77.3%±0.9 80.4%±1.8 76.9%±1.3</td></tr><tr><td colspan="2">6.2.1 CLASSIFICATION</td><td/></tr></table>

CLEVR results over 10 runs: mean ± stdev of accuracy after 350 epochs, epochs to reach an accuracy milestone, and wall time required with a 1080 Ti GPU. * averages over only 8 runs because 2 runs did not reach 99%. MAC(Hudson & Manning, 2018) is a model specifically designed for CLEVR and the state-of-the-art for image inputs and without program supervision.

Table content: <table><tr><td/><td/><td colspan="3">Epochs to reach accuracy</td><td>Time for</td></tr><tr><td>Model</td><td>Accuracy</td><td colspan="4">98.00% 98.50% 99.00% 350 epochs</td></tr><tr><td colspan="3">FSPOOL 99.27%±0.18 141± 5</td><td>166±16</td><td>209±33</td><td>8.8 h</td></tr><tr><td>RN</td><td colspan="2">98.98%±0.25 144± 6</td><td colspan="2">189±29 *268±46</td><td>15.5 h</td></tr><tr><td colspan="2">JANOSSY 97.00%±0.54</td><td>-</td><td>-</td><td>-</td><td>11.5 h</td></tr><tr><td>SUM</td><td colspan="2">99.05%±0.17 146±13</td><td>191±40</td><td>281±56</td><td>8.0 h</td></tr><tr><td>MEAN</td><td colspan="2">98.96%±0.27 169± 6</td><td>225±31</td><td>273±33</td><td>8.0 h</td></tr><tr><td>MAX</td><td>96.99%±0.26</td><td>-</td><td>-</td><td>-</td><td>8.0 h</td></tr><tr><td>MAC</td><td>99.0 %</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td colspan="2">6.4 GRAPH CLASSIFICATION</td><td/><td/><td/><td/></tr></table>

Test Chamfer loss (in 10 000ths) for MNIST for different input noise levels σ over 6 runs. Lower is better.

Table content: <table><tr><td>Noise σ</td><td>0.00</td><td>0.01</td><td>0.02</td><td>0.03</td><td>0.04</td><td>0.05</td></tr><tr><td colspan="7">FSPOOL + FSUNPOOL 0.42±0.06 0.34±0.05 0.36±0.02 0.38±0.03 0.41±0.00 0.44±0.01</td></tr><tr><td>SUM + MLP</td><td colspan="6">0.30±0.04 0.28±0.03 0.28±0.03 0.28±0.03 0.27±0.01 0.31±0.04</td></tr><tr><td>SUM + RNN</td><td colspan="6">0.76±0.46 0.58±0.06 0.57±0.09 0.54±0.11 0.64±0.13 0.78±0.39</td></tr><tr><td>MAX + MLP</td><td colspan="6">1.29±0.23 1.37±0.28 1.23±0.16 1.74±0.32 1.27±0.19 1.43±0.30</td></tr><tr><td>MEAN + MLP</td><td colspan="6">1.41±0.12 1.22±0.18 1.33±0.29 1.25±0.09 1.31±0.15 1.49±0.31</td></tr></table>

Test Chamfer loss (in 10 000ths) for MNIST with additional mask features (see description in Appendix C) on every element for different input noise levels σ over 6 runs. Lower is better.

Table content: <table><tr><td>Noise σ</td><td>0.00</td><td>0.01</td><td>0.02</td><td>0.03</td><td>0.04</td><td>0.05</td></tr><tr><td colspan="7">FSPOOL + FSUNPOOL 0.28±0.03 0.21±0.01 0.25±0.03 0.25±0.01 0.27±0.01 0.30±0.01</td></tr><tr><td>SUM + MLP</td><td colspan="6">0.87±0.43 0.90±0.39 0.61±0.40 0.99±0.84 0.63±0.27 0.61±0.24</td></tr><tr><td>SUM + RNN</td><td colspan="6">0.58±0.13 0.69±0.16 0.60±0.18 1.35±1.53 0.73±0.12 0.63±0.13</td></tr><tr><td>MAX + MLP</td><td colspan="6">5.91±3.10 4.78±3.05 7.10±2.40 5.05±2.87 5.85±3.11 4.57±2.08</td></tr><tr><td>MEAN + MLP</td><td colspan="6">5.92±3.10 4.55±3.17 6.84±2.84 7.11±2.39 3.04±0.78 6.34±2.53</td></tr></table>

Classification accuracy (mean ± stdev) on MNIST σ = 0.00 over 6 runs.

Table content: <table><tr><td/><td>1 epoch of training</td><td>10 epochs of training</td></tr><tr><td/><td colspan="2">Frozen Unfrozen Random init Frozen Unfrozen Random init</td></tr><tr><td colspan="3">FSPOOL 86.3%±1.6 92.3%±1.1 90.5%±1.2 88.2%±1.4 96.0%±0.3 96.1%±0.3</td></tr><tr><td>SUM</td><td colspan="2">82.3%±1.2 77.9%±3.4 35.3%±8.3 85.0%±0.8 84.2%±2.5 78.4%±3.9</td></tr><tr><td>MEAN</td><td colspan="2">27.0%±3.3 43.5%±7.1 31.2%±1.0 42.0%±7.7 76.7%±2.6 77.2%±2.2</td></tr><tr><td>MAX</td><td colspan="2">82.0%±1.8 84.1%±1.4 62.9%±3.5 86.8%±0.9 91.9%±1.3 87.7%±1.2</td></tr></table>

Classification accuracy (mean ± stdev) on MNIST for 100 epochs over 6 runs.

Table content: <table><tr><td/><td>σ = 0.05, 100 epochs</td><td>σ = 0.00, 100 epochs</td></tr><tr><td/><td colspan="2">Frozen Unfrozen Random init Frozen Unfrozen Random init</td></tr><tr><td colspan="3">FSPOOL 84.9%±1.7 93.9%±0.4 94.0%±0.3 88.6%±1.6 97.4%±0.3 97.5%±0.3</td></tr><tr><td>SUM</td><td colspan="2">79.8%±1.0 85.3%±1.1 83.1%±1.9 85.6%±0.9 89.5%±2.5 88.3%±1.4</td></tr><tr><td>MEAN</td><td colspan="2">48.2%±6.9 86.5%±0.8 84.1%±2.3 57.0%±7.7 90.3%±1.3 91.1%±0.8</td></tr><tr><td>MAX</td><td colspan="2">78.8%±0.8 84.7%±1.0 84.6%±0.9 89.2%±0.8 95.3%±0.7 95.1%±1.5</td></tr></table>

Cross-validation classification results (%) on various commonly-used graph classification datasets, with the mean cross-validation accuracy averaged over 10 repeats and sample standard deviations (±). Hyperparameters of entries marked with * are known to be selected based on test accuracy instead of validation accuracy, so results are likely not comparable to other existing approaches that were (hopefully) selected based on validation accuracy. Our results were selected based on validation accuracy.

Table content: <table><tr><td>Social Network</td><td colspan="5">IMDB-B IMDB-M RDT-B RDT-M5K COLLAB</td></tr><tr><td>Num. graphs</td><td>1000</td><td>1500</td><td>2000</td><td>5000</td><td>5000</td></tr><tr><td>Num. classes</td><td>2</td><td>3</td><td>2</td><td>5</td><td>3</td></tr><tr><td>Avg. nodes</td><td>19.8</td><td>13.0</td><td>429.6</td><td>508.5</td><td>74.5</td></tr><tr><td>Max. nodes</td><td>136</td><td>89</td><td>3063</td><td>2012</td><td>492</td></tr><tr><td>DCNN (Atwood &amp; Towsley, 2016)</td><td>49.1</td><td>33.5</td><td>-</td><td>-</td><td>52.1</td></tr><tr><td colspan="4">PATCHY-SAN (Niepert et al., 2016) 71.0 ±2.3 45.2 ±2.8 86.3 ±1.6</td><td>49.1 ±0.7</td><td>72.6 ±2.2</td></tr><tr><td>SORTPOOL</td><td/><td/><td/><td/><td/></tr></table>

Average Precision (AP, mean ± stdev) for different intersection-over-union thresholds of the predicted bounding boxes over 6 runs. DSPN-RN-FSPool results are taken fromZhang et al.  (2019a).

Table content: <table><tr><td>Model</td><td>AP 50</td><td>AP 90</td><td>AP 95</td><td>AP 98</td><td>AP 99</td></tr><tr><td colspan="2">DSPN-RN-FSPOOL (10 iters) 98.8±0.3</td><td>94.3±1.5</td><td colspan="3">85.7±3.0 34.5±5.7 2.9±1.2</td></tr><tr><td colspan="2">DSPN-RN-FSPOOL (20 iters) 99.8±0.0</td><td>98.7±1.1</td><td colspan="3">86.2±7.2 24.3±8.0 1.4±0.9</td></tr><tr><td colspan="2">DSPN-RN-FSPOOL (30 iters) 99.8±0.1</td><td colspan="4">96.7±2.4 75.5±12.3 17.4±7.7 0.9±0.7</td></tr><tr><td>DSPN-RN-SUM (10 iters)</td><td colspan="3">88.3±3.7 43.4±14.4 10.0±7.4</td><td colspan="2">0.1±0.1 0.0±0.0</td></tr><tr><td>DSPN-RN-SUM (20 iters)</td><td colspan="2">87.2±3.0 42.9±11.9</td><td>5.7±3.5</td><td colspan="2">0.0±0.0 0.0±0.0</td></tr><tr><td>DSPN-RN-SUM (30 iters)</td><td colspan="2">79.0±11.9 32.5±12.4</td><td>3.4±2.2</td><td colspan="2">0.0±0.0 0.0±0.0</td></tr><tr><td>DSPN-RN-MAX (10 iters)</td><td>68.0±4.3</td><td>4.0±2.2</td><td>0.1±0.1</td><td colspan="2">0.0±0.0 0.0±0.0</td></tr><tr><td>DSPN-RN-MAX (20 iters)</td><td>66.6±4.5</td><td>3.3±1.8</td><td>0.1±0.0</td><td colspan="2">0.0±0.0 0.0±0.0</td></tr><tr><td>DSPN-RN-MAX (30 iters)</td><td>64.1±5.0</td><td>2.3±1.1</td><td>0.0±0.0</td><td colspan="2">0.0±0.0 0.0±0.0</td></tr></table>

Average Precision (AP, mean ± stdev) for different distance thresholds of the predicted state descriptions over 6 runs. DSPN-RN-FSPool results are taken fromZhang et al. (2019a).Results Table11 and Table

Table content: <table><tr><td>Model</td><td>AP ∞</td><td>AP 1</td><td>AP 0.5</td><td>AP 0.25</td><td>AP 0.125</td></tr><tr><td colspan="6">DSPN-RN-FSPOOL (10 iters) 72.8±2.3 59.2±2.8 39.0±4.4 12.4±2.5 1.3±0.4</td></tr><tr><td colspan="6">DSPN-RN-FSPOOL (20 iters) 84.0±4.5 80.0±4.9 57.0±12.1 16.6±9.0 1.6±0.9</td></tr><tr><td colspan="6">DSPN-RN-FSPOOL (30 iters) 85.2±4.8 81.1±5.2 47.4±17.6 10.8±9.0 0.6±0.7</td></tr><tr><td>DSPN-RN-SUM (10 iters)</td><td colspan="2">44.6±3.8 21.9±4.8</td><td>7.1±2.7</td><td>1.0±0.5</td><td>0.0±0.0</td></tr><tr><td>DSPN-RN-SUM (20 iters)</td><td colspan="2">39.6±5.4 15.2±6.4</td><td>3.0±2.2</td><td>0.3±0.3</td><td>0.0±0.0</td></tr><tr><td>DSPN-RN-SUM (30 iters)</td><td colspan="2">30.2±9.2 7.1±3.8</td><td>0.9±0.8</td><td>0.1±0.1</td><td>0.0±0.0</td></tr><tr><td>DSPN-RN-MAX (10 iters)</td><td>3.0±0.2</td><td>0.9±0.1</td><td>0.5±0.2</td><td>0.1±0.1</td><td>0.0±0.0</td></tr><tr><td>DSPN-RN-MAX (20 iters)</td><td>3.1±0.1</td><td>1.2±0.1</td><td>0.8±0.2</td><td>0.3±0.2</td><td>0.0±0.0</td></tr><tr><td>DSPN-RN-MAX (30 iters)</td><td>3.1±0.1</td><td>1.2±0.1</td><td>0.9±0.2</td><td>0.3±0.2</td><td>0.0±0.0</td></tr></table>

Average of best hyperparameters over 10 repeats.

Table content: <table><tr><td/><td colspan="8">IMDB-B IMDB-M RDT-B RDT-M5K COLLAB MUTAG PROTEINS PTC NCI1</td></tr><tr><td>GIN-FSPOOL</td><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>-dimensionality</td><td>64.0</td><td>64.0</td><td>64.0</td><td>64.0</td><td>64.0</td><td>28.8</td><td>19.2</td><td>28.8 30.4</td></tr><tr><td>-batch size</td><td>66.0</td><td>100</td><td>45.6</td><td>32.0</td><td>86.4</td><td>89.6</td><td>60.8</td><td>41.6 128</td></tr><tr><td>-dropout</td><td>0.25</td><td>0.15</td><td>0.35</td><td>0.10</td><td>0.40</td><td>0.15</td><td>0.35</td><td>0.20 0.50</td></tr><tr><td>GIN-BASE</td><td/><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>-dimensionality</td><td>64.0</td><td>64.0</td><td>64.0</td><td>64.0</td><td>64.0</td><td>27.2</td><td>20.8</td><td>25.6 28.8</td></tr><tr><td>-batch size</td><td>86.4</td><td>93.2</td><td>72.8</td><td>100</td><td>100</td><td>70.4</td><td>60.8</td><td>60.8 128</td></tr><tr><td>-dropout</td><td>0.30</td><td>0.15</td><td>0.25</td><td>0.45</td><td>0.40</td><td>0.25</td><td>0.45</td><td>0.20 0.35</td></tr><tr><td colspan="3">H.4 GRAPH CLASSIFICATION</td><td/><td/><td/><td/><td/><td/></tr></table>

Peer review (iclr2020):
This paper proposes to make permutation-equivariant set autoencoders, by introducing a permutation invariant encoder (based on feature-wise sorting) and at the same time an *inverse* operation (that undoes the sorting) in the decoder. The achieved equivariance allows the autoencoders to be trained end-2-end without a matching-based loss (like Chamfer) which I think is a very neat result. Also, to address potentially variable-sized sets as inputs/outputs, the authors propose to use a calibrator function that effectively *samples* the produced features on the set*s elements in fixed intervals, that are auto-adaptable in the (variable) set size. The results shown are well placed in the current literature and form an important novelty that should have non-trivial impact in the sub-field. Also, the experiments done are well executed, with ample variability in the nature of the datasets used and I expect them to also be easily reproducible (given the authors* provided code). Some points I would appreciate to see an improvement: a. The intro is rough (please see minor-specifics at places that you can improve the exposition). b. The Figure1 is not easy to read. The 90degree rotation results in the same set, but as a *pictorial* image, obviously not. c. The *responsibility problem* is already very well explained in the Zhang19a. I would appreciate to tone-down in this paper, the *discovery* of it as a main contribution. d. Experiments 6.2. it appears that the FSPool/unpool model is better *only* when the mask features are been considered. What are these mask-features? Why do they matter? e. The way you describe the responsibility problem (discontinuity) is very hand-wavy. It would be nice to explicitly it write it in rigorous math. f. Why using the relaxation of Grover et al. helped you to avoid the discontinuity that would be otherwise introduced via standard sorting? (I am not familiar with their exact relaxation, but intuitively, their method been a good proxy for sorting, should suffer from it as well). Explicit Minor Comments on writing: (all in introduction) -4rth line: *this* -> this problem -*Methods like by* -> Methods like those in -*In this paper, we introduce a set pooling method for neural networks that addresses both issues* -> which issues? the encoder*s collapse and the decoder*s inneficiency in matching? Please explain. -*good baselines* -> sophisticated/non-trivial baselines Appendix. Table 9, max-pool at sigma=0, seems to be the best (please use boldface to indicate it).