Systems and methods for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols

The bifurcated validation using a neuron-reduced LLM architecture efficiently validates model-derived responses, addressing computational and architectural limitations in existing LLM systems, ensuring accurate and low-latency response validation.

US20260379864A1Pending Publication Date: 2026-11-26CAPITAL ONE SERVICES LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/268944
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2025-07-14
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing systems for validating model-derived natural language responses using large language models (LLMs) face significant computational resource demands and architectural limitations, making them impractical for real-world applications with strict latency or resource constraints, such as chatbot applications.

Method used

A bifurcated validation approach using an architecturally modified LLM with neuron-reduced layers for initial validation, followed by secondary validation if the initial validation fails to satisfy a confidence threshold, reduces computational requirements and latency.

Benefits of technology

This approach efficiently validates model-derived responses while maintaining accuracy by leveraging a modified LLM with reduced neuron layers for initial validation, thereby minimizing computational demands and response latency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260379864A1-D00000_ABST
    Figure US20260379864A1-D00000_ABST
Patent Text Reader

Abstract

Methods and systems are described herein for validating model-derived responses using a modified neural network model. The system generates a modified model by inserting generated layers with fewer neurons between preexisting layers of an unmodified model. The modified model is trained to generate confidence values indicating a model-derived response's adherence to network service security protocols. The system receives a user input and generates a response using a first model. The system provides the input and the response to the modified model to generate a confidence value, and validates the response based on the confidence value. If the confidence value satisfies a threshold, the response is presented for display on a user interface. If the confidence value fails to satisfy the threshold, the response is transmitted to a second user device for secondary validation.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of priority of U.S. Provisional Application No. 63 / 809,293, filed May 20, 2025. The content of the foregoing application is incorporated herein in its entirety by reference.BACKGROUND

[0002] In recent years, the use of artificial intelligence, including, but not limited to, machine learning, deep learning, etc. (referred to collectively herein as artificial intelligence models, machine learning models, or simply models) has exponentially increased. Broadly described, artificial intelligence refers to a wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. Key benefits of artificial intelligence are its ability to process data, find underlying patterns, and / or perform real-time determinations. However, despite these benefits and despite the wide-ranging number of potential applications, practical implementations of artificial intelligence have been hindered by several technical problems. First, artificial intelligence may rely on large amounts of high-quality data. The process for obtaining this data and ensuring it is high-quality can be complex and time-consuming. Additionally, data that is obtained may need to be categorized and labeled accurately, which can be difficult, time-consuming and a manual task. Second, despite the mainstream popularity of artificial intelligence, practical implementations of artificial intelligence may require specialized knowledge to design, program, and integrate artificial intelligence-based solutions, which can limit the amount of people and resources available to create these practical implementations. Finally, results based on artificial intelligence can be difficult to review as the process by which the results are made may be unknown or obscured. This obscurity can create hurdles for identifying errors in the results, as well as improving the models providing the results. These technical problems may present an inherent problem with attempting to use an artificial intelligence-based solution in validating model-derived responses.SUMMARY

[0003] Methods and systems are described herein for novel uses and / or improvements to artificial intelligence applications. As one example, methods and systems are described herein for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols.

[0004] Existing systems for validating model-derived natural language responses often rely on using foundational large language models (LLMs) as judges to verify outputs from other LLMs. However, these approaches have significant technical disadvantages that limit their effectiveness and efficiency. A key issue is that such systems typically require completely retraining or fine-tuning the entire LLM used for validation. This creates an enormous demand for both training data and computational resources. For example, to train an LLM to effectively vet model outputs, a large corpus of human-labeled training data is needed. Additionally, updating all of the model's parameters (weights, biases, etc.) during training consumes vast amounts of processing power and memory.

[0005] Furthermore, the fundamental architecture of LLMs, which are designed to predict the next token in a sequence, creates additional challenges when repurposing them for output validation. For example, as the fundamental architecture of LLMs predict the next token in the sequence, generated outputs are derived from an extremely large solution space that relies on the LLMs internalized vocabulary. As the solution space is so large (e.g., as token vocabularies may be 50,257 tokens large, each capable of producing over 50,25750,257 possible combinations of tokens), repurposing the foundational LLM to validate model-derived responses is increasingly difficult as they are prone to producing hallucinated or irrelevant outputs.

[0006] Even when attempts to reduce the solution space by fine-tuning the foundational LLM to generate binary values indicating whether model-derived responses are valid, the underlying architecture of the foundational LLM remains constant-still relying on the exponentially large solution space to as layers of the foundational LLM are unchanged. Such architectural mismatch between existing LLM architecture and validating model responses (e.g., via numerical values) result in a struggle to reliably and efficiently validate model-derived responses. The combination of intensive data and compute requirements, along with architectural limitations, makes current approaches for automated validation of LLM outputs impractical for many real-world applications, especially those with strict latency or resource constraints, such as in chat bot applications.

[0007] The methods and systems described herein overcome the technical deficiencies of existing approaches for validating model-derived natural language responses. For example, the methods and systems described herein may leverage a bifurcated validation approach using (i) an architecturally modified LLM to initially validate a model-derived response's adherence to network service security protocols and (ii) secondary validation of the model-derived response if the initial validation fails to satisfy a confidence threshold to verify whether the model-derived response adheres to the network security protocols. To facilitate a reduction in computational requirements associated with validating model-derived natural language responses, a base model LLM is architecturally modified to initially validate a model-derived response. The architecturally modified LLM may be generated based on a base LLM, where a generated set of neuron-reduced layers are inserted between sets of preexisting layers of the base LLM. The generated layer may include a first amount of neurons that is less than a second amount of neurons corresponding to a preexisting layer. Such architectural modification compresses information from the preexisting layers of the base LLM into a smaller dimensionality, thereby reducing computational demands during both training and inference time.

[0008] Moreover, by inserting the set of neuron-reduced layers, when the architecturally modified LLM is trained during a training routine, configurations (e.g., weights, biases, or other parameters) that correspond to the set of neuron-reduced layers are updated in lieu of the configurations that correspond to the preexisting layers of the LLM. By doing so, the system prevents updates to the configurations of the preexisting layers of the LLM to maintain coherent processing of natural-language inputs provided to the architecturally modified LLM, while mitigating hallucinations stemming from a large solution space that unmodified base LLMs are prone to by updating the configurations of the set of neuron reduced layers that reduce the available solution space. In this way, a targeted training approach efficiently steers model behavior without incurring the computational cost of retraining the entire architecturally modified LLM's layers that are associated with the neuron-increased preexisting layers of the base LLM. By focusing updates on a subset of parameters compared to unmodified LLM models, the system adapts the model for validation tasks using a reduced amount of computer memory and processing power.

[0009] Furthermore, by leveraging a bifurcated validation process where the architecturally modified LLM initially validates a model-derived response and invoking a secondary validation process when a confidence value of the initial validation failing to satisfy a threshold confidence, the system facilitates a reduction in model-derived response validation latency while maintaining validation accuracy. For example, first checking whether the model-derived response is valid via the architecturally modified LLM prior to transmitting the model-derived response to another user device for secondary validation, the system may display model-derived responses if a confidence value provided by the architecturally modified LLM satisfies a confidence threshold-thereby reducing model-derived response validation latency and reducing network traffic. If the confidence value does not satisfy a confidence threshold, the model-derived response is transmitted to the other user device for secondary validation (e.g., by a validator),-thereby ensuring model-derived response validation accuracy.

[0010] In some aspects, methods and systems for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses are described. For example, the system may generate a modified Large Language Model (LLM) comprising a first set of generated layers inserted between a second set of preexisting layers of a base LLM, where each generated layer of the first set of generated layers comprises a first amount of neurons that are less than a second amount of neurons corresponding to a preexisting layer of the second set of preexisting layers. The system may train the modified LLM to generate confidence values indicating adherence to network service security protocols by providing training examples, as input to the modified LLM, such that first parameters associated with the first set of generated layers are updated and second parameters associated with the second set of preexisting layers remain constant. The system may then provide, (i) a first natural language input received from a user device associated with a user and (ii) a first natural language response generated from a first LLM based on the first natural language input, as input to the modified LLM to generate a confidence value indicating the first natural language response's adherence to the network service security protocols. In response to determining that the confidence value satisfies a threshold confidence value, the system may validate the first natural language response. The system may then generate for display, on a user interface of the user device, the first natural language response in lieu of transmitting (i) the first natural language response and (ii) the first natural language input to a second user device associated with a second user to receive feedback for a secondary validation of the first natural language response.

[0011] Various other aspects, features, and advantages of the invention will be apparent through the detailed description of the invention and the drawings attached hereto. It is also to be understood that both the foregoing general description and the following detailed description are examples and are not restrictive of the scope of the invention. As used in the specification and in the claims, the singular forms of “a,”“an,” and “the” include plural referents unless the context clearly dictates otherwise. In addition, as used in the specification and the claims, the term “or” means “and / or” unless the context clearly dictates otherwise. Additionally, as used in the specification, “a portion” refers to a part of, or the entirety of (i.e., the entire portion), a given item (e.g., data) unless the context clearly dictates otherwise.BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG. 1 shows an illustrative diagram for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses, in accordance with one or more embodiments.

[0013] FIGS. 2A-2B show illustrative diagrams of an unmodified model and a modified model for facilitating bifurcated model-derived natural language response validation, in accordance with one or more embodiments.

[0014] FIG. 3 shows illustrative components for a system used to reduce computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses, in accordance with one or more embodiments.

[0015] FIG. 4 shows a flowchart of the steps involved in reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses, in accordance with one or more embodiments.DETAILED DESCRIPTION OF THE DRAWINGS

[0016] In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It will be appreciated, however, by those having skill in the art that the embodiments of the invention may be practiced without these specific details or with an equivalent arrangement. In other cases, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the embodiments of the invention.

[0017] FIG. 1 shows an illustrative diagram for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses, in accordance with one or more embodiments. For example, diagram 100 illustrates a user interface for a chat interaction that displays validated model-derived natural language responses that adhere to network service security protocols. The diagram includes a user device 102 displaying a user interface 104. The user interface 104 shows a chat conversation including a user input 106 and a model-derived response 108. Additionally, the interface displays a media element 110. For example, in some embodiments, upon validating a model-derived response 108, the system may query one or more databases for information associated with the model-derived response 108 that may improve the user experience. For example, as shown in FIG. 1, media element 110 shows an image of a red 1968 Camaro Z28 that the user may seek to purchase.

[0018] In some embodiments, a user submits a user input 106 through the user interface 104, the system (e.g., system 300 (FIG. 3)) displays a validated model-derived response 108 that was generated using a first AI model. However, before displaying this model-derived response 108 to the user, the system employs a bifurcated validation process to ensure that the model-derived response 108 adheres to one or more network service security protocols. The bifurcated validation process utilizes (i) a modified AI model for initial validation that comprises a unique architecture that generates validation information (e.g., confidence values, indications of model-derived responses being valid, etc.) and (ii) a secondary validation process using a second user device that validates model-derived responses when a confidence value generated by the modified AI model fails to satisfy a threshold confidence value. In some embodiments, the modified AI model may be a modified LLM that includes a set of generated layers inserted between preexisting layers of a base LLM, where each generated layer includes fewer neurons than the corresponding preexisting layers of the base LLM. By doing so, the architectural modification allows for rapid, resource-efficient validation of model-derived responses while ensuring model-derived responses adhere to one or more network service security protocols.

