Abstract
In this thesis, we develop various techniques for working with sets in machine learning. Each input or output is not an image or a sequence, but a set: an unordered collection of multiple objects, each object described by a feature vector. Their unordered nature makes them suitable for modeling a wide variety of data, ranging from objects in images to point clouds to graphs. Deep learning has recently shown great success on other types of structured data, so we aim to build the necessary structures for sets into deep neural networks. The first focus of this thesis is the learning of better set representations (sets as input). Existing approaches have bottlenecks that prevent them from properly modeling relations between objects within the set. To address this issue, we develop a variety of techniques for different scenarios and show that alleviating the bottleneck leads to consistent improvements across many experiments. The second focus of this thesis is the prediction of sets (sets as output). Current approaches do not take the unordered nature of sets into account properly. We determine that this results in a problem that causes discontinuity issues with many set prediction tasks and prevents them from learning some extremely simple datasets. To avoid this problem, we develop two models that properly take the structure of sets into account. Various experiments show that our set prediction techniques can significantly benefit over existing approaches.
Introduction
Deep neural networks have achieved remarkable success in processing structured data like sequences (text) and grids (images). However, many real-world data types—ranging from objects in a scene to point clouds and molecular structures—are best represented as sets. A set is an unordered collection of objects, where the identity of the collection remains invariant regardless of the order in which elements are presented.
Standard neural architectures are inherently sensitive to the order of input or output elements. When forced to handle sets, they often rely on arbitrary ordering, which hinders generalization and introduces significant architectural bottlenecks. This research addresses two primary challenges: how to learn richer representations of sets as inputs and how to accurately predict sets as outputs.
The Representation Bottleneck
When a neural network processes a set as an input, it must map the collection to a fixed-length feature vector. The traditional approach involves "pooling" operations, such as taking the sum or the maximum of the element-wise features. While these operations are permutation-invariant, they create a massive information bottleneck. By collapsing the set into a single vector through simple aggregation, the network loses the ability to model complex relationships between individual objects.
To alleviate this, two novel modules are proposed:
- Permutation-Optimisation (PO): This module learns to "sort" a set into a canonical list by performing pairwise comparisons. Once sorted, the data can be processed by powerful sequential models like LSTMs without the risk of order-dependency.
- Featurewise Sort Pooling (FSPool): This is a more efficient alternative that sorts each feature dimension independently across the set. It acts as a generalization of max-pooling, retaining more information about the overall distribution of features within the set.
The Responsibility Problem in Set Prediction
Predicting a set as an output is significantly more difficult than representing one as an input. When a network is tasked with predicting multiple items (e.g., the coordinates of several objects in an image), it typically outputs a fixed-length list. However, because the target set has no inherent order, the network faces the "responsibility problem": it must decide which output neuron is responsible for which set element.
This research demonstrates that any fixed function mapping a latent vector to a set must contain discontinuities. For example, in a task as simple as predicting the vertices of a rotating square, a standard Multi-Layer Perceptron (MLP) will experience sudden jumps in its loss function as the "optimal" assignment of output slots to vertices shifts. This discontinuity makes it nearly impossible for standard networks to learn complex set structures.
Deep Set Prediction Networks (DSPN)
The "crown jewel" of this thesis is the Deep Set Prediction Network (DSPN). To bypass the responsibility problem, DSPN treats set prediction as an internal optimization task. Instead of a single forward pass through an MLP, the model:
- Starts with an initial guess of the set.
- Uses an inner optimization loop (gradient descent) during the forward pass to refine this guess.
- Minimizes the distance between the set's representation and a target latent vector.
Because this process relies on the gradient of a set encoder, the architecture is mathematically guaranteed to treat the output as a set. This approach effectively removes the discontinuity issue, allowing the network to learn set structures that were previously considered "unsolvable" for deep learning models.
Experimental Evaluation
The proposed methods were tested across several domains:
- Visual Question Answering (VQA): In the VQA v2 dataset, the counting of objects is a notorious difficulty. By incorporating set-aware modules, counting accuracy improved from a baseline of 46.6% to 51.4%.
- Object Detection: On the CLEVR reasoning dataset, DSPN predicted bounding boxes with high precision (AP95 of 85.7). Notably, it achieved this without the need for Non-Maximum Suppression (NMS), a common but complex post-processing step required by traditional detectors.
- Toy Benchmarks: In tasks like auto-encoding rotating polygons, standard MLPs failed as the number of vertices increased, whereas DSPN maintained near-zero error.
Limitations and Future Directions
While DSPN and FSPool represent significant leaps in set-based deep learning, they introduce new trade-offs. The inner optimization loop of DSPN is computationally more expensive than a standard feed-forward pass. Furthermore, while DSPN excels at global set logic, it does not inherently possess the translation invariance that makes Convolutional Neural Networks (CNNs) so efficient for spatial data.
Future research will likely focus on hybrid architectures that combine the local efficiency of CNNs with the global structural integrity of DSPNs, paving the way for more robust end-to-end scene understanding and point cloud processing.
Summary updated