A large model-based commodity attribute semantic analysis and identification method

By improving the Hopper model and dynamic spectrum routing algorithm, the problems of ambiguous attribute boundaries and mixed attributes in commodity attribute extraction are solved, achieving high accuracy and consistency in commodity attribute recognition, and improving the efficiency and stability of commodity attribute structured processing.

CN123160236APending Publication Date: 2026-11-24BEIJING ZHONGDIAN ZHONGCAI DATA SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611193398.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing product attribute extraction methods struggle to accurately identify attribute boundaries when faced with unstructured and diverse product titles and descriptions, leading to attribute confusion issues. Furthermore, they lack the ability to analyze complex semantic structures, resulting in low accuracy in attribute type identification.

Method used

An improved Hopper model and dynamic spectrum routing algorithm are adopted. Through a context embedding generation module, a semantic spectrum transformation module, a cross-frequency recombination module, and an attribute-aware decoding module, a semantic spectrum representation tensor is constructed to perform multi-scale spectrum decomposition and path allocation, thereby realizing attribute type decoding and attribute value extraction.

Benefits of technology

It improves the accuracy and consistency of product attribute recognition, enhances the ability to express complex semantics, and improves the efficiency and stability of product attribute structured processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160236A_ABST
    Figure CN123160236A_ABST
Patent Text Reader

Abstract

The application discloses a commodity attribute semantic analysis and recognition method based on a large model, which comprises the following steps: obtaining a commodity semantic input tensor; inputting the commodity semantic input tensor into an improved Hopper model; performing context semantic coding processing to generate a context semantic embedding matrix; generating a semantic frequency spectrum representation tensor through an embedding semantic frequency spectrum mapping mechanism; performing multi-scale frequency spectrum decomposition processing to generate a token-level multi-scale semantic frequency spectrum vector set; calling a dynamic spectrum routing algorithm to generate a token-level semantic routing path set; constructing a semantic frequency spectrum subspace and performing cross-frequency reorganization processing to generate an attribute semantic aggregation representation matrix; performing attribute type decoding and attribute value extraction processing to obtain a commodity attribute key-value pair set; and performing standardization processing to output standard commodity attribute structure data. The improved Hopper model and the dynamic spectrum routing algorithm are combined to realize accurate recognition of commodity attribute semantics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of commodity information processing technology, and in particular to a method for semantic analysis and recognition of commodity attributes based on a large model. Background Technology

[0002] With the rapid development of e-commerce platforms and intelligent recommendation systems, the demand for automated understanding and structured processing of product information is constantly growing. Product attribute semantic analysis and recognition technology is gradually becoming an important foundation for product data governance and intelligent search. Existing product attribute extraction methods mainly rely on rule-based matching or shallow machine learning models to analyze product titles or descriptions. However, these methods generally suffer from the following problems in practical applications:

[0003] Product titles and descriptions are typically unstructured, diverse in expression, and semantically redundant. The text contains numerous colloquial expressions, abbreviations, and non-standard descriptions, making it difficult for rule-based or keyword-matching methods to accurately identify attribute boundaries. Attribute extraction results are unstable and have weak generalization ability. There is a degree of inconsistency between product category tags and text semantics. Existing methods struggle to effectively integrate category information with text semantic information, resulting in low accuracy in attribute type identification, especially in scenarios with multiple attributes and categories, where attribute confusion is likely. For long texts and complex semantic relationships, traditional sequence models or simple attention mechanisms primarily focus on modeling local contextual relationships, failing to effectively capture the changing trends and structural features of semantics within the overall sequence, leading to insufficient ability to express fine-grained attribute information. Furthermore, existing methods often employ single-scale or single-viewpoint semantic modeling in feature representation, lacking the ability to hierarchically express information at different semantic granularities. This makes it difficult to adapt to the analytical needs of complex product semantic structures, thus affecting the accuracy and consistency of attribute type identification and attribute value extraction.

[0004] Therefore, how to provide a product attribute semantic analysis and recognition method based on a large model is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] One objective of this invention is to propose a product attribute semantic analysis and recognition method based on a large model. This invention employs an improved Hopper model and a dynamic spectrum routing algorithm to achieve structured analysis and accurate recognition of product attribute semantics. It constructs a semantic spectrum representation tensor by combining a semantic spectrum mapping mechanism and enhances semantic relevance through a cross-frequency recombination module, completing attribute type decoding and attribute value extraction processing. This effectively solves the problems of complex semantics in product text, ambiguous attribute boundaries, and mixed multiple attributes. It has the advantages of high recognition accuracy, strong consistency, and strong adaptability to complex semantic expressions, while improving the efficiency and stability of structured processing of product attributes.

[0006] A product attribute semantic analysis and recognition method based on a large model according to an embodiment of the present invention includes:

[0007] Obtain the product title text, product category tag, and product description text, and perform serialization encoding to obtain the product semantic input tensor;

[0008] The commodity semantic input tensor is input into the improved Hopper model, which includes a context embedding generation module, a semantic spectrum transformation module, a cross-frequency reconstruction module, and an attribute-aware decoding module.

[0009] The context embedding generation module performs context semantic encoding on the product semantic input tensor to generate a context semantic embedding matrix.

[0010] The semantic spectrum transformation module embeds a semantic spectrum mapping mechanism to perform spectrum mapping processing on the context semantic embedding matrix and generate a semantic spectrum representation tensor.

[0011] Perform multi-scale spectral decomposition on the semantic spectral representation tensor to extract the multi-scale semantic spectral vector of the corresponding token and generate a set of token-level multi-scale semantic spectral vectors.

[0012] Based on the token-level multi-scale semantic spectrum vector set, a dynamic spectrum routing algorithm is invoked to perform path allocation processing, generating a token-level semantic routing path set.

[0013] The token-level multi-scale semantic spectrum vector set and the token-level semantic routing path set are input into the cross-frequency reorganization module to construct a semantic spectrum subspace, and the token-level multi-scale semantic spectrum vector set is subjected to cross-frequency reorganization processing to generate an attribute semantic aggregation representation matrix.

[0014] The attribute semantic aggregation representation matrix is ​​input into the attribute-aware decoding module to perform attribute type decoding and attribute value extraction processing to obtain a set of product attribute key-value pairs.

[0015] The set of product attribute key-value pairs is standardized to output standard product attribute structure data.

[0016] Optionally, the step of obtaining the product title text, product category tag, and product description text, and performing serialization encoding to obtain the product semantic input tensor, specifically involves:

[0017] Collect product title text, product category tag, and product description text; perform word segmentation on the product title text and map it into the corresponding title word vector sequence;

[0018] The product category target tags are split, and the categories at each level in the category path are converted into category word sequences and mapped to the corresponding category word vector sequences;

[0019] The product description text is segmented into sentences, and word segmentation is performed on each sentence. The word segmentation results are then mapped to the corresponding descriptive word vector sequence.

[0020] The title word vector sequence, category word vector sequence, and description word vector sequence are concatenated in sequence to generate a unified semantic vector sequence;

[0021] The unified semantic vector sequence is subjected to sequence length unification processing. When the sequence length is less than the set length, zero vectors are added to the end of the sequence. When the sequence length is greater than the set length, the excess part is truncated to obtain the product semantic input tensor.

[0022] Optionally, the step of performing context semantic encoding on the product semantic input tensor to generate a context semantic embedding matrix specifically involves:

[0023] Each title word vector, category word vector, and description word vector in the product semantic input tensor is treated as a token vector.

[0024] For each token vector, add a position encoding vector according to its arrangement in the product semantic input tensor to generate a position encoding input tensor;

[0025] The position-encoded input tensor is embedded into the multi-head self-attention unit in the generation module, and query mapping, key mapping and value mapping are performed on the position-encoded input tensor respectively to generate a query vector set, a key vector set and a value vector set.

[0026] For any target token, the query vector corresponding to the target token is multiplied dimension by dimension by the key vectors corresponding to all tokens and then summed to obtain the semantic association score between the target token and all tokens;

[0027] The semantic association scores corresponding to the target token are indexed, and the indexed result of each semantic association score is divided by the sum of the indexed results of all semantic association scores to obtain the semantic association weight of the target token relative to all tokens.

[0028] Multiply the value vectors corresponding to all tokens by their respective semantic association weights, and sum the products to obtain the context association vector of the target token.

[0029] Generate a corresponding context association vector for each token, and arrange them according to the order of the tokens in the product semantic input tensor to generate the first context association representation matrix;

