{"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-2601-07086","title":"XBTorch: A Unified Framework for Modeling and Co-Design of Crossbar-Based Deep Learning Accelerators","arxiv_id":"2601.07086","date":"2026-01-11","proceeding":null,"authors":["Osama Yousuf","Andreu L. Glasmann","Martin Lueker-Boden","Sina Najmaei","Gina C. Adam"],"abstract":"Emerging memory technologies have gained significant attention as a promising pathway to overcome the limitations of conventional computing architectures in deep learning applications. By enabling computation directly within memory, these technologies - built on nanoscale devices with tunable and nonvolatile conductance - offer the potential to drastically reduce energy consumption and latency compared to traditional von Neumann systems. This paper introduces XBTorch (short for CrossBarTorch), a novel simulation framework that integrates seamlessly with PyTorch and provides specialized tools for accurately and efficiently modeling crossbar-based systems based on emerging memory technologies. Through detailed comparisons and case studies involving hardware-aware training and inference, we demonstrate how XBTorch offers a unified interface for key research areas such as device-level modeling, cross-layer co-design, and inference-time fault tolerance. While exemplar studies utilize ferroelectric field-effect transistor (FeFET) models, the framework remains technology-agnostic - supporting other emerging memories such as resistive RAM (ReRAM), as well as enabling user-defined custom device models. The code is publicly available at: https://github.com/ADAM-Lab-GW/xbtorch","url_abs":"https://arxiv.org/abs/2601.07086","url_pdf":"https://arxiv.org/pdf/2601.07086","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=2601.07086","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.07086"}},"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/ADAM-Lab-GW/xbtorch","reach":null}],"summary":{"ran_fixture":2,"ran_draft_wrong":4,"ran_honours":1,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":8,"ran":7,"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":"a01ae7083e71c619","entry":"check_overlap","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a01ae7083e71c619"}},{"code_sha256_prefix":"20d6dabc531b77e0","entry":"encode_LEA1","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"20d6dabc531b77e0"}},{"code_sha256_prefix":"f764aaaeb68c746e","entry":"encode_LEA2","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"f764aaaeb68c746e"}},{"code_sha256_prefix":"b04b9d6b7f84a871","entry":"encode_simple_binary","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"b04b9d6b7f84a871"}},{"code_sha256_prefix":"e0713d11f0ea008a","entry":"map_random","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"e0713d11f0ea008a"}},{"code_sha256_prefix":"04a0f78621280803","entry":"quantize_to_nearest","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"04a0f78621280803"}},{"code_sha256_prefix":"8d10c624efef4dc2","entry":"register_accelerator","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"8d10c624efef4dc2"}},{"code_sha256_prefix":"3d374aaa15ad5ac5","entry":"GenericAccelerator","repo":"ADAM-Lab-GW/xbtorch","repo_kind":"found_in_text","path":"src/xbtorch/deployment/base.py","file_url":"https://github.com/ADAM-Lab-GW/xbtorch/blob/HEAD/src/xbtorch/deployment/base.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"3d374aaa15ad5ac5"}}]},"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}