Differentiable Greedy Networks

Thomas Powers, Rasool Fakoor, Siamak Shakeri, Abhinav Sethy, Amanjit Kainth, Abdel-rahman Mohamed, Ruhi SarikayaarXiv 2018

Abstract

Optimal selection of a subset of items from a given set is a hard problem that requires combinatorial optimization. In this paper, we propose a subset selection algorithm that is trainable with gradient-based methods yet achieves near-optimal performance via submodular optimization. We focus on the task of identifying a relevant set of sentences for claim verification in the context of the FEVER task. Conventional methods for this task look at sentences on their individual merit and thus do not optimize the informativeness of sentences as a set. We show that our proposed method which builds on the idea of unfolding a greedy algorithm into a computational graph allows both interpretability and gradient-based training. The proposed differentiable greedy network (DGN) outperforms discrete optimization algorithms as well as other baseline methods in terms of precision and recall.

Introduction

In many artificial intelligence tasks, such as fact-checking or question answering, systems must select a small subset of "evidence" from a massive pool of data. This is fundamentally a subset selection problem. Finding the absolute best subset is NP-hard, and standard neural retrievers often struggle with redundancy. For instance, when retrieving the top five sentences to verify a claim, a standard model might return five sentences that convey identical information, wasting the limited evidence "budget."

While submodular optimization is a classical mathematical tool used to ensure diversity and diminishing returns, it is typically a discrete process incompatible with gradient-based training. To bridge this gap, we introduce Differentiable Greedy Networks (DGN), a framework that "unfolds" a discrete greedy optimization algorithm into a neural network architecture.

Methods: Deep Unfolding and Submodularity

The core of DGN is the concept of Deep Unfolding. We take the standard "Forward Greedy" algorithm—which iteratively picks the best item given the current selection—and transform each step into a layer within a neural network.

Architecture of the Differentiable Greedy Network (DGN) and its internal greedy layer.

Submodular Objective

We utilize a specific class of functions known as Sums of Concave composed with Monotone Modular functions (SCMM). These functions mathematically guarantee that adding redundant information yields lower marginal scores, naturally incentivizing diversity.

The Softmax Trick

To enable end-to-end training, we address the non-differentiability of the argmax operation. During training, we replace argmax with a relaxed softmax using a temperature parameter ($\tau$). This allows gradients to flow through the selection process. At inference time, the model reverts to a hard argmax to maintain the mathematical properties of the greedy algorithm.

Architecture

Input features are processed through a Linear layer followed by a ReLU activation to ensure non-negativity, a requirement for submodularity. These features then pass through successive "Greedy Layers" that maintain a state of the currently selected items.

Experiments and Results

The model was evaluated on the FEVER (Fact Extraction and VERification) dataset, which contains over 100,000 verifiable claims. The task involves retrieving the $k$ most relevant sentences from Wikipedia to verify or refute a given claim.

Performance and Efficiency

DGN consistently outperformed untrained greedy baselines and standard encoders. As shown in the results table, DGN achieves superior Recall, Precision, and F1 scores across various subset sizes ($k$).

Performance comparison of DGN against baselines across different subset sizes (k).

Notably, DGN is highly parameter-efficient. It achieved performance comparable to a "DeepEncoder" model while using only 167K parameters compared to the DeepEncoder’s 915K. This suggests that embedding the logic of selection into the architecture is more effective than requiring a standard network to learn these heuristics from scratch.

Qualitative Insights

By leveraging submodular functions, the network explicitly learns to seek complementary information. For example, if the first selected sentence identifies a movie's director, the DGN is more likely to select a second sentence regarding the movie's awards rather than another sentence repeating the director's name. This leads to a more comprehensive "proof" for fact-checking.

Conclusion

Differentiable Greedy Networks offer a robust way to integrate discrete selection logic into differentiable pipelines. While the temperature parameter $\tau$ requires careful tuning to avoid exploding or vanishing gradients, the model's ability to act as a natural regularizer makes it stable during training. Future work will explore integrating DGN into larger end-to-end systems where evidence selection and final reasoning occur in a single differentiable flow.

Summary updated

BibTeX
@misc{powers2018differentiable,
  author = {Thomas Powers and Rasool Fakoor and Siamak Shakeri and Abhinav Sethy and Amanjit Kainth and Abdel-rahman Mohamed and Ruhi Sarikaya},
  title = {{Differentiable Greedy Networks}},
  year = {2018},
  eprint = {1810.12464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.12464},
}
Figure