Design file enhanced retrieval and grouping method and device based on LLM large model
Through the design document enhanced retrieval and grouping method based on the LLM large model, using the multi-dimensional information index library and the LLM enhanced retrieval model, the problem of keyword retrieval limitations in design document retrieval is solved, and more refined and efficient retrieval and grouping are achieved. Improved design efficiency and user experience.
Patent Information
- Application Number
- CN202410566778.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-17
AI Technical Summary
The existing technology has limitations in keyword retrieval in design document retrieval and grouping, and cannot effectively utilize multi-dimensional information, resulting in unrefined retrieval results and low efficiency.
The design document enhanced retrieval and grouping method based on the LLM large model is adopted. By constructing a multi-dimensional information index database, it receives multiple rounds of retrieval and grouping operation conditions from designers, uses the LLM enhanced retrieval model to capture the designer's intention, and filters from the index database. Produces highly matching results. The method includes building a Prompt template library, dynamically expanding information, using the BM25 algorithm to calculate correlation, and multi-modal fusion and causal reasoning modules to generate retrieval and grouping results.
It improves the accuracy and efficiency of design file retrieval, can find relevant files faster, reduces the designer's workload, and improves design efficiency and user experience.
Smart Images

Figure CN118656347A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software design and artificial intelligence technology, and in particular to a method and device for enhanced retrieval and grouping of design documents based on an LLM large model. Background Art
[0002] In the current software design field, designers mainly rely on traditional keyword retrieval methods when retrieving and grouping design files. Although this method can meet basic retrieval needs to a certain extent, its limitations are becoming increasingly prominent. First, keyword retrieval can often only recall files that are directly related to specific keywords, but cannot capture other files that are highly relevant to the designer's intentions. Second, for the multi-dimensional information in the design files (such as creator, team information, version history, etc.), traditional keyword retrieval methods cannot fully utilize this information for refined retrieval and grouping.
[0003] With the rapid development of artificial intelligence technology, especially the rise of technologies such as large language model (LLM) and retrieval-augmented generation (RAG), new possibilities have been provided for design document retrieval and grouping. LLM technology can learn rich language knowledge and patterns from large-scale text data, and can more deeply understand the semantics and context of natural language. Retrieval-augmented generation technology combines retrieval technology with deep learning, and can give reasoning references without fine-tuning, thereby greatly improving the reasoning ability of the model. Combining software design technology with AI technology, designers can describe their retrieval and grouping intentions in natural language, and the model can capture these intentions and filter out highly matching results from a multi-dimensional information index library. It not only improves the accuracy and efficiency of retrieval, but also helps designers find relevant files faster.
[0004] However, there are still few practices in applying AI technology to design file retrieval and grouping. Therefore, the present invention aims to study and explore a design file enhanced retrieval and grouping method based on the LLM large model to overcome the shortcomings of the existing technology and improve the design production efficiency. Summary of the invention
[0005] In view of the above problems, the present invention is proposed to provide a method and device for enhanced retrieval and grouping of design documents based on the LLM large model, which applies AI technology to design document retrieval and grouping.
[0006] According to one aspect of the present invention, a method for enhanced retrieval and grouping of design documents based on an LLM large model is provided, comprising:
[0007] Constructing a first multi-dimensional information index library of historical design files, and constructing a second multi-dimensional information index library according to the design files currently in use; wherein the first multi-dimensional information and the second multi-dimensional information include but are not limited to creator, team information, customer information, version information, style attributes, style tokens, style variables, collection modes, style codes, reference relationships, and log information;
[0008] Receiving multiple rounds of search and grouping operation conditions input by the designer, and using the LLM enhanced search model to capture the designer's search and grouping induction intentions;
[0009] The search and grouping results that are highly matched with the search and grouping induction intentions are screened and displayed from the first multidimensional information index library and the second multidimensional information index library.
[0010] In an optional manner, the receiving of multiple rounds of search and grouping operation conditions input by the designer further includes:
[0011] Constructing a prompt template library, wherein the prompt template library contains a general description of design file retrieval and grouping operations to guide designers to input retrieval and grouping intentions;
[0012] Dynamically expand and enhance information according to the first multidimensional information index library and the second multidimensional information index library;
[0013] According to the expanded prompt information, the designer is prompted to input the search and grouping conditions.
[0014] In an optional manner, the method further includes:
[0015] Calculate the relevance of the query term to each document in the first multidimensional information index library and the second multidimensional information index library using the BM25 algorithm;
[0016] Sorting the retrieved documents according to the relevance of each document, placing the document most relevant to the query term at the front;
[0017] The sorted search results are grouped according to the similarity of the document contents or the multi-dimensional information.
[0018] In an optional manner, the types of the style variables include, but are not limited to: value style, text style, rounded corner style, color style, text style, stroke style, special effect style, margin style and grid style;
[0019] The collection modes include a color mode, a size mode, a language mode and an interactive mode.
[0020] In an optional manner, the LLM enhanced retrieval model includes an input processing module, an unsupervised LLM module, an intent recognition module, an output generation module, and an unsupervised optimization module;
[0021] The input processing module includes a text parser and a feature extractor; the text parser converts the multiple rounds of retrieval and grouping operation conditions into structured data; the feature extractor extracts keywords, phrases or structural information;
[0022] The unsupervised LLM module includes a static rule module, a multimodal fusion module, an enhanced context module and a causal reasoning module; the static rule module includes layout rules, color matching rules and interactive design rules of the design file; the multimodal fusion module is used for multimodal feature extraction and cross-modal information association; the enhanced context module is used to introduce external dialogue content and capture the structure and hierarchical relationship in the context; the causal reasoning module includes a causal graph representation unit and a counterfactual reasoning unit;
[0023] The intention recognition module includes a rule-based intention parser and a context manager. The rule-based intention parser is used to identify the designer's retrieval and grouping intentions; the context manager is used to track and integrate context information in multiple rounds of dialogue;
[0024] The output generation module is used to generate retrieval and grouping results;
[0025] The unsupervised optimization module includes an adaptive rule adjuster and a user feedback integrator. The adaptive rule adjuster is used to process performance feedback of new inputs and dynamically adjust the rules of the static rule module; the user feedback integrator is used to collect user feedback.
[0026] In an optional manner, the static rule module constructs the layout rules, color matching rules and interaction design rules of the design file through an embedding matrix; wherein each row of the embedding matrix corresponds to the semantic information of a rule; each rule includes a rule type, an applicable condition and a priority attribute;
[0027] The static rule module constructs the association relationship between each rule and the corresponding context through the GCN graph embedding method, and integrates the association relationship into the embedding vector of each rule.
[0028] In an optional manner, the multimodal fusion module is a dual-tower network structure, including a modality-specific embedding layer, a modality-shared encoding layer, a multimodal feature fusion representation layer, and a joint learning similarity calculation layer;
[0029] Wherein, the modality-specific embedding layer adopts a BERT+VGG network structure;
[0030] The modality shared encoding layer includes a cross-modality attention unit and a shared encoder unit; wherein the cross-modality attention unit layer includes attention in two directions of RGB-to-Depth and Depth-to-RGB; the shared encoder unit uses multiple parallel convolution paths, each path having a different convolution kernel size and step size to capture contextual information;
[0031] The multimodal feature fusion representation layer includes a modality-specific feature extraction unit, a feature fusion unit, and a shared representation learning unit; wherein the modality-specific feature extraction unit includes a text modality BERT network layer, a visual modality EfficientNet network layer, and an audio modality CNN network layer;
[0032] The joint learning similarity calculation layer includes a similarity measurement unit and a joint learning optimization unit; wherein the similarity measurement unit adopts a cosine similarity measurement function, and the joint learning optimization unit adopts a triple loss function.
[0033] In an optional manner, the causal graph representation unit is used to construct the causal relationship between variables through a directed acyclic causal graph, the nodes of the directed acyclic causal graph are observed variables or potential unobserved variables, and the edges are the directions of the causal relationship between the variables;
[0034] The counterfactual reasoning unit performs counterfactual reasoning based on the directed acyclic causal graph; specifically, traces along the edges in the directed acyclic causal graph to determine the variables directly affected by the intervention point; and calculates the states of other variables under the new intervention conditions.
[0035] In an optional manner, the rule intent parser includes an embedding layer, a plurality of stacked GRU layers, an RNNlogic network layer, a fully connected layer, and an output layer;
[0036] The rule intent parser is used to identify the designer's retrieval and grouping intent and further includes:
[0037] The structured data is converted into an embedding vector through an embedding layer, and the embedding vector is sequence modeled through a GRU layer to capture context information;
[0038] Passing the context information to the RNNlogic network layer, and matching according to the layout rules, color matching rules and interaction design rules of the design file;
[0039] The output of the RNNlogic network layer is mapped to the intent classification space through the fully connected layer, and the probability distribution of each intent is output through the output layer.
[0040] In an optional manner, the layout rules include page, margin, line spacing, font size, alignment, and column layout rules;
[0041] The color rules include primary colors, secondary colors, and matching taboo rules;
[0042] The interaction design rules include click, slide, drag, zoom and hover operation rules.
[0043] In an optional manner, the adaptive rule adjuster includes:
[0044] The input layer is used to receive the feedback signal and current rule parameters transmitted by the user feedback integrator;
[0045] A feature extraction layer, used to extract the features of the feedback signal and convert it into a feature vector that is instructive for rule adjustment;
[0046] A rule adjustment strategy layer, used to determine adjustment rule parameters of the layout rule, color matching rule and interactive design according to the feature vector and current rule parameters;
[0047] The output layer is used to output the adjustment rule parameters.
[0048] According to another aspect of the present invention, there is provided a design document enhanced retrieval and grouping device based on the LLM large model, comprising:
[0049] An index building module, used to build a first multi-dimensional information index library of historical design files, and to build a second multi-dimensional information index library according to the design files currently in use; wherein the first multi-dimensional information and the second multi-dimensional information include but are not limited to creator, team information, customer information, version information, style attributes, style tokens, style variables, collection modes, style codes, reference relationships, and log information;
[0050] An intention capture module, used to receive multiple rounds of search and grouping operation conditions input by the designer, and use the LLM enhanced search model to capture the designer's search and grouping induction intentions;
[0051] A result matching module is used to screen and display the search and grouping results that are highly matched with the search and grouping induction intention from the first multidimensional information index library and the second multidimensional information index library.
[0052] The solution provided by the above embodiment of the present invention constructs a first multidimensional information index library of historical design files, and constructs a second multidimensional information index library based on the design files currently in use; wherein the first multidimensional information and the second multidimensional information include but are not limited to creators, team information, customer information, version information, style attributes, style tokens, style variables, collection patterns, style codes, reference relationships, and log information; receives multiple rounds of retrieval and grouping operation conditions input by designers, and uses the LLM enhanced retrieval model to capture the designer's retrieval and grouping induction intentions; and screens and displays retrieval and grouping results that are highly matched with the retrieval and grouping induction intentions from the first multidimensional information index library and the second multidimensional information index library. The present invention recognizes user intentions through the LLM model, automatically screens and displays retrieval and grouping results that are highly matched with user intentions, thereby improving design efficiency.
[0053] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above description and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0055] Figure 1 A schematic diagram of the process of the design file enhanced retrieval and grouping method based on the LLM large model according to an embodiment of the present invention is shown;
[0056] Figure 2 A schematic diagram of a prompt information prompt in an embodiment of the present invention is shown;
[0057] Figure 3 A schematic diagram of inputting operating conditions according to an embodiment of the present invention is shown;
[0058] Figure 4 A schematic diagram showing the display of search and grouping results according to an embodiment of the present invention is shown;
[0059] Figure 5 A schematic diagram of operating condition feedback of an embodiment of the present invention is shown;
[0060] Figure 6 An example diagram of the statistical operation conditions of the style reference rate according to an embodiment of the present invention is shown;
[0061] Figure 7A schematic diagram showing the result display of the statistical operation conditions of the style reference rate according to an embodiment of the present invention is shown;
[0062] Figure 8 A schematic diagram of the LLM enhanced retrieval model framework according to an embodiment of the present invention is shown;
[0063] Fig. 9 A schematic diagram of the structure of a design document enhanced retrieval and grouping device based on the LLM large model according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0064] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0065] Before implementing the embodiments of the present invention, the technical terms or custom terms involved below are uniformly explained here:
[0066] Components: They allow the UI to be divided into independent, reusable parts. In practical applications, components are often organized into a nested tree structure.
[0067] Component attributes: Component attributes originated in the R&D and production process, such as Button attributes and form-input attributes in Element VUE 2.0. They are divided into parameters, types, and optional values in the code. Component attributes prepend the attributes in the code to the canvas editor, allowing the editor to add parameters, types, and values in the property panel.
[0068] Token: In computer terminology, a token refers to a string of characters generated by the server. The present invention uses the concept of "token" to define complex design elements (regarded as an atomic visual design language). That is, the visual mode and interface attributes are reorganized and summarized for semantic naming, replacing the hard-coded constants in the front-end code (such as hexadecimal color codes), which facilitates designers to carry out unified management and expansion, ensure product consistency, and improve the efficiency of design and development. For example: color is used to define the color values used in the product, such as primary color, secondary color, background color, etc.; font is used to define the font, font size, line height and other attributes used in the product, as well as the corresponding class name or variable name; border is used to define the border color, width, style and other attributes used in the product, as well as the corresponding class name or variable name; spacing is used to define the spacing, inner margin, outer margin and other attributes used in the product, as well as the corresponding class name or variable name; icon is used to define the icon used in the product, such as icon name, color, size and other attributes, as well as the corresponding class name or variable name; layout is used to define the layout method used in the product, such as grid, typesetting method, etc., as well as the corresponding class name or variable name.
[0069] Collection mode: includes collection modes such as color mode, size mode, language mode, and interaction mode.
[0070] Style variables: such as value style, text style, rounded corner style, color style, text style, stroke style, special effect style, margin style, and grid style.
[0071] This application aims to build a comprehensive and highly available design system, deeply understand the real needs of users, combine product requirements with actual usage scenarios, and propose an innovative design file enhanced retrieval and grouping method based on the LLM large model, which automatically screens and displays retrieval and grouping results that are highly matched with user intentions. The specific contents of the present invention are described in detail below through specific embodiments.
[0072] Embodiment 1:
[0073] Figure 1 FIG. 1 is a flow chart of a design document enhanced retrieval and grouping method based on the LLM large model according to an embodiment of the present invention. Specifically, Figure 1 As shown, the following steps are included:
[0074] Step S101, constructing a first multi-dimensional information index library of historical design files, and constructing a second multi-dimensional information index library according to the design files currently in use.
[0075] In this embodiment, the first multidimensional information and the second multidimensional information include but are not limited to creators, team information, customer information, version information, style attributes, style tokens, style variables, collection patterns, style codes, reference relationships, and log information. The dimensional information index library can fully reflect the characteristics and content of the design file, making the retrieval and grouping operations more accurate and accurately capturing the designer's intentions. Designers can set retrieval conditions more flexibly through the above-mentioned multidimensional information and quickly locate design files that meet the requirements. Compared with traditional keyword retrieval, multidimensional information retrieval can avoid the interference of a large number of irrelevant results. By managing the style attributes, style variables, collection patterns and other dimensions of the design file, designers can better manage and optimize design resources, reduce duplication of work, and improve design efficiency. For the design files currently in use, as the designer edits and modifies the design files, the second index library will also be updated accordingly to ensure that the retrieval operation conditions for the design files currently in use are more targeted and real-time.
[0076] In an optional implementation, the types of the style variables include but are not limited to: value style, text style, rounded corner style, color style, text style, stroke style, special effect style, margin style and grid style;
[0077] The collection modes include a color mode, a size mode, a language mode and an interactive mode.
[0078] Step S102, receiving multiple rounds of search and grouping operation conditions input by the designer, and using the LLM enhanced search model to capture the designer's search and grouping induction intentions.
[0079] In an optional implementation, the receiving of multiple rounds of search and grouping operation conditions input by the designer further includes:
[0080] Constructing a prompt template library, wherein the prompt template library contains a general description of design file retrieval and grouping operations to guide designers to input retrieval and grouping intentions;
[0081] Dynamically expand and enhance information according to the first multidimensional information index library and the second multidimensional information index library;
[0082] According to the expanded prompt information, the designer is prompted to input the search and grouping conditions.
[0083] In this embodiment, the Prompt template library contains a general description of the design file retrieval and grouping operations to guide designers to enter specific retrieval and grouping intentions. By presetting the Prompt template related to the design file, a clear input framework is provided for designers to express their needs more quickly. The designer is prompted to enter the retrieval and grouping conditions according to the expanded prompt information. The prompt information not only contains the basic properties of the design file, but also includes the historical data retrieved by the user. For example, the Prompt template library can contain the following types of templates:
[0084] Basic attribute retrieval template:
[0085] "Please provide the creator information of the design file to retrieve."
[0086] "Please describe the version information of the design file you want to retrieve."
[0087] Style attribute retrieval template:
[0088] "Please describe the color style of the design file you wish to retrieve."
[0089] "Please provide design files with corner rounding style requirements."
[0090] Grouping condition template:
[0091] “Please group your design files by project type.”
[0092] "Please group design files by the date they were created."
[0093] Expanded prompt information:
[0094] "You have previously searched for design files related to 'blue theme'. Do you want to continue searching for similar designs?"
[0095] "Based on your previous grouping habits, you may want to group the design files by 'Customer Name'. Are you sure?"
[0096] like Figure 2 As shown, input prompts are given from the functional perspectives of specification, extraction, design, inspection, neglect, application and statistics.
[0097] In this way, the designer's retrieval and grouping intentions can be captured more accurately, and more personalized intelligent services can be provided. This not only improves the efficiency of retrieval and grouping, but also greatly enhances the designer's user experience.
[0098] In an optional implementation, the LLM enhanced retrieval model includes an input processing module, an unsupervised LLM module, an intent recognition module, an output generation module, and an unsupervised optimization module;
[0099] The input processing module includes a text parser and a feature extractor; the text parser converts the multiple rounds of retrieval and grouping operation conditions into structured data; the feature extractor extracts keywords, phrases or structural information;
[0100] like Figure 8 As shown, the unsupervised LLM module includes a static rule module, a multimodal fusion module, an enhanced context module and a causal reasoning module; the static rule module includes layout rules, color matching rules and interactive design rules of the design file; the multimodal fusion module is used for multimodal feature extraction and cross-modal information association; the enhanced context module is used to introduce external dialogue content and capture the structure and hierarchical relationship in the context; the causal reasoning module includes a causal graph representation unit and a counterfactual reasoning unit;
[0101] The intention recognition module includes a rule-based intention parser and a context manager. The rule-based intention parser is used to identify the designer's retrieval and grouping intentions; the context manager is used to track and integrate context information in multiple rounds of dialogue;
[0102] The output generation module is used to generate retrieval and grouping results;
[0103] The unsupervised optimization module includes an adaptive rule adjuster and a user feedback integrator. The adaptive rule adjuster is used to process performance feedback of new inputs and dynamically adjust the rules of the static rule module; the user feedback integrator is used to collect user feedback.
[0104] For example, a designer inputs multiple search conditions, such as "find button design files with blue as the main color, and display the iteration process of different versions in groups." The text parser converts the multiple search conditions into structured data, extracting the keywords "blue," "button," "design file," "version," and the operation requirements "find" and "display in groups."
[0105] The feature extractor extracts features related to the design file from the structured data, such as color, element type, operation type, etc. In this example, the extracted features include the color feature "blue" and the element type feature "button".
[0106] The static rule module contains a series of static rules for design files. For example, the color matching rule stipulates that "blue and white are used for technological UI design". These static rules serve as prior knowledge in the unsupervised learning process to assist the model in understanding the inherent laws and structure of design files. In design file retrieval, in addition to text descriptions, visual information such as images and sketches is also included. The multimodal fusion module extracts the features of these different modalities and associates them. For example, it is recognized that the "blue" in the text description matches the blue area in the image.
[0107] When designers conduct multiple rounds of search, the input of each round is based on the previous round. The enhanced context module captures contextual information, such as design elements and styles mentioned in the previous round, so as to understand the input of the current round more accurately.
[0108] The causal reasoning module uses the causal graph representation unit to construct the causal relationship between the attributes of the design file, such as "changing the color of a button may lead to a change in the user's click rate." The counterfactual reasoning unit simulates how the result will change if a certain attribute is changed, thereby helping the model better understand the impact of design decisions.
[0109] Based on the features extracted by the input processing module and the rules of the unsupervised LLM module, the rule-based intent parser identifies the designer’s retrieval and grouping intent. In this example, it is identified that the designer wants to retrieve design files related to the “blue button” and group them by “version”.
[0110] The context manager tracks context information throughout the conversation, ensuring that each round of retrieval and grouping operations are based on previous information, helping to maintain the coherence and consistency of the conversation.
[0111] Based on the results of the intent recognition module, the output generation module generates the final retrieval and grouping results. In this example, a series of button design files with blue as the main color are returned and grouped by version.
[0112] As new input data is continuously added, the adaptive rule adjuster dynamically adjusts the rules of the static rule module based on performance feedback. For example, if a rule is found to cause inaccurate retrieval results, the rule will be automatically adjusted or disabled. The user feedback integrator collects feedback from designers during use, such as satisfaction scores, to further optimize the performance and accuracy of the LLM enhanced retrieval model.
[0113] In an optional implementation, the static rule module constructs the layout rules, color matching rules and interaction design rules of the design file through an embedding matrix; wherein each row of the embedding matrix corresponds to the semantic information of a rule; and each rule includes a rule type, an applicable condition and a priority attribute;
[0114] The static rule module constructs the association relationship between each rule and the corresponding context through the GCN graph embedding method, and integrates the association relationship into the embedding vector of each rule.
[0115] In this embodiment, the attributes contained in each rule are first determined, such as rule type (such as layout rules, color matching rules, interactive design rules, etc.), applicable conditions (such as design element type, scene, etc.) and priority attributes (such as high, medium, low).
[0116] Then, an embedding matrix is created, where each row corresponds to the semantic information of a rule. The dimension of the embedding matrix can be determined based on the number of rules and the complexity of the attributes. For example, suppose there are the following three rules:
[0117] Rule 1: Layout rules, applicable to button design, high priority.
[0118] Rule 2: Color matching rule, applicable to the matching of background color and text color, medium priority.
[0119] Rule 3: Interaction design rules, applicable to the design of floating effects, low priority.
[0120] The embedding matrix is shown in Table 1:
[0121] Table 1: Embedding matrix
[0122] Rule Type Applicable conditions Priority Layout Rules Button high #Embedding representation of rule 1 Color matching rules Background & Text middle #Embedding representation of rule 2 Interaction Design Rules Suspension Effect Low #Embedding representation of rule 3
[0123] Finally, rule associations are constructed through the GCN graph embedding method. GCN can update the embedding vector of each node by aggregating the information of neighboring nodes. Rules are regarded as nodes in the graph, and edges are constructed based on the association between rules (such as a rule is formulated based on another rule, or two rules are often triggered at the same time). The contextual information of the design file (such as the designer's historical operations) is integrated into the embedding vector of each rule as an additional feature of the node or the weight of the edge. For example, suppose that Rule 1 (layout rule) refers to Rule 2 (color matching rule) when it is formulated, and Rule 2 and Rule 3 (interaction design rules) are often triggered at the same time during the design process. Finally, the embedding vector of each rule node contains the information of its neighboring nodes and contextual information, forming a richer rule representation to support subsequent retrieval and grouping operations.
[0124] In an optional implementation, the multimodal fusion module is a dual-tower network structure, including a modality-specific embedding layer, a modality-shared encoding layer, a multimodal feature fusion representation layer, and a joint learning similarity calculation layer;
[0125] Wherein, the modality-specific embedding layer adopts a BERT+VGG network structure;
[0126] The modality shared encoding layer includes a cross-modality attention unit and a shared encoder unit; wherein the cross-modality attention unit layer includes attention in two directions of RGB-to-Depth and Depth-to-RGB; the shared encoder unit uses multiple parallel convolution paths, each path having a different convolution kernel size and step size to capture contextual information;
[0127] The multimodal feature fusion representation layer includes a modality-specific feature extraction unit, a feature fusion unit, and a shared representation learning unit; wherein the modality-specific feature extraction unit includes a text modality BERT network layer, a visual modality EfficientNet network layer, and an audio modality CNN network layer;
[0128] The joint learning similarity calculation layer includes a similarity measurement unit and a joint learning optimization unit; wherein the similarity measurement unit adopts a cosine similarity measurement function, and the joint learning optimization unit adopts a triple loss function.
[0129] In this embodiment, the modality-specific embedding layer uses the BERT (Bidirectional Encoder Representations from Transformers) network structure to process text modality data, and uses the VGG (Visual Geometry Group) network structure to process image modality data. Suppose a designer enters text describing a design document and a related picture. The BERT network converts the text into an embedding vector, while the VGG network converts the picture into another set of embedding vectors. The two embedding vectors capture specific information of the text and image modalities respectively.
[0130] In RGB-to-Depth attention, the model focuses on how the RGB information in the image affects the understanding of the depth information; while in Depth-to-RGB attention, it focuses on how the depth information affects the interpretation of the RGB information. The above cross-modal attention helps capture the association between different modalities. The shared encoder unit uses multiple parallel convolution paths, each with a different convolution kernel size and step size, which can capture different scales and contextual information. For example, one path may focus on local details while another path focuses on global structure.
[0131] The features of text, image and audio modalities are extracted through BERT, EfficientNet and CNN network layers respectively. The feature fusion unit fuses the features of different modalities.
[0132] The shared representation learning unit learns a shared representation space so that data from different modalities can be compared and matched in this space. The joint learning similarity calculation layer includes a similarity measurement unit and a joint learning optimization unit. The similarity measurement unit uses the cosine similarity measurement function to calculate the similarity between data from different modalities. The joint learning optimization unit uses a triplet loss function to optimize the performance of the model. By constructing a triplet containing positive and negative samples, it is possible to learn how to better distinguish the similarity differences between data from different modalities, thereby improving the accuracy of multimodal fusion.
[0133] In an optional implementation, the causal graph representation unit is used to construct the causal relationship between variables through a directed acyclic causal graph, the nodes of the directed acyclic causal graph are observed variables or potential unobserved variables, and the edges are the directions of the causal relationship between the variables;
[0134] The counterfactual reasoning unit performs counterfactual reasoning based on the directed acyclic causal graph; specifically, traces along the edges in the directed acyclic causal graph to determine the variables directly affected by the intervention point; and calculates the states of other variables under the new intervention conditions.
[0135] For example, for web UI design, the variables of interest may include font selection (F), color matching (C), layout structure (L), and visual appeal (A). The causal relationship between these variables is shown through a directed acyclic causal graph (font selection, layout structure, and color matching affect visual appeal). At the same time, there is also mutual influence between fonts and colors. For example, a certain font may be more suitable for use with a specific color. The counterfactual reasoning unit performs counterfactual reasoning based on the directed acyclic causal graph. Suppose the designer wants to explore the impact of using different font choices on visual appeal. The counterfactual reasoning unit traces along the edge from font selection to visual appeal and considers other variables that may be affected. By calculating the predicted value of visual appeal under new intervention conditions (i.e., after using different fonts), it helps designers think more systematically about the relationship between design elements and avoid blind trials and modifications. Through counterfactual reasoning, designers can predict the possible effects of design changes before implementing them.
[0136] In an optional implementation, the rule intent parser includes an embedding layer, a plurality of stacked GRU layers, an RNNlogic network layer, a fully connected layer, and an output layer;
[0137] The rule intent parser is used to identify the designer's retrieval and grouping intent and further includes:
[0138] The structured data is converted into an embedding vector through an embedding layer, and the embedding vector is sequence modeled through a GRU layer to capture context information;
[0139] Passing the context information to the RNNlogic network layer, and matching according to the layout rules, color matching rules and interaction design rules of the design file;
[0140] The output of the RNNlogic network layer is mapped to the intent classification space through the fully connected layer, and the probability distribution of each intent is output through the output layer.
[0141] In this embodiment, the embedding layer of the rule intent parser is responsible for converting structured data (such as various elements and attributes in the design file) into an embedding vector, preserving the relative relationship between the data. Multiple stacked GRU (gated recurrent unit) layers perform sequence modeling on these embedding vectors. By stacking multiple GRU layers, the rule intent parser can more deeply understand how the elements in the design file are related to each other, thereby extracting useful features. The RNNlogic network layer receives contextual information from the GRU layer and matches according to the layout rules, color matching rules and interactive design rules of the design file. The fully connected layer maps the output of the RNNlogic network layer to the intent classification space, which is a multidimensional vector space, in which each dimension represents a possible intent category. The probability distribution of each intent category is output through the output layer to determine the designer's most likely retrieval and grouping intent. For example, when designers retrieve design files, they pay attention to layout rules and color matching rules. The rule intent parser first embeds these rules and related design elements into vectors, and then captures the contextual relationship between these elements through the GRU layer. The RNNlogic network layer matches these elements according to known layout and color matching rules and generates corresponding feature representations. The fully connected layer and output layer calculate the probability distribution of the designer's retrieval intention for layout and color matching based on these feature representations, thereby helping the system to understand and execute the designer's instructions more accurately.
[0142] In an optional implementation, the layout rules include page, margin, line spacing, font size, alignment, and column layout rules;
[0143] The color rules include primary colors, secondary colors, and matching taboo rules;
[0144] The interaction design rules include click, slide, drag, zoom and hover operation rules.
[0145] In an optional implementation, the adaptive rule adjuster includes:
[0146] The input layer is used to receive the feedback signal and current rule parameters transmitted by the user feedback integrator;
[0147] A feature extraction layer, used to extract the features of the feedback signal and convert it into a feature vector that is instructive for rule adjustment;
[0148] A rule adjustment strategy layer, used to determine adjustment rule parameters of the layout rule, color matching rule and interactive design according to the feature vector and current rule parameters;
[0149] The output layer is used to output the adjustment rule parameters.
[0150] In this embodiment, the input layer receives feedback signals from the user feedback integrator and the current rule parameters. The user feedback signal includes the designer's satisfaction evaluation of the design results, and the current rule parameters include the layout rules, color matching rules and specific parameters of the interactive design currently used by the design system. The feature extraction layer extracts features from the received feedback signal, extracts useful information from the feedback signal, and converts it into a feature vector that is instructive for rule adjustment (such as the user's preference for different design elements, the evaluation of the overall design, etc.). The rule adjustment strategy layer determines how to adjust the layout rules, color matching rules and interactive design parameters based on the feature vector and the current rule parameters. The output layer outputs the adjusted rule parameters to the design system. So that the design system can re-generate the design based on these new rule parameters in order to better meet the user's expectations and needs.
[0151] Step S103, screening and displaying the search and grouping results that are highly matched with the search and grouping intentions from the first multidimensional information index library and the second multidimensional information index library.
[0152] Designers input their own retrieval and grouping intentions (search and classification of specific attributes, styles or functions of design elements). After receiving these intentions, the design system starts the screening mechanism. After the screening is completed, the results are presented to the designer in a visual way. Including a list of design elements, preview images, interactive demonstrations and other forms, so that designers can understand and choose intuitively. Designers can easily adjust the design draft automatically according to the screening results (such as element style, element layout, color matching, interaction logic, etc.) (for example, automatically call the design function and class library to adjust the design draft according to the screening results). The design process is more intelligent and efficient, which greatly reduces the workload of designers and improves design efficiency and quality. Figure 3 As shown, the designer enters "Check the color style according to the web-UI kit style", such as Figure 4 As shown in the figure, based on the designer's input conditions, the search and grouping results that are highly matched with the search intent are displayed and automatically annotated. Figure 5 As shown, according to the current rule parameters, the layout rules, color matching rules and interaction design recommended adjustment rule parameters are determined. Figure 6As shown in the figure, the designer enters "Statistics of all style reference rates", such as Figure 7 As shown, the search and grouping results that are highly matched with the search intent are displayed. The style citation rate helps designers understand which design elements are most popular and which ones need to be optimized.
[0153] In this embodiment, the designer inputs his or her own search and grouping intentions, and displays the search and grouping results in various forms such as automatic annotation, statistics, preview images, and interactive demonstrations. Compared with traditional search and display list results, designers can find design elements, color matching, and interactive logic that meet their needs more quickly, improving design efficiency. Optionally, the design draft is adjusted by automatically calling design functions and class libraries based on the screening results, which greatly reduces the designer's workload and user experience. Designers customize search and grouping rules according to their own needs, making the design process more flexible and personalized, and achieving unique design effects.
[0154] In an optional embodiment, the method further includes:
[0155] Calculate the relevance of the query term to each document in the first multidimensional information index library and the second multidimensional information index library using the BM25 algorithm;
[0156] Sorting the retrieved documents according to the relevance of each document, placing the document most relevant to the query term at the front;
[0157] The sorted search results are grouped according to the similarity of the document contents or the multi-dimensional information.
[0158] The solution provided by the above embodiment of the present invention constructs a first multidimensional information index library of historical design files, and constructs a second multidimensional information index library based on the design files currently in use; wherein the first multidimensional information and the second multidimensional information include but are not limited to creators, team information, customer information, version information, style attributes, style tokens, style variables, collection patterns, style codes, reference relationships, and log information; receives multiple rounds of retrieval and grouping operation conditions input by designers, and uses the LLM enhanced retrieval model to capture the designer's retrieval and grouping induction intentions; and screens and displays retrieval and grouping results that are highly matched with the retrieval and grouping induction intentions from the first multidimensional information index library and the second multidimensional information index library. The present invention recognizes user intentions through the LLM model, automatically screens and displays retrieval and grouping results that are highly matched with user intentions, thereby improving design efficiency.
[0159] Embodiment 2:
[0160] Fig. 9The schematic diagram of the structure of the device for enhanced retrieval and grouping of design files based on the LLM large model according to the embodiment of the present invention is shown. The device for enhanced retrieval and grouping of design files based on the LLM large model 9 comprises: an index building module 901 , an intention capturing module 902 and a result matching module 903 .
[0161] The index building module 901 is used to build a first multi-dimensional information index library of historical design files, and build a second multi-dimensional information index library according to the design files currently in use; wherein the first multi-dimensional information and the second multi-dimensional information include but are not limited to creator, team information, customer information, version information, style attributes, style tokens, style variables, collection modes, style codes, reference relationships, and log information;
[0162] The intention capturing module 902 is used to receive multiple rounds of search and grouping operation conditions input by the designer, and use the LLM enhanced search model to capture the designer's search and grouping induction intentions;
[0163] The result matching module 903 is used to filter and display the search and grouping results that are highly matched with the search and grouping induction intention from the first multidimensional information index library and the second multidimensional information index library.
[0164] In an optional manner, the receiving of multiple rounds of search and grouping operation conditions input by the designer further includes:
[0165] Constructing a prompt template library, wherein the prompt template library contains a general description of design file retrieval and grouping operations to guide designers to input retrieval and grouping intentions;
[0166] Dynamically expand and enhance information according to the first multidimensional information index library and the second multidimensional information index library;
[0167] According to the expanded prompt information, the designer is prompted to input the search and grouping conditions.
[0168] In an optional manner, the method further includes:
[0169] Calculate the relevance of the query term to each document in the first multidimensional information index library and the second multidimensional information index library using the BM25 algorithm;
[0170] Sorting the retrieved documents according to the relevance of each document, placing the document most relevant to the query term at the front;
[0171] The sorted search results are grouped according to the similarity of the document contents or the multi-dimensional information.
[0172] In an optional manner, the types of the style variables include, but are not limited to: value style, text style, rounded corner style, color style, text style, stroke style, special effect style, margin style and grid style;
[0173] The collection modes include a color mode, a size mode, a language mode and an interactive mode.
[0174] In an optional manner, the LLM enhanced retrieval model includes an input processing module, an unsupervised LLM module, an intent recognition module, an output generation module, and an unsupervised optimization module;
[0175] The input processing module includes a text parser and a feature extractor; the text parser converts the multiple rounds of retrieval and grouping operation conditions into structured data; the feature extractor extracts keywords, phrases or structural information;
[0176] The unsupervised LLM module includes a static rule module, a multimodal fusion module, an enhanced context module and a causal reasoning module; the static rule module includes layout rules, color matching rules and interactive design rules of the design file; the multimodal fusion module is used for multimodal feature extraction and cross-modal information association; the enhanced context module is used to introduce external dialogue content and capture the structure and hierarchical relationship in the context; the causal reasoning module includes a causal graph representation unit and a counterfactual reasoning unit;
[0177] The intention recognition module includes a rule-based intention parser and a context manager. The rule-based intention parser is used to identify the designer's retrieval and grouping intentions; the context manager is used to track and integrate context information in multiple rounds of dialogue;
[0178] The output generation module is used to generate retrieval and grouping results;
[0179] The unsupervised optimization module includes an adaptive rule adjuster and a user feedback integrator. The adaptive rule adjuster is used to process performance feedback of new inputs and dynamically adjust the rules of the static rule module; the user feedback integrator is used to collect user feedback.
[0180] In an optional manner, the static rule module constructs the layout rules, color matching rules and interaction design rules of the design file through an embedding matrix; wherein each row of the embedding matrix corresponds to the semantic information of a rule; and each rule includes a rule type, an applicable condition and a priority attribute;
[0181] The static rule module constructs the association relationship between each rule and the corresponding context through the GCN graph embedding method, and integrates the association relationship into the embedding vector of each rule.
[0182] In an optional manner, the multimodal fusion module is a dual-tower network structure, including a modality-specific embedding layer, a modality-shared encoding layer, a multimodal feature fusion representation layer, and a joint learning similarity calculation layer;
[0183] Wherein, the modality-specific embedding layer adopts a BERT+VGG network structure;
[0184] The modality shared encoding layer includes a cross-modality attention unit and a shared encoder unit; wherein the cross-modality attention unit layer includes attention in two directions of RGB-to-Depth and Depth-to-RGB; the shared encoder unit uses multiple parallel convolution paths, each path having a different convolution kernel size and step size to capture contextual information;
[0185] The multimodal feature fusion representation layer includes a modality-specific feature extraction unit, a feature fusion unit, and a shared representation learning unit; wherein the modality-specific feature extraction unit includes a text modality BERT network layer, a visual modality EfficientNet network layer, and an audio modality CNN network layer;
[0186] The joint learning similarity calculation layer includes a similarity measurement unit and a joint learning optimization unit; wherein the similarity measurement unit adopts a cosine similarity measurement function, and the joint learning optimization unit adopts a triple loss function.
[0187] In an optional manner, the causal graph representation unit is used to construct the causal relationship between variables through a directed acyclic causal graph, the nodes of the directed acyclic causal graph are observed variables or potential unobserved variables, and the edges are the directions of the causal relationship between the variables;
[0188] The counterfactual reasoning unit performs counterfactual reasoning based on the directed acyclic causal graph; specifically, traces along the edges in the directed acyclic causal graph to determine the variables directly affected by the intervention point; and calculates the states of other variables under the new intervention conditions.
[0189] In an optional manner, the rule intent parser includes an embedding layer, a plurality of stacked GRU layers, an RNNlogic network layer, a fully connected layer, and an output layer;
[0190] The rule intent parser is used to identify the designer's retrieval and grouping intent and further includes:
[0191] The structured data is converted into an embedding vector through an embedding layer, and the embedding vector is sequence modeled through a GRU layer to capture context information;
[0192] Passing the context information to the RNNlogic network layer, and matching according to the layout rules, color matching rules and interaction design rules of the design file;
[0193] The output of the RNNlogic network layer is mapped to the intent classification space through the fully connected layer, and the probability distribution of each intent is output through the output layer.
[0194] In an optional manner, the layout rules include page, margin, line spacing, font size, alignment, and column layout rules;
[0195] The color rules include primary colors, secondary colors, and matching taboo rules;
[0196] The interaction design rules include click, slide, drag, zoom and hover operation rules.
[0197] In an optional manner, the adaptive rule adjuster includes:
[0198] The input layer is used to receive the feedback signal and current rule parameters transmitted by the user feedback integrator;
[0199] A feature extraction layer, used to extract the features of the feedback signal and convert it into a feature vector that is instructive for rule adjustment;
[0200] A rule adjustment strategy layer, used to determine adjustment rule parameters of the layout rule, color matching rule and interactive design according to the feature vector and current rule parameters;
[0201] The output layer is used to output the adjustment rule parameters.
[0202] The solution provided by the above embodiment of the present invention constructs a first multidimensional information index library of historical design files, and constructs a second multidimensional information index library based on the design files currently in use; wherein the first multidimensional information and the second multidimensional information include but are not limited to creators, team information, customer information, version information, style attributes, style tokens, style variables, collection patterns, style codes, reference relationships, and log information; receives multiple rounds of retrieval and grouping operation conditions input by designers, and uses the LLM enhanced retrieval model to capture the designer's retrieval and grouping induction intentions; and screens and displays retrieval and grouping results that are highly matched with the retrieval and grouping induction intentions from the first multidimensional information index library and the second multidimensional information index library. The present invention recognizes user intentions through the LLM model, automatically screens and displays retrieval and grouping results that are highly matched with user intentions, thereby improving design efficiency.
[0203] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0204] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0205] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0206] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0207] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0208] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0209] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. An enhanced retrieval and grouping method for design documents based on LLM large model, It is characterized in that include: Constructing a first multi-dimensional information index library of historical design files, and constructing a second multi-dimensional information index library according to the design files currently in use; wherein the first multi-dimensional information and the second multi-dimensional information include but are not limited to creator, team information, customer information, version information, style attributes, style tokens, style variables, collection modes, style codes, reference relationships, and log information; Receiving multiple rounds of search and grouping operation conditions input by the designer, and using the LLM enhanced search model to capture the designer's search and grouping induction intentions; The search and grouping results that are highly matched with the search and grouping induction intentions are screened and displayed from the first multidimensional information index library and the second multidimensional information index library.
2. The method according to claim 1, It is characterized in that The multiple rounds of retrieval and grouping operation conditions input by the designer further include: Constructing a prompt template library, wherein the prompt template library contains a general description of design file retrieval and grouping operations to guide designers to input retrieval and grouping intentions; Dynamically expand and enhance information according to the first multidimensional information index library and the second multidimensional information index library; According to the expanded prompt information, the designer is prompted to input the search and grouping conditions.
3. The method according to claim 1, It is characterized in that The method further comprises: Calculate the relevance of the query term to each document in the first multidimensional information index library and the second multidimensional information index library using the BM25 algorithm; Sorting the retrieved documents according to the relevance of each document, placing the document most relevant to the query term at the front; The sorted search results are grouped according to the similarity of the document contents or the multi-dimensional information.
4. The method according to claim 1, It is characterized in that The types of style variables include but are not limited to: value style, text style, rounded corner style, color style, text style, stroke style, special effect style, margin style and grid style; The collection modes include a color mode, a size mode, a language mode and an interactive mode.
5. The method according to claim 1, It is characterized in that The LLM enhanced retrieval model includes an input processing module, an unsupervised LLM module, an intent recognition module, an output generation module and an unsupervised optimization module; The input processing module includes a text parser and a feature extractor; the text parser converts the multiple rounds of retrieval and grouping operation conditions into structured data; the feature extractor extracts keywords, phrases or structural information; The unsupervised LLM module includes a static rule module, a multimodal fusion module, an enhanced context module and a causal reasoning module; the static rule module includes layout rules, color matching rules and interactive design rules of the design file; the multimodal fusion module is used for multimodal feature extraction and cross-modal information association; the enhanced context module is used to introduce external dialogue content and capture the structure and hierarchical relationship in the context; the causal reasoning module includes a causal graph representation unit and a counterfactual reasoning unit; The intention recognition module includes a rule-based intention parser and a context manager. The rule-based intention parser is used to identify the designer's retrieval and grouping intentions; the context manager is used to track and integrate context information in multiple rounds of dialogue; The output generation module is used to generate retrieval and grouping results; The unsupervised optimization module includes an adaptive rule adjuster and a user feedback integrator. The adaptive rule adjuster is used to process performance feedback of new inputs and dynamically adjust the rules of the static rule module; the user feedback integrator is used to collect user feedback.
6. The method according to claim 5, It is characterized in that The static rule module constructs the layout rules, color matching rules and interactive design rules of the design file through an embedding matrix; wherein each row of the embedding matrix corresponds to the semantic information of a rule; each rule includes a rule type, an applicable condition and a priority attribute; The static rule module constructs the association relationship between each rule and the corresponding context through the GCN graph embedding method, and integrates the association relationship into the embedding vector of each rule.
7. The method according to claim 5, It is characterized in that The multimodal fusion module is a dual-tower network structure, including a modality-specific embedding layer, a modality-shared encoding layer, a multimodal feature fusion representation layer, and a joint learning similarity calculation layer; Wherein, the modality-specific embedding layer adopts a BERT+VGG network structure; The modality shared encoding layer includes a cross-modality attention unit and a shared encoder unit; wherein the cross-modality attention unit layer includes attention in two directions of RGB-to-Depth and Depth-to-RGB; the shared encoder unit uses multiple parallel convolution paths, each path having a different convolution kernel size and step size to capture contextual information; The multimodal feature fusion representation layer includes a modality-specific feature extraction unit, a feature fusion unit, and a shared representation learning unit; wherein the modality-specific feature extraction unit includes a text modality BERT network layer, a visual modality EfficientNet network layer, and an audio modality CNN network layer; The joint learning similarity calculation layer includes a similarity measurement unit and a joint learning optimization unit; wherein the similarity measurement unit adopts a cosine similarity measurement function, and the joint learning optimization unit adopts a triple loss function.
8. The method according to claim 5, It is characterized in that The causal graph representation unit is used to construct the causal relationship between variables through a directed acyclic causal graph, wherein the nodes of the directed acyclic causal graph are observed variables or potential unobserved variables, and the edges are the directions of the causal relationship between the variables; The counterfactual reasoning unit performs counterfactual reasoning based on the directed acyclic causal graph; specifically, traces along the edges in the directed acyclic causal graph to determine the variables directly affected by the intervention point; and calculates the states of other variables under the new intervention conditions.
9. The method according to claim 5, It is characterized in that The rule intent parser includes an embedding layer, multiple stacked GRU layers, an RNNlogic network layer, a fully connected layer, and an output layer; The rule intent parser is used to identify the designer's retrieval and grouping intent and further includes: The structured data is converted into an embedding vector through an embedding layer, and the embedding vector is sequence modeled through a GRU layer to capture context information; Passing the context information to the RNNlogic network layer, and matching according to the layout rules, color matching rules and interaction design rules of the design file; The output of the RNNlogic network layer is mapped to the intent classification space through the fully connected layer, and the probability distribution of each intent is output through the output layer.
10. The method according to claim 9, It is characterized in that The layout rules include page, margin, line spacing, font size, alignment and column layout rules; The color rules include primary colors, secondary colors, and matching taboo rules; The interaction design rules include click, slide, drag, zoom and hover operation rules.
11. The method according to claim 5, It is characterized in that The adaptive rule adjuster comprises: The input layer is used to receive the feedback signal and current rule parameters transmitted by the user feedback integrator; A feature extraction layer, used to extract the features of the feedback signal and convert it into a feature vector that is instructive for rule adjustment; A rule adjustment strategy layer, used to determine adjustment rule parameters of the layout rule, color matching rule and interactive design according to the feature vector and current rule parameters; The output layer is used to output the adjustment rule parameters.
12. A design document enhanced retrieval and grouping device based on LLM large model, It is characterized in that include: An index building module, used to build a first multi-dimensional information index library of historical design files, and to build a second multi-dimensional information index library according to the design files currently in use; wherein the first multi-dimensional information and the second multi-dimensional information include but are not limited to creator, team information, customer information, version information, style attributes, style tokens, style variables, collection modes, style codes, reference relationships, and log information; An intention capture module is used to receive multiple rounds of search and grouping operation conditions input by the designer, and use the LLM enhanced search model to capture the designer's search and grouping induction intentions; A result matching module is used to screen and display the search and grouping results that are highly matched with the search and grouping induction intention from the first multidimensional information index library and the second multidimensional information index library.
Citation Information
Cited By
Language model prompt learning method and system based on weak supervision
CN120278265A
