{"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/multi-layered-tensor-networks-for-image","title":"Multi-layered tensor networks for image classification","arxiv_id":"2011.06982","date":"2020-11-13","proceeding":null,"authors":["Raghavendra Selvan","Silas Ørting","Erik B Dam"],"abstract":"The recently introduced locally orderless tensor network (LoTeNet) for supervised image classification uses matrix product state (MPS) operations on grids of transformed image patches. The resulting patch representations are combined back together into the image space and aggregated hierarchically using multiple MPS blocks per layer to obtain the final decision rules. In this work, we propose a non-patch based modification to LoTeNet that performs one MPS operation per layer, instead of several patch-level operations. The spatial information in the input images to MPS blocks at each layer is squeezed into the feature dimension, similar to LoTeNet, to maximise retained spatial correlation between pixels when images are flattened into 1D vectors. The proposed multi-layered tensor network (MLTN) is capable of learning linear decision boundaries in high dimensional spaces in a multi-layered setting, which results in a reduction in the computation cost compared to LoTeNet without any degradation in performance.","url_abs":"https://arxiv.org/abs/2011.06982v2","url_pdf":"https://arxiv.org/pdf/2011.06982v2.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":"multi-layered-tensor-networks-for-image","repo_url":"https://github.com/raghavian/mltn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"tensor-networks","task_name":"Tensor Networks"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":null,"method_name":"Pina.net"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2011.06982","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2011.06982"}},"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":"deterministic:regex_extraction","url":"https://github.com/raghavian/mltn","reach":null}],"summary":{"ran_fixture":1,"unverified":16},"by_repo_kind":{"official":{"samples":17,"ran":1,"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":17,"samples":[{"code_sha256_prefix":"6c3d5f290d49a6cf","entry":"init_tensor","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6c3d5f290d49a6cf"}},{"code_sha256_prefix":"127983fe3b57079f","entry":"ContractableList","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"127983fe3b57079f"}},{"code_sha256_prefix":"417fe74ba15f90eb","entry":"EdgeVec","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"417fe74ba15f90eb"}},{"code_sha256_prefix":"f2ae4b17cb199299","entry":"InputRegion","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f2ae4b17cb199299"}},{"code_sha256_prefix":"6bccefd29cbbde7f","entry":"InputSite","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6bccefd29cbbde7f"}},{"code_sha256_prefix":"f639b9047e39da9f","entry":"LinearRegion","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f639b9047e39da9f"}},{"code_sha256_prefix":"b626ccf0fd146554","entry":"MLTN","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b626ccf0fd146554"}},{"code_sha256_prefix":"dd8176246ecf25cf","entry":"MPS","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dd8176246ecf25cf"}},{"code_sha256_prefix":"ed6319d366516e69","entry":"MatRegion","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ed6319d366516e69"}},{"code_sha256_prefix":"5b975ecbe6f656ff","entry":"MergedInput","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5b975ecbe6f656ff"}},{"code_sha256_prefix":"37c736bc196a1c8e","entry":"MergedLinearRegion","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"37c736bc196a1c8e"}},{"code_sha256_prefix":"594b613119b3046f","entry":"MergedOutput","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"594b613119b3046f"}},{"code_sha256_prefix":"061f0ba9a2ef30cb","entry":"OutputCore","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"061f0ba9a2ef30cb"}},{"code_sha256_prefix":"fb5233a2ab7ed2c0","entry":"OutputSite","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fb5233a2ab7ed2c0"}},{"code_sha256_prefix":"9d854279a4660c56","entry":"Scalar","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d854279a4660c56"}},{"code_sha256_prefix":"27ff27a68f6b8dc0","entry":"SingleMat","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"27ff27a68f6b8dc0"}},{"code_sha256_prefix":"144c7ce7d4014523","entry":"svd_flex","repo":"raghavian/mltn","repo_kind":"official","path":"models/mltn.py","file_url":"https://github.com/raghavian/mltn/blob/HEAD/models/mltn.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"144c7ce7d4014523"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}