Content generation method and device, electronic equipment and readable storage medium
By combining artificial intelligence to generate content models and real-time vectors in the vector database, the problem of content lag and personalized needs is solved, real-time updating and personalized customization of content are realized, and the real-time nature of content generation and user experience are improved.
Patent Information
- Application Number
- CN202410409906.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-07
- Publication Date
- 2024-10-18
Smart Images

Figure CN118798134A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computers, and specifically relates to a content generation method, device, electronic device and readable storage medium. Background Art
[0002] With the development of science and technology, users will receive a large amount of promotional content from various channels every day. Correspondingly, content creators, such as those in the advertising industry, need to continue to innovate and provide users with rich content to attract their attention and improve the effectiveness of content promotion. How to solve the problem of creative fatigue has become a hot topic of research. Artificial Intelligence Generate Content (AIGC) model technology is usually used to help break through the creative bottleneck and complete content creation.
[0003] In related technologies, AI-generated content models are trained using training data, and after training, they are put into use in the actual reasoning stage. During the reasoning and use stage of AI-generated content models, there are certain limitations in retraining with new data, which results in the inability to update the content generated by the AI-generated content model in a timely manner, resulting in a certain lag. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and readable storage medium for content generation, which can to a certain extent solve the problem in the related art that the content generated by the artificial intelligence generated content model has a certain lag due to the limitations of the retraining of the artificial intelligence generated content model for new data.
[0005] In a first aspect, an embodiment of the present application provides a content generation method, including:
[0006] Acquire a target text, wherein the target text includes keywords for indicating content generation;
[0007] Inputting the target text into an artificial intelligence generated content model;
[0008] Obtaining target generated content matching the target text by using the artificial intelligence generated content model;
[0009] Wherein, in the process of obtaining the target generated content through the artificial intelligence generated content model, the artificial intelligence generated content model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content;
[0010] The first vector is a vector generated by the artificial intelligence generated content model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the vector database obtains the second vector later than the historical data used to train the artificial intelligence generated content model.
[0011] In a second aspect, an embodiment of the present application provides a content generation device, including:
[0012] An acquisition module, used for acquiring a target text, wherein the target text includes keywords for indicating content generation;
[0013] An input module, used to input the target text into the artificial intelligence generated content model;
[0014] A processing module, used for obtaining target generated content matching the target text through the artificial intelligence generated content model;
[0015] Wherein, in the process of obtaining the target generated content through the artificial intelligence generated content model, the artificial intelligence generated content model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content;
[0016] The first vector is a vector generated by the artificial intelligence generated content model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the vector database obtains the second vector later than the historical data used to train the artificial intelligence generated content model.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0020] In an embodiment of the present application, a target text is obtained, the target text includes keywords for indicating content generation; the target text is input into an artificial intelligence generated content model; the target generated content matching the target text is obtained through the artificial intelligence generated content model; wherein, in the process of obtaining the target generated content through the artificial intelligence generated content model, the artificial intelligence generated content model generates a target result based on a first vector and a second vector, and the target result is used to obtain the target generated content; the first vector is a vector generated by the artificial intelligence generated content model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the time when the vector database obtains the second vector is later than the time when the historical data used to train the artificial intelligence generated content model is obtained. In this way, in the process of obtaining the target generated content based on the target text through the artificial intelligence generated content model, not only can the artificial intelligence generated content model generate a first vector based on the target text, but also can obtain a second vector associated with the target text from the vector database, and obtain the target generated content based on the first vector and the second vector. Since the vector database acquires the second vector later than the historical data used to train the AI-generated content model, the content in the second vector is more real-time than the content in the first vector, which further makes the target generated content obtained by the AI-generated content model based on the first vector and the second vector more real-time. To a certain extent, this solves the problem in the related art that the AI-generated content model has limitations in retraining new data, resulting in a certain lag in the content generated by the AI-generated content model. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of a content generation method provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of a content generation method provided in an embodiment of the present application;
[0023] Figure 3 A conceptual diagram of a content generator provided in an embodiment of the present application;
[0024] Figure 4 A flowchart of a content generation method provided in an embodiment of the present application;
[0025] Figure 5 A conceptual diagram of a content generation method provided in an embodiment of the present application;
[0026] Figure 6 A conceptual diagram of a vector database provided in an embodiment of the present application;
[0027] Figure 7 A conceptual diagram of an artificial intelligence generated content model provided in an embodiment of the present application;
[0028] Figure 8 A conceptual diagram of an artificial intelligence generated content model provided in an embodiment of the present application;
[0029] Fig. 9 A structural block diagram of a content generation device provided in an embodiment of the present application;
[0030] Fig.10 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0032] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0033] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] As described in the background technology, with the development of science and technology, users will receive a large amount of promotional content from various channels every day. Correspondingly, for content creation practitioners, such as those in the advertising industry, they need to continue to innovate and provide users with rich content to attract users' attention and improve the content promotion effect. How to solve the problem of creative fatigue has become a hot topic of research. Generative artificial intelligence (AI generate content, referred to as AIGC) technology is usually used to help break through the creative bottleneck and complete content creation.
[0035] In related technologies, the AIGC model is trained through training data, and after training, it is put into use in the actual reasoning stage. During the AIGC model reasoning and use stage, there are certain limitations in retraining with new data, which results in the inability to update the content generated by the AIGC model in a timely manner, and there is a certain lag.
[0036] The embodiment of the present application provides a method for content generation, which solves the problem that the content generated by the AIGC model has a certain lag due to the limitation of the retraining of the AIGC model for new data in the related art. Specifically, a target text is obtained, and the target text includes keywords for indicating content generation; the target text is input into the AIGC model; the target generated content matching the target text is obtained by the AIGC model; wherein, in the process of obtaining the target generated content by the AIGC model, the AIGC model generates a target result based on a first vector and a second vector, and the target result is used to obtain the target generated content; the first vector is a vector generated by the AIGC model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the time when the vector database obtains the second vector is later than the time when the historical data used to train the AIGC model is obtained. In this way, in the process of obtaining the target generated content based on the target text by the AIGC model, not only can the first vector be generated by the AIGC model based on the target text, but also the second vector associated with the target text can be obtained from the vector database, and the target generated content can be obtained based on the first vector and the second vector. Since the vector database obtains the second vector later than the historical data used to train the AIGC model, that is to say, the content in the second vector is more real-time than the content in the first vector, the target generated content obtained by the AIGC model based on the first vector and the second vector is also more real-time.
[0037] At the same time, in an embodiment of the present application, in the process of the AIGC model obtaining the target generated content, a second vector can be obtained from the vector database, and the AIGC model can obtain the target generated content based on the second vector. In other words, the target generated content can be updated in a timely manner by adjusting the content in the vector database, and the personalized needs of users can also be met. Compared with the method of retraining the AIGC model with new data in the related art, the embodiment of the present application can achieve the update of the target generated content and meet the personalized needs of users at a low cost.
[0038] In the embodiment of the present application, according to the text vector corresponding to the target text, if the second vector associated with the text vector can be found in the vector database, the third vector in the first vector generated by the content generator based on the text vector can be replaced by the second vector, and the features generated by the content generator can be replaced by the features in the vector database, thereby realizing the update of the content features, further making the target generated content more real-time and reducing lag. At the same time, the target generated content can be changed by adjusting the second vector in the vector database to meet the user's personalized customization needs.
[0039] In related technologies, content for target users is usually generated around the AIGC model, focusing mainly on the fragment of advertisement generation rather than the whole process from user demand to final output. It lacks an end-to-end design concept and is not user-friendly to target users. It is easy to cause information loss and inconsistency in each link of content generation, reducing the overall efficiency and generation effect of the generation model, and affecting the user's usage efficiency.
[0040] However, in an embodiment of the present application, the target information of the target user is obtained, and the target text is obtained based on the target information of the target user. The target generated content is generated by the AIGC model in combination with the multimodal vector database, and the target generated content can be modified by the target user based on the multimedia information to obtain the target content to be delivered. Finally, the effect of the target content to be delivered is predicted based on the prediction of the machine learning model that can realize content prediction. If the prediction result meets the expectation, the target content to be delivered is output. The closed loop from user demand to final output is completed, and the use efficiency of the target user is improved. To a certain extent, it solves the problem of information loss and inconsistency caused by non-end-to-end design in related technologies.
[0041] In the content generation method provided in the embodiment of the present application, the generated content is advertising content. The content generation method can be applied to the advertising creation industry, and the generation process can be further dynamically adjusted by dynamically adjusting the content of the vector database. The content generation method provided in the embodiment of the present application can be combined with the latest vector database and generation model to achieve quasi-real-time advertising generation and improve the applicability of the AIGC model.
[0042] It should be understood that a method for content generation provided in an embodiment of the present application can be executed by a target device. The target device can be one electronic device or multiple electronic devices working together to execute the method. The electronic device can be, for example, a server, such as an independent physical server, a server cluster composed of multiple servers, and a cloud server capable of cloud computing. For example, the target device can be all devices in a distributed system or some devices in a distributed system.
[0043] The method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0044] Figure 1 A flow chart of a content generation method provided in an embodiment of the present application. Figure 1 As shown, the content generation method provided in the embodiment of the present application includes the following steps:
[0045] Step 110: Acquire a target text, where the target text includes keywords for indicating content generation.
[0046] In an embodiment of the present application, the target text may include a user's text description of information related to the time, scene, characters, plot, etc. of the generated content. For example, the target text may be "People camping on the lawn under the blue sky and white clouds". The target text may also include the user's format information for the generated content, such as video and audio format information. For example, the target text may be "Generate a video of people camping on the lawn under the blue sky and white clouds". Accordingly, the target text includes keywords for indicating content generation. The keywords may include keywords for information such as the time, scene, characters, etc. of the generated content, and may also include keywords for format information of the generated content. For example, the target text may be "blue sky and white clouds, people, lawn, video".
[0047] In the embodiment of the present application, the target device can directly obtain the target text including the keywords indicating content generation by accessing an external device (such as a keyboard), and the target device can also obtain the text description of the generated content by the user, obtain the keywords by using the term frequency-inverse document frequency algorithm (TF-IDF), and thus obtain the target text. The embodiment of the present application does not specifically limit this.
[0048] After the target device obtains the target text, step 120 can be executed to process it through a generative artificial intelligence (AI generate content, referred to as AIGC) model.
[0049] Step 120: input the target text into the AIGC model.
[0050] In the embodiment of the present application, the AIGC model is a generative artificial intelligence (AI generated content, referred to as AIGC) model, which can generate various types of content, such as text information or video information, through artificial intelligence technology. After the target text is input into the AIGC model, the AIGC model can be used to generate content processing.
[0051] Step 130, obtaining target generated content matching the target text through the AIGC model; wherein, in the process of obtaining the target generated content through the AIGC model, the AIGC model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content;
[0052] The first vector is a vector generated by the AIGC model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the vector database obtains the second vector later than the historical data used to train the AIGC model.
[0053] In the embodiment of the present application, the AIGC model can generate target generated content that matches the target text based on the target text. For example, the target text can be "blue sky and white clouds, people, lawn, video", and the AIGC model can generate target generated content, which can be a video of "people camping on the lawn under the blue sky and white clouds".
[0054] In an embodiment of the present application, in the process of obtaining the target generated content through the AIGC model, the AIGC model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content.
[0055] The first vector is a vector generated by the AIGC model based on the target text. In the process of the AIGC model generating the first vector based on the target text, the AIGC model is a trained AIGC model, so the trained AIGC model includes the features of the historical data used for training. Correspondingly, the first vector also includes the features of the historical data used for training the AIGC model. The historical data can be the complete content input when training the AIGC model. The historical data is used as training data in the AIGC model training process to provide content features to the untrained AIGC model, as well as information such as the correlation between the content description and the content body, so that the untrained AIGC model can be better trained and generate more accurate content. For example, the historical data can be classic marketing advertising words within a certain period of time. The historical data can include one type of information, for example, the historical data can include text information; the historical data can also include multiple types of information, for example, the historical data can also include audio information, image information, and video information.
[0056] In an embodiment of the present application, the second vector is a vector associated with the target text obtained from a vector database. The vector database may include a vector of one type of information, for example, the vector database may include a text vector corresponding to text information; the vector database may also include multiple types of information, for example, the vector database may also include an audio vector corresponding to audio information, an image vector corresponding to image information, and a video vector corresponding to video information. The vectors in the vector database may come from the Internet, and the target device directly obtains the second vector including the content information from the Internet. The vectors in the vector database may also be obtained by the target device after obtaining the content information from the Internet, and then vectorizing various types of information, and the result after the vectorization may include the features of the content information. For example, the text information is converted into a text vector representation by natural language processing (NLP) technology. The text information can be mapped to a word vector or sentence vector of a fixed dimension through words pre-trained by an embedding model (such as Word2Vec, GloVe, BERT, etc.). These vectors can be directly stored in a vector database.
[0057] In the vector database, not only multiple vectors may be included, each vector corresponding to a complete content, but each vector may also include an unlimited number of guide word text vectors as indexes. In the process of obtaining the second vector associated with the target text from the vector database, the correlation between the vector corresponding to the target text and the guide word text vector included in the vector database may be calculated by a vector correlation algorithm. If the correlation between the vector corresponding to the target text and the guide word text vector included in the vector database is greater than a first threshold, it is considered that the content vector corresponding to the guide word text vector (e.g., a text vector stored in the vector database) is associated with the target text, and the content vector is further used as the second vector. Accordingly, the second vector includes the content features obtained by the vector database.
[0058] In an embodiment of the present application, if the target device where the AIGC model is located and the target device where the vector database is located are the same target device, the AIGC model can obtain the second vector from inside the target device; if the target device where the AIGC model is located and the target device where the vector database is located are not the same target device, the target device where the AIGC model is located can obtain the second vector from the target device where the vector database is located through communication technology (such as wired communication technology, optical fiber, etc.; it can also include wireless communication technology, such as Bluetooth technology).
[0059] In an embodiment of the present application, the AIGC model can obtain a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content. In the process of obtaining the target result based on the first vector and the second vector, both the first vector and the second vector are associated with the target text, and the content of the first vector and / or the second vector can be selected and processed. The target result may include all first vectors and all second vectors, part of the first vector and all second vectors, or part of the first vector and part of the second vector. The embodiment of the present application does not impose specific restrictions on this. After obtaining the target result, the AIGC model can obtain the target generated content based on the target result.
[0060] In an embodiment of the present application, the first vector includes features of historical data used to train the AIGC model, and the second vector includes content features obtained from the vector database. Since the vector database obtains the second vector later than the historical data used to train the AIGC model, it is equivalent to that the content features in the second vector are more real-time than the content features in the first vector. At the same time, in an embodiment of the present application, in the process of the AIGC model obtaining the target generated content, the second vector can be obtained from the vector database, and the AIGC model can obtain the target generated content based on the second vector. In other words, by adjusting the content in the vector database, the target generated content can be updated in time and can also meet the personalized needs of users. Compared with the method of retraining the AIGC model with new data in the related art, the embodiment of the present application can achieve the update of the target generated content and meet the personalized needs of users at a low cost.
[0061] In an embodiment of the present application, a target text is obtained, the target text includes keywords for indicating content generation; the target text is input into an AIGC model; and a target generated content matching the target text is obtained through the AIGC model; wherein, in the process of obtaining the target generated content through the AIGC model, the AIGC model generates a target result based on a first vector and a second vector, and the target result is used to obtain the target generated content; the first vector is a vector generated by the AIGC model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the time when the vector database obtains the second vector is later than the time when the historical data used to train the AIGC model is obtained. In this way, in the process of obtaining the target generated content based on the target text through the AIGC model, not only can the AIGC model generate the first vector based on the target text, but also the second vector associated with the target text can be obtained from the vector database, and the target generated content is obtained based on the first vector and the second vector. Since the time when the vector database obtains the second vector is later than the time when the historical data used to train the AIGC model is obtained, that is, the content in the second vector is more real-time than the content of the first vector, and further makes the target generated content obtained by the AIGC model based on the first vector and the second vector more real-time. To a certain extent, it solves the problem in related technologies that the content generated by the AIGC model has a certain lag due to the limitations of the AIGC model in retraining new data.
[0062] Figure 2 A flow chart of a content generation method provided in an embodiment of the present application. Figure 2 As shown, the content generation method provided in the embodiment of the present application includes the following steps:
[0063] Step 210: Acquire a target text, where the target text includes keywords for indicating content generation.
[0064] Step 220, input the target text into the AIGC model, and the AIGC model includes a text encoder, a content generator, and a decoder.
[0065] In an embodiment of the present application, the text encoder may be used in step 230 to process the target text into a corresponding text vector. The content generator may be used in step 240 to obtain a first vector based on the text vector corresponding to the target text. The decoder may be used in step 270 to decode the received vector information into corresponding content, such as images, videos, and the like.
[0066] In step 230, the text encoder of the AIGC model encodes the input target text to obtain a text vector of the target text.
[0067] In an embodiment of the present application, the text vector of the target text corresponds to the text information of the target text, the target text includes keywords for indicating content generation, and the number of text vectors of the target text also corresponds to the number of keywords. The text encoder can vectorize the target text, for example, the target text can be converted into a vector representation by natural language processing (NLP) technology. The target text can be mapped to a corresponding word vector by embedding a word pre-trained by a model (such as Word2Vec, GloVe, BERT, etc.). For example, when the target text is "blue sky and white clouds, people, lawn, video", the text vector may include a text vector corresponding to "blue sky and white clouds", a text vector corresponding to "people", a text vector corresponding to "lawn", and a text vector corresponding to "video".
[0068] After the text vector of the target text is obtained through the text encoder, a first vector can be obtained based on the text vector of the target text through the content generator of the AIGC model.
[0069] Step 240: Input the text vector into the content generator of the AIGC model to obtain a content vector associated with the generated content, and use the content vector as the first vector.
[0070] In an embodiment of the present application, the content generator can generate a content vector associated with the text vector based on the text vector of the target text. The content vector can be a text vector or other types of content vectors, such as a video vector or an audio vector. For example, when the text vector includes a text vector corresponding to "blue sky and white clouds", a text vector corresponding to "people", a text vector corresponding to "lawn", and a text vector corresponding to "video", the content vector can be a video vector generated by the content generator according to the text vector corresponding to "blue sky and white clouds", a video vector generated by the content generator according to the text vector corresponding to "people", and a video vector generated by the content generator according to the text vector corresponding to "lawn". Correspondingly, the first vector can also be a video vector corresponding to "blue sky and white clouds", a video vector corresponding to "people", and a video vector corresponding to "lawn".
[0071] Figure 3 A conceptual diagram of a content generator provided in an embodiment of the present application, such as Figure 3As shown, the content generator provided in the embodiment of the present application may include multiple machine learning models. In the process of obtaining the first vector through the content generator, the information of the content type included in the text vector may be first determined. For example, when the text vector includes a text vector corresponding to "blue sky and white clouds", a text vector corresponding to "people", a text vector corresponding to "lawn", and a text vector corresponding to "video", the content type may be a "video" class. Further, based on the large language model, the text vector is processed into a scene shot description, etc., and then further processed by the video generation model, and finally a video vector corresponding to "blue sky and white clouds", a video vector corresponding to "people", and a video vector corresponding to "lawn" are obtained.
[0072] After obtaining the first vector, a second vector may also be obtained from a vector database so that the AIGC model can obtain target generated content based on the first vector and the second vector.
[0073] Step 250: Use the text vector as an index to search a vector database for a second vector that matches the content type and is associated with the generated content.
[0074] In an embodiment of the present application, the text vector can be used as an index to query a second vector that matches the content type and is associated with the generated content in a vector database. In the vector database, not only vectors of various content types (such as text, video, audio, and image) can be included, but each vector can also include at least one guide word text vector, and the guide word text vector in the vector database can describe the content of each vector.
[0075] In an embodiment of the present application, the search range can be determined based on the vector related to the content type in the text vector. For example, if the text vector includes a text vector corresponding to "video", it can be determined to search in the video vector in the vector database first. Further, based on the text vector related to the generated content in the text vector, such as the text vector corresponding to "blue sky and white clouds", the text vector corresponding to "people", and the text vector corresponding to "lawn", the correlation between the text vector and the guide word text vector included in the vector database can be calculated through a vector correlation algorithm. If the correlation between the text vector and the guide word text vector included in the vector database is greater than the first threshold, it is considered that the video corresponding to the guide word text vector is associated with the target text, and the video vector is further used as the second vector.
[0076] In the embodiment of the present application, both the first vector and the second vector are associated with the target text, and the content of the first vector and / or the second vector can be selectively processed. For example, if the second vector is found in the vector database, step 230 can be executed; if the second vector is not found in the vector database, the first vector can be used as the target result, and the AIGC model can obtain the target generated content through the target result.
[0077] Step 260: When a second vector is found in the vector database, the third vector in the first vector is replaced by the second vector to obtain a target vector; the target result includes the target vector.
[0078] In an embodiment of the present application, the third vector may be at least part of the first vector. Specifically, for example, the third vector may be a first vector generated based on a text vector that can query the second vector in a vector database. For example, the text vector may be a text vector corresponding to "blue sky and white clouds", a text vector corresponding to "people", a text vector corresponding to "lawn", and a text vector corresponding to "video". The first vector may include a video vector generated by a content generator based on a text vector corresponding to "blue sky and white clouds", a video vector generated by a content generator based on a text vector corresponding to "people", and a video vector generated by a content generator based on a text vector corresponding to "lawn".
[0079] The second vector may include a video vector queried in a vector database according to a text vector corresponding to "blue sky and white clouds", and accordingly, the third vector may include a video vector generated by a content generator according to a text vector corresponding to "blue sky and white clouds". By replacing the third vector in the first vector with the second vector, the "blue sky and white clouds" feature generated by the content generator may be replaced with the "blue sky and white clouds" feature in the vector database. After replacing the third vector in the first vector with the second vector, the first and second vectors that have not been replaced may be used as target vectors, and target generated content may be obtained based on the target vector.
[0080] Step 270: input the target vector into the decoder of the AIGC model to obtain target generated content that conforms to the content type.
[0081] In an embodiment of the present application, after obtaining the target vector, the target vector can be input into a decoder, and the decoder is processed to obtain the corresponding target generated content. For example, the target vector can be a video vector (second vector) queried in a vector database according to the text vector corresponding to "blue sky and white clouds", a video vector (first vector) generated by a content generator according to the text vector corresponding to "people", and a video vector (first vector) generated by a content generator according to the text vector corresponding to "lawn". After processing and restoring the content through a decoder, a video of "people on the lawn under the blue sky and white clouds" can be obtained, and the video is used as the target generated content.
[0082] In the embodiment of the present application, according to the text vector corresponding to the target text, if the second vector associated with the text vector can be found in the vector database, the third vector in the first vector generated by the content generator based on the text vector can be replaced by the second vector, and the features generated by the content generator can be replaced by the features in the vector database, thereby realizing the update of the content features, further making the target generated content more real-time and reducing lag. At the same time, the target generated content can be changed by adjusting the second vector in the vector database to meet the user's personalized customization needs.
[0083] In the content generation method provided in the embodiment of the present application, the second vector and the third vector have the same keyword feature. The keyword feature may be a feature of a text vector corresponding to the second vector that can be queried in a vector database. For example, in the example of step 260, the second vector includes a video vector queried in a vector database based on a text vector corresponding to "blue sky and white clouds", and the third vector may include a video vector generated by a content generator based on a text vector corresponding to "blue sky and white clouds". Accordingly, the keyword feature may be a feature corresponding to "blue sky and white clouds". The third vector is replaced with the second vector by the keyword feature, and the keyword feature generated by the content generator may be further replaced with the keyword feature in the vector database, so that the keyword has the feature of instant update, further making the target generated content more real-time.
[0084] In the content generation method provided in the embodiment of the present application, the generated content is advertising content. The content generation method can be applied to the advertising creation industry, and the generation process can be further dynamically adjusted by dynamically adjusting the content of the vector database. The content generation method provided in the embodiment of the present application can be combined with the latest vector database and generation model to achieve quasi-real-time advertising generation and improve the applicability of the AIGC model.
[0085] In the content generation method provided in the embodiment of the present application, the vector database is a database including multimodal vectors, and the multimodal vectors include at least two of text vectors, image vectors, audio vectors and video vectors. The multimodal vector database can be connected to the Internet, and the vectors in the multimodal vector database are updated in real time through the Internet. In the multimodal vector database, each modality of data has a corresponding vectorization processing method, specifically:
[0086] Text data: Text data can be converted into vector representations through natural language processing (NLP) technology. A common method is to use pre-trained word embedding models (such as Word2Vec, GloVe, BERT, etc.) to map text data into fixed-dimensional word vectors or sentence vectors. These vectors can be directly stored in vector databases.
[0087] Speech data: Speech data usually needs to be processed by audio processing technology for feature extraction, such as using Mel Spectrogram. The extracted audio features can be converted into vector form and stored in a vector database. In deep learning, convolutional neural networks (CNN) or recurrent neural networks (RNN) can also be used for speech feature learning.
[0088] Image data: Image data can be extracted through deep learning models such as convolutional neural networks (CNN) to obtain vector representations of images. These vectors are usually called image embeddings or feature vectors and can be directly stored in vector databases.
[0089] Video data: Video data usually consists of a series of image frames. The way to process video data can be similar to processing images. 3D convolutional neural network (3D CNN) can be used to model the spatiotemporal information to obtain the vector representation of the video. Another method is to extract features from the key frames in the video and then fuse these features to obtain the overall vector representation of the video.
[0090] In an embodiment of the present application, the vector database may be a multimodal vector database, which may include multimodal vector data corresponding to multiple content types. By processing various types of data in different vectorization processing methods, a multimodal vector database including multiple modes is obtained, so that the AIGC model can be combined with the vector database to obtain multiple types of target generated content to meet user needs to the greatest extent.
[0091] In the content generation method provided in an embodiment of the present application, the target text includes N keywords, the text vector includes N word vectors corresponding one-to-one to the N keywords, and the N word vectors are composed of 1 first indicator vector and (N-1) second indicator vectors; the number of the content vectors is N-1; the number of the second vectors is less than or equal to (N-1), and N is a positive integer greater than 1.
[0092] In an embodiment of the present application, the target text may include N keywords for indicating content generation, and the keywords may represent the user's description of the generated content. The first indicator vector may be used to indicate the content type of the generated content, and the second indicator vector may be used to indicate the description of the content generation. For example, when N is 4, the target text may be "blue sky and white clouds, people, lawn, video", and further the text vector may include the word vector corresponding to "blue sky and white clouds", the word vector corresponding to "people", the word vector corresponding to "lawn", and the word vector corresponding to "video". The first indicator vector may be the word vector corresponding to "video", and the second indicator vector may be the word vector corresponding to "blue sky and white clouds", the word vector corresponding to "people", and the word vector corresponding to "lawn".
[0093] In step 240 provided in the embodiment of the present application, the text vector is input into the content generator of the AIGC model to obtain a content vector associated with the generated content, and the content vector is used as the first vector, and the number of the content vectors is N-1. In the process of generating content vectors by the AIGC model, N-1 content vectors that conform to the content type indicated by the first indicator vector and are associated with the generated content indicated by the second indicator vector can be generated based on the content type indicated by the first indicator vector.
[0094] In step 250 provided in the embodiment of the present application, the second vectors that conform to the content type and are associated with the generated content are queried in the vector database using the text vector as an index, and the number of the second vectors is less than or equal to (N-1). In the process of querying the second vectors that conform to the content type and are associated with the generated content in the vector database using the text vector as an index, the second vectors that conform to the content type indicated by the first indication vector and are associated with the generated content indicated by the second indication vector can be queried based on the content type indicated by the first indication vector, and are less than or equal to (N-1) second vectors. For example, the search range in the vector database can be determined based on the content type indicated by the first indication vector, such as a video vector. Then, based on the second indication vector, the second vectors that are less than or equal to (N-1) and associated with the generated content indicated by the second indication vector are queried respectively. The embodiment of the present application does not impose specific restrictions on this.
[0095] Accordingly, in step 250 provided in the embodiment of the present application, a specific implementation method of querying the vector database for a second vector that conforms to the content type and is associated with the generated content using the text vector as an index may be: for the i-th indicator vector among the (N-1) second indicator vectors, query the vector database for a vector that conforms to the content type and is associated with the i-th indicator vector, and use this vector as the second vector; wherein, 1≤i≤(N-1).
[0096] In an embodiment of the present application, in the vector database, not only various types of database content (such as text, video, audio, image) vectors may be included, but each vector may also include at least one guide word text vector, and the guide word text vector in the vector database may describe the content of each vector. Further, the correlation between the second indicator vector and the guide word text vector included in the vector database may be calculated by a vector correlation algorithm. If the correlation between the second indicator vector and the guide word text vector included in the vector database is greater than a first threshold, it is considered that the database content vector corresponding to the guide word text vector is associated with the second indicator vector, and the database content vector is further used as the second vector.
[0097] In an embodiment of the present application, the text vectors corresponding to the N target texts include a first indication vector indicating the content type and (N-1) second indication vectors that can be used to indicate the description of the generated content. Based on the content type indicated by the first indication vector, (N-1) first vectors can be generated by the content generator of the AIGC model, and less than or equal to (N-1) second vectors can be obtained by querying in the vector database. In this way, by classifying the content in the target text, the target generated content can be made more consistent with the indication of the generated content.
[0098] In addition, in an embodiment of the present application, the target text can be generated by obtaining target information selected by the target user for the content to be generated, wherein the target information includes the content type of the content to be generated; and generating the target text based on the target information.
[0099] In an embodiment of the present application, the target user may be any user, for example, the target user may be a practitioner in the content creation industry, such as the advertising industry, and the target user may also be any user who attempts to experience the content generation process. The target information may include any description of the target user for the content to be generated, the target information may include the content type of the content to be generated, and may also include the target user's description of the content body of the content to be generated. In an embodiment of the present application, content style and content templates may also be provided for the target user to choose from, and the content style may be used to describe the style of the content to be generated, such as fashion, abstract and other style descriptions. The content template may be used to limit the content to be generated in certain scenarios, such as selecting the theme color of the content to be generated as blue.
[0100] The target information may include not only the target user's text instructions for the content to be generated, but also the target user's picture instructions, video instructions, and audio instructions for the content to be generated. For example, the target user may choose to upload a reference video for the AIGC model to refer to, or the target user may also choose to upload some pictures with personalized information, indicating that the target generated content obtained by the AIGC model hopes to include the personalized information in the picture. After the target device obtains the target information, it may also perform information verification based on certain rules, such as basic verification of the format and size of the information file. If it does not meet the verification rules, the verification results may also be fed back to the target user.
[0101] If the target information is a non-textual indication (picture indication, video indication, and audio indication) of the target user for the content to be generated, the non-textual indication can be converted into a textual indication through a machine learning model. For example, when the target information includes a picture indication of the target user for the content to be generated, the keywords of the picture indication or the description sentence about the picture can be obtained through a machine learning model of image recognition. The embodiment of the present application does not specifically limit how to convert the non-textual information in the target information into textual information.
[0102] After all target information is converted into text information, keyword recognition can be performed through a keyword recognition algorithm (such as a term frequency-inverse document frequency algorithm (TF-IDF)) to further obtain a target text including N keywords for indicating content generation.
[0103] In the embodiment of the present application, the target user can input various types of instruction information for content generation, and based on the instruction information of the target user, the target text is obtained. In this way, the target text can be closer to the needs of the target user, and the target generated content can be further made more accurate.
[0104] In an embodiment of the present application, after obtaining the target generated content that meets the content type, multimedia information uploaded by the target user for the generated content can also be obtained; the generated content is modified using the multimedia information to obtain the target content to be delivered; the effect of the target content to be delivered is predicted using a machine learning model to obtain a prediction result; if the prediction result meets expectations, the target content to be delivered is output.
[0105] In an embodiment of the present application, the multimedia information may include the indication information of the target user for the generated content, and the format of the multimedia information is not limited, for example, it may be audio, video, etc. The target device may obtain the multimedia information of the target user while obtaining the target information. For example, the target information may include the multimedia information uploaded by the target user for the generated content. Before obtaining the target generated content, the target text may be obtained based on the target information through a machine learning model and a keyword extraction algorithm. After obtaining the target generated content, the target generated content may also be modified based on the multimedia information uploaded by the user (for example, audio, video, picture, etc.) to obtain the target content to be delivered. The target generated content may be in a modifiable source file format.
[0106] For example, the target information may be a picture with a personal logo and a paragraph of text uploaded by the target user. The keywords of the picture may be identified by an image recognition algorithm. Based on the keywords of the picture and the paragraph of text, a target text containing N keywords may be obtained. And based on the target text, a target generated video may be obtained. After obtaining the target generated video, the user may modify it based on the picture (multimedia information) with the personal logo uploaded by the target user to obtain the target content to be delivered. The target device may also obtain the multimedia information of the target user after obtaining the target generated content. For example, the target user may directly adjust the target generated content. The embodiments of the present application do not impose specific restrictions on this.
[0107] After obtaining the target content to be delivered, the effect of the target content to be delivered can also be predicted by a machine learning model. In the process of predicting the effect of the target content to be delivered by a machine learning model, the machine learning model can conduct an in-depth analysis of the historical content data to extract features related to the content effect, including but not limited to click-through rate, conversion rate, user interaction, etc. Data mining and statistical analysis methods are used to identify key trends and patterns. Valuable feature inputs can be provided for the prediction model to help the system more accurately understand the factors affecting the content effect and optimize the content generation strategy. Data mining can use association rule mining methods. By mining association rules in advertising data, the relationship between content effect and other factors can be quickly found. For example, association rules between certain content features and high click-through rate or conversion rate can be found. The machine learning model can use the Apriori algorithm to iteratively generate candidate item sets, and then calculate the support by scanning the data set, filter out frequent item sets, and finally generate association rules.
[0108] In the embodiment of the present application, the correlation between the content effect and the feature can also be verified by a statistical test method, such as a t-test or ANOVA, to determine whether the difference is statistically significant. In the embodiment of the present application, a single population test in a t-test can be used to test whether the difference between the average of a content sample and the known average of the overall content sample (a content sample on a platform) is significant, that is, to test whether the difference between a target content to be delivered and the platform style to be delivered is significant, and whether it is more in line with the platform style to be delivered.
[0109] In the embodiment of the present application, if the prediction result meets expectations, the target content to be delivered can be output. In the process of outputting the target content to be delivered, the target user can directly export the target content and save it to the target device or mobile terminal device. The target user can also directly share the target content on social media through the authorization mechanism, providing a convenient sharing method, expanding the dissemination range of the content, and increasing the exposure opportunities of the target user.
[0110] In the embodiments of the present application, the performance of the AIGC model can also be optimized through caching mechanisms, distributed computing, automated testing, etc., to ensure generation speed and quality, and to support expansion and upgrading.
[0111] In an embodiment of the present application, the target information of the target user is obtained, and the target text is obtained based on the target information of the target user. The target generated content is generated by the AIGC model in combination with the multimodal vector database, and the target generated content can be modified by the target user based on the multimedia information to obtain the target content to be delivered. Finally, the effect of the target content to be delivered is predicted based on the prediction of the machine learning model that can realize content prediction. If the prediction result meets the expectation, the target content to be delivered is output. The closed loop from user demand to final output is completed, and the use efficiency of the target user is improved. Compared with the information loss and inconsistency problems caused by non-end-to-end design in the related art.
[0112] Figure 4 A flow chart of a content generation method provided in an embodiment of the present application. Figure 4 As shown, the content generation method provided in the embodiment of the present application includes the following steps:
[0113] Step 410: Obtain target information selected by a target user for the content to be generated, wherein the target information includes the content type of the content to be generated.
[0114] In the embodiment of the present application, the generated content may be advertising content.
[0115] Step 415: Generate a target text based on the target information, wherein the target text includes keywords for indicating content generation.
[0116] In the embodiment of the present application, the target text includes N keywords.
[0117] Step 420, input the target text into the AIGC model, and the AIGC model includes a text encoder, a content generator, and a decoder.
[0118] In step 425, the text encoder of the AIGC model encodes the input target text to obtain a text vector of the target text.
[0119] In an embodiment of the present application, the text vector includes N word vectors corresponding one-to-one to the N keywords, and the N word vectors are composed of 1 first indicator vector and (N-1) second indicator vectors, where N is a positive integer greater than 1.
[0120] Step 430: Input the text vector into the content generator of the AIGC model to obtain a content vector associated with the generated content, and use the content vector as the first vector.
[0121] In the embodiment of the present application, the number of the content vectors is N-1.
[0122] Step 435: Use the text vector as an index to search a vector database for a second vector that matches the content type and is associated with the generated content.
[0123] In an embodiment of the present application, the number of the second vectors is less than or equal to (N-1). The vector database may be a database including multimodal vectors, wherein the multimodal vectors include at least two of text vectors, image vectors, audio vectors, and video vectors.
[0124] In an embodiment of the present application, a specific implementation method of step 435 may be: for the i-th indication vector among the (N-1) second indication vectors, query the vector that conforms to the content type and is associated with the i-th indication vector from the vector database, and use this vector as the second vector; wherein 1≤i≤(N-1).
[0125] Step 440: When a second vector is found in the vector database, the third vector in the first vector is replaced by the second vector to obtain a target vector.
[0126] In the embodiment of the present application, the second vector and the third vector have the same keyword feature.
[0127] Step 445: input the target vector into the decoder of the AIGC model to obtain target generated content that conforms to the content type.
[0128] Step 450: Acquire multimedia information uploaded by the target user for the generated content.
[0129] Step 455: modify the target generated content using the multimedia information to obtain the target content to be delivered.
[0130] Step 460: Use the machine learning model to predict the effect of the target content to be delivered and obtain a prediction result.
[0131] Step 465: if the prediction result meets expectations, output the target content to be delivered.
[0132] In an embodiment of the present application, a target text is obtained, the target text includes keywords for indicating content generation; the target text is input into an AIGC model; and a target generated content matching the target text is obtained through the AIGC model; wherein, in the process of obtaining the target generated content through the AIGC model, the AIGC model generates a target result based on a first vector and a second vector, and the target result is used to obtain the target generated content; the first vector is a vector generated by the AIGC model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the time when the vector database obtains the second vector is later than the time when the historical data used to train the AIGC model is obtained. In this way, in the process of obtaining the target generated content based on the target text through the AIGC model, not only can the AIGC model generate the first vector based on the target text, but also the second vector associated with the target text can be obtained from the vector database, and the target generated content is obtained based on the first vector and the second vector. Since the time when the vector database obtains the second vector is later than the time when the historical data used to train the AIGC model is obtained, that is, the content in the second vector is more real-time than the content of the first vector, and further makes the target generated content obtained by the AIGC model based on the first vector and the second vector more real-time. To a certain extent, it solves the problem in related technologies that the content generated by the AIGC model has a certain lag due to the limitations of the AIGC model in retraining new data.
[0133] In order to better understand the content generation method provided in the embodiments of the present application, examples are given below. It should be understood that the examples are not limitations. Figure 5 A conceptual diagram of a content generation method provided in an embodiment of the present application, such as Figure 5 As shown, when the content generation method provided in the embodiment of the present application is applicable to the advertisement generation scenario, the target device may include a content generation system, and the content generation method provided in the embodiment of the present application is completed by the content generation system. The content generation system may include the following modules:
[0134] 1. User interface module
[0135] This module can use front-end development technology to design a clear UI interface, support users (target users) to independently input text, select styles, upload materials, and other operations to obtain target information and provide an intuitive and friendly user interaction experience.
[0136] 1.1 User Input Unit
[0137] The user first logs in to the system and enters the ad generation page. In the ad requirements text box, the user enters the type of ad they wish to convey, and selects whether it is text, audio, image, or video. Select the ad style from the drop-down menu and choose the appropriate ad template based on the requirements. At the same time, the user can choose to upload relevant materials, such as company logos, product images, etc., to complete the ad content. This simple and intuitive operation process ensures that users can quickly create ads that meet their needs.
[0138] 1.2 UI Design Unit
[0139] The design of the user interface module focuses on intuitiveness and ease of use. Through careful layout, the overall design is intuitive and clear, allowing users to understand at a glance. The reasonable arrangement of input boxes, drop-down menus, and upload buttons follows the user interface design specifications to provide a smooth operation experience. Clear labels and guidance texts help guide users to fill in information correctly, further enhancing the friendliness of the user interface.
[0140] 1.3 User Feedback Unit
[0141] During the user operation, the system provides real-time feedback, including prompts on whether the input content conforms to the format and whether the upload is successful. After the user submits the request, the system will display a confirmation message and provide further operation instructions. At the same time, the system also actively collects user experience and obtains user suggestions through feedback forms or pop-up windows to continuously optimize system functions and user interfaces to ensure that users have a better experience.
[0142] 2. Requirements Analysis Module
[0143] This module analyzes the needs input by users, collects massive amounts of advertising data, extracts appropriate key information as target text, and provides targeted creation guidance for the content creation module.
[0144] 2.1 Advertising Dataset Integration Unit
[0145] This unit can integrate a large number of advertising data sets, including historical advertising, similar advertising, etc., to build a wide range of data sources. It can provide a reference for demand analysis, discover patterns and features related to user needs through data analysis, and improve the accuracy of demand understanding.
[0146] 2.2 Key Information Extraction Unit
[0147] This unit uses natural language processing technology to extract key information from user needs and advertising data, such as keywords, emotional colors, etc. It can extract important information from user needs so that the subsequent content creation module can better understand user expectations.
[0148] This unit uses a statistical calculation method: the term frequency-inverse document frequency algorithm (TF-IDF). This algorithm is often used to evaluate the importance of a word to a document in a document set. In this unit, the algorithm is very suitable for extracting important information from users, thereby obtaining keywords for advertising needs. Considering that user needs are of different lengths, the term frequency is first standardized, and the calculation formula (1) is as follows:
[0149]
[0150] Among them, "the number of times a certain word appears in the article" can be understood as the number of times a certain keyword appears in the target information, and "the total number of times in the article" can be understood as the total number of words in the target information.
[0151] Then, a corpus (such as a large number of advertising data sets in the advertising data inheritance unit 2.1) is used to simulate the usage environment of the word. If a word is more common, the denominator will be larger, and the inverse document frequency will be smaller and closer to 0. The calculation formula (2) is as follows:
[0152]
[0153] Among them, the "total number of documents in the corpus" can be understood as the number of advertisements in the large number of advertisement data sets in the 2.1 advertisement data inheritance unit, and the "number of documents containing the word" can be understood as the number of advertisements containing a certain word in the large number of advertisement data sets in the 2.1 advertisement data inheritance unit.
[0154] Finally, TF-IDF is calculated, and based on the TF-IDF size, the keywords in the target text are determined to provide important information about user needs. The calculation formula (3) is as follows:
[0155] TF-IDF = Term Frequency (TF) * Inverse Document Frequency (IDF)
[0156] 3. Content creation module
[0157] This module introduces a multimodal vector database and proposes a generative model architecture that can dynamically update the latest vector data, allowing the AIGC model to automatically generate real-time and personalized advertising content.
[0158] 3.1 Multimodal Vector Database Unit
[0159] This unit builds a database dedicated to storing and querying vectors. The vectors stored in it come from the vectorization of different forms of advertising content, such as text, voice, image, video, etc. The vector database can complete basic operations such as adding, reading, querying, updating, and deleting. Figure 6 As shown, Figure 6This is a conceptual diagram of a vector database provided in an embodiment of the present application. In the vector database provided in an embodiment of the present application, representing text, speech, image and video usually involves different modal processing methods. The following is the form of each modal data in the multimodal vector database:
[0160] Text: Text data can be converted into vector representations through natural language processing (NLP) techniques. A common approach is to use pre-trained word embedding models (such as Word2Vec, GloVe, BERT, etc.) to map text into fixed-dimensional word vectors or sentence vectors. These vectors can be directly stored in a vector database.
[0161] Speech: Speech data usually needs to be feature extracted through audio processing technology, such as using Mel Spectrogram. The extracted audio features can be converted into vector form and stored in a vector database. A common method in deep learning is to use convolutional neural network (CNN) or recurrent neural network (RNN) for speech feature learning.
[0162] Image: Image data can be extracted through deep learning models such as convolutional neural networks (CNN) to obtain vector representations of images. These vectors are usually called image embeddings or feature vectors and can be directly stored in vector databases.
[0163] Video: Video data is usually composed of a series of image frames. The way to process video data can be similar to processing images. 3D convolutional neural network (3D CNN) can be used to model the spatiotemporal information to obtain a vector representation of the video. Another method is to extract features from key frames in the video and then fuse these features to obtain the overall representation of the video.
[0164] 3.2 Generative Model Unit
[0165] Figure 7 This is a conceptual diagram of an AIGC model provided in an embodiment of the present application. Figure 7 As shown, in the related art, the text is input into a text encoder, which generates a vector of the corresponding modality. This vector is then input into a content generator, where the modal content is generated, and finally input into a decoder, where the decoder processes the generated content to obtain the final generated content.
[0166] Figure 8 This is a conceptual diagram of an AIGC model provided in an embodiment of the present application. Figure 8As shown, in the AIGC model provided in an embodiment of the present application, the target text is input into the text encoder to obtain a text vector corresponding to the target text. While generating the vector (first vector) of the corresponding modality in the content generator, a query is also performed through the multimodal vector database. The multimodal vector database contains real-time vector data of various modalities, which are regularly updated from the Internet. Through the query, we can obtain the latest vector (second vector) associated with the text vector. When performing a vector query, the text vector can be passed to the multimodal vector database by the encoder. If the query is successful, that is, the real-time vector corresponding to the text is found, the generator will replace the real-time vector corresponding to the text (the second vector) with the vector previously generated based on historical data reasoning (the third vector in the first vector).
[0167] The core goal of the AIGC model provided in the embodiment of the present application is to enable the content generator to generate real-time modal content by using real-time vectors without retraining the generative model. In this way, even if the model is only trained on historical data, it can still generate content with real-time information, so that the generative model can be kept updated over time and better adapt to and reflect current information.
[0168] 4. Typography design module
[0169] This module enables users to get instant feedback during the process of generating advertisements, ensuring that the appearance and effect of the advertisements meet their expectations. Target users can modify the target generated content using multimedia information in this module to obtain the target content to be delivered.
[0170] 4.1 Interaction Design Unit
[0171] This unit designs a user-friendly interactive interface, including interactive methods such as dragging and dropping advertising elements, resizing, changing text, etc. It enables users to intuitively operate advertising elements, observe advertising changes in real time, and improve user experience and operating efficiency.
[0172] 4.2 Adjustment and modification unit
[0173] This unit responds to the user's operation on the interactive interface and makes corresponding adjustments and modifications to the advertising elements, allowing users to change the layout, color, text and other elements of the advertisement in real time to meet their personalized needs and ensure that the advertisement meets expectations.
[0174] 5. Effect prediction module
[0175] This module can use machine learning models to analyze historical advertising data and platform characteristics to predict new advertising performance indicators such as click-through rate and conversion rate. Ultimately, it can predict the effectiveness of advertising on different platforms and optimize advertising delivery strategies.
[0176] 5.1 Advertising Data Analysis Unit
[0177] This unit extracts features related to advertising effectiveness, including but not limited to click-through rate, conversion rate, user interaction, etc., through in-depth analysis of historical advertising data. It uses data mining and statistical analysis methods to identify key trends and patterns. It can provide valuable feature inputs for the prediction model, help the system to more accurately understand the factors affecting advertising effectiveness, and optimize advertising generation strategies.
[0178] Data mining uses association rule mining methods. By mining association rules in advertising data, we can quickly find the relationship between advertising effects and other factors. For example, we can find association rules between certain advertising features and high click-through rates or conversion rates. This unit uses the Apriori algorithm to iteratively generate candidate item sets, then calculate the support by scanning the data set, filter out frequent item sets, and finally generate association rules. The support is the frequency of an item set appearing in the entire data set, and the calculation formula is as follows:
[0179]
[0180] Among them, the “number of things containing item set X” can be the number of advertisements containing a certain feature, and the “total number of transactions” can be understood as the total number of advertisements on a platform.
[0181] Confidence measures the credibility of rule X to Y, that is, the probability of including Y when X is included. The calculation formula is as follows:
[0182]
[0183] The lift measures whether the occurrence of rule X to Y is more frequent than random events. The calculation formula is as follows:
[0184]
[0185] The association rules between target content and content platform can be obtained through formulas (4), (5) and (6).
[0186] In addition, the correlation between advertising effects and features can be verified by using statistical analysis methods and statistical test methods, such as t-test or ANOVA, to determine whether the difference is statistically significant. This unit uses the single population test in the t-test to test whether the difference between the average of an advertising sample and the known average of the overall advertising sample is significant (which can be understood as whether the content style of an advertisement is consistent with the style of the content platform). The single population t-test statistic is as follows:
[0187]
[0188] Among them, x is a feature, x i is the number of features contained in the i-th sample, n is the total number of samples, μ is the average of the overall samples (advertisements), and represents the average number of times the feature corresponding to x appears in the overall advertisement.
[0189] 5.2 Prediction Model Unit
[0190] This unit uses machine learning algorithms to build prediction models. By learning the patterns and trends in historical advertising data, it predicts the effects of new ads on different advertising platforms. If the predicted effects meet expectations, the target content can be obtained. Models may include regression models, classification models, etc. It can provide the advertising generation system with a basis for predicting the effects of new ads, helping users optimize advertising materials and content, and improving the attractiveness and conversion rate of ads among target audiences.
[0191] 6. Intelligent push module
[0192] This module provides multiple output options through file export, social media API integration, etc., including downloading generated advertising posters and videos, or sharing them to social media.
[0193] 6.1 File Export Unit
[0194] This unit implements the file export function of text, audio, advertising posters and videos, supports common output formats, and allows users to save the generated advertising works to local devices for subsequent use or sharing.
[0195] 6.2 Social Media API Integration Unit
[0196] This unit integrates the API of social media platforms, such as WeChat and Weibo, and enables users to directly share the generated advertising content in the system to social media through the authorization mechanism. It can provide a convenient sharing method, expand the scope of advertising dissemination, and increase user exposure opportunities.
[0197] 7. Optimize the extension module
[0198] This module optimizes system performance through caching mechanisms, distributed computing, automated testing, etc., ensures generation speed and quality, and supports system expansion and upgrades.
[0199] 7.1 Cache Management Unit
[0200] This unit uses an efficient cache algorithm to store frequently accessed data in a fast-access cache, reducing the number of accesses to storage media such as databases. This can improve system response speed, reduce the time cost of data retrieval, and optimize user experience.
[0201] 7.2 Distributed Computing Unit
[0202] This unit divides the task into multiple subtasks and distributes them to different computing nodes for parallel execution, and finally aggregates the results to improve the overall computing performance. It can accelerate the task processing speed and improve the overall system performance and throughput.
[0203] 7.3 Automated Test Unit
[0204] The unit designs a series of automated test cases to monitor system performance and stability and record key indicators by simulating user behavior and system load. Potential problems can be discovered and fixed in a timely manner to ensure that the system can run stably and reliably under various circumstances.
[0205] 7.4 Expansion and Upgrade Unit
[0206] The unit provides a flexible architecture design and plug-in mechanism to support the rapid expansion and upgrade of system functions to adapt to changing business needs. It can maintain the maintainability and scalability of the system and provide convenient technical support for future development.
[0207] The advertisement generation system in the related art mainly revolves around the image generation module, lacks an end-to-end design concept, and mainly focuses on the fragments of advertisement generation rather than the whole process from user demand to final output, which is not user-friendly. This incomplete system design may lead to information loss and inconsistency in each link of advertisement generation, reducing the overall efficiency and generation effect of the system, and affecting the user's efficiency. The end-to-end advertisement generation system proposed in this proposal completes the closed loop from user demand to final output. Through the content generation method provided in the embodiment of the present application, an end-to-end generation system can be constructed when constructing an advertisement generation system. The generation system includes a user interface module, a demand analysis module, a content creation module, a typesetting design module, an effect prediction module, an intelligent push module, and an optimization and expansion module. The system completes a closed loop from user demand to final output, improves user efficiency, and solves the problem of information loss and inconsistency caused by the non-end-to-end design of the traditional advertisement generation system.
[0208] When the AIGC generative model is used in the advertisement generation method in the related art, pre-training is performed based on historical data. However, after the model training is completed, there are certain limitations in the retraining of new data, which results in the inability to update the generated advertisement style in a timely manner. This limits the model's ability to meet the personalized needs of users. The content generation method provided in the embodiment of the present application combines the AIGC model with a multimodal vector database to propose a dynamically adjustable generation method. Based on the needs of multimodal advertising customization, this proposal combines a multimodal vector database and the latest generation model to propose a quasi-real-time advertisement generation method. This method provides the latest multimodal vectors to the content generator in the generation model through a multimodal vector library, thereby improving the applicability of the pre-trained model and making the long-term memory of the model possible.
[0209] Fig. 9 This is a structural block diagram of a content generation device provided in an embodiment of the present application. Fig. 9 As shown, the content generating device 900 provided in the embodiment of the present application includes: an acquisition module 910 , an input module 920 and a processing module 930 .
[0210] An acquisition module 910 is used to acquire a target text, where the target text includes keywords for indicating content generation;
[0211] An input module 920, used to input the target text into the AIGC model;
[0212] A processing module 930 is used to obtain target generated content matching the target text through the AIGC model;
[0213] Wherein, in the process of obtaining the target generated content through the AIGC model, the AIGC model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content;
[0214] The first vector is a vector generated by the AIGC model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the vector database obtains the second vector later than the historical data used to train the AIGC model.
[0215] It should be noted that the embodiments of the content generating device in this specification and the embodiments of the content generating method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding content generating method in the previous text, and the repeated parts will not be repeated.
[0216] Fig.10 A schematic diagram of an electronic device provided in an embodiment of the present application. Fig.10As shown, the electronic device 1000 provided in the embodiment of the present application may include a processor 1010 and a memory 1020. The memory stores a computer program, and when the computer program is executed, any content generation method provided in the embodiment of the present application (for example, Figure 1 , Figure 2 , Figure 4 as well as Figure 5 The steps in the content generation method shown in any figure).
[0217] The memory is used to store programs or data. The memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.
[0218] The embodiment of the present application also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned content distribution network-based caching method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0219] An embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0220] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0221] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0222] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0223] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A content generation method, characterized in that: include: Acquire a target text, wherein the target text includes keywords for indicating content generation; Inputting the target text into an artificial intelligence generated content model; Obtaining target generated content matching the target text by using the artificial intelligence generated content model; Wherein, in the process of obtaining the target generated content through the artificial intelligence generated content model, the artificial intelligence generated content model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content; The first vector is a vector generated by the artificial intelligence generated content model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the vector database obtains the second vector later than the historical data used to train the artificial intelligence generated content model.
2. The method according to claim 1, characterized in that The artificial intelligence generated content model includes a text encoder, a content generator and a decoder; the target result includes a target vector; The step of obtaining target generated content matching the target text by using the artificial intelligence generated content model includes: The text encoder of the artificial intelligence generated content model encodes the input target text to obtain a text vector of the target text, wherein the text vector includes a first indication vector for indicating a content type of generated content and a second indication vector for indicating the generated content; Input the text vector into a content generator of an artificial intelligence generated content model to obtain a content vector associated with the generated content, and use the content vector as a first vector; Using the text vector as an index, searching a vector database for a second vector that matches the content type and is associated with the generated content; When the second vector is found in the vector database, the third vector in the first vector is replaced by the second vector to obtain a target vector; the third vector is at least a part of the first vector; The target vector is input into a decoder of an artificial intelligence generated content model to obtain target generated content that conforms to the content type.
3. The method according to claim 2, characterized in that The second vector and the third vector have the same keyword feature; the generated content is advertising content; the vector database is a database including multimodal vectors, and the multimodal vectors include at least two of text vectors, image vectors, audio vectors and video vectors.
4. The method according to claim 2, characterized in that: The target text includes N keywords, the text vector includes N word vectors corresponding to the N keywords one by one, the N word vectors are composed of 1 first indicator vector and (N-1) second indicator vectors, and N is a positive integer greater than 1; The number of the content vectors is N-1; the number of the second vectors is less than or equal to (N-1); The step of using the text vector as an index to search a vector database for a second vector that matches the content type and is associated with the generated content includes: For the i-th indicator vector among the (N-1) second indicator vectors, a vector that matches the content type and is associated with the i-th indicator vector is queried from the vector database, and this vector is used as the second vector; wherein 1≤i≤(N-1).
5. The method according to any one of claims 1 to 4, characterized in that: Get the target text, including: Acquire target information selected by a target user for the content to be generated, wherein the target information includes a content type of the content to be generated; Based on the target information, a target text is generated.
6. The method according to claim 5, characterized in that After obtaining the target generated content that meets the content type, the method further includes: Acquire multimedia information uploaded by the target user for the generated content; Modifying the target generated content using the multimedia information to obtain the target content to be delivered; Using a machine learning model to predict the effect of the target content to be delivered, and obtaining a prediction result; If the prediction result meets the expectation, the target content to be delivered is output.
7. A content generating device, characterized in that: include: An acquisition module, used for acquiring a target text, wherein the target text includes keywords for indicating content generation; An input module, used to input the target text into the artificial intelligence generated content model; A processing module, used for obtaining target generated content matching the target text through the artificial intelligence generated content model; Wherein, in the process of obtaining the target generated content through the artificial intelligence generated content model, the artificial intelligence generated content model generates a target result based on the first vector and the second vector, and the target result is used to obtain the target generated content; The first vector is a vector generated by the artificial intelligence generated content model based on the target text, and the second vector is a vector associated with the target text obtained from a vector database, and the vector database obtains the second vector later than the historical data used to train the artificial intelligence generated content model.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: The medium stores a program or an instruction, and when the program or the instruction is executed, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Intelligent ticket forming method, system and device based on AIGC technology and medium
CN119850141A
Intelligent content generation system based on open source data analysis
CN120354118A
An intelligent content generation system based on open source data analysis
CN120354118B
Electronic device for generating personalized content and operation method thereof
WO2026168770A1
