Uniform resource locator representation model construction method, classification method, device, equipment, medium and program product

Through the combination of graph representation learning algorithm and large language model, a URL representation model adapted to network anti-fraud is constructed, which solves the problem that existing technology cannot adapt to network anti-fraud application scenarios, and achieves effective analysis of user access habits and spatiotemporal characteristics. Capture improves the intelligence level and performance of the system.

CN118673228APending Publication Date: 2024-09-20CHINA MOBILE GROUP ZHEJIANG +2
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410967322.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing technology cannot adapt to network anti-fraud application scenarios, cannot effectively capture users' domain name attractiveness and access habits, and ignores users' access behavior and spatiotemporal characteristics.

Method used

Analyze DPI data and user data through operators' in-depth messages, use graph representation learning algorithms to decompose the user-uniform resource locator URL relationship graph, combine with large language models to encode web page information elements, perform distillation pre-training, and build adaptations URL representation model for network anti-fraud.

Benefits of technology

Integrating interactive relationships into content understanding, combined with user access information and spatiotemporal characteristics in operator DPI data, the pre-trained URL representation model can adapt to network anti-fraud application scenarios and improve the intelligence level and performance indicators of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673228A
    Figure CN118673228A
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, and provides a uniform resource locator representation model construction method, a classification method, a device, equipment, a medium and a program product, the construction method comprises the following steps: based on operator deep packet analysis (DPI) data and user data, decomposing a user-uniform resource locator (URL) relation graph through a graph representation learning algorithm, uRL embedding representation is obtained; on the basis of a large language model, webpage information elements in the DPI data are coded, and URL reconstruction representation is obtained; and based on the similarity between the URL embedding representation and the URL reconstruction representation, performing distillation pre-training on the large language model, and taking the pre-trained large language model as a URL representation model. The construction method, the classification method, the device, the equipment, the medium and the program product provided by the invention can adapt to a network anti-fraud application scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a uniform resource locator representation model construction method, classification method, device, equipment, medium and program product. Background Art

[0002] The semantic content of URLs is crucial to network security initiatives. By modeling and characterizing fraud-related Uniform Resource Locators (URLs) on the Internet, it is technically possible to counter telecommunications network fraud.

[0003] In the related technology, URLs are mainly represented based on standard tools for content understanding, such as large pre-trained language models based on the Transformer architecture. These models are trained on general domain corpora and can be used to represent various contents including web pages.

[0004] However, the relevant technical solutions cannot be adapted to the network anti-fraud application scenarios. Summary of the invention

[0005] The present invention provides a uniform resource locator representation model construction method, classification method, device, equipment, medium and program product, which are used to solve the defect that the existing technology cannot adapt to network anti-fraud application scenarios.

[0006] The present invention provides a method for constructing a uniform resource locator representation model, comprising: Based on the operator's deep packet analysis DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation; Based on a large language model, encoding web page information elements in the DPI data to obtain a URL reconstruction representation; Based on the similarity between the URL embedding representation and the URL reconstruction representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as a URL representation model.

[0007] According to the method for constructing a uniform resource locator representation model provided by the present invention, based on the operator's deep message parsing DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation, including: Using the URLs and users in the DPI data and user data as nodes and the user's access behavior as edges, a user-URL relationship graph integrating user communication interaction relationships and network access relationships is constructed; By using a graph representation learning algorithm, the embedding representation of each node in the relationship graph is extracted to obtain a URL embedding representation and a user embedding representation.

[0008] According to the method for constructing a uniform resource locator representation model provided by the present invention, the embedding representation of each node in the relationship graph is extracted by a graph representation learning algorithm to obtain a URL embedding representation and a user embedding representation, including: Based on the relationship graph, extracting the user initial embedding representation of each user node and the URL initial embedding representation of each URL node respectively; Based on the current layer URL embedding representation of each URL node and the current layer user embedding representation of the neighboring user node of the URL node, iteratively update the current layer URL embedding representation until the iteration termination condition is reached, and use the last layer URL embedding representation as the URL embedding representation; Based on the current-layer user embedding representation of each user node, the current-layer user embedding representation of the user node that has a communication and interaction relationship with the user node, and the current-layer URL embedding representation of the URL nodes historically visited by the user node, the current-layer user embedding representation is iteratively updated until the iteration termination condition is reached, and the last-layer user embedding representation is used as the user embedding representation; Among them, the first-level URL embedding representation is the URL initial embedding representation, and the first-level user embedding representation is the user initial embedding representation.

[0009] According to the method for constructing a uniform resource locator representation model provided by the present invention, the current layer URL embedding representation based on each URL node and the current layer user embedding representation of the neighboring user nodes of the URL node is iteratively updated, including: For any URL node, aggregate the current-layer user embedding representations of neighboring user nodes of the URL node to obtain an aggregated URL embedding representation; The current-layer URL embedding representation of the URL node and the aggregated URL embedding representation are merged to obtain the next-layer URL embedding representation, so as to iteratively update the current-layer URL embedding representation.

