Causal security layer calibration driving defense method for large model security target range
Патент · CN B
Полный текст
The invention discloses a causal safety layer calibration driving defending method for a large model safety target range, which comprises the steps of firstly executing a safety layer positioning algorithm on a field fine-tuned model, and identifying a discontinuous layer set with key causal contribution to safety decision in a data driving mode; and further subdividing the security layer into a gating layer responsible for refusal triggering and a policy layer responsible for compliance expression by a bimodal gating-policy subdivision algorithm. In the calibration fine tuning stage, only the finely-divided gating layer and strategy layer parameters are subjected to targeted updating, a joint loss function containing gating and strategy regular terms is introduced, and the answering boundary and answering granularity of the model are respectively constrained under a security vertical domain and a general data mode. According to the method, through the technical path of accurate positioning, structure subdivision and directional calibration, robustness of the prompt word injection attack is remarkably improved, and meanwhile usability of benign professional requests of the boundary is guaranteed.