Evaluation data generation method and device and storage medium

By obtaining and expanding the reference data of the target topic, the security evaluation data set is generated and expanded, which solves the problems of low efficiency and insufficient representativeness of security evaluation data in the existing technology, and realizes the construction of efficient and multi-dimensional security evaluation data sets. Improved the security and comprehensiveness of evaluation of large models.

CN118779880APending Publication Date: 2024-10-15BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410813522.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing technology is difficult to construct security evaluation data with comprehensive semantic coverage, low efficiency and high cost. Moreover, the fixed security evaluation data lacks timeliness and representativeness, making it difficult to meet the security evaluation needs of large models, especially in long-tail topics and rare vocabulary. It is difficult to generate high-quality diverse data.

Method used

By obtaining the target topic, determining the reference data, and generating an initial security evaluation data set based on the large model, and expanding the content and text structure to form a multi-theme and multi-dimensional security evaluation data set, reducing the need for manual intervention, shortening preparation time, and enhancing the data availability and coverage.

Benefits of technology

It realizes the rapid and efficient construction of multi-topic and multi-dimensional security evaluation data sets, reduces costs, improves efficiency, solves the problem of data generalization and long tail, enhances the practicality and coverage of security evaluation data, and helps discover large models. Improved security for large models by safely aligning insufficient subject areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779880A_ABST
    Figure CN118779880A_ABST
Patent Text Reader

Abstract

The invention discloses an evaluation data generation method and device, and relates to the field of artificial intelligence, in particular to the technical field of natural language processing. According to the specific implementation scheme, at least one target theme needing to generate safety evaluation data is obtained; determining reference data corresponding to the at least one target theme; generating a first security evaluation data set based on the at least one target topic and the reference data; and expanding the first security evaluation data set to obtain a target security evaluation data set. According to the embodiment of the invention, the multi-theme and multi-dimensional security evaluation data set is quickly and efficiently constructed, the requirement of manual intervention is reduced, and the preparation time of the security evaluation data is shortened, so that the cost is reduced, the efficiency is improved, the problems of data vacuity and long tail are solved, and the practicability and coverage of the security evaluation data are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, specifically to technical fields such as natural language processing, and in particular to a method, device and storage medium for generating evaluation data. Background Art

[0002] With the development of artificial intelligence, generative big models have been widely used. However, there is uncertainty in the output content of big models between different text topic categories, which is prone to potential risks in terms of security, thus affecting the use of big models and customer experience. Therefore, it is necessary to build security evaluation data to test big models based on security evaluation data, find defective areas of big model security alignment, and thus improve the comprehensiveness and accuracy of big model security assessment.

[0003] In the prior art, security assessment data can be constructed manually, through fixed security assessment data, or through machine learning. However, it is difficult to achieve comprehensive semantic coverage by manually constructing security assessment data, which is inefficient and costly; in addition, fixed security assessment data may have been used for training large models, which is not effective and representative, and the data set is also lacking in timeliness, making it difficult to meet content security requirements; using the Simbert model or similar models to generate security assessment data, for long-tail topics or rare words, it may be difficult to quickly obtain high-quality and diverse security assessment data. Summary of the invention

[0004] The present disclosure provides a method, device and storage medium for generating evaluation data.

[0005] According to one aspect of the present disclosure, a method for generating assessment data is provided, the method comprising: obtaining at least one target topic for which security assessment data needs to be generated; determining reference data corresponding to the at least one target topic; generating a first security assessment data set based on the at least one target topic and the reference data; and expanding the first security assessment data set to obtain a target security assessment data set.

[0006] Optionally, in one embodiment of the present disclosure, obtaining at least one target subject for which security assessment data needs to be generated includes:

[0007] Based on the big model, obtaining at least one target subject for which security assessment data needs to be generated; and / or

[0008] At least one target subject for which security assessment data needs to be generated is obtained through a security assessment database.

[0009] Optionally, in an embodiment of the present disclosure, determining the reference data corresponding to the at least one target theme includes: determining parameter data corresponding to the at least one target theme through an external knowledge base.

[0010] Optionally, in an embodiment of the present disclosure, generating a first security assessment data set based on the at least one target subject and the reference data includes:

