Method, device, storage medium and program product for detecting big model jail break attack
Патент · CN B
Полный текст
The application relates to the field of artificial intelligence and discloses a detection method, a detection device, a storage medium and a program product for a large model jail-breaking attack. The detection method comprises the steps of obtaining an original input, carrying out mutation processing on the original input to generate a plurality of variant inputs, respectively inputting the plurality of variant inputs into a target large model to obtain variant responses corresponding to each variant input, respectively mapping the plurality of variant responses into corresponding semantic vectors, constructing a similarity matrix based on similarity between the semantic vectors, determining the divergence degree between any two variant responses according to the similarity matrix, constructing a divergence matrix, and determining that the original input is jail-break attack input under the condition that the value of at least one element in the divergence matrix is larger than or equal to a preset divergence threshold value.