[0019] To do so, the system (e.g., system 300 (FIG. 3)) may receive, from a user, a user input 106 via user interface 104. The user input 106 may be inputted by the user on user device 102. User device 102 may correspond to (e.g., be the same as, or similar to, mobile device 322 (FIG. 3)). The user input 106 may be a user provided input. For example, the user provided input may be text, an image, an audio file, multimedia, a natural language input, a natural language query, a statement, or other request. The system may provide the user input 106 as input to a first AI model that is trained to generate responses to user inputs. For example, the first AI model may be a first LLM that is trained to generate responses to natural language inputs. In some embodiments, the first AI model may correspond to the first model 302 (FIG. 3)). The first LLM may be associated with an entity that is further associated with user interface 104. For example, the entity may be a financial service provider, a vehicle dealership, a merchant, a social media platform, an e-commerce website, a healthcare provider, an educational institution, a government agency, or a telecommunications company. The entity may use one or more LLMs to facilitate a chatbot for users (e.g., customers, clients, patients, etc.) to use in order to interact with the entity. For example, where the entity is a vehicle dealership, the vehicle dealership may provide a chatbot interface (e.g., user interface 104) that is powered by a first AI model (e.g., the first LLM) to generate responses to customer questions regarding inventory, sales, or other general questions.

[0020] The first AI model (e.g., the first LLM) may be a base model LLM (e.g., a foundational LLM). In some embodiments, the first LLM may be trained (or otherwise fine-tuned) on entity-specific resource information to provide entity-specific responses to user-provided questions. For example, while the entity may employ an “off-the-shelf” LLM to power a chatbot provided by the entity, the “off-the-shelf” LLM may not have adequate knowledge of the entity-specific resource information (e.g., vehicle inventory, available time slots, inventory, pricing information, contact information, etc.). As such, the entity may train (or otherwise fine-tune) the first AI model using entity-specific resource information to provide coherent responses to the user.

[0021] Despite the first LLM model being trained on entity-specific resource information to provide, for example, inventory information to users, the first LLM may be prone to generating unreliable responses. For example, unreliable responses may refer to harmful, misleading, incoherent, nefarious, inaccurate, or hallucinated outputs. Due to the architecture of LLMs, their inherent nature allows for large solution space due to the large number of neurons, layers, and token combinations available-thereby leaving LLMs prone to unreliable responses. Even when fine-tuned on entity-specific resource information, LLMs may still produce unreliable responses which may be harmful or otherwise misleading to both the user and the entity.

[0022] To mitigate unreliable model-derived responses, the system (e.g., system 300 (FIG. 3)) may leverage a bifurcated validation process to ensure that model-derived responses adhere to one or more security protocols. For example, the bifurcated validation process may use a second AI model (e.g., a modified LLM) to validate a response generated by the first AI model (e.g., the first LLM) based on the user input 106. If the modified LLM generates an output associated with the model-derived response failing to satisfy a threshold confidence value, the system may provide the response generated by the first AI model to a second user device (e.g., user terminal 324 (FIG. 3)). In some embodiments, the second AI model may correspond to second model 308 (FIG. 3).

[0023] The second AI model may be a modified LLM. For example, as described above, a modified LLM may refer to an artificial intelligence model that has been adapted from an existing base LLM by inserting additional layers between preexisting layers of the base LLM. As will be explained further in relation to FIG. 2, the modified LLM may comprise a first set of generated layers inserted between a second set of preexisting layers of a base LLM. Each generated layer of the first set of generated layers may contain fewer neurons compared to the preexisting layers. This architectural modification allows for more efficient training and inference compared to the original base LLM. In some embodiments, the modified LLM may be used to generate confidence values indicating adherence of responses to network service security protocols. For instance, in a financial services application, the modified LLM may evaluate whether AI-generated responses comply with regulatory requirements and internal policies. In other embodiments, the modified LLM may be used to validate responses in customer service chatbots or other natural language processing applications.

[0024] To do so, the system provides both the user input 106 and the model-derived response to the modified LLM, which then generates a confidence value. If this value meets a predetermined threshold, the response is immediately validated and the model-derived response 108 displayed to the user, as shown in diagram 100. By doing so, the system reduces computational resource expenditure compared to existing methods that rely on unmodified LLMs that attempt to validate model-derived responses via the neuron-reduced layers of the modified LLM architecture. Furthermore, as responses may be immediately validated (e.g., if the confidence value satisfies a threshold confidence value), the system provides reduced model-derived response latency as secondary validation of the model-derived response is unnecessary.

[0025] For example, in the case that the first AI model generates a response indicating “yes” (e.g., as opposed to the shown model-derived response 108 in FIG. 1 indicating “No, but here is an available one for $100,000), the modified LLM may generate a confidence value that fails to satisfy the threshold confidence value (e.g., as the first AI model's response indicating “yes” may leave the entity at risk of selling a vehicle at a price that does not adhere to security protocols of the network service or entity). Based on the confidence value failing to satisfy the threshold confidence value, the system may transmit the first AI model's response indicating “yes,” along with the determined confidence value, and the user input 106 to the second user device (e.g., user terminal 324 (FIG. 3)) for secondary validation. For example, a human validator may either validate, invalidate, or modify the first AI model's response to one that adheres to the security protocols of the network service or entity. Upon the validator providing feedback (e.g., validating, invalidating, or modifying the first AI model's response), the feedback may be used to display the model-derived response 108 on the user interface 104 of user device 102. For example, the validator may change the first AI model's response indicating “yes” to “No, but here is an available one for $100,000” as shown in FIG. 1. The model-derived response 108 may be a valid response that adheres to the security protocols of the network service or entity.

[0026] To validate model-derived responses via the modified LLM, the modified LLM may be trained (or otherwise fine-tuned) using network service security protocol information, previous confidence values associated with previous model-derived responses, and model-derived responses themselves. By doing so, the modified LLM may be specifically trained to validate model-derived outputs using entity-specific security protocol information that mitigates unreliable model-derived responses stemming from generic LLMs.

[0027] As described herein, an entity may refer to an organization, company, institution, or individual that provides services, products, or resources to users through a digital platform or interface. In some embodiments, an entity may be a financial service provider, vehicle dealership, merchant, social media platform, e-commerce website, healthcare provider, educational institution, government agency, or telecommunications company. The entity may utilize artificial intelligence models, such as Large Language Models (LLMs), to interact with users and provide responses to their queries or requests. In some cases, the entity may have specific resources, inventory, or information that requires customized training of AI models to ensure accurate and relevant responses to user inputs.

[0028] A network service may encompass a range of digital offerings provided over a computer network, typically the internet. In some embodiments, network services may include communication platforms, data storage and retrieval systems, e-commerce platforms, financial services (e.g., banking, loans, investment management, payment processing, insurance, wealth management, retirement planning, tax preparation, credit services, mortgage services, financial advisory services, etc.), automobile dealership services (e.g., vehicle inventory management, sales processing, financing options, vehicle maintenance scheduling, warranty services, trade-in valuations, vehicle customization, test drive scheduling, customer relationship management, vehicle delivery coordination, parts ordering, service appointment booking, lease management, vehicle history reporting, promotional event management, etc.), or content delivery networks. Network services may be accessed through various user interfaces, such as web browsers, mobile applications, or dedicated software clients. These services may involve complex backend systems that process user requests, manage data, and facilitate interactions between users and the entity providing the service. In some cases, network services may incorporate artificial intelligence components to enhance functionality, personalize user experiences, or automate certain processes.

[0029] Network service security protocols may refer to a set of rules, guidelines, and procedures implemented to protect the integrity, confidentiality, and availability of network services and their associated data. In some embodiments, these protocols may include measures to prevent unauthorized access, detect and mitigate cyber threats, ensure compliance with regulatory requirements, and maintain user privacy. Network service security protocols may encompass various technical controls such as encryption, authentication mechanisms, and access controls, as well as operational policies governing data handling, user permissions, and response to security incidents. For AI-powered network services, security protocols may also include measures to validate AI-generated responses, prevent the disclosure of sensitive information, and ensure that AI models operate within predefined ethical and legal boundaries. In some cases, these protocols may be tailored to specific industry requirements or the unique needs of the entity providing the network service. Network service security protocols may further include specific guidelines to mitigate unreliable model-derived responses, such as harmful, misleading, incoherent, nefarious, inaccurate, or hallucinated outputs that may pose risks to both users and entities. These guidelines may include content filtering rules that prevent responses containing prohibited topics, factual accuracy requirements that ensure responses align with verified information sources, entity-specific compliance standards that maintain brand integrity and regulatory adherence, and risk assessment frameworks that evaluate potential legal, financial, or reputational impacts of model-derived responses. Additionally, these protocols may incorporate response validation thresholds that determine when human review is necessary, as well as continuous monitoring mechanisms that track model performance and detect emerging response patterns that could indicate security vulnerabilities or model degradation over time.

[0030] As used herein, an unmodified model may refer to a pre-existing artificial intelligence model, such as a base Large Language Model (LLM), foundational model, or other neural network architecture, that has been trained on a large dataset to learn general knowledge and language understanding. This model may serve as a starting point for more specialized applications but may not be fine-tuned for specific tasks. An unmodified model may contain multiple layers with numerous interconnected neurons, allowing for complex pattern recognition and generation capabilities. However, due to its broad training and extensive parameter space, an unmodified model may sometimes produce outputs that are not tailored to specific use cases or adherent to particular security protocols without further modification or fine-tuning.

[0031] The system may use a modified model to validate model-derived natural language responses. In disclosed embodiments, a modified model may refer to a pre-existing artificial intelligence model, such as a base LMM, foundational model, or other neural network architecture that has been architecturally modified. For example, a modified LLM may refer to an artificial intelligence model that has been adapted from an existing base LLM by inserting additional layers between preexisting layers. For example, the modified LLM may comprise a first set of generated layers inserted between a second set of preexisting layers of a base LLM. Each generated layer of the first set of generated layers may contain fewer neurons compared to the preexisting layers. In some embodiments, the modified model may additionally include a second set of generated layers as an output layer that are inserted subsequent to, or replaces, the last layer (or output layer) of the respective unmodified model. The second set of generated layers may also include fewer neurons compared to the preexisting layers of the unmodified model. This architectural modification allows for more efficient training and inference compared to the original base LLM.

[0032] The modified LLM may be used to generate validation information associated with model-derived responses. For example, the validation information may include confidence values indicating adherence of responses to network service security protocols, and an indication of a whether a model-derived response is valid (e.g., a binary value, an alphanumerical value, “yes,”“no,”“valid,”“invalid,” etc.). The confidence values may be represented as numerical scores ranging from 0 to 1, where higher values indicate greater certainty that a response adheres to security protocols. These values enable more nuanced decision-making compared to simple binary classifications. In some embodiments, the modified LLM may generate multiple confidence scores corresponding to different aspects of security protocol adherence, such as data privacy compliance, regulatory conformance, and content appropriateness. The modified LLM may also provide explanatory metadata alongside confidence values to indicate specific reasons for validation decisions, enhancing transparency and facilitating continuous improvement of the validation process. For instance, in a financial services application, the modified LLM may evaluate whether AI-generated responses comply with regulatory requirements and internal policies, such as those related to financial advice disclosures, customer data protection standards, or fair lending practices. The modified LLM may specifically assess responses for compliance with regulations like the Gramm-Leach-Bliley Act for financial privacy, the Fair Credit Reporting Act, or institution-specific risk management policies. In other embodiments, the modified LLM may be used to validate responses in customer service chatbots or other natural language processing applications, ensuring responses maintain appropriate tone, avoid making unauthorized commitments, and adhere to brand guidelines. The validation information may also include risk scores associated with potential legal, reputational, or operational impacts of displaying particular model-derived responses to users.