[0010] According to the method for constructing a uniform resource locator representation model provided by the present invention, the iterative updating of the current layer user embedding representation based on the current layer user embedding representation of each user node, the current layer user embedding representation of the user node having a communication interaction relationship with the user node, and the current layer URL embedding representation of the URL node historically visited by the user node includes: For any user node, determining a communication interaction influence aggregate embedding based on the current layer user embedding representation, the communication interaction relationship weight and the communication interaction relationship influence weight of the user node that has a communication interaction relationship with the user node; Determine the historical access impact aggregate embedding based on the current layer URL embedding representation of the URL nodes historically visited by the user node, the historical access behavior weights, and the historical access behavior impact weights; The current layer user embedding representation of the user node, the communication interaction influence aggregate embedding and the historical access influence aggregate embedding are fused to obtain the next layer user embedding representation, so as to iteratively update the current layer user embedding representation; Among them, the communication interaction relationship weight is determined based on the current layer user embedding representation of the user node and the current layer user embedding representation of the user node that has a communication interaction relationship with the user node; the communication interaction relationship influence weight is determined based on the communication interaction relationship weight; the historical access behavior weight is determined based on the current layer user embedding representation of the user node and the current layer URL embedding representation of the URL nodes historically visited by the user node; and the historical access behavior influence weight is determined based on the historical access behavior weight.

[0011] According to the method for constructing a uniform resource locator representation model provided by the present invention, the web page information elements in the DPI data are encoded based on a large language model to obtain a URL reconstruction representation, including: Merging the URL string, title and description text in the web page information element to obtain a fused text; Based on the large language model, the fused text is encoded to obtain the URL reconstruction representation.

[0012] The present invention also provides a classification method, comprising: Get the URL to be classified; Based on a URL representation model, encoding the URL to be classified to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method; The URL embedding representation to be classified is classified.

[0013] The present invention also provides a uniform resource locator representation model construction device, comprising: A decomposition unit, used for parsing DPI data and user data based on the operator's deep message, decomposing the user-uniform resource locator URL relationship graph through a graph representation learning algorithm, and obtaining a URL embedding representation; An encoding unit, used for encoding web page information elements in the DPI data based on a large language model to obtain a URL reconstruction representation; The pre-training unit is used to perform distillation pre-training on the large language model based on the similarity between the URL embedding representation and the URL reconstruction representation, and use the large language model after pre-training as the URL representation model.

[0014] The present invention also provides a classification device, comprising: An acquisition unit, used to acquire the URL to be classified; An encoding unit, used for encoding the URL to be classified based on a URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method according to any one of claims 1 to 6; The classification unit is used to classify the URL embedding representation to be classified.