[0030] The first context association representation matrix is ​​input into the feedforward mapping unit in the context embedding generation module for linear mapping and ReLU nonlinear activation processing to generate the second context association representation matrix.

[0031] The second context association representation matrix is ​​added element-wise to the vectors at corresponding positions in the first context association representation matrix to obtain the residual augmentation representation matrix. The residual augmentation representation matrix is ​​then subjected to layer normalization to generate the context semantic embedding matrix.

[0032] Optionally, the semantic spectrum mapping mechanism is specifically as follows:

[0033] Each context token vector in the context semantic embedding matrix is ​​used as a semantic unit to be mapped.

[0034] Each semantic unit to be mapped is continuously divided according to the vector dimension order to obtain low-level semantic segments, middle-level semantic segments and high-level semantic segments;

[0035] The low-level semantic segment, the middle-level semantic segment, and the high-level semantic segment are summed and divided by the corresponding number of dimensions to obtain the low-level semantic baseline value, the middle-level semantic baseline value, and the high-level semantic baseline value.

[0036] Fill the corresponding dimension position of the low semantic segment with low semantic reference value, fill the corresponding dimension position of the middle semantic segment with middle semantic reference value, and fill the corresponding dimension position of the high semantic segment with high semantic reference value to form a semantic spectrum anchor vector consistent with the dimension of the semantic unit to be mapped.

[0037] The semantic offset value is obtained by subtracting the corresponding dimension value in the semantic spectrum anchor vector from the vector value of each dimension in the semantic unit to be mapped, and then constructing the semantic offset vector.

[0038] Perform discrete cosine transform on the semantic offset vector. Select the semantic offset value of each dimension in the order of the dimensions in the semantic offset vector, multiply each semantic offset value by the corresponding cosine basis function value, and sum all the product results to obtain the spectral coefficients at the corresponding frequency positions. Calculate the spectral coefficients for all frequency positions to generate the token spectral amplitude vector.

[0039] The semantic offset values ​​of adjacent dimensions in the semantic offset vector are calculated by difference. The semantic offset value of the current dimension is subtracted from the semantic offset value of the previous dimension to obtain the phase change value of the current dimension. The phase change value of the first dimension is set as the semantic offset value of the first dimension. All phase change values ​​are arranged in dimensional order to generate a token spectrum phase change vector with the same dimensions as the semantic offset vector.

[0040] The token spectrum amplitude vector and the token spectrum phase change vector are concatenated according to their corresponding dimensional positions to generate a token semantic spectrum vector;

[0041] Generate corresponding token semantic spectrum vectors for each context token vector, and stack them according to the order of arrangement in the context semantic embedding matrix to generate a semantic spectrum representation tensor.

[0042] Optionally, the step of performing multi-scale spectral decomposition on the semantic spectral representation tensor to extract the multi-scale semantic spectral vector of the corresponding token and generate a token-level multi-scale semantic spectral vector set is specifically as follows:

[0043] Each token semantic spectrum vector in the semantic spectrum representation tensor is processed, and the token semantic spectrum vector is formed by concatenating the token spectrum magnitude vector and the token spectrum phase change vector.

[0044] For any dimension location, select multiple neighborhood scales centered on the current dimension location and covering different ranges. Sum the token spectrum amplitude vectors within each neighborhood scale and divide them by the number of dimensions involved in the calculation to generate the amplitude aggregation vector of the corresponding scale. Sum the token spectrum phase change vectors and divide them by the number of dimensions involved in the calculation to generate the phase aggregation vector of the corresponding scale.

[0045] The magnitude aggregation vector and phase aggregation vector obtained at different neighborhood scales at the same dimensional position are concatenated to generate a multi-scale vector at the current dimensional position.

[0046] For each token semantic spectrum vector, generate corresponding multi-scale vectors for all dimensions, and arrange them in dimensional order to generate the corresponding token's multi-scale semantic spectrum vector;

[0047] Generate corresponding multi-scale semantic spectrum vectors for each token, and stack them according to the order of arrangement in the semantic spectrum representation tensor to generate a set of token-level multi-scale semantic spectrum vectors.

[0048] Optionally, the step of invoking the dynamic spectrum routing algorithm for path allocation specifically involves:

[0049] Receive a set of token-level multi-scale semantic spectrum vectors, take the multi-scale semantic spectrum vector corresponding to each token as the vector to be routed, and number them according to the order of arrangement;

[0050] The vector to be routed with the smallest number is selected as the reference vector, and the reference vector is used as the initial vector of a semantic spectrum subset.

[0051] Perform a dimension-by-dimensional subtraction operation between the reference vector and the other vectors to be routed, take the absolute value of the difference in each dimension and accumulate them to obtain the corresponding vector difference metric.

[0052] The average difference metric is obtained by summing the vector difference metrics between the reference vector and all other vectors to be routed and dividing by the number of vectors involved in the calculation.

[0053] Vectors to be routed whose vector difference metric is less than or equal to the average difference metric are assigned to a semantic spectrum subset and removed from the set to be processed;

[0054] Repeat the reference vector selection and difference partitioning process in the remaining vectors to be routed until all vectors to be routed are partitioned into different semantic spectrum subsets;

[0055] For each semantic spectrum subset, perform a dimension-wise summation of the multi-scale semantic spectrum vectors and divide by the number of vectors in the set to generate the corresponding semantic routing path prototype vector.

[0056] For any vector to be routed, perform dimension-wise multiplication and summation with each semantic routing path prototype vector to generate the corresponding initial path response value;

[0057] For any initial path response value corresponding to a vector to be routed, subtract the other initial path response values ​​from the current initial path response value to obtain multiple difference results; take the absolute value of each of the multiple difference results, sum all the absolute value results and divide by the number of differences to generate the corresponding scalar adjustment coefficient;

[0058] The scalar adjustment coefficient is multiplied dimension by dimension with the corresponding semantic routing path prototype vector to generate the path dynamic adjustment vector;

[0059] The path dynamic adjustment vector is summed dimension by dimension and divided by the number of vector dimensions to generate a scalar adjustment value. The scalar adjustment value is then added to the initial path response value to generate the dynamic path response value.

[0060] The dynamic path response values ​​are subjected to indexation, and the indexation result of each dynamic path response value is divided by the sum of the indexation results of all dynamic path response values ​​to generate the path assignment probability.

[0061] Select the semantic routing path prototype vector with the highest path allocation probability as the semantic routing path of the token corresponding to the vector to be routed;

[0062] Path allocation processing is performed on all tokens separately, and they are arranged according to their order in the token-level multi-scale semantic spectrum vector set to generate a token-level semantic routing path set.

[0063] Optionally, the construction of the semantic spectrum subspace and the cross-frequency recombination processing of the token-level multi-scale semantic spectrum vector set to generate the attribute semantic aggregation representation matrix are specifically as follows:

[0064] Receive the token-level semantic routing path set and the token-level multi-scale semantic spectrum vector set;

[0065] Using the semantic routing path corresponding to each token as the basis for subspace partitioning, tokens with the same semantic routing path are grouped into the same group to construct a semantic spectrum subspace.

[0066] For each token-level multi-scale semantic spectrum vector in the semantic spectrum subspace, perform a dimension-wise summation and divide by the number of vectors in the semantic spectrum subspace to generate the corresponding subspace aggregation vector;

[0067] Perform cross-frequency feature recombination processing on the subspace aggregation vector to generate a recombined spectrum vector;

[0068] The recombined spectrum vector and the subspace aggregation vector are added dimension by dimension to generate a cross-frequency fusion vector;

[0069] All cross-frequency fusion vectors are stacked to generate an attribute semantic clustering representation matrix.

[0070] Optionally, the cross-frequency recombination process specifically includes:

[0071] For any dimension position in the subspace aggregation vector, add the value of the dimension position to the values ​​of the previous dimension position and the next dimension position respectively to generate the first combined value. When there is no previous dimension position, the value of the current dimension position is used as the value of the previous dimension position. When there is no next dimension position, the value of the current dimension position is used as the value of the next dimension position.

[0072] Subtract the value at the dimension position from the values ​​at the previous and next dimension positions respectively, and sum the absolute values ​​of the subtraction results to generate the second combined value.

[0073] Add the first combination value and the second combination value to generate the recombined value at the current dimension position;

[0074] Arrange all recombined values ​​in the original dimensional order to generate a recombined spectrum vector with the same dimension as the subspace aggregation vector.

[0075] Optionally, the execution of attribute type decoding and attribute value extraction processing specifically includes:

