Differentiable Dynamic Programming for Structured Prediction and Attention
Not on the map. Why?
Abstract (arXiv)
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, which hampers their use as a layer in neural networks trained by backpropagation. To address this issue, we propose to smooth the max operator in the dynamic programming recursion, using a strongly convex regularizer. This allows to relax both the optimal value and solution of the original combinatorial problem, and turns a broad class of DP algorithms into differentiable operators. Theoretically, we provide a new probabilistic perspective on backpropagating through these DP operators, and relate them to inference in graphical models. We derive two particular instantiations of our framework, a smoothed Viterbi algorithm for sequence prediction and a smoothed DTW algorithm for time-series alignment. We showcase these instantiations on two structured prediction tasks and on structured and sparse attention for neural machine translation.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Feb 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 16; 2022: 16; 2023: 10; 2024: 3; 2025: 7; 2026: 6.
58 papers.
Sort:
By area:
- 2021Attention, please! A survey of Neural Attention Models in Deep Learningcited by 50
- 2021Twice regularized MDPs and the equivalence between robustness and regularizationcited by 46
- 2021Representation Learning via Global Temporal Alignment and Cycle-Consistencycited by 43
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2022Fine-grained Temporal Contrastive Learning for Weakly-supervised Temporal Action Localizationcited by 33
- 2023Maximum entropy GFlowNets with soft Q-learningcited by 30
- 2026Maximum Likelihood Reinforcement Learningcited by 29
- 2021Learning Discriminative Prototypes with Dynamic Time Warpingcited by 23
- 2022Learning to Predict Graphs with Fused Gromov-Wasserstein Barycenterscited by 22
- 2021Learning with Algorithmic Supervision via Continuous Relaxationscited by 21
- 2022Uncertainty-DTW for Time Series and Sequencescited by 21
- 2023Leaving the Nest: Going Beyond Local Loss Functions for Predict-Then-Optimizecited by 18
38 more
- 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
- 2021Sparse Continuous Distributions and Fenchel-Young Lossescited by 13
- 2022Decision-Focused Learning without Differentiable Optimization: Learning Locally Optimized Decision Lossescited by 12
- 2021Deep Time Series Forecasting with Shape and Temporal Criteriacited by 10
- 2021Combinatorial Optimization for Panoptic Segmentation: A Fully Differentiable Approachcited by 10
- 2022TILDE-Q: A Transformation Invariant Loss Function for Time-Series Forecastingcited by 8
- 2023Revisiting Implicit Differentiation for Learning Problems in Optimal Controlcited by 8
- 2022Latent Topology Induction for Understanding Contextualized Representationscited by 7
- 2025Autoregressive Language Models are Secretly Energy-Based Models: Insights into the Lookahead Capabilities of Next-Token Predictioncited by 7
- 2022A Unified Perspective on Value Backup and Exploration in Monte-Carlo Tree Searchcited by 6
- 2022DOGE-Train: Discrete Optimization on GPU with End-to-end Trainingcited by 6
- 2024DataSP: A Differential All-to-All Shortest Path Algorithm for Learning Costs and Predicting Paths with Contextcited by 6
- 2021To be Closer: Learning to Link up Aspects with Opinionscited by 5
- 2026DWA-KD: Dual-Space Weighting and Time-Warped Alignment for Cross-Tokenizer Knowledge Distillationcited by 5
- 2021Differentiable Spline Approximationscited by 4
- 2022Fixed-Point Automatic Differentiation of Forward--Backward Splitting Algorithms for Partly Smooth Functionscited by 4
- 2024A fast and sound tagging method for discontinuous named-entity recognitioncited by 4
- 2026ViterbiPlanNet: Injecting Procedural Knowledge via Differentiable Viterbi for Planning in Instructional Videoscited by 4
- 2021Approximate Newton policy gradient algorithmscited by 3
- 2022A dynamic programming algorithm for span-based nested named-entity recognition in O(n^2)cited by 3
- 2024Soft Condorcet Optimization for Ranking of General Agentscited by 3
- 2026Combinatorial Optimization Augmented Machine Learningcited by 3
- 2021Dynamic programming by polymorphic semiring algebraic shortcut fusioncited by 2
- 2021Differentiable Equilibrium Computation with Decision Diagrams for Stackelberg Models of Combinatorial Congestion Gamescited by 2
- 2021A Surrogate Objective Framework for Prediction+Optimization with Soft Constraintscited by 2
- 2021Scaling Structured Inference with Randomizationcited by 2
- 2022Learning with Latent Structures in Natural Language Processing: A Surveycited by 2
- 2022Learning Discrete Structured Variational Auto-Encoder using Natural Evolution Strategiescited by 2
- 2022A deep learning network with differentiable dynamic programming for retina OCT surface segmentationcited by 2
- 2023SynJax: Structured Probability Distributions for JAXcited by 2
- 2023gcDLSeg: Integrating Graph-cut into Deep Learning for Binary Semantic Segmentationcited by 2
- 2025Learning with Local Search MCMC Layerscited by 2
- 2025Towards Measuring and Modeling Geometric Structures in Time Series Forecasting via Image Modalitycited by 2
- 2022Knowledge distillation for fast and accurate DNA sequence correctioncited by 1
- 2023Twice Regularized Markov Decision Processes: The Equivalence between Robustness and Regularizationcited by 1
- 2023Revisiting the Entropy Semiring for Neural Speech Recognitioncited by 1
- 2025Bregman Conditional Random Fields: Sequence Labeling with Parallelizable Inference Algorithmscited by 1
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programmingcited by 1
50 most cited of 58 All 58 (JSON)
- 2026Regularized Large Neighborhood Search1 Jun 2026
- 2026ViterbiPlanNet: Injecting Procedural Knowledge via Differentiable Viterbi for Planning in Instructional Videos4 Mar 2026
- 2026DWA-KD: Dual-Space Weighting and Time-Warped Alignment for Cross-Tokenizer Knowledge Distillation25 Feb 2026
- 2026Maximum Likelihood Reinforcement Learning2 Feb 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2026Combinatorial Optimization Augmented Machine Learning15 Jan 2026
- 2025Autoregressive Language Models are Secretly Energy-Based Models: Insights into the Lookahead Capabilities of Next-Token Prediction17 Dec 2025
- 2025Inverse Optimization Latent Variable Models for Learning Costs Applied to Route Problems19 Sep 2025
- 2025Convergence of regularized agent-state-based Q-learning in POMDPs29 Aug 2025
- 2025Scaling Neuro-symbolic Problem Solving: Solver-Free Learning of Constraints and Objectives28 Aug 2025
- 2025Towards Measuring and Modeling Geometric Structures in Time Series Forecasting via Image Modality31 Jul 2025
- 2025Bregman Conditional Random Fields: Sequence Labeling with Parallelizable Inference Algorithms31 May 2025
38 more
- 2025Learning with Local Search MCMC Layers20 May 2025
- 2024Soft Condorcet Optimization for Ranking of General Agents31 Oct 2024
- 2024A fast and sound tagging method for discontinuous named-entity recognition24 Sep 2024
- 2024DataSP: A Differential All-to-All Shortest Path Algorithm for Learning Costs and Predicting Paths with Context8 May 2024
- 2023Maximum entropy GFlowNets with soft Q-learning21 Dec 2023
- 2023Revisiting the Entropy Semiring for Neural Speech Recognition13 Dec 2023
- 2023gcDLSeg: Integrating Graph-cut into Deep Learning for Binary Semantic Segmentation7 Dec 2023
- 2023Revisiting Implicit Differentiation for Learning Problems in Optimal Control23 Oct 2023
- 2023Bridging the Gap between Newton-Raphson Method and Regularized Policy Iteration11 Oct 2023
- 2023SynJax: Structured Probability Distributions for JAX7 Aug 2023
- 2023Latent Optimal Paths by Gumbel Propagation for Variational Bayesian Dynamic Programming5 Jun 2023
- 2023Leaving the Nest: Going Beyond Local Loss Functions for Predict-Then-Optimize26 May 2023
- 2023Differentiable Clustering with Perturbed Spanning Forests25 May 2023
- 2023Twice Regularized Markov Decision Processes: The Equivalence between Robustness and Regularization12 Mar 2023
- 2022A Noise-tolerant Differentiable Learning Approach for Single Occurrence Regular Expression with Interleaving1 Dec 2022
- 2022Knowledge distillation for fast and accurate DNA sequence correction17 Nov 2022
- 2022Uncertainty-DTW for Time Series and Sequences30 Oct 2022
- 2022TILDE-Q: A Transformation Invariant Loss Function for Time-Series Forecasting26 Oct 2022
- 2022A dynamic programming algorithm for span-based nested named-entity recognition in O(n^2)10 Oct 2022
- 2022A deep learning network with differentiable dynamic programming for retina OCT surface segmentation8 Oct 2022
- 2022SIMPLE: A Gradient Estimator for k-Subset Sampling4 Oct 2022
- 2022Fixed-Point Automatic Differentiation of Forward--Backward Splitting Algorithms for Partly Smooth Functions5 Aug 2022
- 2022Latent Topology Induction for Understanding Contextualized Representations3 Jun 2022
- 2022DOGE-Train: Discrete Optimization on GPU with End-to-end Training23 May 2022
- 2022Learning Discrete Structured Variational Auto-Encoder using Natural Evolution Strategies3 May 2022
- 2022Fine-grained Temporal Contrastive Learning for Weakly-supervised Temporal Action Localization31 Mar 2022
- 2022Decision-Focused Learning without Differentiable Optimization: Learning Locally Optimized Decision Losses30 Mar 2022
- 2022A Unified Perspective on Value Backup and Exploration in Monte-Carlo Tree Search11 Feb 2022
- 2022Learning to Predict Graphs with Fused Gromov-Wasserstein Barycenters8 Feb 2022
- 2022Learning with Latent Structures in Natural Language Processing: A Survey3 Jan 2022
- 2021Scaling Structured Inference with Randomization7 Dec 2021
- 2021A Surrogate Objective Framework for Prediction+Optimization with Soft Constraints22 Nov 2021
- 2021Twice regularized MDPs and the equivalence between robustness and regularization12 Oct 2021
- 2021Learning with Algorithmic Supervision via Continuous Relaxations11 Oct 2021
- 2021Approximate Newton policy gradient algorithms5 Oct 2021
- 2021Differentiable Equilibrium Computation with Decision Diagrams for Stackelberg Models of Combinatorial Congestion Games5 Oct 2021
- 2021Differentiable Spline Approximations4 Oct 2021
- 2021To be Closer: Learning to Link up Aspects with Opinions17 Sep 2021
50 newest of 58 All 58 (JSON)
- 2021Differentiable Robust LQR Layerscited by 0
- 2021Differentiable Robust LQR Layers10 Jun 2021
- 2021Attention, please! A survey of Neural Attention Models in Deep Learningcited by 50
- 2021Twice regularized MDPs and the equivalence between robustness and regularizationcited by 46
- 2021Representation Learning via Global Temporal Alignment and Cycle-Consistencycited by 43
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2022Fine-grained Temporal Contrastive Learning for Weakly-supervised Temporal Action Localizationcited by 33
- 2023Maximum entropy GFlowNets with soft Q-learningcited by 30
- 2026Maximum Likelihood Reinforcement Learningcited by 29
- 2021Learning Discriminative Prototypes with Dynamic Time Warpingcited by 23
- 2022Learning to Predict Graphs with Fused Gromov-Wasserstein Barycenterscited by 22
- 2021Learning with Algorithmic Supervision via Continuous Relaxationscited by 21
- 2022Uncertainty-DTW for Time Series and Sequencescited by 21
- 2023Leaving the Nest: Going Beyond Local Loss Functions for Predict-Then-Optimizecited by 18
12 most cited of 57 All 57 (JSON)
- 2026Regularized Large Neighborhood Search1 Jun 2026
- 2026ViterbiPlanNet: Injecting Procedural Knowledge via Differentiable Viterbi for Planning in Instructional Videos4 Mar 2026
- 2026DWA-KD: Dual-Space Weighting and Time-Warped Alignment for Cross-Tokenizer Knowledge Distillation25 Feb 2026
- 2026Maximum Likelihood Reinforcement Learning2 Feb 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2026Combinatorial Optimization Augmented Machine Learning15 Jan 2026
- 2025Autoregressive Language Models are Secretly Energy-Based Models: Insights into the Lookahead Capabilities of Next-Token Prediction17 Dec 2025
- 2025Inverse Optimization Latent Variable Models for Learning Costs Applied to Route Problems19 Sep 2025
- 2025Convergence of regularized agent-state-based Q-learning in POMDPs29 Aug 2025
- 2025Scaling Neuro-symbolic Problem Solving: Solver-Free Learning of Constraints and Objectives28 Aug 2025
- 2025Towards Measuring and Modeling Geometric Structures in Time Series Forecasting via Image Modality31 Jul 2025
- 2025Bregman Conditional Random Fields: Sequence Labeling with Parallelizable Inference Algorithms31 May 2025
12 newest of 57 All 57 (JSON)