{"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/l2ight-enabling-on-chip-learning-for-optical","title":"L2ight: Enabling On-Chip Learning for Optical Neural Networks via Efficient in-situ Subspace Optimization","arxiv_id":"2110.14807","date":"2021-10-27","proceeding":"NeurIPS 2021 12","authors":["Jiaqi Gu","Hanqing Zhu","Chenghao Feng","Zixuan Jiang","Ray T. Chen","David Z. Pan"],"abstract":"Silicon-photonics-based optical neural network (ONN) is a promising hardware platform that could represent a paradigm shift in efficient AI with its CMOS-compatibility, flexibility, ultra-low execution latency, and high energy efficiency. In-situ training on the online programmable photonic chips is appealing but still encounters challenging issues in on-chip implementability, scalability, and efficiency. In this work, we propose a closed-loop ONN on-chip learning framework L2ight to enable scalable ONN mapping and efficient in-situ learning. L2ight adopts a three-stage learning flow that first calibrates the complicated photonic circuit states under challenging physical constraints, then performs photonic core mapping via combined analytical solving and zeroth-order optimization. A subspace learning procedure with multi-level sparsity is integrated into L2ight to enable in-situ gradient evaluation and fast adaptation, unleashing the power of optics for real on-chip intelligence. Extensive experiments demonstrate our proposed L2ight outperforms prior ONN training protocols with 3-order-of-magnitude higher scalability and over 30X better efficiency, when benchmarked on various models and learning tasks. This synergistic framework is the first scalable on-chip learning solution that pushes this emerging field from intractable to scalable and further to efficient for next-generation self-learnable photonic neural chips. From a co-design perspective, L2ight also provides essential insights for hardware-restricted unitary subspace optimization and efficient sparse training. We open-source our framework at https://github.com/JeremieMelo/L2ight.","url_abs":"https://arxiv.org/abs/2110.14807v1","url_pdf":"https://arxiv.org/pdf/2110.14807v1.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":"l2ight-enabling-on-chip-learning-for-optical","repo_url":"https://github.com/jeremiemelo/l2ight","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.14807","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.14807"}},"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/jeremiemelo/l2ight","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":6,"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":6,"samples":[{"code_sha256_prefix":"a324fe9ec27ccd0c","entry":"Linear","repo":"jeremiemelo/l2ight","repo_kind":"official","path":"core/models/sparse_bp_resnet.py","file_url":"https://github.com/jeremiemelo/l2ight/blob/HEAD/core/models/sparse_bp_resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"a324fe9ec27ccd0c"}},{"code_sha256_prefix":"af07ece5ab8925b9","entry":"conv1x1","repo":"jeremiemelo/l2ight","repo_kind":"official","path":"core/models/sparse_bp_resnet.py","file_url":"https://github.com/jeremiemelo/l2ight/blob/HEAD/core/models/sparse_bp_resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"af07ece5ab8925b9"}},{"code_sha256_prefix":"94803c3f63d60a8c","entry":"conv3x3","repo":"jeremiemelo/l2ight","repo_kind":"official","path":"core/models/sparse_bp_resnet.py","file_url":"https://github.com/jeremiemelo/l2ight/blob/HEAD/core/models/sparse_bp_resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"94803c3f63d60a8c"}},{"code_sha256_prefix":"7387dde4f9f4c579","entry":"cosine_distance","repo":"jeremiemelo/l2ight","repo_kind":"official","path":"compare_gradient.py","file_url":"https://github.com/jeremiemelo/l2ight/blob/HEAD/compare_gradient.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"7387dde4f9f4c579"}},{"code_sha256_prefix":"6cb750bf8abb7674","entry":"get_dataset","repo":"jeremiemelo/l2ight","repo_kind":"official","path":"core/dataset.py","file_url":"https://github.com/jeremiemelo/l2ight/blob/HEAD/core/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"6cb750bf8abb7674"}},{"code_sha256_prefix":"2cc5c6edd49e4f57","entry":"l2_distance","repo":"jeremiemelo/l2ight","repo_kind":"official","path":"compare_gradient.py","file_url":"https://github.com/jeremiemelo/l2ight/blob/HEAD/compare_gradient.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"2cc5c6edd49e4f57"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}