[0076] Each row vector in the attribute semantic aggregation representation matrix is ​​used as an attribute semantic representation vector;

[0077] Obtain the set of attribute type names corresponding to the product category target tag, and perform word segmentation and vector mapping on each attribute type name to generate an attribute type name vector sequence;

[0078] For each sequence of attribute type name vectors, perform a dimension-wise summation and divide by the number of vectors to generate the corresponding attribute type prototype vector;

[0079] Each attribute semantic representation vector is multiplied dimension-by-dimensionally by the prototype vector of each attribute type and then summed to generate an attribute type matching value;

[0080] The attribute type matching values ​​are subjected to indexation processing, and the indexation result of each attribute type matching value is divided by the sum of the indexation results of all attribute type matching values ​​to generate an attribute type probability distribution.

[0081] Select the attribute type name corresponding to the attribute type prototype vector with the largest value in the attribute type probability distribution as the attribute type of the corresponding attribute semantic representation vector;

[0082] Based on the attribute type, a sliding window process is performed on the word vector sequences corresponding to the product title text and product description text, and continuous word vectors are selected in sequence according to the order of words in the sequence to form candidate word fragments.

[0083] Each word vector in each candidate word segment is multiplied dimension-by-dimensionally by the attribute semantic representation vector and then summed. The calculation results of all word vectors in the candidate word segment are accumulated to generate the corresponding segment matching value.

[0084] Compare the segment matching values ​​of all candidate word segments, and select the candidate word segment with the largest segment matching value as the attribute value;

[0085] The attribute type and the corresponding attribute value are combined to generate product attribute key-value pairs;

[0086] Based on the product attribute key-value pairs of the semantic representation vector of all attributes, a set of product attribute key-value pairs is obtained.

[0087] Optionally, the standardization of the product attribute key-value pair set to output standard product attribute structure data specifically involves:

[0088] Perform character cleansing on each attribute type and attribute value in the product attribute key-value pair collection, removing whitespace characters from the string;

[0089] Duplicate characters in attribute values ​​are removed, while preserving the order of their first appearance;

[0090] The processed attribute types and attribute values ​​are matched to form standardized product attribute key-value pairs;

[0091] Based on the standardized product attribute key-value pairs of the semantic representation vector of all attributes, output standard product attribute structure data.

[0092] The beneficial effects of this invention are:

[0093] This invention addresses the challenges of complex semantic expression, ambiguous attribute boundaries, and mixed attributes in product text by constructing a collaborative processing mechanism that integrates the improved Hopper model and dynamic spectrum routing algorithm. The overall structure incorporates a context embedding generation module, a semantic spectrum transformation module, a cross-frequency recombination module, and an attribute-aware decoding module, transforming traditional single-sequence semantic modeling into structured semantic distribution modeling. In the semantic representation stage, a semantic spectrum mapping mechanism converts the context semantic embedding matrix into a semantic spectrum representation tensor, mapping semantic information from the original word order space to a change pattern space, thereby enhancing the ability to express overall semantic trends and local differences. In the feature organization stage, multi-scale spectrum decomposition generates a token-level multi-scale semantic spectrum vector set. The system integrates and utilizes a dynamic spectrum routing algorithm to allocate paths to tokens, enabling adaptive construction of semantic routing paths and dynamic partitioning of semantic spectrum subspaces. This enhances the separation capability between different semantic patterns. In the feature reconstruction stage, the cross-frequency recombination module performs neighborhood dimension interaction operations on the subspace aggregation vectors to construct recombined spectrum vectors and generate attribute semantic aggregation representation matrices, ensuring that semantic representations possess both continuity and diversity. In the decoding stage, the attribute-aware decoding module performs attribute type decoding and attribute value extraction, accurately generating sets of product attribute key-value pairs. Finally, standardization processing outputs standard product attribute structure data, thereby comprehensively improving the accuracy, consistency, and adaptability to complex semantic expressions in product attribute recognition. Attached Figure Description

[0094] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0095] Figure 1 This is an overall flowchart of a product attribute semantic analysis and recognition method based on a large model proposed in this invention;

[0096] Figure 2 This is a schematic diagram of the improved Hopper model structure for a product attribute semantic analysis and recognition method based on a large model proposed in this invention.

[0097] Figure 3 This is a flowchart illustrating the path allocation process of the dynamic spectrum routing algorithm for a product attribute semantic analysis and recognition method based on a large model proposed in this invention. Detailed Implementation

[0098] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0099] refer to Figures 1-3 A product attribute semantic analysis and recognition method based on a large model includes:

[0100] Obtain the product title text, product category tag, and product description text, and perform serialization encoding to obtain the product semantic input tensor;

[0101] The Hopper model is improved by taking the semantic input tensor of the product. The improved Hopper model includes a context embedding generation module, a semantic spectrum transformation module, a cross-frequency reconstruction module, and an attribute-aware decoding module.

[0102] The context embedding generation module performs context semantic encoding on the product semantic input tensor to generate a context semantic embedding matrix.

[0103] The semantic spectrum transformation module embeds a semantic spectrum mapping mechanism to perform spectrum mapping processing on the context semantic embedding matrix and generate a semantic spectrum representation tensor.

[0104] Perform multi-scale spectral decomposition on the semantic spectral representation tensor, extract the multi-scale semantic spectral vector of the corresponding token, and generate a set of token-level multi-scale semantic spectral vectors.

[0105] Based on a set of token-level multi-scale semantic spectrum vectors, a dynamic spectrum routing algorithm is invoked to perform path allocation processing, generating a set of token-level semantic routing paths.

[0106] Input the token-level multi-scale semantic spectrum vector set and the token-level semantic routing path set into the cross-frequency reorganization module to construct a semantic spectrum subspace, and perform cross-frequency reorganization processing on the token-level multi-scale semantic spectrum vector set to generate an attribute semantic aggregation representation matrix;

[0107] The attribute semantic aggregation representation matrix is ​​input into the attribute-aware decoding module, which performs attribute type decoding and attribute value extraction to obtain a set of product attribute key-value pairs.

[0108] Standardize the set of key-value pairs for product attributes and output standard product attribute structure data.

[0109] In this embodiment, the product title text, product category tag, and product description text are obtained and serialized to obtain the product semantic input tensor, specifically:

[0110] Collect product title text, product category tag, and product description text; perform word segmentation on the product title text and map it into the corresponding title word vector sequence;

[0111] The product category tags are split and processed, and the categories at each level in the category path are converted into category word sequences and mapped to the corresponding category word vector sequences;

[0112] The product description text is segmented into sentences, and word segmentation is performed on each sentence. The segmentation results are then mapped to the corresponding descriptive word vector sequence.

[0113] The title word vector sequence, category word vector sequence, and description word vector sequence are concatenated in sequence to generate a unified semantic vector sequence.

[0114] The sequence length of the unified semantic vector sequence is uniformly processed. When the sequence length is less than the set length, zero vectors are added to the end of the sequence. When the sequence length is greater than the set length, the excess part is truncated to obtain the product semantic input tensor.

[0115] In the specific implementation process, the product title text is processed using a dictionary-based maximum forward matching word segmentation method. The dictionary size is set at 500,000 commonly used product terms. After segmentation, each word is mapped to a 128-dimensional vector through a pre-trained word vector model. Product category tags are split according to a hierarchical structure of first-level category - second-level category - third-level category. Each level of category is converted into an independent term and mapped to a 128-dimensional category word vector to enhance the expressive power of category information in the semantic space. The product description text is segmented using periods and commas as sentence markers, and word segmentation is performed on each sentence. The granularity of word segmentation is consistent with that of the title, and all sentences are uniformly mapped to 128-dimensional description word vectors. The system ensures consistency in the vector space across different text sources. During the concatenation process, the title word vector sequence is placed at the beginning of the sequence, the category word vector sequence is placed in the middle, and the description word vector sequence is placed at the end. This allows the model to prioritize receiving title and category information, thereby improving the ability to identify attributes. In the process of unifying the sequence length, the length of the unified semantic vector sequence is set to 256. When the sequence length is less than 256, zero vectors are added to the end to bring it to a length of 256. When the sequence length is greater than 256, the first 256 vectors are retained and the subsequent parts are truncated. This ensures a stable and consistent input structure, improves the model's computational efficiency, and reduces interference from redundant information.

[0116] In this embodiment, the semantic input tensor of the product is subjected to contextual semantic encoding to generate a contextual semantic embedding matrix, specifically as follows:

[0117] Each title word vector, category word vector, and description word vector in the product semantic input tensor is treated as a token vector;

[0118] For each token vector, add a position encoding vector according to its arrangement in the product semantic input tensor to generate a position encoding input tensor;

[0119] The position-encoded input tensor is embedded into the multi-head self-attention unit in the generation module, and query mapping, key mapping and value mapping are performed on the position-encoded input tensor respectively to generate a set of query vectors, a set of key vectors and a set of value vectors.

[0120] For any target token, the query vector corresponding to the target token is multiplied dimension by dimension by the key vectors corresponding to all tokens and then summed to obtain the semantic association score between the target token and all tokens;

[0121] The semantic association scores corresponding to the target token are indexed, and the indexed result of each semantic association score is divided by the sum of the indexed results of all semantic association scores to obtain the semantic association weight of the target token relative to all tokens.

[0122] Multiply the value vectors corresponding to all tokens by their respective semantic association weights, and sum the products to obtain the context association vector of the target token.

[0123] Generate a corresponding context association vector for each token, and arrange them according to the order of the tokens in the product semantic input tensor to generate the first context association representation matrix;

[0124] The first context association representation matrix is ​​input into the feedforward mapping unit in the context embedding generation module and subjected to linear mapping and ReLU nonlinear activation to generate the second context association representation matrix.

[0125] The vectors at corresponding positions in the second context association representation matrix and the first context association representation matrix are added element by element to obtain the residual augmentation representation matrix. The residual augmentation representation matrix is ​​then subjected to layer normalization to generate the context semantic embedding matrix.

[0126] In the specific implementation, the size of the product semantic input tensor is set to 256×128, where 256 represents the sequence length and 128 represents the dimension of each token vector. The position encoding vector is generated by alternating between sine and cosine functions, with a dimension of 128. Even-numbered dimensions are obtained by performing a sine function calculation on the position index, and odd-numbered dimensions are obtained by performing a cosine function calculation on the position index, thus ensuring the distinctiveness of the encoding at different positions. In the multi-head self-attention unit, the number of heads is set to 8, and the vector dimension of each attention head is set to 16. By evenly dividing the 128-dimensional vector into 8 subspaces for attention calculation, the expressive power of different semantic subspaces is improved. Query mapping, key... Both mapping and value mapping use a 128×128 linear transformation matrix for mapping calculation, and exponential operation and normalization are performed after semantic association score calculation. In the feedforward mapping unit, the first layer of linear mapping expands the vector dimension from 128 to 256, and after ReLU activation, it is compressed back to 128 dimensions through the second layer of linear mapping, thereby enhancing the nonlinear expressive power. In the layer normalization process, the mean and variance of each token vector are calculated for the 128 dimensions, and a normalization operation is performed on each dimension to stabilize the output data distribution, thereby improving the model training convergence speed and inference stability. The generated context semantic embedding matrix consists of multiple context token vectors arranged in rows, with each row corresponding to one context token vector.

[0127] In this embodiment, the semantic spectrum mapping mechanism is specifically as follows:

[0128] Each context token vector in the context semantic embedding matrix is ​​used as a semantic unit to be mapped.

[0129] Each semantic unit to be mapped is continuously divided according to the vector dimension order to obtain low-level semantic segments, middle-level semantic segments and high-level semantic segments;

[0130] The low-level semantic segment, the middle-level semantic segment, and the high-level semantic segment are summed and divided by the corresponding number of dimensions to obtain the low-level semantic baseline value, the middle-level semantic baseline value, and the high-level semantic baseline value.

[0131] Fill the corresponding dimension position of the low semantic segment with the low semantic reference value, fill the corresponding dimension position of the middle semantic segment with the middle semantic reference value, and fill the corresponding dimension position of the high semantic segment with the high semantic reference value to form a semantic spectrum anchor vector consistent with the dimension of the semantic unit to be mapped.

[0132] The semantic offset value is obtained by subtracting the corresponding dimension value in the semantic spectrum anchor vector from the vector value of each dimension in the semantic unit to be mapped, and then constructing the semantic offset vector.

[0133] Perform discrete cosine transform on the semantic offset vector. Select the semantic offset value of each dimension in the order of the dimensions in the semantic offset vector, multiply each semantic offset value by the corresponding cosine basis function value, and sum all the product results to obtain the spectral coefficients at the corresponding frequency positions. Calculate the spectral coefficients for all frequency positions to generate the token spectral amplitude vector.

[0134] In the specific implementation process, the semantic offset vector is set to a length of 128 dimensions, and the number of frequency positions is simultaneously set to 128. Calculations are performed sequentially from the 0th to the 127th frequency position. For any frequency position k, semantic offset values ​​are extracted sequentially from the 0th to the 127th dimension according to the dimensional order in the semantic offset vector. The dimension index i is multiplied by the frequency position k, and the product result is multiplied by a fixed angle coefficient π / 128 to obtain the input value of the cosine function. Cosine operation is performed on this input value to obtain the cosine basis function value of the corresponding dimension position. Each dimension semantic offset value is multiplied by the corresponding cosine basis function value dimension by dimension, and all 128 product results are summed to obtain the spectral coefficients corresponding to the current frequency position k. The above calculation process is repeated according to the frequency positions from 0 to 127 to generate 128 spectral coefficients, which are then arranged in order of frequency position to form a token spectral amplitude vector.

[0135] In word order space, each word vector primarily reflects local semantic information. However, through spectral transformation, the numerical changes in different dimensions can characterize the semantic trends and structural features within the overall sequence. Spectral representation is essentially a re-encoding of semantic change patterns, enabling the model to focus not only on what a word is but also on how its semantics change. In this invention, by performing spectral mapping on the contextual semantic embedding matrix, semantic information is expanded at different scales, thereby enhancing the ability to distinguish complex attribute expressions (such as fine-grained differences in color, specifications, and materials). The local change information in the original semantic offset vector is converted into the response intensity of different frequency components, thus achieving a structured expression of semantic change trends and improving the accuracy and stability of attribute semantic separation.

[0136] The semantic offset values ​​of adjacent dimensions in the semantic offset vector are calculated by difference. The semantic offset value of the current dimension is subtracted from the semantic offset value of the previous dimension to obtain the phase change value of the current dimension. The phase change value of the first dimension is set as the semantic offset value of the first dimension. All phase change values ​​are arranged in dimensional order to generate a token spectrum phase change vector with the same dimensions as the semantic offset vector.

[0137] The token spectrum amplitude vector and the token spectrum phase change vector are concatenated according to their corresponding dimensional positions to generate the token semantic spectrum vector;

[0138] Generate corresponding token semantic spectrum vectors for each context token vector, and stack them according to the order of arrangement in the context semantic embedding matrix to generate a semantic spectrum representation tensor;

[0139] In the specific implementation process, each row of the context semantic embedding matrix serves as a context token vector. The vector dimension is fixed at 128 and is divided into low-dimensional semantic segments, mid-dimensional semantic segments, and high-dimensional semantic segments according to the dimensional order. The low-dimensional semantic segments correspond to dimensions 0 to 42, the mid-dimensional semantic segments correspond to dimensions 43 to 85, and the high-dimensional semantic segments correspond to dimensions 86 to 127. When calculating the semantic spectrum anchor vector, the low-dimensional semantic reference values ​​are repeatedly filled in dimensions 0 to 42, the mid-dimensional semantic reference values ​​are repeatedly filled in dimensions 43 to 85, and the high-dimensional semantic reference values ​​are repeatedly filled in dimensions 86 to 127. The process involves filling in the data to form a baseline vector structure corresponding to the original token vector; ensuring stable periodic changes in different frequencies during the discrete cosine transform; forming a local change sequence through differential operations between adjacent dimensions during phase change calculation, thus explicitly expressing the change trends between continuous dimensions; and finally, constructing a semantic spectrum representation that combines global frequency response and local change features by concatenating amplitude information and phase change information at the same dimensional position. This enhances the separability of different attribute semantics in the frequency domain space and improves the accuracy and robustness of semantic routing and attribute recognition.

[0140] In this embodiment, multi-scale spectral decomposition is performed on the semantic spectral representation tensor to extract the multi-scale semantic spectral vector of the corresponding token, generating a token-level multi-scale semantic spectral vector set. Specifically:

[0141] Each token semantic spectrum vector in the semantic spectrum representation tensor is processed. The token semantic spectrum vector is formed by concatenating the token spectrum magnitude vector and the token spectrum phase change vector.