[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any one of the above-mentioned uniform resource locator representation model construction methods or classification methods.

[0016] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the uniform resource locator representation model construction method or classification method as described above is implemented.

[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the above-mentioned uniform resource locator representation model construction methods or classification methods.

[0018] The uniform resource locator representation model construction method, classification method, device, equipment, medium and program product provided by the present invention integrate the interactive relationship into the content understanding through the decomposition-distillation two-stage fusion model construction, and deeply align the results of the graph representation learning algorithm and the large language model, thereby combining the user access information and spatiotemporal characteristics in the operator's DPI data with the representation ability of the large language model. The URL representation model obtained by pre-training can adapt to the network anti-fraud application scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 This is one of the flow charts of the method for constructing a uniform resource locator representation model provided by the present invention.

[0021] Figure 2 This is the second flow chart of the method for constructing a uniform resource locator representation model provided by the present invention.

[0022] Figure 3 It is a flow chart of the classification method provided by the present invention.

[0023] Figure 4 It is a structural schematic diagram of the uniform resource locator representation model building device provided by the present invention.

[0024] Figure 5 It is a structural schematic diagram of the classification device provided by the present invention.

[0025] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] In related technologies, self-supervised pre-training of text, such as masked language modeling, is used to model and characterize URLs, but this fails to capture the domain name's appeal to users; if two web pages share similar content, the large language model will encode them, but this ignores the user's access habits. For example: URLs that imitate the same official website style may target different deceived users in different regions and at different times. Therefore, related technical solutions cannot meet the application requirements of network anti-fraud scenarios.

[0028] To address this problem, an embodiment of the present invention provides a method for constructing a uniform resource locator representation model. Based on the operator's deep packet parsing DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation; based on a large language model, the web page information elements in the DPI data are encoded to obtain a URL reconstructed representation; based on the similarity between the URL embedding representation and the URL reconstructed representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as the URL representation model.

[0029] The embodiment of the present invention builds a two-stage fusion model of decomposition and distillation, integrates interactive relationships into content understanding, and uses a deep alignment graph to represent the results of a learning algorithm and a large language model, thereby combining user access information and spatiotemporal characteristics in the operator's DPI data with the representation capabilities of a large language model. The pre-trained URL representation model can adapt to network anti-fraud application scenarios.

[0030] The embodiments of the present invention can be applicable to network anti-fraud application scenarios. The execution subject of the method can be an electronic device such as a terminal device, a computer, a server, a server cluster, or a specially designed model building device, or a model building device set in the electronic device, and the model building device can be implemented by software, hardware, or a combination of the two.

[0031] Figure 1 This is one of the flow charts of the method for constructing a uniform resource locator representation model provided by the present invention. Figure 1 As shown, the method comprises the following steps: Step 110, based on the operator's deep packet analysis DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation.

[0032] Specifically, the operator's Deep Packet Inspection (DPI) allows network owners to analyze Internet traffic passing through the network in real time and distinguish and identify it based on its payload (i.e. the content of the data packet). It not only focuses on basic information such as the source address, destination address, port number and protocol type of the data packet, but also goes deep into the data packet to parse and identify the data at the application layer. This enables DPI to accurately understand the composition of network traffic, user behavior patterns, and applications used.

[0033] User data is an important resource accumulated by operators during the operation process, covering a variety of data information such as basic information, consumption information, Internet behavior, call behavior, terminal mobile data, interest preference behavior, travel trajectory, etc. For example, basic information of users mainly includes personal identity attributes of users, such as age, occupation, place of origin, length of time online, user ID, and number of users when they log in to the network. Internet behavior data may include real-time visitor information of websites, web pages, website links and URLs visited by users, as well as users' browsing history and click preferences.

[0034] The user-uniform resource locator URL relationship graph can be pre-built to represent the user communication interaction relationship and network access relationship. Users access network resources by entering URLs or using browser bookmarks, history, etc. URLs, as the unique address of resources, help users quickly locate the required web pages, pictures, videos and other resources.

[0035] Graph representation learning algorithms learn low-dimensional, real-valued, dense vector representations of nodes and edges in a graph, making these vectors capable of reasoning in vector space and preserving as much information and attributes of the original graph as possible. This method converts complex graph structures into easy-to-process vector form.

[0036] The user-uniform resource locator URL relationship graph can be decomposed by matrix decomposing the matrix describing the graph structure information (such as adjacency matrix, Laplace matrix, node similarity matrix), transforming the nodes into a low-dimensional vector space while retaining the structural similarity, thereby obtaining the URL embedding representation.

[0037] Step 120, based on the large language model, encode the web page information elements in the DPI data to obtain a URL reconstruction representation.

[0038] Large Language Model (LLM), also known as large model, refers to a natural language processing (NLP) model with a large number of parameters. The number of model parameters and / or the complexity of the model structure exceeds the preset threshold. The model processes large amounts of text data during training and has the ability to understand and generate natural language. For example, large language models can include XLM-RoBERTa, etc.

[0039] The web page information elements in the DPI data may include URL strings and web page content, and the web page content specifically includes information elements such as title, description, keywords, links, etc. Preferably, the web page information elements may include URL strings, titles, and description texts.

[0040] The web page information elements are encoded using a large language model and input into the embedding layer of the large language model to obtain a vector representation of the text, namely the URL reconstruction representation. The URL reconstruction representation can simultaneously reflect the original content of the URL and the key information of the web page.

[0041] It should be noted that URL embedding here means that only URL string identifiers are used, and their contents are not used. URL reconstruction means that the web page information elements used include not only URL strings, but also other web page contents, such as titles and description texts.

[0042] Step 130, based on the similarity between the URL embedding representation and the URL reconstruction representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as the URL representation model.

[0043] Specifically, the URL embedding representation is obtained through the graph representation learning algorithm, and the URL reconstruction representation is obtained through the large language model. Based on the similarity between the URL embedding representation and the URL reconstruction representation, the large language model is pre-trained by distillation. The training goal is to merge the URL embedding representation vector learned from the decomposition stage into the large model.

[0044] Here, the loss function of the distillation pre-training can be determined based on the similarity between the URL embedding representation and the URL reconstruction representation, using the deep alignment graph to represent the results of the learning model and the large language model.

[0045] Preferably, the loss function of distillation pre-training can be expressed as:

[0046] Where B is the size of a batch, represents the cosine similarity, and are learnable nonlinear projections as part of the models learned by the decomposition and distillation stages, respectively, and τ is a temperature hyperparameter.

[0047] The parameters of the pre-trained large language model are frozen as the URL representation model. This URL representation model can be used for various downstream tasks such as URL tag prediction, category multi-classification, and user access prediction.

[0048] The method provided by the embodiment of the present invention integrates interactive relationships into content understanding by constructing a two-stage fusion model of decomposition and distillation, and deeply aligns the results of the graph representation learning algorithm and the large language model, thereby combining the user access information and spatiotemporal characteristics in the operator's DPI data with the representation capabilities of the large language model. The URL representation model obtained by pre-training can adapt to network anti-fraud application scenarios.

[0049] Based on any of the above embodiments, based on the operator's deep packet analysis DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation, that is, step 110 includes: Step 111, using the URLs and users in the DPI data and user data as nodes and the user's access behavior as edges, constructing a user-URL relationship graph that integrates user communication interaction relationships and network access relationships; Step 112, extracting the embedding representation of each node in the relationship graph through a graph representation learning algorithm to obtain a URL embedding representation and a user embedding representation.

[0050] Specifically, the acquisition of URL embedded representation can be achieved by first constructing a user-URL relationship graph and then extracting the embedded representation of each node in the relationship graph.

[0051] The user-URL relationship graph is constructed with URLs and users as nodes and user access behaviors as edges. For example, let P = {p1, p2, . . . p N} is the set of users who use mobile network to surf the Internet, W = {w1, w2, . . . w M} is a set of URLs represented by URLs. Use P and W to construct a graph G that integrates user communication interaction relations and URL access relations, where E represents the edge set in G. If there is a user p accessing URL w in the DPI log of the operator, there is an edge between user p ∈ P and URL w∈ W. The definition of the edge depends on the specific access behavior of the user, including "accidental click", "normal access", "long stay", "login", "customer service chat", "payment transfer", etc.

[0052] like and Corresponding to user p i and URL w j . Define the graph learning algorithm as , the graph learning parameter of each node is θ, then the URL embedding representation can be expressed as:

[0053] The user embedding representation can be expressed as:

[0054] In some embodiments, the embedded representation of each node in the relationship graph is extracted by a graph representation learning algorithm to obtain the URL embedded representation and the user embedded representation, that is, step 112 specifically includes: Step 112-1, based on the relationship graph, extracting the user initial embedding representation of each user node and the URL initial embedding representation of each URL node; Step 112-2, based on the current layer URL embedding representation of each URL node and the current layer user embedding representation of the neighboring user nodes of the URL node, iteratively update the current layer URL embedding representation until the iteration termination condition is reached, and use the last layer URL embedding representation as the URL embedding representation; Step 112-3, based on the current-layer user embedding representation of each user node, the current-layer user embedding representation of the user node that has a communication and interaction relationship with the user node, and the current-layer URL embedding representation of the URL nodes that the user node has historically visited, the current-layer user embedding representation is iteratively updated until the iteration termination condition is met, and the last-layer user embedding representation is used as the user embedding representation; Among them, the first-level URL embedding representation is the URL initial embedding representation, and the first-level user embedding representation is the user initial embedding representation.

[0055] Specifically, based on the relationship graph, the user initial embedding representation of each user node and the URL initial embedding representation of each URL node are extracted respectively, that is, p ∈ P and w ∈ W are represented as low-dimensional embedding vectors.

[0056] For a given one-hot representation of user p, the i-th row is selected from the user free embedding matrix R through an index selection operation and output as the free latent embedding of the user The transpose of the user's basic feature vector is then concatenated (such as age, gender, occupation, etc.), through a conversion function and the transformation matrix Get the user's initial embed . That is, the user's initial embedding representation It can be expressed as:

[0057] Similarly, for a given one-hot representation of URL w, select the jth row from the URL free embedding matrix S and output it as the free latent embedding of the URL The transpose of the URL is then concatenated with the basic feature vector of the URL. (such as ICP record, IP location, registration time, etc.), through the conversion function and the transformation matrix Get the initial embedded representation of the URL . That is, the URL is initially embedded It can be expressed as:

[0058] On this basis, the initial embedding representation of the user and the initial embedding representation of the URL are iteratively updated. In the relationship graph G, the diffusion process of the user communication interaction relationship is modeled to simulate the influence propagation of the user in the online behavior space, and the user's historical access behavior is modeled to capture the evolution of the user's behavior on a time scale. The vector propagation iteration step starts from k=0 and stops when the recursive process reaches the predefined depth K, thereby obtaining the final URL embedding representation and user embedding representation.

[0059] In step 112-2, for the URL embedding representation of each URL node, the current layer URL embedding representation can be iteratively updated based on the current layer URL embedding representation and the current layer user embedding representation of the neighboring user nodes of the URL node.

[0060] In some embodiments, based on the current-layer URL embedding representation of each URL node and the current-layer user embedding representation of the neighboring user nodes of the URL node, the current-layer URL embedding representation is iteratively updated, including: For any URL node, aggregate the current-layer user embedding representations of the neighboring user nodes of the URL node to obtain the aggregated URL embedding representation; The current layer URL embedding representation and the aggregated URL embedding representation of the URL node are fused to obtain the next layer URL embedding representation to iteratively update the current layer URL embedding representation.

[0061] Specifically, for each URL j, according to its k-th layer embedding vector, the embeddings of its neighboring user nodes are weighted aggregated, that is, the current layer user embedding representations of the neighboring user nodes of the URL node are aggregated to obtain the aggregated URL embedding representation. Aggregated URL embedding representation It can be expressed as:

[0062] in, is the normalized attention weight learned by the first multi-layer perceptron, whose input is the URL embedding representation and user embedding representation of the kth layer. .

[0063] Then, the current layer URL embedding representation is iteratively updated. The URL embedding representation is updated by fusing the aggregated embedding obtained by aggregating the neighbors of URL j with its embedding at the kth layer to become the embedding of URL j at the (k+1)th layer. That is:

[0064] In the formula, is the URL embedding representation of the k+1th layer, is the URL embedding representation of the kth layer, Embed representation for aggregation URL.

[0065] In the graph learning process, the last layer of URL embedding representation is used as URL embedding representation through the iterative diffusion process of the preset number of layers. In the iterative process, the first layer of URL embedding representation is used as URL initial embedding representation, and the first layer of user embedding representation is used as user initial embedding representation.

[0066] In step 112-3, for the user embedding representation of each user node, the current layer user embedding representation can be iteratively updated based on the current layer user embedding representation, the current layer user embedding representation of the user node that has a communication and interaction relationship with the user node, and the current layer URL embedding representation of the URL nodes historically visited by the user node.

[0067] For any user node, the communication interaction influence aggregate embedding is determined based on the current layer user embedding representation, the communication interaction relationship weight and the communication interaction relationship influence weight of the user node that has a communication interaction relationship with the user node.

[0068] Communication interactions affect aggregate embedding It can be expressed as:

[0069] In the formula, Aggregate embedding for communication interaction effects, is the influence weight of the communication interaction relationship, Represents a user node With user node The communication interaction relationship weight between For user nodes User nodes with communication interaction relationship The k-th user embedding representation of .

[0070] is the communication interaction relationship weight learned by the second multilayer perceptron, and the input of the second multilayer perceptron is ], that is, the communication interaction relationship weight is determined based on the current layer user embedding representation of the user node and the current layer user embedding representation of the user node that has a communication interaction relationship with the user node.