[0011] Based on the at least one target topic and the parameter data, generating at least one security assessment data corresponding to the at least one target topic through a large model;

[0012] Based on the at least one safety assessment data, a first safety assessment data set is generated.

[0013] Optionally, in an embodiment of the present disclosure, the step of expanding the first security assessment dataset to obtain a target security assessment dataset includes:

[0014] Expanding the content of the security assessment data in the first security assessment data set to obtain a second security assessment data set;

[0015] The security assessment data in the second security assessment data set is subjected to text structure expansion to obtain a target security assessment data set.

[0016] Optionally, in an embodiment of the present disclosure, the content expansion of the security assessment data in the first security assessment data set includes:

[0017] Performing appositive expansion on the safety assessment data in the first safety assessment data set; and / or

[0018] Performing hyponym and hyponym expansion on the security assessment data in the first security assessment data set; and / or

[0019] A mask mechanism is performed on the security assessment data in the first security assessment data set.

[0020] Optionally, in an embodiment of the present disclosure, the performing text structure expansion on the security assessment data in the second security assessment data set includes:

[0021] Performing sentence expansion on the security assessment data in the second security assessment data set; and / or

[0022] restate and expand the safety assessment data in the second safety assessment data set; and / or

[0023] Performing language expansion on the security assessment data in the second security assessment data set; and / or

[0024] The security assessment data in the second security assessment data set is expanded in classical Chinese and / or dialect.

[0025] Optionally, in one embodiment of the present disclosure, the method further includes:

[0026] A diversity judgment is performed on the security assessment data in the target security assessment data set, and based on the obtained diversity judgment result, the security assessment data in the target security assessment data set is stored.

[0027] According to another aspect of the present disclosure, a device for generating assessment data is provided, including: an acquisition module, used to acquire at least one target topic for which security assessment data needs to be generated; a determination module, used to determine reference data corresponding to the at least one target topic; a generation module, used to generate a first security assessment data set based on the at least one target topic and the reference data; and an expansion module, used to expand the first security assessment data set to obtain a target security assessment data set.

[0028] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the measurement data generation method of the present disclosure.

[0029] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method for generating evaluation data of the present disclosure.

[0030] According to another aspect of the present disclosure, a computer program product is provided. When the computer program is executed by a processor, the method for generating evaluation data of the present disclosure is implemented.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] The evaluation data generation method can quickly and efficiently construct multi-topic and multi-dimensional security evaluation data sets, reduce the need for manual intervention, shorten the security evaluation data preparation time, thereby reducing costs, improving efficiency, solving data emptiness and long-tail problems, and enhancing the practicality and coverage of security evaluation data, thereby helping to discover subject areas where large models lack security alignment, thereby improving the security of large models.

[0033] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0035] Figure 1 It is a flowchart of a method for generating evaluation data provided according to an embodiment of the present disclosure;

[0036] Figure 2 It is a schematic diagram of performing security testing on a large model according to security evaluation data provided by an embodiment of the present disclosure;

[0037] Figure 3 It is a flowchart of a method for generating evaluation data provided according to an embodiment of the present disclosure;

[0038] Figure 4 It is a flowchart of a method for generating evaluation data proposed according to an embodiment of the present disclosure;

[0039] Figure 5 It is a flowchart of a method for generating evaluation data proposed according to an embodiment of the present disclosure;

[0040] Figure 6 It is a structural schematic diagram of a device for generating evaluation data provided according to an embodiment of the present disclosure;

[0041] Figure 7 is a block diagram of an electronic device for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0042] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0043] The following describes the method and device for generating evaluation data according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0044] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure.

[0045] like Figure 1 As shown, the method for generating the evaluation data may include:

[0046] Step 101: Obtain at least one target subject for which security assessment data needs to be generated.

[0047] It should be noted that the execution subject of the above evaluation data generation method is the evaluation data generation device, which can be implemented by software and / or hardware. The evaluation data generation device in this embodiment can be configured in an electronic device.

[0048] In this example embodiment, the electronic device may include devices such as terminal devices and servers, and this embodiment does not limit the electronic device.

[0049] In the embodiment of the present disclosure, the target topic may be a sensitive or biased topic. In the embodiment of the present disclosure, the security assessment data may be a text prompt or text question about the target topic composed of natural language.