[0142] For any dimension location, select multiple neighborhood scales centered on the current dimension location and covering different ranges. Sum the token spectrum amplitude vectors within each neighborhood scale and divide them by the number of dimensions involved in the calculation to generate the amplitude aggregation vector of the corresponding scale. Sum the token spectrum phase change vectors and divide them by the number of dimensions involved in the calculation to generate the phase aggregation vector of the corresponding scale.

[0143] The magnitude aggregation vector and phase aggregation vector obtained at different neighborhood scales at the same dimensional position are concatenated to generate a multi-scale vector at the current dimensional position.

[0144] For each token semantic spectrum vector, generate corresponding multi-scale vectors for all dimensions, and arrange them in dimensional order to generate the corresponding token's multi-scale semantic spectrum vector;

[0145] Generate corresponding multi-scale semantic spectrum vectors for all tokens, and stack them according to the order of arrangement in the semantic spectrum representation tensor to generate a set of token-level multi-scale semantic spectrum vectors;

[0146] In the specific implementation, the dimension length of each token semantic spectrum vector in the semantic spectrum representation tensor is set to 256, where the first 128 dimensions correspond to the token spectrum amplitude vector, and the last 128 dimensions correspond to the token spectrum phase change vector. During multi-scale processing, three neighborhood scales are constructed centered on the current dimension position: the first neighborhood scale covers one dimension before and after the current dimension position, the second neighborhood scale covers three dimensions before and after the current dimension position, and the third neighborhood scale covers five dimensions before and after the current dimension position. For the token spectrum amplitude vector within each neighborhood scale, the neighborhood... All amplitude values ​​within the neighborhood are summed and divided by the number of dimensions in the neighborhood to obtain an amplitude aggregation vector. At the same time, the corresponding token spectrum phase change vector is summed and averaged to obtain a phase aggregation vector. By repeating the above calculation at multiple neighborhood scales, amplitude aggregation vectors and phase aggregation vectors at different scales are obtained, and they are spliced ​​at the same dimensional position to form a multi-scale vector. This multi-scale vector can simultaneously reflect local spectrum change features and cross-dimensional overall trend changes, thereby enhancing the expressive power of semantic spectrum at different granularities and improving the feature discrimination and stability in the semantic routing and attribute recognition process.

[0147] In this embodiment, the dynamic spectrum routing algorithm is invoked for path allocation processing, specifically as follows:

[0148] Receive a set of token-level multi-scale semantic spectrum vectors, take the multi-scale semantic spectrum vector corresponding to each token as the vector to be routed, and number them according to the order of arrangement;

[0149] The vector to be routed with the smallest number is selected as the reference vector, and the reference vector is used as the initial vector of a semantic spectrum subset.

[0150] Perform a dimension-by-dimensional subtraction operation between the reference vector and the other vectors to be routed, take the absolute value of the difference in each dimension and sum them up to obtain the corresponding vector difference metric.

[0151] The average difference metric is obtained by summing the vector difference metrics between the reference vector and all other vectors to be routed and dividing by the number of vectors involved in the calculation.

[0152] Vectors to be routed whose vector difference metric is less than or equal to the average difference metric are assigned to a semantic spectrum subset and removed from the set to be processed.

[0153] Repeat the reference vector selection and difference partitioning process in the remaining vectors to be routed until all vectors to be routed are partitioned into different semantic spectrum subsets;

[0154] For each semantic spectrum subset, perform a dimension-wise summation of the multi-scale semantic spectrum vectors and divide by the number of vectors in the set to generate the corresponding semantic routing path prototype vector.

[0155] For any vector to be routed, perform dimension-wise multiplication and summation with each semantic routing path prototype vector to generate the corresponding initial path response value;

[0156] For any initial path response value corresponding to a vector to be routed, subtract the other initial path response values ​​from the current initial path response value to obtain multiple difference results; take the absolute value of each of the multiple difference results, sum all the absolute value results and divide by the number of differences to generate the corresponding scalar adjustment coefficient;

[0157] The scalar adjustment coefficient is multiplied dimension by dimension with the corresponding semantic routing path prototype vector to generate the path dynamic adjustment vector;

[0158] The path dynamic adjustment vector is summed dimension by dimension and divided by the number of vector dimensions to generate a scalar adjustment value. The scalar adjustment value is then added to the initial path response value to generate the dynamic path response value.

[0159] The dynamic path response values ​​are indexed, and the indexed result of each dynamic path response value is divided by the sum of the indexed results of all dynamic path response values ​​to generate the path assignment probability.

[0160] Select the semantic routing path prototype vector with the highest path allocation probability as the semantic routing path of the token corresponding to the vector to be routed;

[0161] Path allocation processing is performed on all tokens separately, and they are arranged according to their order in the token-level multi-scale semantic spectrum vector set to generate a token-level semantic routing path set;

[0162] In the specific implementation process, the vector dimension of the token-level multi-scale semantic spectrum vector is set to 384, where a unified semantic expression is formed by concatenating different scales. In the vector difference metric calculation, the absolute value of each dimension is accumulated to obtain the difference metric scalar, and the sum of all difference metrics is divided by the number of vectors involved in the calculation to form the average difference metric, which is used to control the partitioning range of the semantic spectrum subset. In the semantic routing path prototype vector generation process, all vectors within the same subset are accumulated dimension by dimension and divided by the number of vectors to achieve a stable representation of the semantic center of the subset. In the scalar adjustment coefficient construction, the current... The initial path response value is subtracted from the remaining initial path response values ​​one by one to obtain a set of differences. The absolute values ​​of the difference set are summed and divided by the number of differences to generate a scalar adjustment coefficient that reflects the intensity of path competition. In the process of generating dynamic path response values, the dynamic path adjustment vector is summed by dimension and divided by 384 to obtain a scalar adjustment value, which is then added to the initial path response value to form the dynamic path response value. Through exponential normalization, the sum of the probabilities of all path allocations is made equal to 1, thereby realizing the adaptive allocation of different tokens among multiple semantic paths and improving the distinguishability and stability of semantic expression.

[0163] In this embodiment, a semantic spectrum subspace is constructed, and cross-frequency recombination processing is performed on the token-level multi-scale semantic spectrum vector set to generate an attribute semantic aggregation representation matrix, specifically:

[0164] Receive a set of token-level semantic routing paths and a set of token-level multi-scale semantic spectrum vectors;

[0165] Using the semantic routing path corresponding to each token as the basis for subspace partitioning, tokens with the same semantic routing path are grouped into the same group to construct a semantic spectrum subspace.

[0166] For each token-level multi-scale semantic spectrum vector in the semantic spectrum subspace, perform a dimension-wise summation and divide by the number of vectors in the semantic spectrum subspace to generate the corresponding subspace aggregation vector;

[0167] Perform cross-frequency feature recombination processing on the subspace aggregation vector to generate a recombined spectrum vector;

[0168] The recombined spectrum vector and the subspace aggregation vector are added dimension by dimension to generate a cross-frequency fusion vector;

[0169] All cross-frequency fusion vectors are stacked to generate an attribute semantic clustering representation matrix.

[0170] In this embodiment, the cross-frequency recombination process is specifically as follows:

[0171] For any dimension position in the subspace aggregation vector, add the value of the dimension position to the values ​​of the previous dimension position and the next dimension position respectively to generate the first combined value. When there is no previous dimension position, the value of the current dimension position is used as the value of the previous dimension position. When there is no next dimension position, the value of the current dimension position is used as the value of the next dimension position.

[0172] Subtract the value at the dimension position from the values ​​at the previous and next dimension positions respectively, and sum the absolute values ​​of the subtraction results to generate the second combined value.

[0173] Add the first combination of values ​​to the second combination of values ​​to generate the recombined value for the current dimension position;

[0174] Arrange all recombined values ​​in the original dimensional order to generate a recombined spectrum vector with the same dimensionality as the subspace aggregation vector.