[0071] The communication interaction relationship influence weight is determined based on the communication interaction relationship weight. The communication interaction relationship influence weight can be understood as the graph-level balance weight learned by the fourth multi-layer perceptron (indicating how to balance the communication interaction relationship influence and the historical access behavior influence). In the graph attention network, the node attention weight is used as input, that is, Input to the fourth multi-layer perceptron, output the communication interaction relationship influence weight .

[0072] Based on the current layer URL embedding representation of the URL nodes historically visited by the user node, the historical access behavior weights and the historical access behavior influence weights, the historical access influence aggregate embedding is determined.

[0073] Historical visits affect aggregate embedding It can be expressed as:

[0074] In the formula, Aggregate embedding for historical access impact, The historical access behavior affects the weight. Represents a user node With URL node The historical access behavior weight between For user nodes Historically visited URL nodes The k-th level URL embedding representation.

[0075] is the historical access behavior weight learned by the third multi-layer perceptron, and the input of the third multi-layer perceptron is ], that is, the historical access behavior weight is determined based on the current-layer user embedding representation of the user node and the current-layer URL embedding representation of the URL nodes historically visited by the user node.

[0076] The weight of historical access behavior influence is determined based on the weight of historical access behavior. The weight of historical access behavior influence can be understood as the graph-level balance weight learned by the fourth multi-layer perceptron (indicating how to balance the influence of communication interaction relationship and historical access behavior influence). In the graph attention network, the node attention weight is used as input, that is, Input to the fourth multi-layer perceptron, output the historical access behavior impact weight .