[0033] The system may generate confidence values to indicate adherence to network service security protocols. In disclosed embodiments, a confidence value may be a numerical score or probability indicating the likelihood that a given natural language response complies with relevant security protocols. For example, the modified LLM may output a confidence value between 0 and 1, where higher values indicate greater certainty of protocol adherence. In some embodiments, the confidence value may be compared to a threshold to make a binary decision on whether to allow or block a response. For instance, responses with confidence values above 0.9 may be automatically approved, while those below may require additional review. In a financial services application, this could involve evaluating the confidence that an AI-generated response about account information or transaction details meets regulatory and privacy standards. The generation of quantitative confidence values enables more nuanced and efficient decision-making compared to simple allow / block rules.

[0034] The system may implement a bifurcated validation process using the modified LLM. In disclosed embodiments, bifurcated validation refers to a two-stage approach where responses are first rapidly screened by the modified LLM, and only uncertain cases are escalated for validator review. For example, if the confidence value output by the modified LLM exceeds a specified threshold, the response may be immediately validated and displayed to the user. This avoids unnecessary secondary validator validation for high-confidence responses. In some embodiments, responses falling below the confidence threshold may be routed to human moderators for manual review. In other embodiments, responses falling below the confidence threshold may be routed to a non-human validator for secondary validation (e.g., using one or more other AI models, algorithms, or other processes). In a financial services context, this could allow straightforward responses about account balances or transaction histories to be quickly approved by the AI system, while more complex responses about investment advice or loan terms may still receive human oversight. The bifurcated approach balances the efficiency of automated screening with the assurance of human judgment for ambiguous cases.

[0035] FIGS. 2A-2B show illustrative diagrams of an unmodified model and a modified model for facilitating bifurcated model-derived natural language response validation, in accordance with one or more embodiments. FIG. 2A shows an unmodified model 200 comprising a first set of preexisting layers 202a and a second set of preexisting layers 202b. The unmodified model 200 comprises a first set of preexisting layers 202a and a second set of preexisting layers 202b. These preexisting layers contain multiple fully connected neurons arranged in a standard neural network architecture. The unmodified model 200 may be a base or foundational AI model, for example, a LLM trained on a large dataset to learn general knowledge, but not fine-tuned for the specific task of validating responses for security protocol adherence.

[0036] The architecture of the unmodified model 200 presents several technical disadvantages when used to determine whether responses adhere to network service security protocols. Due to its broad training and extensive parameter space, the unmodified model may generate outputs that are not tailored to specific use cases or security requirements. This lack of specialization may result in inconsistent or unreliable validations, as the model may not have a nuanced understanding of the particular security protocols it needs to enforce. Additionally, the large number of neurons and connections in the unmodified model may lead to increased computational complexity and resource requirements during both training and inference phases.

[0037] For example, as shown above, unmodified model 200 includes five layers each including five neurons each. As such, the dimensionality of each layer is five, meaning that there are 25 possible combinations of solutions that may be generated between each layer of the unmodified model. In such an example, unmodified model 200 may have a larger solution space when compared to modified model 204 (as will be explained later). Although unmodified model 200 shows five layers each including five neurons each, it will be appreciated by one of skill in the art that unmodified model 200 may include a different number of layers, a different number of neurons, a different number of neurons per layer, or other combination. For sake of brevity and ease of understanding, unmodified model 200 including five layers each including five neurons each is used to show, when compared to modified model 204 that includes the first set of generated layers 208 and the second set of generated layers 210, each being neuron-reduced layers, that modified model 204 may result in a computationally efficient model for validating model-derived responses, in accordance with one or more embodiments.

[0038] As discussed above, where unmodified model 200 is a “off-the-shelf” foundational LLM, because unmodified model 200 is unmodified (and given its learned configuration parameters being keyed to general knowledge), if unmodified model 200 were to be used in validating model-derived responses, unmodified model 200 may be susceptible to hallucinations that may impact response validation accuracy.

[0039] Furthermore, the unmodified model's architecture may not be optimized for generating precise confidence values or binary decisions regarding security protocol adherence. Its output layer (e.g., the last layer shown all the way to the right in the second set of preexisting layers 202b) is designed for general language generation rather than producing specific validation metrics. For example, due to existing LLMs being configured to generate text by predicting the next token in the sequence, using existing, unmodified LLMs (whether trained or not) may result in erroneous, incoherent outputs associated with validating model-derived responses that may require both confidence values, binary values, or other dimensionally-reduced outputs. Such mismatch between the model's architecture and the desired validation task may lead to reduced accuracy, increased false positives or negatives, and difficulty in interpreting the model's decisions. The unmodified model may also be more susceptible to producing hallucinated or irrelevant outputs due to its broad knowledge base, which could potentially introduce security vulnerabilities if used directly for response validation without additional safeguards or architectural modifications.

[0040] FIG. 2B depicts a modified model 204 that includes a first set of preexisting layers 206a and a second set of preexisting layers 206b, with a first set of generated layers 208 inserted between them and a second set of generated layers 210 positioned after the second set of preexisting layers 206b. The first set of preexisting layers 206a of the modified model 204may correspond to the first set of preexisting layers 202a of unmodified model 200. The second set of preexisting layers 206b of the modified model 204 may correspond to the second set of preexisting layers 202b of unmodified model 200. The generated layers (e.g., the first set of generated layers 208 and the second set of generated layers 210) may include fewer neurons compared to the preexisting layers, enabling reduced computational requirements for model training and inference, in accordance with one or more embodiments. Each of the layers (e.g., the first set of preexisting layers 206a, the second set of preexisting layers 206b, the first set of generated layers 208, the second set of generated layers 210) may be fully connected neurons arranged in a modified neural network architecture.

[0041] For example, in some embodiments, modified model 204 may be generated by a model generation component 312 (FIG. 3), which will be described later. For example, model generation component 312 may be a computer component implemented in cloud components 310 of system 300 (FIG. 3) that is configured to generate modified model 204. For example, a computer engineer may create modified model 204 by instructing model generation component 312 to generate one or more generated layers (e.g., the first set of generated layers 208, the second set of generated layers 210, etc.) and insert, add, or arrange the generated layers in an order with respect to preexisting layers of an unmodified model's architecture (e.g., the first set of preexisting layers 206a, the second set of preexisting layers 206b, etc. of unmodified model 200). In some embodiments, model generation component 312 may automatically generate modified model 204 based on historical information pertaining to application-specific response validation models. For example, model generation component 312 may determine a need for a response validation model to be generated for validating model-derived responses in the context of healthcare systems and generate modified model 204.

[0042] The modified model 204 may include one or more architectural changes in relation to an unmodified model (e.g., unmodified model 200) to enable more efficient and targeted training for the validation task. In contrast to conventional thinking, which often assumes that more complex, larger models are necessary for effective content moderation, the modified model 204's architecture leverages a set of neuron-reduced layers to dimensionally reduce a previous solution space of unmodified models to a converged solution space. For instance, as described above, due to unmodified model 200 being traditionally utilized for text generation, unmodified model 200 is more susceptible to producing hallucinated or irrelevant outputs due to its broad knowledge base, and large dimensionality (e.g., increased solution space) which could potentially introduce security vulnerabilities if used directly for response validation without additional safeguards or architectural modifications. On the contrary, for model-derived response validation tasks, it is not only unnecessary to use existing LLM model layers that generate textual outputs to indicate whether a response is valid or not, but also requires that during any fine-tuning of the LLM, that all the configurations (e.g., weights, biases, or other parameters) of each neuron and layer are updated-thereby consuming a vast amount of computational resources. Furthermore, as such existing LLM architectures are configured to produce textual outputs, when attempting to generate a confidence value, binary value, or other numerical value used to indicate how valid a response is may be inaccurate due to the text-based training data LLMs leverage.

[0043] To overcome this, however, modified model 204 leveraging the architectural modifications (e.g., the first set of generated layers 208, the second set of generated layers 210, etc.) that are neuron-reduced results in a dimensionally reduced, solution space reduced, model capable of generating accurate numerical values. Not only do these architectural modifications facilitate accurate generation of numerical values used when validating model-derived responses, but they further reduce computational resource expenditure during training and inference time. For example, during a training routine the configurations (e.g., weights, biases, or other parameters) of the first set of preexisting layers 206a and the second set of preexisting layers 206b may remain static (e.g., constant, frozen, non-updatable) while the configurations of the first set of generated layers 208 and the second set of generated layers 210 are dynamic (e.g., modified, updated, may change, etc.). In other words, during modified model 204 training, the system may update the configurations of the first set of generated layers 208 and the second set of generated layers 210 in lieu of updating the configurations of the first set of preexisting layers 206a and the second set of preexisting layers 206b.

[0044] For example, in cases where modified model 204 is configured to generate one or more numerical values indicating whether a model-derived response is valid, the first set of preexisting layers 206a and the second set of preexisting layers 206b may not be updated to maintain the general textual processing capabilities stored by their learned neuronic configurations. For instance, the first set of preexisting layers 206a and the second set of preexisting layers 206b may be used to process textual data provided to the modified model 204 to reduce training requirements, while the first set of generated layers 208 and the second set of generated layers 210 may supplement the analysis provided by the preexisting layers with numerical-based data (e.g., confidence values, binary values, etc.) to enhance numerical data processing and output generation. In some embodiments, one or more hyperparameters, configuration profiles, or flags may be set, via model generation component 312 (FIG. 3), to aid the model during training (or fine-tuning) to ensure that the preexisting layers' configurations remain constant in lieu of being modified. By strategically modifying model architecture and focusing on efficient parameter updates, the system achieves increased performance with significantly reduced computational overhead-thereby enabling the deployment of advanced AI-driven chat interfaces, like the one depicted in diagram 100, in resource-constrained environments while maintaining strict adherence to security protocols.

[0045] In some embodiments, model generation component 312 (FIG. 3) may insert a set of generated layers between attention layers of the unmodified model 200 (e.g., base model, foundation model, etc.) to generate modified model 204. For example, FIG. 2B shows a first attention layer 212a and a second attention layer 212b. Model generation component 312 may determine which layers of unmodified model 200 correspond to attention layers. For example, the model generation component 312 may perform web scraping to obtain available information regarding unmodified model and which layers correspond to attention layers. Upon identifying which layers of unmodified model 200 are attention layers, model generation component 312 may insert the first set of generated layers 208 between first attention layer 212a and second attention layer 212b. By inserting the first set of generated layers 208 between attention layers of the unmodified model 200, the system may compress representations of currently-processed information to steer model behavior towards targeted model-response validation outputs (e.g., confidence values, binary values indicating whether a model-derived response is valid, etc.).

[0046] In some embodiments, model generation component 312 (FIG. 3) may generate an output layer to generate modified model 204. For example, FIG. 2B shows the second set of generated layers 210. The second set of generated layers 210 may correspond to an output layer of modified model 204. For example, to use modified model 204 and generate model-response validation outputs (e.g., which may involve numerical outputs, such as confidence values, binary values indicating whether a model-derived response is valid, etc.) model generation component may generate the second set of generated layers 210, which, as discussed above, are neuron-reduced layers. The second set of generated layers 210 may replace, be appended to, or added to the output layer of unmodified model 200 to generate modified model 204.