[0175] In the specific implementation process, the dimension of the token-level multi-scale semantic spectrum vector is uniformly set to 384 dimensions. When constructing the semantic spectrum subspace, tokens with the same semantic routing path are merged to ensure that vectors within the same semantic spectrum subspace have consistent semantic expression. During subspace aggregation, the value of each dimension is stabilized at the average semantic level of the subspace by accumulating dimension by dimension and dividing by the number of vectors in the subspace, thereby reducing the interference of individual abnormal tokens on the overall representation. In cross-frequency reassembly processing, the values ​​of the adjacent dimensions on both sides are introduced into the calculation, establishing a connection between the originally independent dimensions. The relationship is described, in which addition operations are used to strengthen the local continuous change trend, and subtraction and absolute value operations are used to strengthen the local difference features. The two types of information are superimposed to form a new recombined value. This processing method makes each dimension not only reflect its own semantics, but also integrate the semantic change information of the neighborhood, thereby enhancing the expressive power of the representation. At the boundary dimension position, the missing neighborhood value is replaced by the current dimension value, so that all dimensions meet the unified calculation rules and ensure the integrity of the vector structure. The finally generated recombined spectrum vector realizes the information interaction and semantic enhancement between dimensions while keeping the number of original dimensions unchanged, effectively improving the discriminative ability and stability of the attribute semantic aggregation representation matrix.

[0176] In this embodiment, the attribute type decoding and attribute value extraction processes are performed as follows:

[0177] Each row vector in the attribute semantic clustering representation matrix is ​​used as an attribute semantic representation vector;

[0178] Obtain the set of attribute type names corresponding to the product category target tag, and perform word segmentation and vector mapping on each attribute type name to generate an attribute type name vector sequence;

[0179] For each sequence of attribute type name vectors, perform a dimension-wise summation and divide by the number of vectors to generate the corresponding attribute type prototype vector;

[0180] Each attribute semantic representation vector is multiplied dimension-by-dimensionally by the prototype vector of each attribute type and then summed to generate an attribute type matching value;

[0181] Perform indexing on the attribute type matching values, and divide the indexed result of each attribute type matching value by the sum of the indexed results of all attribute type matching values ​​to generate the attribute type probability distribution;

[0182] Select the attribute type name corresponding to the attribute type prototype vector with the largest value in the attribute type probability distribution as the attribute type of the corresponding attribute semantic representation vector;

[0183] Based on the attribute type, a sliding window process is performed on the word vector sequences corresponding to the product title text and product description text, and continuous word vectors are selected in sequence according to the order of words in the sequence to form candidate word fragments.

[0184] Each word vector in each candidate word segment is multiplied dimension-by-dimensionally by the attribute semantic representation vector and then summed. The calculation results of all word vectors in the candidate word segment are accumulated to generate the corresponding segment matching value.

[0185] Compare the segment matching values ​​of all candidate word segments, and select the candidate word segment with the largest segment matching value as the attribute value;

[0186] Combine the attribute type with the corresponding attribute value to generate product attribute key-value pairs;

[0187] Based on the product attribute key-value pairs of the semantic representation vector of all attributes, a set of product attribute key-value pairs is obtained;

[0188] In the specific implementation process, the word segmentation results in the product title text and product description text are first mapped to 128-dimensional word vectors. The dimension of the token-level multi-scale semantic spectrum vector is set to 384 dimensions, and the dimension of each row of the attribute semantic clustering representation matrix is ​​also 384 dimensions. When generating the attribute type name vector sequence, the attribute type name is segmented and mapped to 128-dimensional word vectors. Then, each 128-dimensional word vector is converted into a 384-dimensional vector through a linear mapping layer. The linear mapping layer consists of a weight matrix and a bias vector, where the weight matrix is ​​set to 384×128 and the bias vector is set to 384. Dimension expansion is achieved through matrix multiplication and addition operations, so that the attribute type word vectors and attribute semantic representation vectors are in the same vector space. All 384-dimensional attribute type word vectors under the same attribute type name are summed dimension by dimension and divided by the number of words to generate... A 384-dimensional attribute type prototype vector is generated. During the attribute type matching value calculation, the 384-dimensional attribute semantic representation vector and the 384-dimensional attribute type prototype vector are multiplied dimension-wise and summed to obtain the attribute type matching value. During the attribute value extraction process, the 128-dimensional word vectors in the product title text and product description text are also converted into 384-dimensional word vectors through a linear mapping layer, and a sliding window with a length of 3 consecutive word vectors is used to construct candidate word fragments. For each 384-dimensional word vector in the candidate word fragment, a dimension-wise multiplication and summation operation is performed with the attribute semantic representation vector, and all calculation results are accumulated to generate a fragment matching value. The candidate word fragment with the largest fragment matching value is selected as the attribute value. The linear mapping method realizes the dimensional alignment between different semantic representations and improves the feature expression ability, thereby improving the accuracy and stability of attribute type decoding and attribute value extraction.

[0189] The improved Hopper model in this invention is a structural extension of the traditional Hopper model. The traditional Hopper model is mainly used for unified semantic modeling of input sequences, and its input is usually a sequence of vectors in the same semantic space, focusing on extracting contextual dependencies and aggregating overall features. This invention, however, introduces token-level multi-scale semantic spectrum vectors as input carriers, expanding the semantics of product text into a high-dimensional semantic representation containing multi-scale structural information through a semantic spectrum mapping mechanism. This transforms the original semantics from a single sequence representation into a spectrum expression with multi-scale structural features. Furthermore, a dynamic spectrum routing algorithm is used to allocate paths to each token, constructing semantic routing paths based on the semantic differences between tokens, and grouping tokens with the same semantic routing path into the same... The semantic spectrum subspace enables a structural shift from unified sequence modeling to multi-subspace semantic organization. Furthermore, after constructing the semantic spectrum subspace, a cross-frequency recombination module performs dimensional neighborhood interaction operations on the subspace aggregation vectors within each semantic spectrum subspace. This combines the values ​​of each dimension with those of its adjacent dimensions to generate a recombined spectrum vector, establishing local relationships between previously independent dimensions and enhancing the continuity and diversity of semantic expression. Compared to the traditional Hopper model, this improved approach forms a complete processing flow consisting of semantic spectrum mapping, multi-scale modeling, dynamic spectrum routing, and cross-dimensional recombination in terms of input structure, semantic organization, and feature expression mechanism. This transforms product semantics from a linear representation to a structured distributed expression, thereby improving the accuracy and consistency of product attribute type identification and attribute value extraction, as well as the ability to express complex semantics.

[0190] In this embodiment, the set of product attribute key-value pairs is standardized to output standard product attribute structure data, specifically as follows:

[0191] Perform character cleansing on each attribute type and attribute value in the product attribute key-value pair collection, removing whitespace characters from the string;

[0192] Duplicate characters in attribute values ​​are removed, while preserving the order of their first appearance;

[0193] The processed attribute types and attribute values ​​are matched to form standardized product attribute key-value pairs;

[0194] Based on the standardized product attribute key-value pairs of the semantic representation vector of all attributes, output standard product attribute structure data.

[0195] Example 1: To verify the feasibility of this invention in practice, it was applied to the structured management scenario of product attributes on a comprehensive e-commerce platform. This platform adds approximately 120,000 new products daily, covering categories such as digital accessories, home appliances, apparel and footwear, baby products, and fresh food. In actual business operations, many merchants only upload product titles and brief descriptions when filling in product information, with many attribute fields missing. Furthermore, the same word has different meanings in different categories. For example, "apple" in the food category represents a category or flavor, while in the digital category it represents a brand; "mini" in the mobile phone category represents a model series, and in the home appliance category it represents a size specification. This leads to traditional rule-based matching methods easily misidentifying attribute types, thus affecting search filtering, product recommendations, and inventory management.

[0196] In this embodiment, the platform selects 80,000 newly added product data entries as test samples, including 60,000 training samples, 10,000 validation samples, and 10,000 test samples. Each product data entry includes a product title text, a product category tag, and a product description text, manually labeled with brand, model, color, material, specifications, capacity, target audience, and flavor attribute type and corresponding attribute value. First, the product title text, product category tag, and product description text are processed into a product semantic input tensor, then input into an improved Hopper model. A contextual embedding generation module generates a contextual semantic embedding matrix. Subsequently, the semantic spectrum transformation module generates a semantic spectrum representation tensor using a semantic spectrum mapping mechanism, and generates a token-level multi-scale semantic spectrum vector set through multi-scale spectrum decomposition. Then, a dynamic spectrum routing algorithm is called to allocate paths, dividing tokens of different semantic modes into corresponding semantic routing paths. A cross-frequency recombination module then constructs a semantic spectrum subspace and generates an attribute semantic aggregation representation matrix. Finally, the attribute-aware decoding module outputs a set of product attribute key-value pairs, which are then standardized to obtain standard product attribute structure data.

[0197] To verify the actual effectiveness of the present invention, three comparison schemes were set up. Comparison scheme one is a keyword rule matching scheme, which mainly relies on attribute dictionaries and regular expression templates; comparison scheme two is a general Transformer semantic recognition scheme, which only performs attribute classification and extraction based on context vectors; comparison scheme three is a traditional Hopper model scheme. The comparison results are shown in Table 1.