[0050] In the disclosed embodiment, at least one target topic for which security assessment data needs to be generated can be obtained through the big model. Specifically, in the disclosed embodiment, a keyword for which security assessment data needs to be generated can be input into the big model, and at least one target topic related to the keyword can be obtained through the big model. In the disclosed embodiment, the above-mentioned big model can be a trained big model.

[0051] In the embodiment of the present disclosure, at least one target subject for which security assessment data needs to be generated can be obtained through a security assessment database. In the embodiment of the present disclosure, the security assessment database can be a database including security assessment data corresponding to multiple subjects.

[0052] Furthermore, in the disclosed embodiment, at least one target topic for which security assessment data needs to be generated can be determined based on the number of security assessment data under each topic in the security assessment database. Specifically, in the disclosed embodiment, the number of security assessment data under each topic in the security assessment database can be sorted in ascending order, and the topics with the highest threshold number can be determined as the target topics for which security assessment data needs to be generated, so that the security assessment data corresponding to the large model can be generated in a targeted manner, making it easier to find defective areas of security alignment of the large model, thereby improving the comprehensiveness and accuracy of the security assessment of the large model.

[0053] Step 102: Determine reference data corresponding to at least one target topic.

[0054] In the embodiments of the present disclosure, the reference data may be the latest, timely and concrete reference content corresponding to the target theme.

[0055] In an embodiment of the present disclosure, the method for determining reference data corresponding to at least one target topic may include: determining parameter data corresponding to at least one target topic through an external knowledge base.

[0056] In the embodiment of the present disclosure, the external knowledge base includes a database of the latest knowledge. Also, in the embodiment of the present disclosure, the relevant data in the external knowledge base can be queried through the target subject, and the relevant data can be determined as the reference data corresponding to the target subject, so that the subsequently generated security assessment data has timeliness, and the generated security assessment data is prevented from being empty and outdated.

[0057] Step 103: Generate a first security assessment data set based on at least one target subject and reference data.

[0058] In the disclosed embodiment, after obtaining at least one target topic and reference data corresponding to each target topic through the above steps, a first security assessment data set may be generated based on the at least one target topic and the corresponding reference data.

[0059] In an embodiment of the present disclosure, a method for generating a first security assessment data set based on at least one target topic and reference data may include: based on at least one target topic and parameter data, generating at least one security assessment data corresponding to at least one target topic through a large model, and generating a first security assessment data set based on the at least one security assessment data.

[0060] In an embodiment of the present disclosure, at least one target topic and reference data corresponding to each target topic may be input into a large model to obtain at least one security assessment data corresponding to each target topic, and the at least one security assessment data corresponding to each target topic may be determined as a first security assessment data set.

[0061] In the disclosed embodiment, the big model generates at least one security assessment data corresponding to each target topic based on at least one target topic and reference data corresponding to each target topic, wherein the reference data corresponding to each topic is the latest data and specific data corresponding to the topic, thereby allowing the big model to inject new concreteness and the latest timeliness knowledge during the retrieval process, and avoid the problems of emptiness and obsolescence of the generated security assessment data through the retrieval-enhanced generation method.

[0062] Step 104: Expand the first security assessment data set to obtain a target security assessment data set.

[0063] In the embodiment of the present disclosure, after the first security assessment data set is obtained through the above steps, the first security assessment data set may be expanded to obtain a target security assessment data set.

[0064] Specifically, in the embodiment of the present disclosure, the method for expanding the first security assessment data set to obtain the target security assessment data set may include: expanding the content of the security assessment data in the first security assessment data set to obtain the second security assessment data set, and expanding the text structure of the security assessment data in the second security assessment data set to obtain the target security assessment data set. This part of the content will be described in detail in the subsequent embodiments.

[0065] In the disclosed embodiment, after obtaining the target security assessment data set through the above steps, the security assessment data in the target security assessment data set can be used to perform a security test on the large model to determine whether the large model has a security alignment defect area. Specifically, in the disclosed embodiment, the security test data is input into the large model. If the large model outputs a corresponding negative answer, it means that the large model fails to recognize the security assessment data, and the large model fails the security test; if the large model outputs a positive-oriented answer or does not answer, it means that the large model can recognize the security assessment data, and the large model passes the security test. Based on this, the security assessment data that the large model fails to recognize can be determined as the security alignment defect area of ​​the large model.