[0077] On this basis, the current layer user embedding representation, communication interaction impact aggregate embedding and historical access impact aggregate embedding of the user node are fused to obtain the next layer user embedding representation to iteratively update the current layer user embedding representation. It can be expressed as:

[0078] in, Represents a user node The k+1th user embedding representation of Represents a user node The k-th user embedding representation of represents the communication interaction affecting the aggregate embedding, Indicates that historical visits affect aggregate embedding.

[0079] In the graph learning process, through an iterative diffusion process with a preset number of layers, the last layer of user embedding representation is used as the final user embedding representation.

[0080] In some embodiments, based on the web page information elements in the DPI data, a URL reconstruction representation is obtained through a large language model, that is, step 120 specifically includes: Step 121, merging the URL character string, title and description text in the web page information element to obtain a fused text; Step 122, based on the large language model, encode the fused text to obtain a URL reconstruction representation.

[0081] The description text here can be the text content in the HTML code tag of the web page, and the URL string, title and description text in the web page information element are merged, specifically, they can be spliced ​​and word segmented to obtain the merged text.

[0082] Fusion Text It can be expressed as:

[0083] in, , , The URL string, title, and description text of the website address respectively. Indicates the first word of the URL string. , Indicates the first participle of the title. Indicates the first participle of the title. Indicates the first participle of the description text. Indicates the second participle of the description text.

[0084] Feed the fused text sequence to a large language model. The large language model here can use the multilingual large model XLM-RoBERTa based on the Transformer architecture. Obtain the embedding vector corresponding to the [CLS] tag , and then further obtain the URL reconstruction representation, the reconstruction representation of the i-th URL It can be expressed as:

[0085] In the formula, is the fully connected layer, is the activation function, is the embedding vector.

[0086] Based on any of the above embodiments, Figure 2 FIG. 2 is a flow chart of the method for constructing a uniform resource locator representation model provided by the present invention. Figure 2 As shown, the method includes: S1, taking the URLs and users in the DPI data and user data as nodes and the user's access behavior as edges, constructs a user-URL relationship graph that integrates user communication interaction relationships and network access relationships.

[0087] S2, extracting the embedding representation of each node in the relationship graph through a graph representation learning algorithm to obtain a URL embedding representation and a user embedding representation. S2 specifically includes: Based on the relationship graph, the user initial embedding representation of each user node and the URL initial embedding representation of each URL node are extracted respectively; For any URL node, aggregate the current-layer user embedding representations of the neighboring user nodes of the URL node to obtain the aggregated URL embedding representation; The current layer URL embedding representation and the aggregated URL embedding representation of the URL node are fused to obtain the next layer URL embedding representation, so as to iteratively update the current layer URL embedding representation until the iteration termination condition is reached, and the last layer URL embedding representation is used as the URL embedding representation.