[0198] Table 1. Comparison of Product Attribute Recognition Performance of Different Schemes

[0199] plan Attribute type recognition accuracy / % Attribute value extraction accuracy / % Same word different attribute recognition accuracy / % Attribute key-value pair completeness rate / % Misclassification rate / % Comparison Option 1 81.6 76.9 68.4 73.2 14.8 Comparison Option 2 88.7 84.5 79.6 82.1 9.7 Comparison Option 3 91.4 87.8 84.2 86.5 7.3 Method of the present invention 96.8 94.1 93.5 92.7 3.1

[0200] As can be seen from the data in Table 1 above, the performance differences of different schemes in the product attribute semantic recognition task are quite significant. Scheme 1, using keyword rule matching, achieved an attribute type recognition accuracy of only 81.6% and an attribute value extraction accuracy of 76.9%, indicating that traditional rule-based methods are weak in adapting to complex product descriptions. When product titles contain abbreviations, colloquial expressions, or synonyms, attribute recognition errors are prone to occur. Furthermore, its accuracy in identifying homonymous attributes is only 68.4%, indicating that this scheme struggles to distinguish the semantic differences of the same word across different product categories, resulting in a misclassification rate of 14.8%. Scheme 2, after introducing ordinary Transformer semantic modeling, improved all indicators, demonstrating that contextual semantic association can enhance attribute recognition capabilities. However, due to the lack of semantic spectrum structure expression and dynamic routing mechanism, semantic confusion still easily occurs in complex attribute scenarios. Scheme 3, using the traditional Hopper model, improved the attribute type recognition accuracy to 91.4%, indicating that the Hopper structure has a good effect on global semantic modeling, but it still has shortcomings in identifying homonymous attributes. The method of this invention achieves optimal results across all metrics, with an attribute type recognition accuracy of 96.8%, an attribute value extraction accuracy of 94.1%, and a homonymous attribute recognition accuracy of 93.5%. This demonstrates that the semantic spectrum mapping mechanism, multi-scale spectrum decomposition processing, dynamic spectrum routing algorithm, and cross-frequency recombination module can effectively enhance the separation and aggregation capabilities between complex semantics, thereby significantly reducing the misclassification rate and improving the completeness rate of attribute key-value pairs.

[0201] This embodiment applies the present invention to the structuring scenario of e-commerce product attributes. By improving the Hopper model, semantic spectrum mapping mechanism, dynamic spectrum routing algorithm, and the collaborative processing of the cross-frequency recombination module, accurate analysis and stable identification of product attribute semantics are achieved. Compared with traditional rule matching methods and ordinary semantic modeling methods, the present invention can effectively solve the problems of semantic confusion, homonyms, and unclear attribute boundaries in product text, and improve the accuracy of attribute type identification and attribute value extraction. At the same time, by constructing a semantic spectrum subspace and performing cross-frequency recombination processing, the distinguishing and aggregation capabilities between different semantic patterns are enhanced, the misclassification rate and manual correction rate are reduced, and the output standard product attribute structure data is more suitable for product search, recommendation, and structured management scenarios, verifying the practicality and stability of the present invention in complex product semantic processing.

[0202] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A large model-based commodity attribute semantic analysis and identification method, characterized in that, The method comprises the following steps: obtaining product title text, product category target tags and product description text, and performing serialization encoding processing to obtain a product semantic input tensor; inputting the product semantic input tensor into an improved Hopper model, wherein the improved Hopper model comprises a context embedding generation module, a semantic spectrum transformation module, a cross-frequency reorganization module and an attribute perception decoding module; the context embedding generation module performs context semantic encoding processing on the product semantic input tensor to generate a context semantic embedding matrix; the semantic spectrum transformation module embeds a semantic frequency spectrum mapping mechanism to perform frequency spectrum mapping processing on the context semantic embedding matrix to generate a semantic frequency spectrum representation tensor; performing multi-scale spectrum decomposition processing on the semantic frequency spectrum representation tensor to extract a multi-scale semantic frequency spectrum vector corresponding to a token to generate a token-level multi-scale semantic frequency spectrum vector set; based on the token-level multi-scale semantic frequency spectrum vector set, a dynamic spectrum routing algorithm is called to perform path allocation processing to generate a token-level semantic routing path set; the token-level multi-scale semantic frequency spectrum vector set and the token-level semantic routing path set are inputted into the cross-frequency reorganization module to construct a semantic frequency spectrum subspace, and the token-level multi-scale semantic frequency spectrum vector set is subjected to cross-frequency reorganization processing to generate an attribute semantic aggregation representation matrix; the attribute semantic aggregation representation matrix is inputted into the attribute perception decoding module to perform attribute type decoding and attribute value extraction processing to obtain a product attribute key-value pair set; the product attribute key-value pair set is subjected to standardization processing to output standard product attribute structure data.

2. The method according to claim 1, wherein, The product title text, product category target tags and product description text are collected, the product title text is subjected to word segmentation processing and is mapped into a corresponding title word vector sequence; the product category target tags are subjected to splitting processing to convert each category in the category path into a category word sequence and map it into a corresponding category word vector sequence; the product description text is subjected to sentence segmentation processing, and each sentence is subjected to word segmentation to map the word segmentation result into a corresponding description word vector sequence; the title word vector sequence, the category word vector sequence and the description word vector sequence are spliced in sequence to generate a unified semantic vector sequence; the unified semantic vector sequence is subjected to sequence length unification processing, zero vectors are added at the end of the sequence when the sequence length is less than a set length, and the part exceeding the set length is truncated when the sequence length is greater than the set length to obtain the product semantic input tensor. In the product semantic input tensor, each title word vector, category word vector and description word vector is taken as a token vector; 3. The method according to claim 1, wherein, a position encoding vector is added to each token vector according to the arrangement order in the product semantic input tensor to generate a position encoding input tensor; ​ ​ The position-encoded input tensor is embedded into the multi-head self-attention unit in the generation module, and query mapping, key mapping and value mapping are performed on the position-encoded input tensor respectively to generate a query vector set, a key vector set and a value vector set. For any target token, the query vector corresponding to the target token is multiplied dimension by dimension by the key vectors corresponding to all tokens and then summed to obtain the semantic association score between the target token and all tokens; The semantic association scores corresponding to the target token are indexed, and the indexed result of each semantic association score is divided by the sum of the indexed results of all semantic association scores to obtain the semantic association weight of the target token relative to all tokens. Multiply the value vectors corresponding to all tokens by their respective semantic association weights, and sum the products to obtain the context association vector of the target token. Generate a corresponding context association vector for each token, and arrange them according to the order of the tokens in the product semantic input tensor to generate the first context association representation matrix; The first context association representation matrix is ​​input into the feedforward mapping unit in the context embedding generation module for linear mapping and ReLU nonlinear activation processing to generate the second context association representation matrix. The second context association representation matrix is ​​added element-wise to the vectors at corresponding positions in the first context association representation matrix to obtain the residual augmentation representation matrix. The residual augmentation representation matrix is ​​then subjected to layer normalization to generate the context semantic embedding matrix.

4. The method according to claim 1, wherein, The semantic spectrum mapping mechanism is specifically as follows: Each context token vector in the context semantic embedding matrix is ​​used as a semantic unit to be mapped. Each semantic unit to be mapped is continuously divided according to the vector dimension order to obtain low-level semantic segments, middle-level semantic segments and high-level semantic segments; The low-level semantic segment, the middle-level semantic segment, and the high-level semantic segment are summed and divided by the corresponding number of dimensions to obtain the low-level semantic baseline value, the middle-level semantic baseline value, and the high-level semantic baseline value. Fill the corresponding dimension position of the low semantic segment with low semantic reference value, fill the corresponding dimension position of the middle semantic segment with middle semantic reference value, and fill the corresponding dimension position of the high semantic segment with high semantic reference value to form a semantic spectrum anchor vector consistent with the dimension of the semantic unit to be mapped. The semantic offset value is obtained by subtracting the corresponding dimension value in the semantic spectrum anchor vector from the vector value of each dimension in the semantic unit to be mapped, and then constructing the semantic offset vector. Perform discrete cosine transform on the semantic offset vector. Select the semantic offset value of each dimension in the order of the dimensions in the semantic offset vector, multiply each semantic offset value by the corresponding cosine basis function value, and sum all the product results to obtain the spectral coefficients at the corresponding frequency positions. Calculate the spectral coefficients for all frequency positions to generate the token spectral amplitude vector. The semantic offset values ​​of adjacent dimensions in the semantic offset vector are calculated by difference. The semantic offset value of the current dimension is subtracted from the semantic offset value of the previous dimension to obtain the phase change value of the current dimension. The phase change value of the first dimension is set as the semantic offset value of the first dimension. All phase change values ​​are arranged in dimensional order to generate a token spectrum phase change vector with the same dimensions as the semantic offset vector. The token spectrum amplitude vector and the token spectrum phase change vector are concatenated according to their corresponding dimensional positions to generate a token semantic spectrum vector; Generate corresponding token semantic spectrum vectors for each context token vector, and stack them according to the order of arrangement in the context semantic embedding matrix to generate a semantic spectrum representation tensor.