[0066] In the present disclosure, Figure 2 Schematic diagram of a security test of a large model using security assessment data proposed in an embodiment of the present disclosure. Figure 2 As shown, through the above-mentioned evaluation data generation method, a multi-dimensional security evaluation data search can be performed on the target topic in the text semantic space to obtain the security evaluation data corresponding to the target topic, and the security evaluation data of the target topic can be used to perform security tests on the large model in turn to determine the diversity-generated risk-free text and the diversity-generated risky text, and the text area corresponding to the risky text is determined as the security alignment defect area of ​​the large model.

[0067] The method for generating evaluation data in the disclosed embodiment can quickly and efficiently construct a multi-topic and multi-dimensional security evaluation data set, reduce the need for manual intervention, shorten the time for preparing security evaluation data, thereby reducing costs, improving efficiency, solving data emptiness and long-tail problems, and enhancing the practicality and coverage of security evaluation data, thereby helping to discover subject areas where large models lack security alignment, thereby improving the security of large models.

[0068] Figure 3 is a schematic diagram according to a second embodiment of the present disclosure.

[0069] like Figure 3 As shown, the method for generating the evaluation data may include:

[0070] Step 301: Obtain at least one target subject for which security assessment data needs to be generated.

[0071] Step 302: Determine reference data corresponding to at least one target topic.

[0072] Step 303: Generate a first security assessment data set based on at least one target subject and reference data.

[0073] For the specific implementation of steps 301 to 303, please refer to the relevant description of the embodiment of the present disclosure, which will not be repeated here.

[0074] Step 304: Expand the content of the security assessment data in the first security assessment data set to obtain a second security assessment data set.

[0075] In the embodiment of the present disclosure, after the first security assessment data set is obtained through the above steps, the security assessment data in the first security assessment data set can be expanded to obtain a second security assessment data set, so that the security assessment data in the second security assessment data set is richer.

[0076] Specifically, in an embodiment of the present disclosure, the above-mentioned method for content expansion of the security assessment data in the first security assessment data set may include: performing appositive expansion on the security assessment data in the first security assessment data set; and / or, performing hyponym and hyponym expansion on the security assessment data in the first security assessment data set; and / or, performing mask mechanism expansion on the security assessment data in the first security assessment data set.

[0077] In the disclosed embodiment, the nouns in the security assessment data in the first security assessment data set can be replaced with nouns of the same category in the dictionary to perform appositive expansion on the security assessment data in the first security assessment data set. For example, assuming that the security assessment data contains "female", which belongs to the gender type, the "female" in the security assessment data can be replaced with "male".

[0078] In the embodiment of the present disclosure, the words in the security assessment data can be replaced with their hypernyms or hyponyms to expand the security assessment data in the first security assessment data set. For example, assuming that the security assessment data contains "gender", the "gender" in the security assessment data can be replaced with its hyponyms "female" or "male".

[0079] In the embodiment of the present disclosure, a mask mechanism can be used to generate and replace nouns in the security assessment data, and new content elements can be introduced into the security assessment data to perform a mask mechanism expansion on the security assessment data in the first security assessment data set. The mask mechanism is the same as that in the prior art, and the details of the prior art can be referred to, and the embodiment of the present disclosure will not be repeated here.

[0080] In the embodiment of the present disclosure, after the security assessment data in the first security assessment data set is expanded in content, the security assessment data obtained by the expansion and the security assessment data in the first security assessment data set may be determined as the second security assessment data set.

[0081] Step 305: Perform text structure expansion on the security assessment data in the second security assessment data set to obtain a target security assessment data set.

[0082] In the disclosed embodiment, after the second security assessment data set is obtained through the above steps, the security assessment data in the second security assessment data set may be expanded in text structure to obtain a target security assessment data set, so that the form of the security assessment data in the target security assessment data set is richer.

[0083] In an embodiment of the present disclosure, a method for performing text structure expansion on the security assessment data in the second security assessment data set to obtain a target security assessment data set may include: performing sentence expansion on the security assessment data in the second security assessment data set; and / or performing restatement expansion on the security assessment data in the second security assessment data set; and / or performing language expansion on the security assessment data in the second security assessment data set; and / or performing classical Chinese and / or dialect expansion on the security assessment data in the second security assessment data set.

