{"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/reef-representation-encoding-fingerprints-for","title":"REEF: Representation Encoding Fingerprints for Large Language Models","arxiv_id":"2410.14273","date":"2024-10-18","proceeding":null,"authors":["Jie Zhang","Dongrui Liu","Chen Qian","Linfeng Zhang","Yong liu","Yu Qiao","Jing Shao"],"abstract":"Protecting the intellectual property of open-source Large Language Models (LLMs) is very important, because training LLMs costs extensive computational resources and data. Therefore, model owners and third parties need to identify whether a suspect model is a subsequent development of the victim model. To this end, we propose a training-free REEF to identify the relationship between the suspect and victim models from the perspective of LLMs' feature representations. Specifically, REEF computes and compares the centered kernel alignment similarity between the representations of a suspect model and a victim model on the same samples. This training-free REEF does not impair the model's general capabilities and is robust to sequential fine-tuning, pruning, model merging, and permutations. In this way, REEF provides a simple and effective way for third parties and models' owners to protect LLMs' intellectual property together. The code is available at https://github.com/tmylla/REEF.","url_abs":"https://arxiv.org/abs/2410.14273v1","url_pdf":"https://arxiv.org/pdf/2410.14273v1.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":"reef-representation-encoding-fingerprints-for","repo_url":"https://github.com/tmylla/reef","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.14273","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.14273"}},"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/tmylla/reef","reach":{"status":"ok"}}],"summary":{"ran":9,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":16,"ran":10,"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":16,"samples":[{"code_sha256_prefix":"225e33b56e37c35d","entry":"accuracy","repo":"tmylla/reef","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"225e33b56e37c35d"}},{"code_sha256_prefix":"2805e64d92a25d50","entry":"attack","repo":"tmylla/reef","repo_kind":"official","path":"src/ics.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/ics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2805e64d92a25d50"}},{"code_sha256_prefix":"a44746f0f405d665","entry":"compute_x","repo":"tmylla/reef","repo_kind":"official","path":"src/logits.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/logits.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a44746f0f405d665"}},{"code_sha256_prefix":"c33e1a47ece4c17b","entry":"cosine_similarity","repo":"tmylla/reef","repo_kind":"official","path":"src/ics.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/ics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c33e1a47ece4c17b"}},{"code_sha256_prefix":"fe48eee1679ed89a","entry":"create_adjacency_matrix","repo":"tmylla/reef","repo_kind":"official","path":"src/train_cls_gcn.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/train_cls_gcn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fe48eee1679ed89a"}},{"code_sha256_prefix":"a284aa5d43c3b70a","entry":"get_acts","repo":"tmylla/reef","repo_kind":"official","path":"src/generate_head_activations.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/generate_head_activations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a284aa5d43c3b70a"}},{"code_sha256_prefix":"7591741c636ad6ae","entry":"get_model_save_path","repo":"tmylla/reef","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7591741c636ad6ae"}},{"code_sha256_prefix":"47f979c1e336d41b","entry":"load_obj","repo":"tmylla/reef","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"47f979c1e336d41b"}},{"code_sha256_prefix":"f0cc63177ce8b7a1","entry":"load_statements","repo":"tmylla/reef","repo_kind":"official","path":"src/generate_activations.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/generate_activations.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f0cc63177ce8b7a1"}},{"code_sha256_prefix":"73e7761c0aea5c73","entry":"load_victim_logits","repo":"tmylla/reef","repo_kind":"official","path":"src/logits.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/logits.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"73e7761c0aea5c73"}},{"code_sha256_prefix":"9b19f7a9671ea301","entry":"create_adjacency_matrix","repo":"tmylla/reef","repo_kind":"official","path":"src/transfer_cls.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/transfer_cls.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":"9b19f7a9671ea301"}},{"code_sha256_prefix":"9edbd42b20aaf225","entry":"get_acts","repo":"tmylla/reef","repo_kind":"official","path":"src/generate_activations.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/generate_activations.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":"9edbd42b20aaf225"}},{"code_sha256_prefix":"9058a74d60bf8126","entry":"load_model","repo":"tmylla/reef","repo_kind":"official","path":"src/generate_activations.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/generate_activations.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":"9058a74d60bf8126"}},{"code_sha256_prefix":"6488376eefc984d9","entry":"load_suspect_logits","repo":"tmylla/reef","repo_kind":"official","path":"src/logits.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/logits.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":"6488376eefc984d9"}},{"code_sha256_prefix":"66d2718c00dfd494","entry":"train","repo":"tmylla/reef","repo_kind":"official","path":"src/train_cls_gcn.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/train_cls_gcn.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":"66d2718c00dfd494"}},{"code_sha256_prefix":"5b09c05b55d7fc25","entry":"validate","repo":"tmylla/reef","repo_kind":"official","path":"src/train_cls_gcn.py","file_url":"https://github.com/tmylla/reef/blob/HEAD/src/train_cls_gcn.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":"5b09c05b55d7fc25"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}