[0047] In some embodiments, model generation component 312 may determine an output layer of the unmodified model 200. For example, model generation component 312 may determine which layers of unmodified model 200 correspond to an output layer. For example, the model generation component 312 may perform web scraping to obtain available information regarding unmodified model and which layers correspond to the output layers. Upon identifying which layers of unmodified model 200 are output layers, model generation component 312 may place the second set of generated layers 210 as the output layer of modified model 204. By doing so, the system may leverage numeric-based values as output to determine model-derived response adherence to network service security protocols as opposed to hallucination-prone unmodified model outputs.

[0048] In some embodiments, the second set of generated layers 210 may output (i) a binary value indicating whether a model-derived natural language response adheres to network service security protocols and (ii) a confidence value associated with the binary value. For example, a first neuron of the second set of generated layers 210 may correspond to a binary value indicating whether a model-derived response adheres to the network service security protocols and (ii) a second neuron of the second set of generated layers correspond to a confidence value indicating a confidence that the model-derived response adheres to the network service security protocols. The binary value may be a “0” indicating that a model-derived response (e.g., provided as input to modified model 204) does not adhere to network service security protocols. A “1” may indicate that the model-derived response adheres to the network service security protocols. In some embodiments, the binary value may be replaced with an alphanumeric value, such as “yes,”“no,”“valid,”“invalid,” or other simplistic output. On the other hand, the confidence value may indicate a percentage, integer value, floating point value, decimal value, or other numerical value (which may be normalized according to a scale) that denotes how confident the model's prediction is (e.g., in which the model-derived response is valid or invalid). For example, a confidence value on a scale 0-1 may be 0.9, indicating the modified model 204 is 90% confident in its prediction of whether a model derived response is valid or invalid. By doing so, the system reduces computational resources traditionally expended when validating information by reducing the solution space via an architecturally-modified, neuron-reduced modified model.

[0049] In some embodiments, unmodified model 200 and modified model 204 may each be implemented on an Application-Specific Integrated Circuit (ASIC). For example, an ASIC is a specialized hardware chip designed to perform a specific task or set of tasks with high efficiency. Unlike general-purpose processors, such as CPUs or GPUs, ASICs are custom-built for particular applications, optimizing performance, power consumption, and area efficiency. ASICs are widely used in areas such as cryptocurrency mining, telecommunications, and artificial intelligence (AI), where dedicated hardware can provide significant advantages over more flexible but less efficient alternatives. Implementing a large AI model in an ASIC requires designing custom circuits that accelerate the model's computations while ensuring efficient memory management and data movement. Because AI models, particularly deep learning networks, involve extensive matrix multiplications and tensor operations, specialized hardware units such as systolic arrays or tensor processing units (TPUs) can be integrated to optimize these operations. To overcome this challenge, the system may use weight quantization, memory hierarchy optimization, and on-chip interconnects can be employed to improve throughput and reduce power consumption. To accommodate large models, the system may integrate high-bandwidth memory (HBM) or leverage chiplet architectures, where multiple ASICs work together in a modular fashion to process different portions of the model. Training AI models on an ASIC presents significant challenges since training involves dynamic weight updates and high computational flexibility, which contrasts with the fixed nature of ASICs. To do so, the system may use field-programmable gate arrays (FPGAs) or GPUs during the training phase, then transfer the trained model weights to the ASIC for inference. Alternatively, the system may design ASICs that support on-chip fine-tuning or low-bit precision training, allowing for limited retraining directly on the device. Additionally, co-designing hardware and algorithms ensures that the model architecture is tailored to the ASIC's capabilities, reducing inefficiencies and maximizing performance. By integrating specialized training accelerators, approximate computing methods, and efficient dataflow architectures, ASICs can be optimized for both training and inference, enabling large AI models to operate with minimal energy and latency constraints.

[0050] As an example with respect to modified model 204, modified model 204 may be implemented on an ASIC that is part of a server of cloud components 310. Each the the neurons of each of the layers (e.g., the first set of preexisting layers 206a, the second set of preexisting layers 206b, the first set of generated layers 208, the second set of generated layers 210, etc.) may comprise a memory register (e.g., of an electronic storage component) that is configured to store a value associated with model-derived response information (and / or a bias value), an input portion configured to receive (i) processed values associated with model-derived response information from one or more preceding neurons of a preceding layer or (ii) input values provided to the modified model 204, an output portion configured to provide the stored value of the memory register that is associated with the model-derived response information (i) to one or more subsequent neurons of a subsequent layer or (ii) to an output receiving component (e.g., one or more of cloud components 310 (FIG. 3)) to provide the system with output data of model 204. Additionally, each of the connections to the neurons of modified model 204 (e.g.., as indicated by the arrows), may additionally comprise a memory register (e.g., of an electronic storage component) that is configured to store a value associated with processing model-derive response information (e.g., a weight). Each neuron may process the values associated with the model-derived response information using at least a portion of a computer processor. For example, where modified model 204 is implemented on a server that is part of cloud components 310 associated with the entity, each neuron may be allocated a portion of processing resources of one or more processors hosted on the server.

[0051] During a training routine, modified model 204 may process information associated with validating model-derived responses. For example, when a model-derived response, a confidence value, training example information, and / or other information is provided as input to modified model 204, values received by each neuron are processed by respective neurons based on the stored weights of the connections and bias values associated with the neurons. For example, the system may retrieve the weights, biases, or other values from their corresponding memory registers, process the information to generate an updated value (e.g., a value associated with processing model-derived response information), and provide the updated value to the respective neurons of a subsequent layer during forward propagation. The reverse may be implemented in a similar manner during backpropagation (e.g., to update the weights, biases, or other configurations of unmodified model). By doing so, the ASIC provides an application-specific platform that is specifically-designed to host modified model 204 and / or other models involved in validating model-derived responses, in accordance with one or more embodiments.

[0052] FIG. 3 shows illustrative components for a system used to validate model-derived natural language response adherence to network service security protocols, in accordance with one or more embodiments. For example, FIG. 3 may show illustrative components for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses.

[0053] As shown in FIG. 3, system 300 may include mobile device 322 and user terminal 324. While shown as a smartphone and personal computer, respectively, in FIG. 3, it should be noted that mobile device 322 and user terminal 324 may be any computing device, including, but not limited to, a laptop computer, a tablet computer, a hand-held computer, and other computer equipment (e.g., a server), including “smart,” wireless, wearable, and / or mobile devices. FIG. 3 also includes cloud components 310. Cloud components 310 may alternatively be any computing device as described above, and may include any type of mobile terminal, fixed terminal, or other device. For example, cloud components 310 may be implemented as a cloud computing system, and may feature one or more component devices. It should also be noted that system 300 is not limited to three devices. Users may, for instance, utilize one or more devices to interact with one another, one or more servers, or other components of system 300. It should be noted, that, while one or more operations are described herein as being performed by particular components of system 300, these operations may, in some embodiments, be performed by other components of system 300. As an example, while one or more operations are described herein as being performed by components of mobile device 322, these operations may, in some embodiments, be performed by components of cloud components 310. In some embodiments, the various computers and systems described herein may include one or more computing devices that are programmed to perform the described functions. Additionally, or alternatively, multiple users may interact with system 300 and / or one or more components of system 300. For example, in one embodiment, a first user and a second user may interact with system 300 using two different components.

[0054] With respect to the components of mobile device 322, user terminal 324, and cloud components 310, each of these devices may receive content and data via input / output (hereinafter “I / O”) paths. Each of these devices may also include processors and / or control circuitry to send and receive commands, requests, and other suitable data using the I / O paths. The control circuitry may comprise any suitable processing, storage, and / or input / output circuitry. Each of these devices may also include a user input interface and / or user output interface (e.g., a display) for use in receiving and displaying data. For example, as shown in FIG. 3, both mobile device 322 and user terminal 324 include a display upon which to display data (e.g., conversational response, queries, and / or notifications).

[0055] Additionally, as mobile device 322 and user terminal 324 are shown as touchscreen smartphones, these displays also act as user input interfaces. It should be noted that in some embodiments, the devices may have neither user input interfaces nor displays, and may instead receive and display content using another device (e.g., a dedicated display device such as a computer screen, and / or a dedicated input device such as a remote control, mouse, voice input, etc.). Additionally, the devices in system 300 may run an application (or another suitable program). The application may cause the processors and / or control circuitry to perform operations related to generating dynamic conversational replies, queries, and / or notifications.

[0056] Each of these devices may also include electronic storages. The electronic storages may include non-transitory storage media that electronically stores information. The electronic storage media of the electronic storages may include one or both of (i) system storage that is provided integrally (e.g., substantially non-removable) with servers or client devices, or (ii) removable storage that is removably connectable to the servers or client devices via, for example, a port (e.g., a USB port, a firewire port, etc.) or a drive (e.g., a disk drive, etc.). The electronic storages may include one or more of optically readable storage media (e.g., optical disks, etc.), magnetically readable storage media (e.g., magnetic tape, magnetic hard drive, floppy drive, etc.), electrical charge-based storage media (e.g., EEPROM, RAM, etc.), solid-state storage media (e.g., flash drive, etc.), and / or other electronically readable storage media. The electronic storages may include one or more virtual storage resources (e.g., cloud storage, a virtual private network, and / or other virtual storage resources). The electronic storages may store software algorithms, information determined by the processors, information obtained from servers, information obtained from client devices, or other information that enables the functionality as described herein.

[0057] In some embodiments, mobile device 322 may correspond to user device 102 (FIG. 1). For example, mobile device 322 may be used by a user to interact with user interface 102 (FIG. 1). In some embodiments, user terminal 324 may be used by a validator. For example, user terminal 324 may correspond to a second user device (not shown) that enables a human (or other algorithm, model, etc.) as described above to provide feedback, or otherwise validate model-derived responses that fail to satisfy a threshold confidence value.

[0058] FIG. 3 also includes communication paths 328, 330, and 332. Communication paths 328, 330, and 332 may include the Internet, a mobile phone network, a mobile voice or data network (e.g., a 5G or LTE network), a cable network, a public switched telephone network, or other types of communications networks or combinations of communications networks. Communication paths 328, 330, and 332 may separately or together include one or more communications paths, such as a satellite path, a fiber-optic path, a cable path, a path that supports Internet communications (e.g., IPTV), free-space connections (e.g., for broadcast or other wireless signals), or any other suitable wired or wireless communications path or combination of such paths. The computing devices may include additional communication paths linking a plurality of hardware, software, and / or firmware components operating together. For example, the computing devices may be implemented by a cloud of computing platforms operating together as the computing devices.

[0059] Cloud components 310 may include first model 302 and second model 308. For example first model 302 may correspond to a first AI model that generates responses to user-provided inputs (e.g., as described in relation to FIG. 1). Second model 308 may correspond to modified model 204 (FIG. 2). For example, second model 308 may be configured to validate model-derived responses received from first model 302. Cloud components 310 also include model generation component 312. Model generation component 312 may be a cloud component (e.g., cloud server, cloud computing component, computing component, etc.) that is configured to generate or otherwise modify AI models, in accordance with one or more embodiments. For example, model generation component 312 may be accessible via a computer engineer, working for an entity providing a service to a user, that may aid in generating one or more models for validating model-derived responses from one or more AI models.

[0060] Cloud components 310 may access one or more databases. For example, cloud components 310 may access a training example database storing training examples comprising training confidence values, previous natural language responses, network service security protocols, and previous natural language inputs. Cloud components 310 may also access a model database storing unmodified models (e.g., unmodified model 200 in FIG. 2A), modified models (e.g., modified model 204 in FIG. 2B), or other models. Additionally, cloud components 310 may access a performance metric database storing performance metrics associated with training modified LLMs, including metrics corresponding to amounts of generated layers and neurons.

