{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/predict-and-optimize-through-the-lens-of","title":"Decision-Focused Learning: Through the Lens of Learning to Rank","arxiv_id":"2112.03609","date":"2021-12-07","proceeding":null,"authors":["Jayanta Mandi","Víctor Bucarey","Maxime Mulamba","Tias Guns"],"abstract":"In the last years decision-focused learning framework, also known as predict-and-optimize, have received increasing attention. In this setting, the predictions of a machine learning model are used as estimated cost coefficients in the objective function of a discrete combinatorial optimization problem for decision making. Decision-focused learning proposes to train the ML models, often neural network models, by directly optimizing the quality of decisions made by the optimization solvers. Based on a recent work that proposed a noise contrastive estimation loss over a subset of the solution space, we observe that decision-focused learning can more generally be seen as a learning-to-rank problem, where the goal is to learn an objective function that ranks the feasible points correctly. This observation is independent of the optimization method used and of the form of the objective function. We develop pointwise, pairwise and listwise ranking loss functions, which can be differentiated in closed form given a subset of solutions. We empirically investigate the quality of our generic methods compared to existing decision-focused learning approaches with competitive results. Furthermore, controlling the subset of solutions allows controlling the runtime considerably, with limited effect on regret.","url_abs":"https://arxiv.org/abs/2112.03609v4","url_pdf":"https://arxiv.org/pdf/2112.03609v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"predict-and-optimize-through-the-lens-of","repo_url":"https://github.com/jayman91/ltr-predopt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"combinatorial-optimization","task_name":"Combinatorial Optimization"},{"task_slug":"decision-making","task_name":"Decision Making"},{"task_slug":"learning-to-rank","task_name":"Learning-To-Rank"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2112.03609","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.03609"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jayman91/ltr-predopt","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"58b93ea86a894920","entry":"ICONSolutionPool","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/ICON_solving.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/ICON_solving.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"58b93ea86a894920"}},{"code_sha256_prefix":"b8c3e629ce9a1fff","entry":"MakeLpMat","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/PO_model_energy.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/PO_model_energy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b8c3e629ce9a1fff"}},{"code_sha256_prefix":"78822bdf5e053f0c","entry":"batch_solve","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/PO_model_energy.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/PO_model_energy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78822bdf5e053f0c"}},{"code_sha256_prefix":"7daf409a0f799ff3","entry":"batch_solve","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"ShortestPathExperiment/PO_modelsSP.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/ShortestPathExperiment/PO_modelsSP.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7daf409a0f799ff3"}},{"code_sha256_prefix":"ee1c6a3a00be8bc6","entry":"data_reading","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/ICON_solving.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/ICON_solving.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ee1c6a3a00be8bc6"}},{"code_sha256_prefix":"2f160784540418ed","entry":"get_energy","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/get_energy.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/get_energy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2f160784540418ed"}},{"code_sha256_prefix":"749127762f63b49b","entry":"get_energy_grouped","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/get_energy.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/get_energy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"749127762f63b49b"}},{"code_sha256_prefix":"0d9b18d5fefc09ef","entry":"get_energy_pandas","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"EnergyExperiment/get_energy.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/EnergyExperiment/get_energy.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0d9b18d5fefc09ef"}},{"code_sha256_prefix":"0cd6725522d06f99","entry":"get_qpt_matrices","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"BipartiteMatchingExperiment/bipartite.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/BipartiteMatchingExperiment/bipartite.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0cd6725522d06f99"}},{"code_sha256_prefix":"5e82a2a8af8b6d06","entry":"make_cora_net","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"BipartiteMatchingExperiment/PO_model_matching.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/BipartiteMatchingExperiment/PO_model_matching.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e82a2a8af8b6d06"}},{"code_sha256_prefix":"278d896ea1d70c2b","entry":"regret_aslist","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"ShortestPathExperiment/PO_modelsSP.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/ShortestPathExperiment/PO_modelsSP.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"278d896ea1d70c2b"}},{"code_sha256_prefix":"2006f65de07e7cdb","entry":"regret_fn","repo":"jayman91/ltr-predopt","repo_kind":"official","path":"ShortestPathExperiment/PO_modelsSP.py","file_url":"https://github.com/jayman91/ltr-predopt/blob/HEAD/ShortestPathExperiment/PO_modelsSP.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2006f65de07e7cdb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}