A model structure similarity detection method and system based on strict matching of a Transformer block

By parsing, standardizing, merging LoRA layer shapes, and grouping matching methods, the problem of low detection accuracy in existing technologies is solved, achieving accurate similarity detection of deep learning models and protection of intellectual property rights.

CN122412979APending Publication Date: 2026-07-17RUAN AN TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
RUAN AN TECH CO LTD
Filing Date
2026-04-08
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing model similarity detection methods ignore the interference of quantization layers when detecting the similarity of deep learning models, do not strictly group and match according to Transformer blocks, cannot accurately merge shapes, and do not consider the difference in the number of blocks, resulting in low detection accuracy and false positives.

Method used

By parsing and preprocessing the input model, standardizing layer names, merging LoRA adaptation layer shapes, grouping and extracting components by Transformer blocks, strictly matching each block level, applying a block number penalty factor, and calculating similarity scores, misjudgments are prevented.

Benefits of technology

It achieves accurate similarity detection of model structure, effectively distinguishes between normal similarity and plagiarism, adapts to different model variants, avoids local matching misjudgments, outputs bidirectional similarity, facilitates intellectual property auditing, and improves detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122412979A_ABST
    Figure CN122412979A_ABST
Patent Text Reader

Abstract

本发明涉及一种基于Transformer块严格匹配的模型结构相似度检测方法及系统,方法包括:对输入的模型进行解析与预处理后进行同义层标准化为统一类别;进行LoRA适配层形状合并,并按Transformer块分组与组件提取;对两个形状的相似度进行计算得到相似度得分,通过逐个遍历知识库模型的块的方式进行块级严格匹配;计算两个模型的块数量差异,应用块数量惩罚因子对块数量不匹配的情况进行惩罚,并计算知识库模型被抄袭比例。本发明通过块级严格匹配和阈值控制,能有效区分正常相似和抄袭;过滤量化层和标准化名称,适应不同模型变体,考虑块数量惩罚,避免仅局部匹配导致高相似度误判。
Need to check novelty before this filing date? Find Prior Art