Differentiable Knapsack and Top-k Operators via Dynamic Programming
Update NeurIPS 2026 submission Joe3lARuyi: 13 notes
@openreview[bot] · 2026-11-24 15:49 UTC · 708c4fa2d95e ·
reviews/openreview/joe3laruyi/notes/1j0o2e79m6.json added
+++ b/reviews/openreview/joe3laruyi/notes/1j0o2e79m6.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "1j0O2e79M6",+ "replyTo": "Vlg58MWMZI",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for the engaging discussion. Regarding the broader ML context and the necessity of our specialized layer over general tools like DBB, our paper demonstrates fundamental mathematical and empirical advantages that general deterministic solvers cannot provide.\n\n### **Exact sampling for principled gradients (Appendix D.5)**\n\nSome applications require hard 0/1 selections in the forward pass. For instance, the recent approaches [1,2] we referenced in our answer to reviewer Q252 use Knapsack-based item selections for conditional computation. In this context, one must either perform a computation (1) or not (0), and a 0.4 selection weight would not make sense. However, when performing hard 0/1 selections in the forward pass, obtaining meaningful gradients is difficult. If one uses a general deterministic solver to obtain a hard forward pass and pairs it with a surrogate backward pass (a \"mock gradient\", as in DBB), the optimization suffers from severe bias. We explicitly analyze this in Appendix D.5 and demonstrate it in Figure 9: estimators relying on a hard deterministic forward pass fail to converge to the true parameters.\n\nBy contrast, our specialized DP framework natively defines the exact underlying distribution of the relaxed operator (Proposition 3) and provides an exact ancestral sampling mechanism (Algorithm 3). As proven in Appendix D.5, and building upon the theoretical framework of [3], this stochastic forward pass, combined with the VJP of its expectation in the backward pass, forms a principled, unbiased first-order estimator of the expected loss. Figure 9 confirms that this approach perfectly recovers the exact parameters where deterministic hard-forward baselines fail.\n\n### **Fundamental need for sampling (Sections 6.2 and 6.3)**\n\nBeyond gradient estimation, sampling discrete subsets is fundamentally useful and of high interest to the broader ML community. This is clearly evidenced by the SIMPLE framework [4], which successfully proposed a similar stochastic forward and surrogate gradient approach for representation learning tasks such as Discrete VAEs, but is restricted to the Top-k and Shannon-entropy setting. Our DP framework strictly generalizes this impactful approach to support sparse regularizations (Gini, Tsallis), demonstrating its utility on Discrete VAEs in Section 6.2, and extends it to the non-uniform capacity constraints of the Knapsack problem.\n\nFurthermore, certain algorithmic pipelines strictly require sampling rather than simply computing a deterministic argmax. For example, in our Structured RL experiment (Section 6.3), the exploration phase of the SRL algorithm strictly necessitates sampling capacity-constrained item selections. General deterministic tools (such as DBB, NID, or NCE) cannot be used in these generative or exploratory settings because they do not define an underlying probability distribution. \n\n### **Conclusion**\n\nIn summary, our results demonstrate that stochastic sampling serves two purposes: it enables principled gradient estimation under strict hard 0/1 forward constraints, and it is fundamentally required by generative and exploratory algorithms that must sample discrete combinations. We will make sure to clarify the importance of sampling in this broader ML context by adding a dedicated paragraph to the introduction of the paper.\n\nWe hope these clarifications address the concerns raised, and we would be grateful if the reviewer would reconsider their score in light of them. We remain available during the discussion period.\n\n-----\n\n_[1]: Li, Ziniu, et al. \"Knapsack RL: Compute-Efficient Reinforcement Learning via Heterogeneous Rollout Allocation.”, ICML 2026._\n\n_[2]: Cha, Seong-Hwan et al. “KnapSpec: Self-Speculative Decoding via Adaptive Layer Selection as a Knapsack Problem.”, ICML 2026._\n\n_[3]: Liu, Liyuan, et al. \"Bridging discrete and backpropagation: Straight-through and beyond.\", NeurIPS 2023._\n\n_[4]: Ahmed, Kareem, et al. \"Simple: A gradient estimator for k-subset sampling.\", ICLR 2023._"+ },+ "createdAt": "2026-07-31T18:40:46.012Z",+ "modifiedAt": "2026-11-19T17:07:53.653Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=1j0O2e79M6",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/3qbuwbnirp.json added
+++ b/reviews/openreview/joe3laruyi/notes/3qbuwbnirp.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "3QbuWbnIRP",+ "replyTo": "YOImFD6a51",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for taking the time to read our rebuttal and for maintaining their recommendation for acceptance."+ },+ "createdAt": "2026-08-04T09:05:10.606Z",+ "modifiedAt": "2026-11-19T17:07:53.530Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=3QbuWbnIRP",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/7r7wy7mpsx.json added
+++ b/reviews/openreview/joe3laruyi/notes/7r7wy7mpsx.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "7r7wY7MPsX",+ "replyTo": "1j0O2e79M6",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer Ejwf",+ "content": {+ "comment": "I want to thank the reviewers for the discussion and I am willing to increase my score to a borderline accept. Unfortunately, I think the rebuttal does not bring it to a clear accept. The reason being is that I think the narrative and the experiments are still too unconvincing for a clear accept. What is needed is a better motivation, which is actually supported by experiments connecting the method to the larger ML-Community and more real-world applications. It would be great if the comments above, which connect the method to established problems, would be integrated into the camera ready."+ },+ "createdAt": "2026-08-02T18:53:20.285Z",+ "modifiedAt": "2026-11-19T17:07:53.690Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=7r7wY7MPsX",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/bh67azmq24.json added
+++ b/reviews/openreview/joe3laruyi/notes/bh67azmq24.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "BH67AzMq24",+ "replyTo": "znZICnhvrI",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for taking the time to read our rebuttal and for maintaining their recommendation for acceptance."+ },+ "createdAt": "2026-08-04T09:45:10.732Z",+ "modifiedAt": "2026-11-19T17:07:53.500Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=BH67AzMq24",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/k3vgrdshax.json modified
+++ b/reviews/openreview/joe3laruyi/notes/k3vgrdshax.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair h2mr","content": {- "metareview": "The paper considers the problem of integrating common operators like knapsack, top-k into the differentiable deep learning pipeline. The idea is to cast these operators as dynamic programs, and derive differentiable relaxations by smoothing the underlying recursions. Overall, the paper is well-written and has received positive reviews. Though no critical issues were raised, there are some important questions raised by the reviewers, which I am hoping will be answered by the authors appropriately."+ "metareview": "The paper considers the problem of integrating common operators like knapsack, top-k into the differentiable deep learning pipeline. The idea is to cast these operators as dynamic programs, and derive differentiable relaxations by smoothing the underlying recursions. Overall, the paper is well-written and has received positive reviews. Though no critical issues were raised, there are some important questions raised by the reviewers, which I am hoping will be answered by the authors appropriately.",+ "final_justification": "After the rebuttal, some concerns do remain. Overall it seems to be a weak accept. So I would not mind if the paper is rejected based on overall acceptance rate and other concerns. In case it is accept I hope the authors will address all the issues in the camera-ready version."},"createdAt": "2026-07-22T06:15:53.788Z",- "modifiedAt": "2026-11-18T15:23:34.676Z",+ "modifiedAt": "2026-11-19T05:02:13.420Z","url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=k3VgRdShAx","license": "CC-BY-4.0"}
reviews/openreview/joe3laruyi/notes/lnwucq9tnw.json added
+++ b/reviews/openreview/joe3laruyi/notes/lnwucq9tnw.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "lNwUCq9TNw",+ "replyTo": "7r7wY7MPsX",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We sincerely thank the reviewer for the engaging discussion and for raising their score to recommend acceptance! We greatly appreciate your constructive feedback and will gladly clarify our motivation by integrating these comments in the camera-ready version."+ },+ "createdAt": "2026-08-03T12:54:38.617Z",+ "modifiedAt": "2026-11-19T17:07:53.635Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=lNwUCq9TNw",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/oeo0qnfay3.json added
+++ b/reviews/openreview/joe3laruyi/notes/oeo0qnfay3.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "oeo0Qnfay3",+ "replyTo": "rTJOLvvFxN",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for taking the time to read our rebuttal and for maintaining their recommendation for acceptance."+ },+ "createdAt": "2026-08-04T09:05:35.205Z",+ "modifiedAt": "2026-11-19T17:07:53.507Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=oeo0Qnfay3",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/rtjolvvfxn.json added
+++ b/reviews/openreview/joe3laruyi/notes/rtjolvvfxn.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "rTJOLvvFxN",+ "replyTo": "p8JTIRE2zM",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer 4pab",+ "content": {+ "comment": "The response addresses my previous questions and concerns."+ },+ "createdAt": "2026-08-04T01:13:17.654Z",+ "modifiedAt": "2026-11-19T17:07:53.564Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=rTJOLvvFxN",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/tffrg3deod.json added
+++ b/reviews/openreview/joe3laruyi/notes/tffrg3deod.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "TFFrG3deOD",+ "replyTo": "yStQybpmMV",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the reviewer for taking the time to read our rebuttal and for maintaining their recommendation for acceptance."+ },+ "createdAt": "2026-08-03T12:59:32.957Z",+ "modifiedAt": "2026-11-19T17:07:53.587Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=TFFrG3deOD",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/vlg58mwmzi.json added
+++ b/reviews/openreview/joe3laruyi/notes/vlg58mwmzi.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "Vlg58MWMZI",+ "replyTo": "19YXEmxKz7",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer Ejwf",+ "content": {+ "comment": "I want to thank the authors with engaging with my comments, but i feel like there is a bit of an misunderstanding. For Q2, the question is meant in the larger context of machine learning. For example, DBB is a general tool that can be used in many optimization settings and I don't see \"first specialized differentiable layer\" inherently as an advantage over a general tool, which can be easier maintained, improved etc than a specialized solution (although I agree that it is not a strict superset, as a stochastic variant does not exist). From my perspective experiment 1, 2 and 3 are useful to demonstrate the technical advantage, but they are not established problems in the larger community. I think the technical contribution of the paper is solid, but I think the paper would benefit from an improved motivation that demonstrated the importance and need for the specialized operator to the broader ML-community. Right now, it just describes an algorithm and demonstrates it on generated problems. I think the question is similar to Q1 from reviewer Q252, where you point to works that would benefit from this operator (references [1] and [2]) but only as references. Unfortuntely, no results were given, but the authors can maybe still expand on this, because if e.g. only the deterministic setting is needed in these application the question arises whether this specialized layer leads to practical benefits over the general tools."+ },+ "createdAt": "2026-07-31T14:37:20.631Z",+ "modifiedAt": "2026-11-19T17:07:53.797Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=Vlg58MWMZI",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/yoimfd6a51.json added
+++ b/reviews/openreview/joe3laruyi/notes/yoimfd6a51.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "YOImFD6a51",+ "replyTo": "XXEL6VsbHD",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer whc1",+ "content": {+ "comment": "I thank the authors for addressing the questions. I shall maintain my score."+ },+ "createdAt": "2026-08-04T07:18:56.203Z",+ "modifiedAt": "2026-11-19T17:07:53.531Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=YOImFD6a51",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/ystqybpmmv.json added
+++ b/reviews/openreview/joe3laruyi/notes/ystqybpmmv.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "yStQybpmMV",+ "replyTo": "79lYK9scHl",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer Q252",+ "content": {+ "comment": "My questions and concerns have been well addressed. However, I don't see changes substantial enough to increase my score, so I'll keep it as it is."+ },+ "createdAt": "2026-08-02T17:49:57.464Z",+ "modifiedAt": "2026-11-19T17:07:54.021Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=yStQybpmMV",+ "license": "CC-BY-4.0"+}
reviews/openreview/joe3laruyi/notes/znzicnhvri.json added
+++ b/reviews/openreview/joe3laruyi/notes/znzicnhvri.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "znZICnhvrI",+ "replyTo": "t8Icx1bSoD",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer dYbr",+ "content": {+ "comment": "I thank the authors for their clarifications, which address the points I raised. I will retain my original score."+ },+ "createdAt": "2026-08-04T09:43:55.335Z",+ "modifiedAt": "2026-11-19T17:07:53.530Z",+ "url": "https://openreview.net/forum?id=Joe3lARuyi¬eId=znZICnhvrI",+ "license": "CC-BY-4.0"+}