5. The method according to claim 1, wherein, The step of performing multi-scale spectral decomposition on the semantic spectral representation tensor to extract the multi-scale semantic spectral vector of the corresponding token and generate a token-level multi-scale semantic spectral vector set is as follows: Each token semantic spectrum vector in the semantic spectrum representation tensor is processed, and the token semantic spectrum vector is formed by concatenating the token spectrum magnitude vector and the token spectrum phase change vector. For any dimension location, select multiple neighborhood scales centered on the current dimension location and covering different ranges. Sum the token spectrum amplitude vectors within each neighborhood scale and divide them by the number of dimensions involved in the calculation to generate the amplitude aggregation vector of the corresponding scale. Sum the token spectrum phase change vectors and divide them by the number of dimensions involved in the calculation to generate the phase aggregation vector of the corresponding scale. The magnitude aggregation vector and phase aggregation vector obtained at different neighborhood scales at the same dimensional position are concatenated to generate a multi-scale vector at the current dimensional position. For each token semantic spectrum vector, generate corresponding multi-scale vectors for all dimensions, and arrange them in dimensional order to generate the corresponding token's multi-scale semantic spectrum vector; Generate corresponding multi-scale semantic spectrum vectors for each token, and stack them according to the order of arrangement in the semantic spectrum representation tensor to generate a set of token-level multi-scale semantic spectrum vectors.

6. The method according to claim 1, wherein, The process of calling the dynamic spectrum routing algorithm for path allocation is as follows: Receive a set of token-level multi-scale semantic spectrum vectors, take the multi-scale semantic spectrum vector corresponding to each token as the vector to be routed, and number them according to the order of arrangement; The vector to be routed with the smallest number is selected as the reference vector, and the reference vector is used as the initial vector of a semantic spectrum subset. Perform a dimension-by-dimensional subtraction operation between the reference vector and the other vectors to be routed, take the absolute value of the difference in each dimension and accumulate them to obtain the corresponding vector difference metric. The average difference metric is obtained by summing the vector difference metrics between the reference vector and all other vectors to be routed and dividing by the number of vectors involved in the calculation. Vectors to be routed whose vector difference metric is less than or equal to the average difference metric are assigned to a semantic spectrum subset and removed from the set to be processed; Repeat the reference vector selection and difference partitioning process in the remaining vectors to be routed until all vectors to be routed are partitioned into different semantic spectrum subsets; For each semantic spectrum subset, perform a dimension-wise summation of the multi-scale semantic spectrum vectors and divide by the number of vectors in the set to generate the corresponding semantic routing path prototype vector. For any vector to be routed, perform dimension-wise multiplication and summation with each semantic routing path prototype vector to generate the corresponding initial path response value; For any initial path response value corresponding to a vector to be routed, subtract the other initial path response values ​​from the current initial path response value to obtain multiple difference results; take the absolute value of each of the multiple difference results, sum all the absolute value results and divide by the number of differences to generate the corresponding scalar adjustment coefficient; The scalar adjustment coefficient is multiplied dimension by dimension with the corresponding semantic routing path prototype vector to generate the path dynamic adjustment vector; The path dynamic adjustment vector is summed dimension by dimension and divided by the number of vector dimensions to generate a scalar adjustment value. The scalar adjustment value is then added to the initial path response value to generate the dynamic path response value. The dynamic path response values ​​are subjected to indexation, and the indexation result of each dynamic path response value is divided by the sum of the indexation results of all dynamic path response values ​​to generate the path assignment probability. Select the semantic routing path prototype vector with the highest path allocation probability as the semantic routing path of the token corresponding to the vector to be routed; Path allocation processing is performed on all tokens separately, and they are arranged according to their order in the token-level multi-scale semantic spectrum vector set to generate a token-level semantic routing path set.

7. The method according to claim 1, wherein, The construction of the semantic spectrum subspace and the cross-frequency recombination processing of the token-level multi-scale semantic spectrum vector set to generate the attribute semantic clustering representation matrix are as follows: Receive the token-level semantic routing path set and the token-level multi-scale semantic spectrum vector set; Using the semantic routing path corresponding to each token as the basis for subspace partitioning, tokens with the same semantic routing path are grouped into the same group to construct a semantic spectrum subspace. For each token-level multi-scale semantic spectrum vector in the semantic spectrum subspace, perform a dimension-wise summation and divide by the number of vectors in the semantic spectrum subspace to generate the corresponding subspace aggregation vector; Perform cross-frequency feature recombination processing on the subspace aggregation vector to generate a recombined spectrum vector; The recombined spectrum vector and the subspace aggregation vector are added dimension by dimension to generate a cross-frequency fusion vector; All cross-frequency fusion vectors are stacked to generate an attribute semantic clustering representation matrix.

8. The method according to claim 7, wherein, The cross-frequency recombination process specifically involves: For any dimension position in the subspace aggregation vector, add the value of the dimension position to the values ​​of the previous dimension position and the next dimension position respectively to generate the first combined value. When there is no previous dimension position, the value of the current dimension position is used as the value of the previous dimension position. When there is no next dimension position, the value of the current dimension position is used as the value of the next dimension position. Subtract the value at the dimension position from the values ​​at the previous and next dimension positions respectively, and sum the absolute values ​​of the subtraction results to generate the second combined value. Add the first combination value and the second combination value to generate the recombined value at the current dimension position; Arrange all recombined values ​​in the original dimensional order to generate a recombined spectrum vector with the same dimension as the subspace aggregation vector.

9. The method according to claim 1, wherein, The execution of attribute type decoding and attribute value extraction processes specifically includes: Each row vector in the attribute semantic aggregation representation matrix is ​​used as an attribute semantic representation vector; Obtain the set of attribute type names corresponding to the product category target tag, and perform word segmentation and vector mapping on each attribute type name to generate an attribute type name vector sequence; For each sequence of attribute type name vectors, perform a dimension-wise summation and divide by the number of vectors to generate the corresponding attribute type prototype vector; Each attribute semantic representation vector is multiplied dimension-by-dimensionally by the prototype vector of each attribute type and then summed to generate an attribute type matching value; The attribute type matching values ​​are subjected to indexation processing, and the indexation result of each attribute type matching value is divided by the sum of the indexation results of all attribute type matching values ​​to generate an attribute type probability distribution. Select the attribute type name corresponding to the attribute type prototype vector with the largest value in the attribute type probability distribution as the attribute type of the corresponding attribute semantic representation vector; Based on the attribute type, a sliding window process is performed on the word vector sequences corresponding to the product title text and product description text, and continuous word vectors are selected in sequence according to the order of words in the sequence to form candidate word fragments. Each word vector in each candidate word segment is multiplied dimension-by-dimensionally by the attribute semantic representation vector and then summed. The calculation results of all word vectors in the candidate word segment are accumulated to generate the corresponding segment matching value. Compare the segment matching values ​​of all candidate word segments, and select the candidate word segment with the largest segment matching value as the attribute value; The attribute type and the corresponding attribute value are combined to generate product attribute key-value pairs; Based on the product attribute key-value pairs of the semantic representation vector of all attributes, a set of product attribute key-value pairs is obtained.

10. The method according to claim 1, wherein, The standardization process for the set of product attribute key-value pairs, outputting standard product attribute structure data, specifically involves: Perform character cleansing on each attribute type and attribute value in the product attribute key-value pair collection, removing whitespace characters from the string; Duplicate characters in attribute values ​​are removed, while preserving the order of their first appearance; The processed attribute types and attribute values ​​are matched to form standardized product attribute key-value pairs; Based on the standardized product attribute key-value pairs of the semantic representation vector of all attributes, output standard product attribute structure data.