{"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-2605-28420","title":"Conveyance: A Versatile Framework for Learning in Structured Class Spaces","arxiv_id":"2605.28420","date":"2026-05-27","proceeding":null,"authors":["Yasser Taha","Grégoire Montavon","Nils Körber"],"abstract":"While machine learning (ML) architectures have evolved rapidly to account for complex data, loss functions like cross-entropy remain mostly structure-agnostic in many real-world applications. However, the \"class-symmetric\" nature of these standard losses fundamentally limits the ability of ML models to exploit structural relationships between classes, particularly when facing structured noise. We propose Conveyance, a new classification approach and associated loss function tailored to structured class spaces. It allows users to encode graph-like relations between classes without having to define complex joint distributions or manually tune utility matrices. Technically, our loss function operates by maximizing two separate margins over distinct class partitions, while preserving formal properties such as monotonicity and partial convexity. We demonstrate the versatility and effectiveness of our method by applying it to hierarchical classification, ordinal regression, and multiple instance learning. Across these tasks, Conveyance either matches or exceeds the performance of specialized baselines, thereby offering a unified solution for structured class spaces.","url_abs":"https://arxiv.org/abs/2605.28420","url_pdf":"https://arxiv.org/pdf/2605.28420","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=2605.28420","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.28420"}},"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/ZKI-PH-ImageAnalysis/Conveyance","reach":null}],"summary":{"ran":14,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":17,"ran":14,"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":"69ca8e63bd47276e","entry":"batch_accuracy","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/utils.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/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":"69ca8e63bd47276e"}},{"code_sha256_prefix":"85ae650288c900c9","entry":"ce","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/loss.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/loss.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":"85ae650288c900c9"}},{"code_sha256_prefix":"3a24d85e116c040d","entry":"get_asym_T_cifar10","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/dataset.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/dataset.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":"3a24d85e116c040d"}},{"code_sha256_prefix":"25b9af237e1380db","entry":"get_asym_T_mnist","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/dataset.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/dataset.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":"25b9af237e1380db"}},{"code_sha256_prefix":"23998088440d377d","entry":"get_exp_id","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/utils.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/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":"23998088440d377d"}},{"code_sha256_prefix":"c99bee3de67d1f04","entry":"get_sym_T","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/dataset.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/dataset.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":"c99bee3de67d1f04"}},{"code_sha256_prefix":"b9b020472d1ef906","entry":"mae","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/loss.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/loss.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":"b9b020472d1ef906"}},{"code_sha256_prefix":"fb2ed17c2d1518c4","entry":"preact_resnet32","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/models/resnet.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/models/resnet.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":"fb2ed17c2d1518c4"}},{"code_sha256_prefix":"bc5ddefbb0c49759","entry":"rce","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/loss.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/loss.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":"bc5ddefbb0c49759"}},{"code_sha256_prefix":"76e0461c9bdad254","entry":"resnet18","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/models/resnet.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/models/resnet.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":"76e0461c9bdad254"}},{"code_sha256_prefix":"61f7699a2757009f","entry":"resnet34","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/models/resnet.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/models/resnet.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":"61f7699a2757009f"}},{"code_sha256_prefix":"3a4f8ebc3e6cbd58","entry":"setup_logger","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/utils.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/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":"3a4f8ebc3e6cbd58"}},{"code_sha256_prefix":"776d3b8ee2d7f432","entry":"toymodel4l","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/models/toymodel.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/models/toymodel.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":"776d3b8ee2d7f432"}},{"code_sha256_prefix":"72dc261c0e400952","entry":"toymodel8l","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"Annotation-Bias/models/toymodel.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/Annotation-Bias/models/toymodel.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":"72dc261c0e400952"}},{"code_sha256_prefix":"65fa13105ac5ad94","entry":"register_dataset","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"MIL/src/conveyance/registry.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/MIL/src/conveyance/registry.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":"65fa13105ac5ad94"}},{"code_sha256_prefix":"315169c9a68af6f1","entry":"register_loss","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"MIL/src/conveyance/registry.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/MIL/src/conveyance/registry.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":"315169c9a68af6f1"}},{"code_sha256_prefix":"fb36b1009b071a4c","entry":"register_model","repo":"ZKI-PH-ImageAnalysis/Conveyance","repo_kind":"found_in_text","path":"MIL/src/conveyance/registry.py","file_url":"https://github.com/ZKI-PH-ImageAnalysis/Conveyance/blob/HEAD/MIL/src/conveyance/registry.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":"fb36b1009b071a4c"}}]},"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}