[0084] In the embodiment of the present disclosure, the sentence structure of the security assessment data in the second security assessment data set can be changed to expand the sentence structure of the security assessment data in the second security assessment data set. For example, assuming that the security assessment data is a declarative sentence, the security assessment data is changed into a question sentence to generate a different sentence structure.

[0085] In the disclosed embodiment, the text content of the security assessment data in the second security assessment data set can be re-described so that it is presented in different vocabulary and manner while maintaining the original meaning, thereby generating a new text version to perform sentence expansion on the security assessment data in the second security assessment data set.

[0086] In the embodiment of the present disclosure, the security assessment data in the second security assessment data set can be translated into other languages ​​to generate multilingual versions of the security assessment data, so as to expand the language of the security assessment data in the second security assessment data set, so that the target security assessment data set can adapt to the requirements of different language environments.

[0087] In an embodiment of the present disclosure, the modern Chinese text of the security assessment data in the second security assessment data set can be converted into classical Chinese or a specific dialect to expand the security assessment data in the second security assessment data set into classical Chinese and / or dialect, thereby increasing the cultural and regional diversity of the target security assessment data set.

[0088] In the disclosed embodiment, after the text structure of the security assessment data in the second security assessment data set is expanded, the security assessment data obtained by the expansion and the security assessment data in the second security assessment data set can be determined as the target security assessment data set.

[0089] In the disclosed embodiment, a target security assessment data set is obtained by performing content expansion and text structure expansion on the security assessment data in the first security assessment data set, thereby improving the diversity of the security assessment data and enhancing the practicality and coverage of the security assessment data, thereby facilitating the discovery of subject areas where the security alignment of the large model is insufficient, thereby improving the security of the large model.

[0090] Figure 4 is a schematic diagram according to a third embodiment of the present disclosure.

[0091] like Figure 4 As shown, the method for generating the evaluation data may include:

[0092] Step 401: Obtain at least one target subject for which security assessment data needs to be generated.

[0093] Step 402: Determine reference data corresponding to at least one target topic.

[0094] Step 403: Generate a first security assessment data set based on at least one target subject and reference data.

[0095] Step 404: Expand the content of the security assessment data in the first security assessment data set to obtain a second security assessment data set.

[0096] Step 405: Perform text structure expansion on the security assessment data in the second security assessment data set to obtain a target security assessment data set.

[0097] Among them, regarding the specific implementation method of steps 401 to 405, please refer to the relevant description of the embodiment of the present disclosure, and will not be repeated here.

[0098] Step 406: Perform diversity judgment on the security assessment data in the target security assessment data set, and store the security assessment data in the target security assessment data set based on the obtained diversity judgment result.

[0099] In the disclosed embodiment, after obtaining the target security assessment data set through the above steps, the security assessment data in the target security assessment data set can be judged for diversity, and based on the obtained diversity judgment result, the security assessment data in the target security assessment data set can be stored to avoid repeated storage of existing security assessment data.

[0100] In the disclosed embodiment, the diversity of the security assessment data in the target security assessment data set can be judged by calculating the ROUGE-L score of any security assessment data in the target security assessment data set and the existing security assessment data in the security assessment database.

[0101] Specifically, in the embodiment of the present disclosure, if the ROUGE-L score is greater than a threshold, the security assessment data is not stored; if the ROUGE-L score is less than or equal to the threshold, the security assessment data is stored in the security assessment database.

[0102] In this embodiment, the security assessment data in the target security assessment data set may be subjected to diversity judgment, and based on the obtained diversity judgment result, the security assessment data in the target security assessment data set may be stored to avoid repeated storage of existing security assessment data.

[0103] Based on the above content, the method for generating the evaluation data in the embodiment is illustrated by way of example.

[0104] Figure 5 is a schematic diagram according to a fourth embodiment of the present disclosure.

