{"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/kalahash-knowledge-anchored-low-resource","title":"KALAHash: Knowledge-Anchored Low-Resource Adaptation for Deep Hashing","arxiv_id":"2412.19417","date":"2024-12-27","proceeding":null,"authors":["Shu Zhao","Tan Yu","Xiaoshuai Hao","Wenchao Ma","Vijaykrishnan Narayanan"],"abstract":"Deep hashing has been widely used for large-scale approximate nearest neighbor search due to its storage and search efficiency. However, existing deep hashing methods predominantly rely on abundant training data, leaving the more challenging scenario of low-resource adaptation for deep hashing relatively underexplored. This setting involves adapting pre-trained models to downstream tasks with only an extremely small number of training samples available. Our preliminary benchmarks reveal that current methods suffer significant performance degradation due to the distribution shift caused by limited training samples. To address these challenges, we introduce Class-Calibration LoRA (CLoRA), a novel plug-and-play approach that dynamically constructs low-rank adaptation matrices by leveraging class-level textual knowledge embeddings. CLoRA effectively incorporates prior class knowledge as anchors, enabling parameter-efficient fine-tuning while maintaining the original data distribution. Furthermore, we propose Knowledge-Guided Discrete Optimization (KIDDO), a framework to utilize class knowledge to compensate for the scarcity of visual information and enhance the discriminability of hash codes. Extensive experiments demonstrate that our proposed method, Knowledge- Anchored Low-Resource Adaptation Hashing (KALAHash), significantly boosts retrieval performance and achieves a 4x data efficiency in low-resource scenarios.","url_abs":"https://arxiv.org/abs/2412.19417v1","url_pdf":"https://arxiv.org/pdf/2412.19417v1.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":"kalahash-knowledge-anchored-low-resource","repo_url":"https://github.com/Tree-Shu-Zhao/KALAHash.pytorch","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"deep-hashing","task_name":"Deep Hashing"},{"task_slug":"parameter-efficient-fine-tuning","task_name":"parameter-efficient fine-tuning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2412.19417","atlas_url":"https://app.syntology.ai/?focus=2412.19417","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2412.19417"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/Tree-Shu-Zhao/KALAHash.pytorch","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"unverified":2},"by_repo_kind":{"official":{"samples":5,"ran":3,"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":"02675a73c17af331","entry":"move_to_device","repo":"Tree-Shu-Zhao/KALAHash.pytorch","repo_kind":"official","path":"src/engine/trainer.py","file_url":"https://github.com/Tree-Shu-Zhao/KALAHash.pytorch/blob/HEAD/src/engine/trainer.py","link_basis":"harvester_set","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":"02675a73c17af331"}},{"code_sha256_prefix":"2b26c3b13ce3dd9a","entry":"split_few_shot","repo":"Tree-Shu-Zhao/KALAHash.pytorch","repo_kind":"official","path":"src/dataset/cifar10.py","file_url":"https://github.com/Tree-Shu-Zhao/KALAHash.pytorch/blob/HEAD/src/dataset/cifar10.py","link_basis":"harvester_set","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":"2b26c3b13ce3dd9a"}},{"code_sha256_prefix":"954aa7c1c5aab601","entry":"split_few_shot_multi_label","repo":"Tree-Shu-Zhao/KALAHash.pytorch","repo_kind":"official","path":"src/dataset/mscoco.py","file_url":"https://github.com/Tree-Shu-Zhao/KALAHash.pytorch/blob/HEAD/src/dataset/mscoco.py","link_basis":"harvester_set","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":"954aa7c1c5aab601"}},{"code_sha256_prefix":"e79e38e009f7d4a3","entry":"build_criterion","repo":"Tree-Shu-Zhao/KALAHash.pytorch","repo_kind":"official","path":"src/criterion/builder.py","file_url":"https://github.com/Tree-Shu-Zhao/KALAHash.pytorch/blob/HEAD/src/criterion/builder.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":true,"mcp_get_code":{"code_sha256":"e79e38e009f7d4a3"}},{"code_sha256_prefix":"5b455114fa92c532","entry":"build_model","repo":"Tree-Shu-Zhao/KALAHash.pytorch","repo_kind":"official","path":"src/model/builder.py","file_url":"https://github.com/Tree-Shu-Zhao/KALAHash.pytorch/blob/HEAD/src/model/builder.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":true,"mcp_get_code":{"code_sha256":"5b455114fa92c532"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}