[0088] For any user node, based on the current layer user embedding representation, the communication interaction relationship weight and the communication interaction relationship influence weight of the user node that has a communication interaction relationship with the user node, determine the communication interaction influence aggregate embedding; Determine the historical access impact aggregate embedding based on the current layer URL embedding representation of the URL nodes historically visited by the user node, the historical access behavior weight, and the historical access behavior impact weight; The current layer user embedding representation, communication interaction influence aggregate embedding and historical visit influence aggregate embedding of the user node are fused to obtain the next layer user embedding representation to iteratively update the current layer user embedding representation; until the iteration termination condition is reached, the last layer user embedding representation is used as the user embedding representation.

[0089] Among them, the communication interaction relationship weight is determined based on the current layer user embedding representation of the user node and the current layer user embedding representation of the user node that has a communication interaction relationship with the user node; the communication interaction relationship influence weight is determined based on the communication interaction relationship weight; the historical access behavior weight is determined based on the current layer user embedding representation of the user node and the current layer URL embedding representation of the URL node historically visited by the user node; and the historical access behavior influence weight is determined based on the historical access behavior weight.

[0090] S3, fuses the URL string, title and description text in the web page information element to obtain a fused text; based on a large language model, encodes the fused text to obtain a URL reconstructed representation.

[0091] S4, based on the similarity between the URL embedding representation and the URL reconstruction representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as the URL representation model.

[0092] The method provided by the embodiment of the present invention: (1) The access information, user information, and spatiotemporal characteristics in the operator’s DPI data are combined with the representation capabilities of the large language model at the model level, making the pre-trained large model suitable for practical application scenarios such as telecommunications network anti-fraud.

[0093] (2) This method is independent of similar URL representation methods such as website content features and website frames. It integrates the user-URL interaction relationship into the large language model based on operator big data. In downstream tasks, only a small amount of sample fine-tuning is required to achieve better results than the original method.

[0094] (3) By jointly modeling the high-order structure of the user communication interaction relationship network and the user URL access relationship network, the attention mechanism of the communication interaction relationship weight, the historical access behavior weight, and the layer-level balance weight is used to learn the embedding representation update. Through multi-layer iteration and splicing design, accurate modeling of URLs at the spatiotemporal level is achieved.

[0095] (4) Specifically in the anti-fraud scenario of telecommunications networks, it is possible to implement implicit model characterization of URL access habits based on spatiotemporal big data, thereby identifying fraudulent URLs designed for specific fraud groups.

[0096] Therefore, this method is used in the system of telecommunications operators to empower the anti-fraud industry, significantly improving the intelligence level and performance indicators of the system.

[0097] Based on any of the above embodiments, Figure 3 It is a schematic diagram of the process of the classification method provided by the present invention, such as Figure 3 As shown, a classification method is provided, including: Step 310, obtaining the URL to be classified; Step 320, encoding the URL to be classified based on the URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on a uniform resource locator representation model construction method; Step 330, classify the URL embedding representation to be classified.

[0098] Specifically, after the uniform resource locator representation model is constructed by the above method, the model can be used to classify URLs to improve classification accuracy.

[0099] The URL to be classified is the URL that needs to be classified. The string of the URL to be classified, or the string, title and description text of the URL to be classified is input into the URL representation model, and the URL to be classified is encoded to obtain the embedded representation of the URL to be classified. The embedded representation integrates the access information, user information and spatiotemporal characteristics in the operator's DPI data. Classification based on the URL embedded representation can further improve the classification accuracy. The classification result can include whether the URL is a safe link.

[0100] Based on any of the above embodiments, Figure 4 is a schematic diagram of the structure of the uniform resource locator representation model building device provided by the present invention, such as Figure 4 As shown, the device comprises: A decomposition unit 410 is used to decompose the user-uniform resource locator URL relationship graph based on the operator deep message parsing DPI data and user data through a graph representation learning algorithm to obtain a URL embedding representation; An encoding unit 420, configured to encode the web page information elements in the DPI data based on a large language model to obtain a URL reconstruction representation; The pre-training unit 430 is used to perform distillation pre-training on the large language model based on the similarity between the URL embedding representation and the URL reconstruction representation, and use the large language model after pre-training as the URL representation model.

[0101] The uniform resource locator representation model construction device provided by the present invention integrates interactive relationships into content understanding through the construction of a two-stage decomposition-distillation fusion model, and deeply aligns the results of the graph representation learning algorithm and the large language model, thereby combining the user access information and spatiotemporal characteristics in the operator's DPI data with the representation capabilities of the large language model. The URL representation model obtained by pre-training can adapt to network anti-fraud application scenarios.

[0102] Based on any of the above embodiments, the decomposition unit is specifically used for: Using the URLs and users in the DPI data and user data as nodes and the user's access behavior as edges, a user-URL relationship graph integrating user communication interaction relationships and network access relationships is constructed; By using a graph representation learning algorithm, the embedding representation of each node in the relationship graph is extracted to obtain a URL embedding representation and a user embedding representation.