[0105] Figure 5 It is a flow chart of the method for generating evaluation data in the embodiment of the present disclosure, and the flow includes: obtaining at least one target topic through a security evaluation database; obtaining reference data of each target topic through an external knowledge base; inputting at least one target topic and the reference data corresponding to each target topic into a large model to obtain a first security evaluation data set consisting of at least one security evaluation data corresponding to each topic (target topic 1 and corresponding security evaluation data; target topic 2 and corresponding security evaluation data); performing content diversity expansion (i.e., the above-mentioned content expansion) on the first security evaluation data set to obtain a second security evaluation data set; performing structural diversity expansion (i.e., the above-mentioned text structure expansion) on the second security evaluation data set to obtain a target security evaluation data set; performing diversity verification on the target security evaluation data set, and storing the security evaluation data in the target security evaluation data set in the security evaluation database based on the diversity verification result.

[0106] Figure 6 is a schematic diagram according to a fifth embodiment of the present disclosure.

[0107] like Figure 6 As shown, the evaluation data generation device 600 may include: an acquisition module 601, a determination module 602, a generation module 603, and an expansion module 604, wherein:

[0108] An acquisition module 601 is used to acquire at least one target subject for which security assessment data needs to be generated;

[0109] A determination module 602 is used to determine reference data corresponding to at least one target topic;

[0110] A generating module 603, configured to generate a first security assessment data set based on at least one target subject and reference data;

[0111] The expansion module 604 is used to expand the first security assessment data set to obtain a target security assessment data set.

[0112] It should be noted that the above explanation of the embodiment of the method for generating evaluation data is also applicable to this embodiment, and will not be elaborated in detail in this embodiment.

[0113] The device for generating assessment data of the disclosed embodiment can quickly and efficiently construct a multi-topic and multi-dimensional security assessment data set, reduce the need for manual intervention, shorten the time for preparing security assessment data, thereby reducing costs, improving efficiency, solving data emptiness and long-tail problems, and enhancing the practicality and coverage of security assessment data, thereby facilitating the discovery of subject areas where large models lack security alignment, thereby improving the security of large models.

[0114] In one embodiment of the present disclosure, the acquisition module 601 is specifically used to:

[0115] Based on the big model, obtaining at least one target subject for which security assessment data needs to be generated; and / or

[0116] At least one target subject for which security assessment data needs to be generated is obtained through a security assessment database.

[0117] In one embodiment of the present disclosure, the determination module 602 is specifically configured to:

[0118] Parameter data corresponding to the at least one target topic is determined through an external knowledge base.

[0119] In one embodiment of the present disclosure, the generating module 603 is specifically used to:

[0120] Based on at least one target topic and parameter data, generating at least one security assessment data corresponding to the at least one target topic through a large model;

[0121] Based on the at least one security assessment data, a first security assessment data set is generated.

[0122] In one embodiment of the present disclosure, the expansion module 604 is specifically used to:

[0123] Expanding the content of the security assessment data in the first security assessment data set to obtain a second security assessment data set;

[0124] The text structure of the security assessment data in the second security assessment data set is expanded to obtain a target security assessment data set.

[0125] In one embodiment of the present disclosure, the expansion module 604 is further used to:

[0126] Performing appositive expansion on the safety assessment data in the first safety assessment data set; and / or

[0127] Performing hyponym expansion on the safety assessment data in the first safety assessment data set; and / or

[0128] The mask mechanism is extended for the security assessment data in the first security assessment data set.

[0129] In one embodiment of the present disclosure, the expansion module 604 is further used to:

[0130] Performing sentence expansion on the security assessment data in the second security assessment data set; and / or

[0131] restate and expand the safety assessment data in the second safety assessment data set; and / or

[0132] Performing language expansion on the security assessment data in the second security assessment data set; and / or

[0133] The security assessment data in the second security assessment data set is expanded in classical Chinese and / or dialect.

[0134] In one embodiment of the present disclosure, the above device is also used for:

[0135] A diversity judgment is performed on the security assessment data in the target security assessment data set, and based on the obtained diversity judgment result, the security assessment data in the target security assessment data set is stored.

[0136] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0137] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0138] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0139] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0140] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the generation method of the evaluation data. For example, in some embodiments, the generation method of the evaluation data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the generation method of the evaluation data by any other appropriate means (e.g., by means of firmware).

[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0142] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0143] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0144] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0145] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0146] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0148] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating evaluation data, the method comprising: Obtain at least one target subject for which security assessment data needs to be generated; Determining reference data corresponding to the at least one target subject; generating a first security assessment data set based on the at least one target subject and the reference data; The first security assessment data set is expanded to obtain a target security assessment data set.