[0061] Cloud components 310 may also include components for implementing the bifurcated validation process, such as components that compare confidence values to thresholds, and routing responses for secondary validation when needed. These components may interact with the API layer 350 to facilitate communication between the cloud-based validation system and user devices (e.g., mobile device 322 and user terminal 324).

[0062] Cloud components 310 may include first model 302. As described above, first model 302 may be a machine learning model, artificial intelligence model, etc. (which may be referred collectively as “models” herein). First model 302 may take inputs 304 and provide outputs 306. The inputs may include multiple datasets, such as a training dataset and a test dataset. Each of the plurality of datasets (e.g., inputs 304) may include data subsets related to user data, predicted forecasts and / or errors, and / or actual forecasts and / or errors. In some embodiments, outputs 306 may be fed back to first model 302 as input to train first model 302 (e.g., alone or in conjunction with user indications of the accuracy of outputs 306, labels associated with the inputs, or with other reference feedback information). For example, the system may receive a first labeled feature input, wherein the first labeled feature input is labeled with a known prediction for the first labeled feature input. The system may then train the first machine learning model to classify the first labeled feature input with the known prediction. First model 302 may be an LLM configured to generate responses to user-inputs in a chat-bot interface. To validate the model-derived responses from first model 302, cloud components 310 may provide the response generated from first model 302 as input to model 308 to determine whether the response generated by first model 302 adheres to one or more network service security protocols.

[0063] As such, cloud components 310 may include second model 308, which may be a machine learning model, artificial intelligence model, etc. (which may be referred collectively as “models” herein). Second model 308, may correspond to modified model 204 (FIG. 2). Second model 308 may take inputs 304 and provide outputs 306. The inputs may include multiple datasets, such as a training dataset and a test dataset. Each of the plurality of datasets (e.g., inputs 304) may include data subsets related to user data, predicted forecasts and / or errors, and / or actual forecasts and / or errors. In some embodiments, outputs 306 may be fed back to second model 308 as input to train second model 308 (e.g., alone or in conjunction with user indications of the accuracy of outputs 306, labels associated with the inputs, or with other reference feedback information). For example, the system may receive a first labeled feature input, wherein the first labeled feature input is labeled with a known prediction for the first labeled feature input. The system may then train the machine learning model to classify the first labeled feature input with the known prediction (e.g., a confidence value indicating whether a natural language response adheres to network service security protocols, a binary value indicating whether a natural language response adheres to network service security protocols, an indication of whether a model-derived response should be displayed to a user or routed for secondary validation, etc.).

[0064] In a variety of embodiments, second model 308 may update its configurations (e.g., weights, biases, or other parameters) based on the assessment of its prediction (e.g., outputs 306) and reference feedback information (e.g., user indication of accuracy, reference labels, or other information). In a variety of embodiments, where second model 308 is a neural network, connection weights may be adjusted to reconcile differences between the neural network's prediction and reference feedback. In a further use case, one or more neurons (or nodes) of the neural network may require that their respective errors are sent backward through the neural network to facilitate the update process (e.g., backpropagation of error). Updates to the connection weights may, for example, be reflective of the magnitude of error propagated backward after a forward pass has been completed. In this way, for example, the second model 308 may be trained to generate better predictions.

[0065] In some embodiments, second model 308 may include an artificial neural network. In such embodiments, second model 308 may include an input layer and one or more hidden layers. Each neural unit of second model 308 may be connected with many other neural units of second model 308. Such connections can be enforcing or inhibitory in their effect on the activation state of connected neural units. In some embodiments, each individual neural unit may have a summation function that combines the values of all of its inputs. In some embodiments, each connection (or the neural unit itself) may have a threshold function such that the signal must surpass it before it propagates to other neural units. Second model 308 may be self-learning and trained, rather than explicitly programmed, and can perform significantly better in certain areas of problem solving, as compared to traditional computer programs. During training, an output layer of second model 308 may correspond to a classification of second model 308, and an input known to correspond to that classification may be input into an input layer of second model 308 during training. During testing, an input without a known classification may be input into the input layer, and a determined classification may be output.

[0066] In some embodiments, second model 308 may include multiple layers (e.g., where a signal path traverses from front layers to back layers). In some embodiments, back propagation techniques may be utilized by second model 308 where forward stimulation is used to reset weights on the “front” neural units. In some embodiments, stimulation and inhibition for second model 308 may be more free-flowing, with connections interacting in a more chaotic and complex fashion. During testing, an output layer of second model 308 may indicate whether or not a given input corresponds to a classification of second model 308 (e.g., a confidence value indicating whether a natural language response adheres to network service security protocols, a binary value indicating whether a natural language response adheres to network service security protocols, an indication of whether a model-derived response should be displayed to a user or routed for secondary validation, etc.).

[0067] In some embodiments, the model (e.g., second model 308) may automatically perform actions based on outputs 306. In some embodiments, the model (e.g., second model 308) may not perform any actions. The output of the model (e.g., second model 308) may be used to generate a confidence value indicating whether a natural language response adheres to network service security protocols, validate a natural language response, display a validated natural language response on a user interface, transmit a natural language response and input to a second user device for secondary validation, prevent display of a natural language response that fails validation, update training examples with new validated responses, or other actions.

[0068] System 300 may include components for training second model 308 to generate confidence values, binary values, or other outputs indicating adherence to network service security protocols. The training process may involve fine-tuning second model 308.

[0069] To train the modified LLM, the system may retrieve training examples from a database. These training examples may include: (i) a training confidence value corresponding to a previous natural language response, (ii) the previous natural language response itself, (iii) one or more network service security protocol, and (iv) a previous natural language input corresponding to the previous response. The training confidence values may be verified by human reviewers, such as the second user associated with the second user device. For example, the training confidence values may be assigned to the previous natural language response by a model-response validator expert. In some embodiments, the training confidence value may be historical data that correspond to historical natural language responses.

[0070] During the training routine, the system provides these training examples as input to the modified LLM. The model then generates candidate confidence values based on the inputs. The system compares these candidate values to the known training confidence values associated with each training example. Based on the comparison, the system updates the parameters associated with the newly inserted generated layers (e.g., the neurons of the generated layers) of the modified LLM in lieu of the parameters corresponding to neurons of the preexisting layers of the base, unmodified model that are incorporated into the modified model (e.g., modified model 204 (FIG. 2)). By doing so, the system facilitates efficient fine-tuning without the computational cost of retraining the entire network by keying updates to the generated layers of the modified LLM.

[0071] In some embodiments, first model 302 and second model 308 may be implemented on an ASIC, in accordance with one or more embodiments.

[0072] System 300 also includes API layer 350. API layer 350 may allow the system to generate summaries across different devices. In some embodiments, API layer 350 may be implemented on mobile device 322 or user terminal 324. Alternatively or additionally, API layer 350 may reside on one or more of cloud components 310. API layer 350 (which may be A REST or Web services API layer) may provide a decoupled interface to data and / or functionality of one or more applications. API layer 350 may provide a common, language-agnostic way of interacting with an application. Web services APIs offer a well-defined contract, called WSDL, that describes the services in terms of its operations and the data types used to exchange information. REST APIs do not typically have this contract; instead, they are documented with client libraries for most common languages, including Ruby, Java, PHP, and JavaScript. SOAP Web services have traditionally been adopted in the enterprise for publishing internal services, as well as for exchanging information with partners in B2B transactions.

[0073] API layer 350 may use various architectural arrangements. For example, system 300 may be partially based on API layer 350, such that there is strong adoption of SOAP and RESTful Web-services, using resources like Service Repository and Developer Portal, but with low governance, standardization, and separation of concerns. Alternatively, system 300 may be fully based on API layer 350, such that separation of concerns between layers like API layer 350, services, and applications are in place.

[0074] In some embodiments, the system architecture may use a microservice approach. Such systems may use two types of layers: Front-End Layer and Back-End Layer where microservices reside. In this kind of architecture, the role of the API layer 350 may provide integration between Front-End and Back-End. In such cases, API layer 350 may use RESTful APIs (exposition to front-end or even communication between microservices). API layer 350 may use AMQP (e.g., Kafka, RabbitMQ, etc.). API layer 350 may use incipient usage of new communications protocols such as gRPC, Thrift, etc.

[0075] In some embodiments, the system architecture may use an open API approach. In such cases, API layer 350 may use commercial or open source API Platforms and their modules. API layer 350 may use a developer portal. API layer 350 may use strong security constraints applying WAF and DDoS protection, and API layer 350 may use RESTful APIs as standard for external integration.

[0076] FIG. 4 shows a flowchart of the steps involved in validating model-derived natural language response adherence to network service security protocols, in accordance with one or more embodiments. For example, the system may use process 400 (e.g., as implemented on one or more system components described above) in order to reduce computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses.

[0077] At step 402, process 400 (e.g., using one or more components described above) may generate a modified model. For example, the system may generate a modified model (e.g., modified model 204 (FIG. 2)), such as a modified LLM comprising a first set of generated layers inserted between a second set of preexisting layers of a base LLM (e.g., a preexisting model, an unmodified model 200 (FIG. 2), etc.), where each generated layer of the first set of generated layers comprises a first amount of neurons that are less than a second amount of neurons corresponding to a preexisting layer of the second set of preexisting layers. For example, the system may generate a modified model to validate model-derived responses that are generated via a first AI model. The system may use an existing foundation model and strategically insert the first set of generated layers between the existing foundation model's original layers to create a more efficient architecture for validation tasks. Such architectural modification, as illustrated in FIG. 2B with modified model 204, allows the system to process natural language inputs and responses with significantly less computational overhead compared to unmodified model 200 shown in FIG. 2A.

[0078] In some embodiments, the system may generate a modified model by inserting the first set of generated layers between a set of attention layers of a base LLM. For example, the system may determine a set of attention layers of the second set of preexisting layers of the base LLM and insert the first set of generated layers between a first attention layer and a second attention layer of the second set of preexisting layers. For example, the system may identify key attention layers within the base LLM's architecture and strategically place the neuron-reduced layers (e.g., first set of generated layers 208) between these attention layers to optimize information flow, as shown in FIG. 2B. By inserting the generated layers within the attention layers, the system dimensionally reduces the solution space available of the base LLM—thereby reducing the amount of computational resources expended to (i) train the LLM and (ii) generate an output at an inference time, which enables faster validation of model-derived responses.

