paper-with-me

Papers

Differentiable Knapsack and Top-k Operators via Dynamic Programming

2026-01-29 · Germain Vivier-Ardisson, Michaël E. Sander, Axel Parmentier, Mathieu Blondel arxiv

Knapsack and Top-k operators are useful for selecting discrete subsets of variables. However, their integration into neural networks is challenging as they are piecewise constant, yielding gradients that are zero almost everywhere. In this paper, we propose a unified framework casting these operators as dynamic programs, and derive differentiable relaxations by smoothing the underlying recursions. On the algorithmic side, we develop efficient parallel algorithms supporting both deterministic and stochastic forward passes, and vector-Jacobian products for the backward pass. On the theoretical side, we prove that Shannon entropy is the unique regularization choice yielding permutation-equivariant operators, and characterize regularizers inducing sparse selections. Finally, on the experimental side, we demonstrate our framework on a decision-focused learning benchmark, a constrained dynamic assortment RL problem, and an extension of discrete VAEs.

📄 PDF Abstract BibTeX arXiv:2601.21775

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Differentiable Dynamic Programming for Structured Prediction and Attention

2018-02-11 · ICML 2018 7 · Arthur Mensch, Mathieu Blondel

Dynamic programming (DP) solves a variety of structured combinatorial problems by iteratively breaking them down into smaller subproblems. In spite of their versatility, DP algorithms are usually non-differentiable, whic…

Machine TranslationPredictionStructured PredictionTime Series+3

Genetic Algorithm for a class of Knapsack Problems

2019-02-15 · Shalin Shah

The 0/1 knapsack problem is weakly NP-hard in that there exist pseudo-polynomial time algorithms based on dynamic programming that can solve it exactly. There are also the core branch and bound algorithms that can solve …

Provably Good Solutions to the Knapsack Problem via Neural Networks of Bounded Size

2020-05-28 · Christoph Hertrich, Martin Skutella

The development of a satisfying and rigorous mathematical understanding of the performance of neural networks is a major challenge in artificial intelligence. Against this background, we study the expressive power of neu…

Combinatorial Optimization

Genetic Algorithm for the 0/1 Multidimensional Knapsack Problem

2019-07-20 · Shalin Shah

The 0/1 multidimensional knapsack problem is the 0/1 knapsack problem with m constraints which makes it difficult to solve using traditional methods like dynamic programming or branch and bound algorithms. We present a g…

C++ code

The {0,1}-knapsack problem with qualitative levels

2020-02-12 · Luca E. Schäfer, Tobias Dietz, Maria Barbati, José Rui Figueira 외

A variant of the classical knapsack problem is considered in which each item is associated with an integer weight and a qualitative level. We define a dominance relation over the feasible subsets of the given item set an…

Relation