[0103] Based on any of the above embodiments, the decomposition unit is specifically used for: Based on the relationship graph, extracting the user initial embedding representation of each user node and the URL initial embedding representation of each URL node respectively; Based on the current layer URL embedding representation of each URL node and the current layer user embedding representation of the neighboring user node of the URL node, iteratively update the current layer URL embedding representation until the iteration termination condition is reached, and use the last layer URL embedding representation as the URL embedding representation; Based on the current-layer user embedding representation of each user node, the current-layer user embedding representation of the user node that has a communication and interaction relationship with the user node, and the current-layer URL embedding representation of the URL nodes historically visited by the user node, the current-layer user embedding representation is iteratively updated until the iteration termination condition is reached, and the last-layer user embedding representation is used as the user embedding representation; Among them, the first-level URL embedding representation is the URL initial embedding representation, and the first-level user embedding representation is the user initial embedding representation.

[0104] Based on any of the above embodiments, the decomposition unit is specifically used for: For any URL node, aggregate the current-layer user embedding representations of neighboring user nodes of the URL node to obtain an aggregated URL embedding representation; The current-layer URL embedding representation of the URL node and the aggregated URL embedding representation are merged to obtain the next-layer URL embedding representation, so as to iteratively update the current-layer URL embedding representation.

[0105] Based on any of the above embodiments, the decomposition unit is specifically used for: For any user node, determining a communication interaction influence aggregate embedding based on the current layer user embedding representation, the communication interaction relationship weight and the communication interaction relationship influence weight of the user node that has a communication interaction relationship with the user node; Determine the historical access impact aggregate embedding based on the current layer URL embedding representation of the URL nodes historically visited by the user node, the historical access behavior weights, and the historical access behavior impact weights; The current layer user embedding representation of the user node, the communication interaction influence aggregate embedding and the historical access influence aggregate embedding are fused to obtain the next layer user embedding representation, so as to iteratively update the current layer user embedding representation; Among them, the communication interaction relationship weight is determined based on the current layer user embedding representation of the user node and the current layer user embedding representation of the user node that has a communication interaction relationship with the user node; the communication interaction relationship influence weight is determined based on the communication interaction relationship weight; the historical access behavior weight is determined based on the current layer user embedding representation of the user node and the current layer URL embedding representation of the URL nodes historically visited by the user node; and the historical access behavior influence weight is determined based on the historical access behavior weight.

[0106] Based on any of the above embodiments, the encoding unit is specifically used for: Merging the URL string, title and description text in the web page information element to obtain a fused text; Based on the large language model, the fused text is encoded to obtain the URL reconstruction representation.

[0107] Based on any of the above embodiments, Figure 5 It is a structural schematic diagram of the classification device provided by the present invention, such as Figure 5 As shown, the device comprises: An acquisition unit 510 is used to acquire a URL to be classified; An encoding unit 520, configured to encode the URL to be classified based on a URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method; The classification unit 530 is used to classify the URL embedded representation to be classified.

[0108] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute a uniform resource locator representation model construction method or a classification method, and the uniform resource locator representation model construction method includes: based on the operator's deep message parsing DPI data and user data, decomposing the user-uniform resource locator URL relationship graph through a graph representation learning algorithm to obtain a URL embedding representation; based on a large language model, encoding the web page information elements in the DPI data to obtain a URL reconstruction representation; based on the similarity between the URL embedding representation and the URL reconstruction representation, performing distillation pre-training on the large language model, and using the large language model after pre-training as a URL representation model.

[0109] The classification method includes: obtaining a URL to be classified; encoding the URL to be classified based on a URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method; and classifying the embedded representation of the URL to be classified.

[0110] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0111] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the uniform resource locator representation model construction method or classification method provided by the above methods. The uniform resource locator representation model construction method includes: based on the operator's deep message parsing DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation; based on a large language model, the web page information elements in the DPI data are encoded to obtain a URL reconstructed representation; based on the similarity between the URL embedding representation and the URL reconstructed representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as a URL representation model.

[0112] The classification method includes: obtaining a URL to be classified; encoding the URL to be classified based on a URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method; and classifying the embedded representation of the URL to be classified.

[0113] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the uniform resource locator representation model construction method or classification method provided by the above-mentioned methods. The uniform resource locator representation model construction method includes: based on the operator's deep message parsing DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation; based on a large language model, the web page information elements in the DPI data are encoded to obtain a URL reconstructed representation; based on the similarity between the URL embedding representation and the URL reconstructed representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as a URL representation model.

[0114] The classification method includes: obtaining a URL to be classified; encoding the URL to be classified based on a URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method; and classifying the embedded representation of the URL to be classified.

[0115] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a uniform resource locator representation model, characterized in that: include: Based on the operator's deep packet analysis DPI data and user data, the user-uniform resource locator URL relationship graph is decomposed through a graph representation learning algorithm to obtain a URL embedding representation; Based on a large language model, encoding web page information elements in the DPI data to obtain a URL reconstruction representation; Based on the similarity between the URL embedding representation and the URL reconstruction representation, the large language model is distilled and pre-trained, and the large language model after pre-training is used as a URL representation model.

2. The method for constructing a uniform resource locator representation model according to claim 1, characterized in that: The method of analyzing the DPI data and user data based on the operator's deep message analysis and decomposing the user-uniform resource locator URL relationship graph through a graph representation learning algorithm to obtain a URL embedding representation includes: Using the URLs and users in the DPI data and user data as nodes and the user's access behavior as edges, a user-URL relationship graph integrating user communication interaction relationships and network access relationships is constructed; By using a graph representation learning algorithm, the embedding representation of each node in the relationship graph is extracted to obtain a URL embedding representation and a user embedding representation.