2. The method of claim 1, wherein: The obtaining of at least one target subject for which security assessment data needs to be generated includes: Based on the big model, obtaining at least one target subject for which security assessment data needs to be generated; and / or At least one target subject for which security assessment data needs to be generated is obtained through a security assessment database.

3. The method of claim 1, wherein: The determining of reference data corresponding to the at least one target theme includes: determining parameter data corresponding to the at least one target theme through an external knowledge base.

4. The method of claim 1, wherein: The generating a first security assessment data set based on the at least one target subject and the reference data comprises: Based on the at least one target topic and the parameter data, generating at least one security assessment data corresponding to the at least one target topic through a large model; Based on the at least one safety assessment data, a first safety assessment data set is generated.

5. The method of claim 1, wherein: The step of expanding the first security assessment data set to obtain a target security assessment data set includes: Expanding the content of the security assessment data in the first security assessment data set to obtain a second security assessment data set; The security assessment data in the second security assessment data set is subjected to text structure expansion to obtain a target security assessment data set.

6. The method of claim 5, wherein: The step of expanding the content of the security assessment data in the first security assessment data set includes: Performing appositive expansion on the safety assessment data in the first safety assessment data set; and / or Performing hyponym and hyponym expansion on the security assessment data in the first security assessment data set; and / or A mask mechanism is performed on the security assessment data in the first security assessment data set.

7. The method of claim 5, wherein: The step of performing text structure expansion on the security assessment data in the second security assessment data set includes: Performing sentence expansion on the security assessment data in the second security assessment data set; and / or restate and expand the safety assessment data in the second safety assessment data set; and / or Performing language expansion on the security assessment data in the second security assessment data set; and / or The security assessment data in the second security assessment data set is expanded in classical Chinese and / or dialect.

8. The method of claim 1, wherein: The method further comprises: A diversity judgment is performed on the security assessment data in the target security assessment data set, and based on the obtained diversity judgment result, the security assessment data in the target security assessment data set is stored.

9. A device for generating evaluation data, the device comprising: An acquisition module, used to acquire at least one target subject for which security assessment data needs to be generated; A determination module, configured to determine reference data corresponding to the at least one target subject; A generating module, configured to generate a first security assessment data set based on the at least one target subject and the reference data; An expansion module is used to expand the first security assessment data set to obtain a target security assessment data set.

10. The device of claim 9, wherein: The acquisition module is specifically used for: Based on the big model, obtaining at least one target subject for which security assessment data needs to be generated; and / or At least one target subject for which security assessment data needs to be generated is obtained through a security assessment database.

11. The device according to claim 9, wherein the determining module is specifically configured to: Parameter data corresponding to the at least one target topic is determined through an external knowledge base.

12. The device of claim 9, wherein: The generating module is specifically used for: Based on the at least one target topic and the parameter data, generating at least one security assessment data corresponding to the at least one target topic through a large model; Based on the at least one safety assessment data, a first safety assessment data set is generated.

13. The device of claim 9, wherein: The expansion module is specifically used for: Expanding the content of the security assessment data in the first security assessment data set to obtain a second security assessment data set; The security assessment data in the second security assessment data set is subjected to text structure expansion to obtain a target security assessment data set.

14. The device of claim 13, wherein: The extension module is also used for: Performing appositive expansion on the safety assessment data in the first safety assessment data set; and / or Performing hyponym and hyponym expansion on the security assessment data in the first security assessment data set; and / or A mask mechanism is performed on the security assessment data in the first security assessment data set.

15. The device of claim 13, wherein: The extension module is also used for: Performing sentence expansion on the security assessment data in the second security assessment data set; and / or restate and expand the safety assessment data in the second safety assessment data set; and / or Performing language expansion on the security assessment data in the second security assessment data set; and / or The security assessment data in the second security assessment data set is expanded in classical Chinese and / or dialect.

16. The device of claim 9, wherein: The device is also used for: A diversity judgment is performed on the security assessment data in the target security assessment data set, and based on the obtained diversity judgment result, the security assessment data in the target security assessment data set is stored.

17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.

19. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Software vulnerability type identification method based on long-tail incremental learning

    CN119646822A