[0079] In some embodiments, the system may generate the modified model by appending a second set of generated layers to an output layer of the base LLM. For example, the system may determine an output layer of the second set of preexisting layers of the base LLM and generate the modified LLM by further appending a third layer comprising a set of neurons to the output layer (e.g., second set of generated layers 210 shown in FIG. 2B). For example, the system may generate an additional layer to be added to, or otherwise replace an output layer of the base LLM to generate the modified model. The additional layer (e.g., the second set of generated layers 210 (FIG. 2B) may include a first neuron of a set of neurons that correspond to a binary value indicating whether a natural language response adheres to network service security protocols and (ii) a second neuron of the set of neurons that correspond to a confidence value indicating a confidence that the natural language response adheres to the network service security protocols. By doing so, the system may reduce the amount of computational resources expended during training and inference time by considering a subset of neuron-reduced layers.

[0080] At step 404, process 400 (e.g., using one or more components described above) may train the modified model. For example, the system may train the modified LLM to generate confidence values indicating adherence to network service security protocols by providing training examples as input to the modified LLM, where first parameters associated with the first set of generated layers 208 (and / or the second set of generated layers 210) are updated and second parameters associated with the first set of preexisting layers 206a and the second set of preexisting layers 206b remain constant. By focusing updates on only the newly inserted layers, the system can adapt the model for validation tasks using minimal training data and processing power, enabling efficient validation of responses like those shown in user interface 104 of FIG. 1.

[0081] In some embodiments, the system may fine-tune the modified LLM to generate confidence values indicating adherence to a network service security protocol of a set of network service security protocols by providing training examples, as input to the modified LLM. The training examples may include (i) a training confidence value corresponding to a previous natural language response, (ii) the previous natural language response, and (iii) a first network service security protocol, such that first parameters associated with the first set of generated layers 208 are updated and second parameters associated with the first set of preexisting layers 206a and the second set of preexisting layers 206b remain constant. For example, the system may use a dataset of previously validated responses about vehicle pricing and availability (similar to model-derived response 108 in FIG. 1) along with their corresponding confidence values and the specific security protocols they were evaluated against to train the modified LLM in a targeted manner.

[0082] In some embodiments, the system may retrieve, from a database, the training examples, where the training examples comprise (i) a training confidence value corresponding to a previous natural language response, (ii) the previous natural language response, (iii) a first network service security protocol, and (iv) a previous natural language input corresponding to the previous natural language response. The system may receive a candidate confidence value as output from the modified LLM based on providing the training examples as input to the modified LLM, compare the candidate confidence value to a first training confidence value associated with a first training example of the training examples, and update the first parameters associated with the first set of generated layers 208 based on the comparison in lieu of the second parameters associated with the first set of preexisting layers 206a and the second set of preexisting layers 206b. When training the modified LLM, the system updates the configurations (e.g., weights, biases, or other parameters) of the generated layers to reduce computational resource expenditure, which significantly decreases training time and resource requirements compared to updating the entire model, allowing for efficient validation of responses like those about vehicle pricing shown in model-derived response 108 of FIG. 1.

[0083] In some embodiments, the training confidence value corresponding to the previous natural language response is validated via the second user associated with the second user device. For example, human validators who typically ensure all model-derived outputs adhere to the financial service provider's security protocols may provide validated confidence values for responses similar to the vehicle pricing information shown in model-derived response 108 (FIG. 1), which are then used to train the modified LLM, ensuring the system learns from expert human judgment.

[0084] In some embodiments, the system may update the architecture of the modified model (e.g., the modified LLM) based on performance metrics. For example, subsequent to training the modified model, the system may evaluate the modified model's performance against a test set of model-derived responses. The system may generate one or more performance metrics indicating how accurate the modified model is at validating model-derived responses. In some embodiments, the performance metrics may include perplexity values, accuracy values, F1 scores, Bilingual Evaluation Understudy (BLEU) values, Recall-Oriented Understudy for Gisting Evaluation (ROUGE) values, METEOR values, Exact Match (EM) values, Token-level Accuracy Values, or other performance metric values, in accordance with one or more embodiments. If the modified model's performance fails to satisfy a threshold performance metric (e.g., is less than a threshold performance value), then the system may update the modified model's architecture.

[0085] To optimize model performance, the system retrieves a comprehensive set of performance metrics associated with training modified LLMs to generate confidence values indicating adherence to network service security protocols. Each performance metric in this set corresponds to a specific number of generated layers inserted between preexisting layers of a base LLM. For instance, a F1 score of 0.80 might correspond to three layers of a set of generated layers that were previously used into a modified LLM. The system then identifies which performance metric satisfies the predetermined threshold performance metric. For example, if the threshold performance metric is 0.7, and historical data shows that a modified LLM with three generated layers achieved an F1 score of 0.80, the system would generate a new set of layers containing three layers. Subsequently, the system updates the architecture of the current modified LLM by replacing the first set of generated layers 208 with this optimized set of generated layers. By doing so, the system leverages an adjustable approach to refine the architecture of the modified model to enhance its accuracy when validating responses such as those displayed in FIG. 1, where precise vehicle pricing information must strictly adhere to financial service provider security protocols.

[0086] The system employs a similar methodology to optimize the number of neurons within each generated layer. In this case, each performance metric corresponds to a neuron count within generated layers that were inserted between preexisting layers of prior base LLMs. For example, historical data might indicate that a F1 score of 0.85 was achieved by a modified LLM utilizing generated layers with three neurons each. Following the same process, if the threshold performance metric is 0.7, the system would generate new layers containing three neurons per layer. The system then updates the modified LLM's architecture by replacing the first set of generated layers 208 with these newly optimized layers. This neuron-level optimization further enhances the model's efficiency and accuracy for validating responses like those in FIG. 1.

[0087] Moreover, the system may implement an iterative optimization approach that systematically varies both the number of layers and neurons per layer until a threshold performance metric is achieved. For instance, the system might begin with two generated layers containing four neurons each, achieving an F1 score of 0.65. Since this falls below the threshold of 0.7, the system might then test three layers with four neurons each, resulting in an F1 score of 0.68. Still below threshold, it may evaluate two layers with five neurons each, achieving an F1 score of 0.72. Having identified this configuration as exceeding the threshold, the system would update the modified LLM architecture accordingly. This comprehensive exploration of the architectural parameter space ensures optimal model performance while maintaining computational efficiency for validating model-derived responses that adhere to network service security protocols.

[0088] At step 406, process 400 (e.g., using one or more components described above) may provide, (i) an input and (ii) a response, as input to the modified model to generate a confidence value. For example, the system may provide (i) a first natural language input received from a user device 102 associated with a user and (ii) a first natural language response generated from a first LLM based on the first natural language input, as input to the modified LLM to generate a confidence value indicating the first natural language response's adherence to the network service security protocols.

[0089] In some embodiments, the system may receive a first natural language input (e.g., user input 106) from a user device 102 associated with a user performing a network operation. For example, a user may be inquiring about purchasing a vehicle from a local dealership (e.g., a network service provider). However, the user may be malicious, in that the user may compose a leading query to attempt to get the chat-bot to comply with the user's wants. For example, the user may compose a query in an attempt to purchase a collectable vehicle that is worth $100,000 for a mere $20. Given that LLM-powered chat-bots may inadvertently agree to non-complying terms or other pricing protocols of the dealership, the dealership may be left to legal risk if the LLM-powered chat-bot produces a response such as “Yes” or “Of Course!” As such, there is a need to validate model-derived responses generated via one or more AI models that ensure adherence to network service provider's security protocols.

[0090] As described above, upon receiving input 106, the system may generate a first natural language response to the first natural language input by providing the first natural language input as input to a Large Language Model (LLM) trained to generate responses to natural language inputs. The LLM may correspond to first model 302 (FIG. 3). The system may then provide (i) the first natural language input and (ii) the first natural language response as input to the modified LLM (e.g., modified model 204 (FIG. 2B), second model 308 (FIG. 3)) to generate an output indicating a confidence value indicating whether the first natural language response adheres to one or more network service security protocols of the set of network service security protocols. For example, when a user asks about vehicle availability through the chat interface shown in user interface 104 (FIG. 1), the system first generates a response using a standard LLM, then passes both the question and the generated response to the modified LLM for initial validation before displaying the model-derived response 108 to the user. In some embodiments, the modified LLM generates (i) a confidence value (e.g., a value indicating a confidence of the modified LLM model's validation decision value) and (ii) a validation decision value (e.g., a binary value indicating whether the generated response is a valid model-derived response that adheres to the network service security protocols). By doing so, the system may ensure that risky LLM responses are vetted properly before being displayed to an end-user.

[0091] In some embodiments, the user interface 104 of the user device 102 comprises a chatbot user interface configured to receive natural language inputs from users and provide natural language responses to the natural language inputs from the users, as shown in FIG. 1. By providing a user-friendly chatbot interface, the system enables intuitive interaction between users and the financial service provider while ensuring all responses about vehicle pricing and availability adhere to security protocols.

[0092] At step 408, process 400 (e.g., using one or more components described above) may validate the response based on the confidence value. For example, in response to determining that the confidence value satisfies a threshold confidence value, the system may validate the first natural language response. The threshold confidence value may be a predetermined value (e.g., as set by a system administrator). In some embodiments, however, the threshold confidence value may be dynamic. For example, the system may adjust the threshold confidence value to a higher value when it is determined that there is a chat-bot attack that involves multiple users maliciously attempting to cause the LLM to generate risky responses. In some embodiments, in response to the confidence value satisfying a threshold confidence value, the system validates the first natural language response. For example, if the modified LLM determines with high confidence that a response about vehicle pricing (like model-derived response 108 in FIG. 1) complies with all relevant financial service provider security protocols, the system automatically approves the response without requiring human review, thereby reducing model-derived response validation latency. However, if the modified LLM determines with low confidence that the response satisfies the confidence threshold, then the system may transmit the user input (e.g., the first natural language input) and the response (e.g., the first natural language response) to a second user device (e.g., user terminal 324 (FIG. 3)) for secondary validation by a validator. By doing so, the bifurcated approach balances automation and secondary validation oversight, reducing response latency while maintaining rigorous security standards for responses like the vehicle pricing information shown in model-derived response 108 of FIG. 1.

[0093] At step 410, process 400 (e.g., using one or more components described above) may generate the response for display on the user interface. For example, the system may generate for display, on a user interface 104 of the user device 102, the first natural language response (e.g., model-derived response 108) in lieu of transmitting (i) the first natural language response and (ii) the first natural language input to a second user device associated with a second user to receive feedback for a secondary validation of the first natural language response. For example, if the modified LLM generates validation information indicating that the first natural language response is valid, and the confidence value associated with the first natural language response satisfies the threshold confidence value (e.g., is greater than equal to the threshold confidence value), the system may generate the first natural language response for display (e.g., model-derived response 108 on user interface 104). For example, once the system has validated a response about vehicle pricing through the modified LLM, it immediately displays the response to the user on user interface 104 rather than routing it through a human validator, which may introduce delays and consume additional network resources. By avoiding unnecessary secondary validator validation for high-confidence responses about vehicle pricing and availability, the system reduces computational resource expenditure and network traffic.

[0094] In some embodiments, the system may prevent display of the response for display on the user interface. For example, where the modified LLM generates validation information indicating that the first natural language response generated by the first LLM is valid, but the confidence value associated with the first natural language response fails to satisfy the threshold confidence value (e.g., is less than the threshold confidence value), the system may temporarily prevent display of the first LLM-generated response. Rather, the system may transmit the first LLM-generated response and the first natural language input (e.g., the first user's query) to a second user device associated with a second user (e.g., a validator) for secondary validation prior to making a final decision as to displaying the first LLM-generated response or not. By doing so, the system may invoke a backup validation mechanism when the modified LLM is unsure of whether the first LLM-generated response is valid or not. In this way, the system may mitigate any false positive model-derived response validations.

[0095] As another example, where the modified LLM generates validation information indicating that the first natural language response generated by the first LLM is invalid, and the confidence value associated with the first natural language response fails to satisfy the threshold confidence value, the system may nonetheless temporarily prevent display of the first LLM-generated response. For example, as the modified LLM is unsure as to whether the first LLM-generated response is invalid, the system may transmit the first natural language response generated by the first LLM and the first natural language input (e.g., the first user's query) to the second user device associated with the second user (e.g., a validator) for secondary validation. By doing so, the system may mitigate any false negative model-derived response validations.

[0096] Moreover, as another example, where the modified LLM generated validation information indicating that the first natural language response generated by the first LLM is invalid, and the confidence value associated with the first natural language response satisfies the threshold confidence value, the system may prevent display of the first LLM-generated response. For example, as the modified LLM is sure as to the first LLM-generated response being invalid, the system may prevent display of the first LLM-generated response to the user. In response to the system preventing display of the first LLM-generated response to the user, the system may cause an updated response to be displayed to the user. For example, the system may provide the first natural language input to the first LLM to receive an updated natural language response. Additionally or alternatively, the system may provide the first natural language input to different LLM to receive an updated natural language response. Additionally or alternatively, the system may transmit the first natural language input to a validator to generate a manual response to the first natural language input. In scenarios where the first LLM is to generate an updated natural language response, the system may provide the updated natural language response and the first natural language input to the modified LLM to generate updated validation information to determine whether to display, or prevent display of the updated response to the user. By doing so, the system may improve the user experience as updated responses may be generated and displayed to the user when initial model-derived responses are determined to be invalid.

[0097] In some embodiments, the system may receive feedback from a second user device associated with a second user. For example, when the system determines that a secondary validation of the response generated by the first LLM is to be invoked (e.g., due to the confidence value failing to satisfy the threshold confidence value), the system may transmit the first natural language input (e.g., the user query) and the first LLM-generated response to the second user device to receive an updated confidence value or an updated response to be displayed to the user. For example, if the validator determines that the response generated by the first LLM indeed fails to satisfy the threshold confidence value (e.g., indicating that the response does not adhere to security protocols), the validator may generate a message indicating an updated confidence value (e.g., “0”) or the same confidence value as generated by the modified LLM that will prevent display of the response to the user. As another example, if the validator determined that the response generated by the first LLM satisfies the threshold confidence value (e.g., indicating that the response adheres to the security protocols), the validator may generate a message indicating an updated confidence value (e.g., “1”) that will allow display of the response to the user.

[0098] However, to display a response to the user when the response generated by the first LLM failed to satisfy the threshold confidence value and / or the validator determined the first LLM-generated response to be invalid, the system may receive an updated response that is generated by the validator (or other LLM) that adheres to the network services security protocols. For example, if the original response generated by the first LLM responds to the user's query (e.g., user input 106) indicating that “I need to purchase a red 1968 Camaro Z28. My budget is $20. Do we have a deal” by stating “Yes!,” the modified LLM may generate validation information that indicates that the response is valid, and confidence value that fails to satisfy the threshold confidence value. As such, the system may transmit the user's query and the first LLM generated response to a validator to further validate the first LLM generated response. The validator may determine that the response is invalid, and may modify the first LLM generated response to recite “No, but here is an available one for $100,000” as shown in FIG. 1. The modified response provided by the validator may be transmitted back to the user device to display the modified response (e.g., model-derived response 108) to the user.

[0099] In some embodiments, the updated confidence values provided by the validator may be used to update the modified LLM. For example, in response to receiving an updated confidence value, the system may supplement the training examples used to train the modified LLM (e.g., modified model 204) with a new training example that includes (i) the natural language input, (ii) the natural language response, and (iii) the updated confidence value. For example, the system may generate a new training example that includes the user input, the first LLM-generated response, the updated confidence value, and one or more respective labels identifying the respective information. Additionally or alternatively, the system may determine whether the updated confidence value satisfies the threshold confidence value or fails to satisfy the threshold confidence value. In response to determining that the updated confidence value satisfies the threshold confidence value, the system may supplement the training examples with a positively labeled training example (e.g., by labeling the newly generated training example with a positive label). Additionally or alternatively, in response to determining that the updated confidence value fails to satisfy the threshold confidence value, the system may supplement the training examples with a negatively labeled training example (e.g., by labeling the newly generated training example with a negative label). The system may then update the modified LLM using the supplemented training examples (e.g., by invoking a training routine, a few-shot prompt, fine tune, etc.). By doing so, the system can continually update the model using new training examples that are vetted by the validator.

[0100] It is contemplated that the steps or descriptions of FIG. 4 may be used with any other embodiment of this disclosure. In addition, the steps and descriptions described in relation to FIG. 4 may be done in alternative orders or in parallel to further the purposes of this disclosure. For example, each of these steps may be performed in any order, in parallel, or simultaneously to reduce lag or increase the speed of the system or method. Furthermore, it should be noted that any of the components, devices, or equipment discussed in relation to the figures above could be used to perform one or more of the steps in FIG. 4.

[0101] The above-described embodiments of the present disclosure are presented for purposes of illustration and not of limitation, and the present disclosure is limited only by the claims which follow. Furthermore, it should be noted that the features and limitations described in any one embodiment may be applied to any embodiment herein, and flowcharts or examples relating to one embodiment may be combined with any other embodiment in a suitable manner, done in different orders, or done in parallel. In addition, the systems and methods described herein may be performed in real time. It should also be noted that the systems and / or methods described above may be applied to, or used in accordance with, other systems and / or methods.

[0102] The present techniques will be better understood with reference to the following enumerated embodiments:

[0103] 1. A method, the method comprising generating a modified Large Language Model (LLM) comprising a first set of generated layers inserted between a second set of preexisting layers of a base LLM, each generated layer of the first set of generated layers comprising a first amount of neurons that are less than a second amount of neurons corresponding to a preexisting layer of the second set of preexisting layers; training the modified LLM to generate confidence values indicating adherence to network service security protocols by providing training examples, as input to the modified LLM, such that first parameters associated with the first set of generated layers are updated and second parameters associated with the second set of preexisting layers remain constant; providing, (i) a first natural language input received from a user device associated with a user and (ii) a first natural language response generated from a first LLM based on the first natural language input, as input to the modified LLM to generate a confidence value indicating the first natural language response's adherence to the network service security protocols; in response to determining that the confidence value satisfies a threshold confidence value, validating the first natural language response; and generating for display, on a user interface of the user device, the first natural language response in lieu of transmitting (i) the first natural language response and (ii) the first natural language input to a second user device associated with a second user to receive feedback for a secondary validation of the first natural language response.

[0104] 2. The method of any one of the preceding embodiments, wherein generating the modified LLM further comprises: determining a set of attention layers of the second set of preexisting layers of the base LLM; and inserting the first set of generated layers between (i) a first attention layer of the second set of preexisting layers and (ii) a second attention layer of the second set of preexisting layers.

[0105] 3. The method of any one of the preceding embodiments, further comprising: retrieving a set of performance metrics associated with training modified LLMs to generate the confidence values indicating adherence to the network service security protocols, each performance metric of the set of performance metrics corresponding to an amount of generated layers inserted between a third set of preexisting layers of a second base LLM; determining a first performance metric of the set of performance metrics that satisfy a threshold performance metric, the first performance metric corresponding to a first amount of generated layers; generating a second set of layers based on the first amount of generated layers; and updating an architecture of the modified LLM by replacing the first set of generated layers with the second set of layers.

[0106] 4. The method of any one of the preceding embodiments, further comprising: retrieving a set of performance metrics associated with training modified LLMs to generate the confidence values indicating adherence to the network service security protocols, each performance metric of the set of performance metrics corresponding to an amount of neurons part of generated layers that are inserted between a third set of preexisting layers of a second base LLM; determining a first performance metric of the set of performance metrics that satisfy a threshold performance metric, the first performance metric corresponding to a first amount of neurons; generating a second set of layers based on the first amount of neurons; and updating an architecture of the modified LLM by replacing the first set of generated layers with the second set of layers.

[0107] 5. The method of any one of the preceding embodiments, wherein training the modified LLM further comprises: retrieving, from a database, the training examples, wherein the training examples comprise (i) a training confidence value corresponding to a previous natural language response, (ii) the previous natural language response, (iii) a first network service security protocol, and (iv) a previous natural language input corresponding to the previous natural language response; receiving a candidate confidence value as output from the modified LLM based on providing the training examples as input to the modified LLM; comparing the candidate confidence value to a first training confidence value associated with a first training example of the training examples; and updating the first parameters associated with the first set of generated layers based on the comparison in lieu of the second parameters associated with the second set of preexisting layers.

[0108] 6. The method of any one of the preceding embodiments, wherein the training confidence value corresponding to the previous natural language response is validated via the second user associated with the second user device.

[0109] 7. The method of any one of the preceding embodiments, further comprising: providing, (i) a second natural language input received from the user device associated with the user and (ii) a second natural language response generated from the first LLM based on the second natural language input, as input to the modified LLM to generate a second confidence value indicating the second natural language response's adherence to the network service security protocols; in response to determining that the second confidence value fails to satisfy the threshold confidence value, transmitting, (i) the second natural language input and (ii) the second natural language response, to the second user device associated with the second user to validate the second natural language response; receiving, from the second user device associated with the second user, a message indicating a third confidence value indicating the second natural language response's adherence to the network service security protocols; and in response to determining that the third confidence value fails to satisfy the threshold confidence value, preventing display of the second natural language response on the user interface of the user device.

[0110] 8. The method of any one of the preceding embodiments, further comprising: in response to determining that the third confidence value fails to satisfy the threshold confidence value, supplementing the training examples with a new training example comprising (i) the second natural language input, (ii) the second natural language response, and (iii) the third confidence value; and updating the modified LLM using the supplemented training examples.

[0111] 9. The method of any one of the preceding embodiments, further comprising: providing, (i) a second natural language input received from the user device associated with the user and (ii) a second natural language response generated from the first LLM based on the second natural language input, as input to the modified LLM to generate a second confidence value indicating the second natural language response's adherence to the network service security protocols; in response to determining that the second confidence value fails to satisfy the threshold confidence value, transmitting, (i) the second natural language input and (ii) the second natural language response, to the second user device associated with the second user to validate the second natural language response; receiving, from the second user device associated with the second user, a message indicating a third confidence value indicating the second natural language response's adherence to the network service security protocols; and in response to determining that the third confidence value satisfies the threshold confidence value, generating for display, on the user interface of the user device, the second natural language input.

[0112] 10. The method of any one of the preceding embodiments, further comprising: in response to determining that the third confidence value satisfies the threshold confidence value, supplementing the training examples with a new training example comprising (i) the second natural language input, (ii) the second natural language response, and (iii) the third confidence value; and updating the modified LLM using the supplemented training examples.

[0113] 11. The method of any one of the preceding embodiments, wherein generating the modified LLM further comprises: determining an output layer of the second set of preexisting layers of the base LLM; and generating the modified LLM by further appending a third layer comprising a set of neurons to the output layer, wherein (i) a first neuron of the set of neurons correspond to a binary value indicating whether a second natural language response adheres to the network service security protocols and wherein (ii) a second neuron of the set of neurons correspond to a second confidence value indicating a confidence that the second natural language response adheres to the network service security protocols.

[0114] 12. The method of any one of the preceding embodiments, further comprising: receiving, from the user device associated with the user, the first natural language input; providing the first natural language input to the first LLM to generate the first natural language response, wherein the first LLM is trained to generate responses to natural language inputs; and in response to receiving, from the first LLM, the first natural language response, providing (i) the first natural language input and (ii) the first natural language response as input to the modified LLM to generate the confidence value indicating the first natural language response's adherence to the network service security protocols.

[0115] 13. The method of any one of the preceding embodiments, wherein the user interface of the user device comprises a chatbot user interface configured to receive natural language inputs from users and provide natural language responses to the natural language inputs from the users.

[0116] 14. One or more non-transitory, computer-readable mediums storing instructions that, when executed by a data processing apparatus, cause the data processing apparatus to perform operations comprising those of any of embodiments 1-13.

[0117] 15. A system comprising one or more processors; and memory storing instructions that, when executed by the processors, cause the processors to effectuate operations comprising those of any of embodiments 1-13.

[0118] 16. A system comprising means for performing any of embodiments 1-13.

Claims

1. A system for reducing computational resource expenditure associated with validating model-derived natural language response adherence to network service security protocols via bifurcated validation of model-derived natural language responses, the system comprising:one or more processors and non-transitory computer-readable media comprising instructions that, when executed by the one or more processors, cause operations comprising:receiving a first natural language input from a user device associated with a user performing a network operation;generating a first natural language response to the first natural language input by providing the first natural language input as input to a Large Language Model (LLM) trained to generate responses to natural language inputs;generating a modified Large Language Model (LLM) having a modified architecture of a base LLM comprising a first set of generated layers inserted between a second set of preexisting layers of the base LLM, each generated layer of the first set of generated layers comprising a first amount of neurons that are less than a second amount of neurons corresponding to a preexisting layer of the second set of preexisting layers;fine-tuning the modified LLM to generate confidence values indicating adherence to a network service security protocol of a set of network service security protocols by providing training examples, as input to the modified LLM, comprising (i) a training confidence value corresponding to a previous natural language response, (ii) the previous natural language response, and (iii) a first network service security protocol, such that first parameters associated with the first set of generated layers are updated and second parameters associated with the second set of preexisting layers remain constant;providing (i) the first natural language input and (ii) the first natural language response as input to the modified LLM to generate an output indicating a confidence value indicating whether the first natural language response adheres to one or more network service security protocols of the set of network service security protocols;in response to the confidence value satisfying a threshold confidence value, validating the first natural language response; andgenerating display, on a user interface of the user device, the validated first natural language response in lieu of transmitting (i) the first natural language response and (ii) the first natural language input to a second user device associated with a second user to receive feedback for a secondary validation of the first natural language response.

2. A method comprising:generating a modified Large Language Model (LLM) comprising a first set of generated layers inserted between a second set of preexisting layers of a base LLM, each generated layer of the first set of generated layers comprising a first amount of neurons that are less than a second amount of neurons corresponding to a preexisting layer of the second set of preexisting layers;training the modified LLM to generate confidence values indicating adherence to network service security protocols by providing training examples, as input to the modified LLM, such that first parameters associated with the first set of generated layers are updated and second parameters associated with the second set of preexisting layers remain constant;providing, (i) a first natural language input received from a user device associated with a user and (ii) a first natural language response generated from a first LLM based on the first natural language input, as input to the modified LLM to generate a confidence value indicating the first natural language response's adherence to the network service security protocols;in response to determining that the confidence value satisfies a threshold confidence value, validating the first natural language response; andgenerating for display, on a user interface of the user device, the first natural language response in lieu of transmitting (i) the first natural language response and (ii) the first natural language input to a second user device associated with a second user to receive feedback for a secondary validation of the first natural language response.

3. The method of claim 2, wherein generating the modified LLM further comprises:determining a set of attention layers of the second set of preexisting layers of the base LLM; andinserting the first set of generated layers between (i) a first attention layer of the second set of preexisting layers and (ii) a second attention layer of the second set of preexisting layers.

4. The method of claim 2, further comprising:retrieving a set of performance metrics associated with training modified LLMs to generate the confidence values indicating adherence to the network service security protocols, each performance metric of the set of performance metrics corresponding to an amount of generated layers inserted between a third set of preexisting layers of a second base LLM;determining a first performance metric of the set of performance metrics that satisfy a threshold performance metric, the first performance metric corresponding to a first amount of generated layers;generating a second set of layers based on the first amount of generated layers; andupdating an architecture of the modified LLM by replacing the first set of generated layers with the second set of layers.

5. The method of claim 2, further comprising:retrieving a set of performance metrics associated with training modified LLMs to generate the confidence values indicating adherence to the network service security protocols, each performance metric of the set of performance metrics corresponding to an amount of neurons part of generated layers that are inserted between a third set of preexisting layers of a second base LLM;determining a first performance metric of the set of performance metrics that satisfy a threshold performance metric, the first performance metric corresponding to a first amount of neurons;generating a second set of layers based on the first amount of neurons; andupdating an architecture of the modified LLM by replacing the first set of generated layers with the second set of layers.

6. The method of claim 2, wherein training the modified LLM further comprises:retrieving, from a database, the training examples, wherein the training examples comprise (i) a training confidence value corresponding to a previous natural language response, (ii) the previous natural language response, (iii) a first network service security protocol, and (iv) a previous natural language input corresponding to the previous natural language response;receiving a candidate confidence value as output from the modified LLM based on providing the training examples as input to the modified LLM;comparing the candidate confidence value to a first training confidence value associated with a first training example of the training examples; andupdating the first parameters associated with the first set of generated layers based on the comparison in lieu of the second parameters associated with the second set of preexisting layers.

7. The method of claim 6, wherein the training confidence value corresponding to the previous natural language response is validated via the second user associated with the second user device.

8. The method of claim 2, further comprising:providing, (i) a second natural language input received from the user device associated with the user and (ii) a second natural language response generated from the first LLM based on the second natural language input, as input to the modified LLM to generate a second confidence value indicating the second natural language response's adherence to the network service security protocols;in response to determining that the second confidence value fails to satisfy the threshold confidence value, transmitting, (i) the second natural language input and (ii) the second natural language response, to the second user device associated with the second user to validate the second natural language response;receiving, from the second user device associated with the second user, a message indicating a third confidence value indicating the second natural language response's adherence to the network service security protocols; andin response to determining that the third confidence value fails to satisfy the threshold confidence value, preventing display of the second natural language response on the user interface of the user device.

9. The method of claim 8, further comprising:in response to determining that the third confidence value fails to satisfy the threshold confidence value, supplementing the training examples with a new training example comprising (i) the second natural language input, (ii) the second natural language response, and (iii) the third confidence value; andupdating the modified LLM using the supplemented training examples.

10. The method of claim 2, further comprising:providing, (i) a second natural language input received from the user device associated with the user and (ii) a second natural language response generated from the first LLM based on the second natural language input, as input to the modified LLM to generate a second confidence value indicating the second natural language response's adherence to the network service security protocols;in response to determining that the second confidence value fails to satisfy the threshold confidence value, transmitting, (i) the second natural language input and (ii) the second natural language response, to the second user device associated with the second user to validate the second natural language response;receiving, from the second user device associated with the second user, a message indicating a third confidence value indicating the second natural language response's adherence to the network service security protocols; andin response to determining that the third confidence value satisfies the threshold confidence value, generating for display, on the user interface of the user device, the second natural language input.

11. The method of claim 10, further comprising:in response to determining that the third confidence value satisfies the threshold confidence value, supplementing the training examples with a new training example comprising (i) the second natural language input, (ii) the second natural language response, and (iii) the third confidence value; andupdating the modified LLM using the supplemented training examples.

12. The method of claim 2, wherein generating the modified LLM further comprises:determining an output layer of the second set of preexisting layers of the base LLM; andgenerating the modified LLM by further appending a third layer comprising a set of neurons to the output layer, wherein (i) a first neuron of the set of neurons correspond to a binary value indicating whether a second natural language response adheres to the network service security protocols and wherein (ii) a second neuron of the set of neurons correspond to a second confidence value indicating a confidence that the second natural language response adheres to the network service security protocols.

13. The method of claim 2, further comprising:receiving, from the user device associated with the user, the first natural language input;providing the first natural language input to the first LLM to generate the first natural language response, wherein the first LLM is trained to generate responses to natural language inputs; andin response to receiving, from the first LLM, the first natural language response, providing (i) the first natural language input and (ii) the first natural language response as input to the modified LLM to generate the confidence value indicating the first natural language response's adherence to the network service security protocols.

14. The method of claim 2, wherein the user interface of the user device comprises a chatbot user interface configured to receive natural language inputs from users and provide natural language responses to the natural language inputs from the users.

15. One or more non-transitory computer-readable media comprising instructions that, when executed by one or more processors, perform operations comprising:generating a modified artificial intelligence (AI) model comprising a first set of generated layers inserted between a second set of preexisting layers of a base AI model, each generated layer of the first set of generated layers comprising a first amount of neurons that are less than a second amount of neurons corresponding to a preexisting layer of the second set of preexisting layers, such that first parameters associated with the first set of generated layers are updated and second parameters associated with the second set of preexisting layers remain constant during a training routine of the modified AI model;providing, (i) a first input received from a user device associated with a user and (ii) a first response generated from a first AI model based on the first input, as input to the modified AI model to generate a confidence value indicating the first response's adherence to network service security protocols;in response to determining that the confidence value satisfies a threshold confidence value, validating the first response; andgenerating display, on a user interface of the user device, the first response in lieu of transmitting (i) the first response and (ii) the first input to a second device associated with a second user to receive feedback for a secondary validation of the first response.

16. The media of claim 15, wherein generating the modified AI model further comprises:determining a set of attention layers of the second set of preexisting layers of the base AI model; andinserting the first set of generated layers between (i) a first attention layer of the second set of preexisting layers and (ii) a second attention layer of the second set of preexisting layers.

17. The media of claim 15, wherein the instructions that, when executed by the one or more processors, perform operations further comprising:retrieving a set of performance metrics associated with training modified AI models to generate the confidence values indicating adherence to the network service security protocols, each performance metric of the set of performance metrics corresponding to an amount of generated layers inserted between a third set of preexisting layers of a second base AI model;determining a first performance metric of the set of performance metrics that satisfy a threshold performance metric, the first performance metric corresponding to a first amount of generated layers;generating a second set of layers based on the first amount of generated layers; andupdating an architecture of the modified AI model by replacing the first set of generated layers with the second set of layers.

18. The media of claim 15, wherein the instructions that, when executed by the one or more processors, perform operations further comprising:retrieving a set of performance metrics associated with training modified AI models to generate the confidence values indicating adherence to the network service security protocols, each performance metric of the set of performance metrics corresponding to an amount of neurons part of generated layers that are inserted between a third set of preexisting layers of a second base AI model;determining a first performance metric of the set of performance metrics that satisfy a threshold performance metric, the first performance metric corresponding to a first amount of neurons;generating a second set of layers based on the first amount of neurons; andupdating an architecture of the modified AI model by replacing the first set of generated layers with the second set of layers.

19. The media of claim 15, wherein the instructions that, when executed by the one or more processors, perform operation further comprising:retrieving, from a database, training examples, wherein the training examples comprise (i) a training confidence value corresponding to a previous response, (ii) the previous response, (iii) a first network service security protocol, and (iv) a previous input corresponding to the previous response;receiving a candidate confidence value as output from the modified AI model based on providing the training examples as input to the modified AI model;comparing the candidate confidence value to a first training confidence value associated with a first training example of the training examples; andupdating the first parameters associated with the first set of generated layers based on the comparison in lieu of the second parameters associated with the second set of preexisting layers.

20. The media of claim 15, wherein the instructions that, when executed by the one or more processors, perform operation further comprising:providing, (i) a second input received from the user device associated with the user and (ii) a second response generated from the first AI model based on the second input, as input to the modified AI model to generate a second confidence value indicating the second response's adherence to the network service security protocols;in response to determining that the second confidence value fails to satisfy the threshold confidence value, transmitting, (i) the second input and (ii) the second response, to the second user device associated with the second user to validate the second response;receiving, from the second user device associated with the second user, a message indicating a third confidence value indicating the second response's adherence to the network service security protocols; andin response to determining that the third confidence value fails to satisfy the threshold confidence value, preventing display of the second response on the user interface of the user device.