{"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/arxiv-2607-16987","title":"Twisted Schrödinger Bridge Matching","arxiv_id":"2607.16987","date":"2026-07-18","proceeding":null,"authors":["Maxence Noble","Marie Scheid","Yazid Janati","Eric Moulines","Alain Durmus"],"abstract":"Over the past few years, diffusion-based Schrödinger bridge models have been proposed to approximate optimal transport dynamics between two prescribed boundary distributions, with successful applications to generative modeling. More precisely, these methods aim to estimate a path measure whose initial and terminal marginals match the two boundary distributions, while minimizing the Kullback-Leibler divergence with respect to a reference Markov process. In this work, we consider the generalized Schrödinger bridge problem, in which the reference process is a twisted Brownian motion, that is, a Feynman-Kac transform of a Brownian motion induced by a time-dependent differentiable potential. Building on the Iterative Markovian Fitting (IMF) paradigm, and in particular on its special case Diffusion Schrödinger Bridge Matching (DSBM), which corresponds to the zero potential case, we introduce Twisted Schrödinger Bridge Matching (TSBM), a diffusion-based method designed to handle both continuous- and discrete-time potentials. Unlike previous approaches, TSBM provides a rigorous extension of the IMF scheme to the generalized Schrödinger bridge problem. This derivation leads to a new bridge-matching loss that depends explicitly on the gradient of the potential and recovers the DSBM objective when the potential vanishes, yielding improved performance. We further introduce trajectory-based variance-reduction techniques that substantially stabilize optimization and may be useful beyond the present setting. Finally, we empirically demonstrate the benefits of TSBM for trajectory inference across increasingly high-dimensional settings, including crowd navigation and single-cell data. Code available at https://github.com/maxencenoble/twisted-sb-matching.","url_abs":"https://arxiv.org/abs/2607.16987","url_pdf":"https://arxiv.org/pdf/2607.16987","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2607.16987","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.16987"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/maxencenoble/twisted-sb-matching","reach":null}],"summary":{"ran":10,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":16,"ran":10,"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":"dd8e2f4a0d7f1fed","entry":"build_loss_fn","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/spline/gaussian_path.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/spline/gaussian_path.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd8e2f4a0d7f1fed"}},{"code_sha256_prefix":"be8877f51771fc92","entry":"build_obstacle_cost","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/state_cost.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/state_cost.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"be8877f51771fc92"}},{"code_sha256_prefix":"faabf84d7b2b7cf9","entry":"get_fig_axes","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/runners/plotters.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/runners/plotters.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"faabf84d7b2b7cf9"}},{"code_sha256_prefix":"ad5509fb21738b18","entry":"get_sde_timesteps","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/sde/diffusion_bridge.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/sde/diffusion_bridge.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ad5509fb21738b18"}},{"code_sha256_prefix":"5488cb5833c722ed","entry":"get_state_dict","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/models/utils.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/models/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5488cb5833c722ed"}},{"code_sha256_prefix":"668ce6544d96ba67","entry":"get_timestep_embedding","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/models/basic/time_embedding.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/models/basic/time_embedding.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"668ce6544d96ba67"}},{"code_sha256_prefix":"dffbfb0a413afade","entry":"kaiming_uniform_zeros_","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/models/utils.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/models/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dffbfb0a413afade"}},{"code_sha256_prefix":"a501154ff2546c57","entry":"obstacle_cfg_gmm","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/state_cost.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/state_cost.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a501154ff2546c57"}},{"code_sha256_prefix":"05a3f85278929053","entry":"obstacle_cost_gmm","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/state_cost.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/state_cost.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"05a3f85278929053"}},{"code_sha256_prefix":"cc1e7a959444f42c","entry":"save_fig","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/runners/plotters.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/runners/plotters.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cc1e7a959444f42c"}},{"code_sha256_prefix":"bd109c55b67dad8e","entry":"build_optim","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/spline/gaussian_path.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/spline/gaussian_path.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bd109c55b67dad8e"}},{"code_sha256_prefix":"2a6ce05c38a2af82","entry":"fit","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/spline/gaussian_path.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/spline/gaussian_path.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a6ce05c38a2af82"}},{"code_sha256_prefix":"241ac1670aa7bf23","entry":"get_colors","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/runners/plotters.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/runners/plotters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"241ac1670aa7bf23"}},{"code_sha256_prefix":"36bd6632d92f749a","entry":"get_plotter","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/runners/config_getters.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/runners/config_getters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"36bd6632d92f749a"}},{"code_sha256_prefix":"ac6be51c4c0f60f3","entry":"get_score_model","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/runners/config_getters.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/runners/config_getters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac6be51c4c0f60f3"}},{"code_sha256_prefix":"d95cdeee338460b3","entry":"get_state_cost","repo":"maxencenoble/twisted-sb-matching","repo_kind":"found_in_text","path":"bridge/runners/config_getters.py","file_url":"https://github.com/maxencenoble/twisted-sb-matching/blob/HEAD/bridge/runners/config_getters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d95cdeee338460b3"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}