3. The method for constructing a uniform resource locator representation model according to claim 2, characterized in that: The method of extracting the embedding representation of each node in the relationship graph through a graph representation learning algorithm to obtain a URL embedding representation and a user embedding representation includes: Based on the relationship graph, extracting the user initial embedding representation of each user node and the URL initial embedding representation of each URL node respectively; Based on the current layer URL embedding representation of each URL node and the current layer user embedding representation of the neighboring user node of the URL node, iteratively update the current layer URL embedding representation until the iteration termination condition is reached, and use the last layer URL embedding representation as the URL embedding representation; Based on the current-layer user embedding representation of each user node, the current-layer user embedding representation of the user node that has a communication and interaction relationship with the user node, and the current-layer URL embedding representation of the URL nodes historically visited by the user node, the current-layer user embedding representation is iteratively updated until the iteration termination condition is reached, and the last-layer user embedding representation is used as the user embedding representation; Among them, the first-level URL embedding representation is the URL initial embedding representation, and the first-level user embedding representation is the user initial embedding representation.

4. The method for constructing a uniform resource locator representation model according to claim 3, characterized in that: The iterative updating of the current layer URL embedding representation based on the current layer URL embedding representation of each URL node and the current layer user embedding representation of the neighboring user nodes of the URL node includes: For any URL node, aggregate the current-layer user embedding representations of neighboring user nodes of the URL node to obtain an aggregated URL embedding representation; The current-layer URL embedding representation of the URL node and the aggregated URL embedding representation are merged to obtain the next-layer URL embedding representation, so as to iteratively update the current-layer URL embedding representation.

5. The method for constructing a uniform resource locator representation model according to claim 3, characterized in that: The iterative updating of the current layer user embedding representation based on the current layer user embedding representation of each user node, the current layer user embedding representation of the user node having a communication interaction relationship with the user node, and the current layer URL embedding representation of the URL node historically visited by the user node includes: For any user node, determining a communication interaction influence aggregate embedding based on the current layer user embedding representation, the communication interaction relationship weight and the communication interaction relationship influence weight of the user node that has a communication interaction relationship with the user node; Determine the historical access impact aggregate embedding based on the current layer URL embedding representation of the URL nodes historically visited by the user node, the historical access behavior weights, and the historical access behavior impact weights; The current layer user embedding representation of the user node, the communication interaction influence aggregate embedding and the historical access influence aggregate embedding are fused to obtain the next layer user embedding representation, so as to iteratively update the current layer user embedding representation; Among them, the communication interaction relationship weight is determined based on the current layer user embedding representation of the user node and the current layer user embedding representation of the user node that has a communication interaction relationship with the user node; the communication interaction relationship influence weight is determined based on the communication interaction relationship weight; the historical access behavior weight is determined based on the current layer user embedding representation of the user node and the current layer URL embedding representation of the URL nodes historically visited by the user node; and the historical access behavior influence weight is determined based on the historical access behavior weight.

6. The method for constructing a uniform resource locator representation model according to any one of claims 1 to 5, characterized in that: The method of encoding the web page information elements in the DPI data based on the large language model to obtain the URL reconstruction representation includes: Merging the URL string, title and description text in the web page information element to obtain a fused text; Based on the large language model, the fused text is encoded to obtain the URL reconstruction representation.

7. A classification method, characterized in that: include: Get the URL to be classified; Based on a URL representation model, the URL to be classified is encoded to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method according to any one of claims 1 to 6; The URL embedding representation to be classified is classified.

8. A device for constructing a uniform resource locator representation model, characterized in that: include: A decomposition unit, used for parsing DPI data and user data based on the operator's deep message, decomposing the user-uniform resource locator URL relationship graph through a graph representation learning algorithm, and obtaining a URL embedding representation; An encoding unit, used for encoding web page information elements in the DPI data based on a large language model to obtain a URL reconstruction representation; The pre-training unit is used to perform distillation pre-training on the large language model based on the similarity between the URL embedding representation and the URL reconstruction representation, and use the large language model after pre-training as the URL representation model.

9. A classification device, characterized in that: include: An acquisition unit, used to acquire the URL to be classified; An encoding unit, used for encoding the URL to be classified based on a URL representation model to obtain an embedded representation of the URL to be classified, wherein the URL representation model is obtained based on the uniform resource locator representation model construction method according to any one of claims 1 to 6; The classification unit is used to classify the URL embedding representation to be classified.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the uniform resource locator representation model construction method according to any one of claims 1 to 6 or the classification method according to claim 7 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for constructing a uniform resource locator representation model according to any one of claims 1 to 6 or the classification method according to claim 7 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for constructing a uniform resource locator representation model according to any one of claims 1 to 6 or the classification method according to claim 7 is implemented.

Citation Information

Cited By

  • Telecommunication user abnormal risk assessment method, device, equipment, medium and product

    CN119341824A

  • Methods, devices, equipment, media, and products for assessing abnormal risks of telecommunications users

    CN119341824B