Measuring Access Control Enforcement for Generative Machine Learning Models
The secure generative machine learning model with access control mechanisms effectively enforces data access restrictions, ensuring only authorized users receive relevant responses, addressing the challenge of unauthorized access in existing frameworks.
Patent Information
- Application Number
- US19/567941
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-14
- Filing Date
- 2026-03-16
- Publication Date
- 2026-11-26
AI Technical Summary
Existing access control frameworks for generative machine learning models are unreliable in ensuring that only authorized users can access specific data silos, leading to potential leaks of sensitive information, and existing techniques lack flexibility and effectiveness in enforcing access controls.
Implementing a secure generative machine learning model (SGML) with access control mechanisms that enforce data access restrictions through adapters, using metrics like access advantage, domain distinguishability index, and utility gap index to measure and validate the effectiveness of access control.
Ensures that only authorized users receive relevant responses, providing robust access control enforcement and measurable security, thereby preventing unauthorized access to sensitive information.
Smart Images

Figure US20260377560A1-D00000_ABST
Abstract
Description
RELATED APPLICATIONS
[0001] This application claims benefit of priority to U.S. Provisional Application Ser. No. 63 / 805,837, entitled “ENFORCING ACCESS CONTROLS FOR GENERATIVE MACHINE LEARNING MODELS,” filed May 14, 2025, and which is incorporated herein by reference in its entirety.BACKGROUND
[0002] Machine learning models provide important decision making features for various applications across a wide variety of fields. Given their ubquity, greater importance has been placed on understanding the implications of machine learning model design and training data set choices on machine learning model performance. Systems and techniques that can provide greater adoption of machine learning models are, therefore, highly desirable. In enterprise settings, organizational data is segregated, siloed and carefully protected by elaborate access control frameworks. These access control frameworks may not be reliable if a machine learning model (such as an LLM) fine-tuned on datasets pertaining to different domains, serves requests for downstream tasks from individuals who may not have the access privileges for some or all of the inferences. Furthermore, it is important to measure the effectiveness of access control framework in protecting organizational data. Systems and techniques that can provide access control such that the inference responses are secure and measurable by using one or more methods to measure the effectiveness of the access control is highly desirable.SUMMARY
[0003] Systems, methods, and apparatus to implement enforcing access controls to a generative machine learning model and methods to measure the effectiveness of enforcing access controls are described herein. A response to the inference request may be generated by a technique that includes identifying a one or more security domains associated with the inference request, identifying one or more adapters for the generative machine learning model that enforce a content restriction in the response to the one or more security domains, and using the one or more adapters for the generative machine learning model to generate the responses to the inference request. The responses may be to different submissions of a same inference request associated with different users. A security enforcement metric for the generative machine learning model may be generated for one or more of the plurality of security domains based, at least in part, on a difference in relevance scores of the respective responses to different submissions of the same inference request associated with the different users.BRIEF DESCRIPTION OF THE DRAWINGS
[0004] FIG. 1 illustrates a high-level diagram that provides a framework for the use of SGML model for an access control and audit service, according to some embodiments.
[0005] FIG. 2 illustrates a sample user interface of a measurement and validation service that sets up various parameters to generate an inference request, and receive a response, according to various embodiments.
[0006] FIG. 3A illustrates a sample user interface of a measurement and validation service that sets up various parameters to evaluate and measure domain distinguishability, according to various embodiments.
[0007] FIG. 3B illustrates a sample plot generated to evaluate Domain Distinguishability Index, according to various embodiments.
[0008] FIG. 4A illustrates a sample user interface screen for the measurement and verification service 109 for evaluating utility gap index, according to various embodiments.
[0009] FIG. 4B illustrates a sample graph showing the effect of an SGML model trained with adapters for varying number of security domains, according to various embodiments.
[0010] FIG. 5A illustrates a sample user-interface screen that can be used to configure various metric-based parameters of a measurement and validation service 109 for utility comparison, according to various embodiments.
[0011] FIG. 5B illustrates the effect of utility scores during training and testing time of various machine learning models to determine loss gap, according to various embodiments.
[0012] FIG. 6A illustrates a sample user-interface that can be used by the measurement and verification service to save parameters to train and test various datasets and models, according to various embodiments.
[0013] FIG. 6B illustrates a sample user-interface that can be used to evaluate loss gap for different tuned ML models based on training and testing results, according to various embodiments.
[0014] FIG. 7 illustrates various components that comprise an access control and audit service, according to various embodiments.
[0015] FIG. 8 illustrates a flowchart for generating a security enforcement metric for a generative machine learning model for one or more security domains, according to various embodiments.
[0016] FIG. 9 illustrates a sequence diagram that can describe the flow of events between a client and the access control and audit service via a programming interface, according to various embodiments.
[0017] FIG. 10 illustrates a flow-chart that describes the sequence of events processed by an access control and audit service, according to various embodiments.
[0018] FIG. 11 illustrates an access control table that maps users to one or more security domains, according to various embodiments.
[0019] FIG. 12 illustrates a computing system configured to implement the methods and techniques described herein, according to various embodiments.
[0020] While the disclosure is described herein by way of example for several embodiments and illustrative drawings, those skilled in the art will recognize that the disclosure is not limited to embodiments or drawings described. It should be understood that the drawings and detailed description hereto are not intended to limit the disclosure to the particular form disclosed, but on the contrary, the disclosure is to cover all modifications, equivalents and alternatives falling within the spirit and scope as defined by the appended claims. Any headings used herein are for organizational purposes only and are not meant to limit the scope of the description or the claims. As used herein, the word “may” is used in a permissive sense (e.g., meaning having the potential to) rather than the mandatory sense (e.g. meaning must). Similarly, the words “include”, “including”, and “includes” mean including, but not limited to.
[0021] Various units, circuits, or other components may be described as “configured to” perform a task or tasks. In such contexts, “configured to” is a broad recitation of structure generally meaning “having circuitry that” performs the task or tasks during operation. As such, the unit / circuit / component can be configured to perform the task even when the unit / circuit / component is not currently on. In general, the circuitry that forms the structure corresponding to “configured to” may include hardware circuits. Similarly, various units / circuits / components may be described as performing a task or tasks, for convenience in the description. Such descriptions should be interpreted as including the phrase “configured to.” Reciting a unit / circuit / component that is configured to perform one or more tasks is expressly intended not to invoke 35 U.S.C. § 112(f) interpretation for that unit / circuit / component.
[0022] This specification includes references to “one embodiment” or “an embodiment.” The appearances of the phrases “in one embodiment” or “in an embodiment” do not necessarily refer to the same embodiment, although embodiments that include any combination of the features are generally contemplated, unless expressly disclaimed herein. Particular features, structures, or characteristics may be combined in any suitable manner consistent with this disclosure.DETAILED DESCRIPTION OF EMBODIMENTS
[0023] Large Language Models (LLMs) and / or other generative machine learning models, of which an LLM is one example, offer unprecedented natural language processing capabilities. Accordingly, these generative machine learning models are being adopted in a vast range of applications across the entire computing industry. For example, LLMs are routinely used by individuals, both personally and as a part of an organization, for everyday tasks that include information retrieval, content creation, comprehension, summarization, planning, code generation and debugging, education, classification and recommendation, to name a few. In fact, the day may not be too far off in the future when generative machine learning models become the primary interface to a large swath of computing and information extraction tasks.
[0024] In various embodiments, in enterprise settings, generative machine learning models are used to perform a wide variety of computing tasks using organization-wide data. Using generative machine learning models that have a wide purview over organizational data can bring massive troves of information and utility, including the ability to combine learnings from disparate information silos of the organization to the fingertips of individuals in the organization. However, making all the learnings from organizational data available to any individual who can query the generative machine learning models becomes a critical security challenge. Organizations have access control structures and hierarchies that tightly control information flow to and from individuals within them. Information access via generative machine learning models, if not carefully controlled, is likely to break down those access control structures and hierarchies.
[0025] As an example, consider government agencies using LLMs for a multitude of tasks. The data in government agencies can be segregated among multiple “clearance levels” and users can get access to just the data they have access privileges for. Any other agency data can be inaccessible to the users. An LLM trained on this agency-wide data can leak privileged information to unauthorized users, thus breaking the agency's access control framework that works on the raw data. Another example can be role-based access control: Consider a health clinic setting, where individuals performing different “roles” (doctors, nurses, technicians, administrative staff, patients, etc.) interact with LLMs to perform many tasks. The roles of the users determine what part of the clinic-wide data they should have access to. An LLM trained on the clinic-wide data can be easily tricked into leaking information to unauthorized users.
[0026] Proposals to build system prompts that can instruct a generative machine learning model to control what information can be generated in the output can help curb some leakage of sensitive information to unauthorized users. However, they do not achieve absolute security, and clever jailbreaking prompts can be used to overrule these system prompts. Other techniques implement tagging generative machine learning models inference requests with encrypted access credentials to authenticate users and block unauthorized inference requests. However, such techniques lack the flexibility needed to enable access to disparate learnings from the generative machine learning models for different users based on their access credentials. In various embodiments, access control enforcement for agentic systems and Retrieval Augmented Generation (RAG) systems may be implemented.
[0027] In various embodiments, challenges to access control enforcement for generative machine learning (GML) models may result from a multitude of data silos, when GML models are trained or tuned on data. Access control enforcement may guarantee that users who do not have access to specific data silos cannot retrieve information from those silos by sending carefully crafted inference requests to the GML trained on data from those silos. To satisfy this guarantee, access control enforcement can be a zero-sum game, so probabilistic solutions are not useable because of the possibility of unauthorized access.
[0028] In various embodiments, the notion of an access control mechanism in GMLs may be evaluated in terms of the relevance of responses generated by an GML to inference requests sent by users. In various embodiments, the notion of security domains may be used as a way to describe these techniques. For example, response relevance can be used to prove correctness of access control mechanisms. In various embodiments, metrics called access advantage can be captured to empirically quantify the effectiveness of an access control mechanism on GMLs. As discussed in detail below, the ability to provide access control enforcement, as well as measure its effectiveness, may improve the performance of various systems, services, applications, or devices that implement or otherwise make use of GMLs. As one of ordinary skill in the art may appreciate, the ability to provide and measure effectiveness of an access control mechanism may allow for the use of GMLs in many different scenarios where access control mechanisms are regulatory and / or technical requirement, thus improving the performance of systems, services, application or devices to use of state of the art GMLs.
[0029] For example, in various embodiments, the following performance improvements may be achieved, such as a secure generative machine learning (SGML) model—a generative machine learning model that provides access control security for the data ingested through training / tuning, and even through contexts / prompts. The notions of access control and formal metrics may be quantified so that it can be shown that SGML model mechanisms provide access control that satisfy access control guarantees.
[0030] In at least one embodiment, a security domain may be a collection of data records that require identical credentials for access (e.g. files with the same group in their access control lists). In at least one embodiment, an SGML model can be configured so that a previously trained machine learning model (e.g., a foundational LLM) can be fine-tuned over data from different security domains with an added constraint to satisfy access enforcement guarantees-responses to inference-time queries may be generated from learnings on data coming from just the security domains the user has access to. This added constraint can be enforced via access control mechanisms that govern how SGML model uses data from different security domains. The added constraint can be further measured and validated using one or more metrics.
[0031] FIG. 1 illustrates a high-level diagram that provides a framework for the use of SGML model for an access control and audit service (ACA) 100. The ACA service 100 can comprise different security domains. This can be represented mathematically as n different security domains𝕊=⋃ i=1 nsi.FIG. 1 shows user A 101 that is authorized for security domain A and user B 102 that is authorized for security domain B. User A 101 can also be set as an active domain. An active security domain represents one or more security domains selected while issuing an inference request such as a query or a prompt. The access control mechanism (ACM) 103 authenticates the user to verify if a user (such as user A or user B) has access to one or more security domains that is part of an access control table (such as FIG. 11) for that particular user. For example, FIG. 11 shows that user A 101 is allowed to access security domain Sa. User A 101 has access to only one security domain that can also be selected as the active domain, whereas User C in FIG. 11 has access to security domain Sz and Sx, and so either of the security domains (Sz, Sx) can be selected as an active domain. The combination of security domains that can be accessed by the user as well as the one or more security domains that can be chosen to be the active domain can be determined by looking up the access control table. The access control table can be considered to be the gateway that activates the inference requests to be routed to appropriate components of the SGML model. Inference requests activated by the ACM 103 can henceforth be called ACM activated inference requests. After the user credentials and inference request are authenticated, the ACM 103 then activates the inference request based on the active domain that is selected by enabling the appropriate one or more adapters so that the appropriate model parameters are activated. The concept of adapters are discussed in detail later. In some embodiments, adaptors can be a method of fine-tuning a generative machine learning model such as an SGML model such that the number of parameters trained can be a small fraction of the total number of parameters used for fully training the SGML model. For example, in FIG. 11, for user A, security domain Sα can be the active domain and parameter Wα can be used to generate inference. During the training phase, an adapter can be trained for parameter Wα for security domain Sa (such as 105 in FIG. 1) and integrated with the foundational model (such as 106 in FIG. 1). In some embodiments, foundational models can be baseline LLMs such as Llama, Mistral. For a very simple model, such as the one illustrated in FIG. 1 the combination of an adapter trained for security domain A parameters 105 and foundational model 106 can be collectively called as an SGML model 104. The SGML model 104 can generate an inference 118 for inference request Q 110 pertaining to security domain A from user A 101 which is authenticated by ACM 103 using an access control table as shown in FIG. 11. The ACM 103 activates 115 security domain A parameters 105 to generate inference 118. The inference 118 for user A 101 can be relayed as response 129 / 111 back to the user A 101. This kind of response (such as response 111) is called a relevant response, as the response is relevant to the active domain 125. User B 102 can be authorized for security domain B, but it is a non-active domain, meaning security domain B is not chosen as an active domain for the inference request. If user B 102 sends the same inference request Q 112 as user A for an active domain, but the difference being that it is a different user, the access control mechanism can still authenticate the user B 102 as it can be a valid user, as well as the user is registered for a valid security domain B; however, since the active domain 125 in FIG. 1 is security domain A, the inference request sent from User B 116 may not activate any of the parameters associated with security domain A, and hence will generate a response that does not contain any information pertaining to security domain A. In the example illustrated in FIG. 1, the inference response 119 would be similar to a foundational model 106 response (such as a Llama or Mistral model) because ACM 103 does not activate any adapters for the inference request Q 112. Such a response is said to be a non-relevant response 113 as it does not generate the response desired by user B 102. FIG. 1 illustrates a simple example of an access control system 100 that provides a secure process for generating inferences. In this example, user B 102 will not be able to receive inferences for security domain A because the access control system is designed so that only user A 101 is authorized to receive inferences pertaining to security domain A. However, user B 102 can still receive responses pertaining to pretrained foundational model 106 related inferences. In some embodiments, user B 102 can simulate a user who wants to obtain information pertaining to domains (such as security domain A) that they may not be authorized to obtain, and they can be part of an organization with appropriate credentials (such as access to security domain B). The inferences (118, 119) can be stored and retrieved 121 from a datastore 107 by various users. As discussed above, metrics can be used to quantify the effectiveness of the access control mechanism. A service, such as a measurement and validation service 109 can be used to quantify the effectiveness of the access control. The metrics used to quantify the effectiveness of access control can be discussed herein with more details later. A user 108 can be provided with complete access and privileges (similar to a root account in many organizations) so that different combinations of requests 123 can be performed using the measurement and validation service 109 to measure and validate the metrics described herein. In some embodiments, this user 108 can be an auditor.In some embodiments, relevant and non-relevant responses can also be elaborated mathematically. Training data set consisting of data from domainsD=⋃ i=1nDsi∼𝒟(here Ds<sub2>i < / sub2>is a data set sampled from data distribution Ds<sub2>i < / sub2>of domain si). The model fD can be the SGML model tuned using data set D. Parameters W can be the set of fD's parameters. Model tuning can change values of a subset of W. A security domain si (such as security domain A 125 in FIG. 1) can affect a subset of parameters Ws<sub2>i< / sub2>⊆W if data from Ds<sub2>i < / sub2>can be used to change parameters Ws<sub2>i < / sub2>(such as security domain A parameters 105 in FIG. 1) during model fine-tuning. An access control mechanism M can be defined that dictates the mapping of security domain si to parameters Ws<sub2>i< / sub2>. SGML model that can be fine-tuned using data set D can be said to be permissioned, denoted asfDM,if is can use the access control mechanism M to map its parameters W to a plurality of security domains from S, where each security domain si affects parameters Ws<sub2>i< / sub2>⊆W. FIG. 11 shows an access control table that maps various security domains to their corresponding parameters. Operationally, during fine-tuning, M can specify which set of model parameters Ws<sub2>i < / sub2>are tuned for a given security domain si. Similarly, during inference, M can specify which set of model parameters should be used to answer an inference request based on the user's access credentials. For example, in FIG. 1, inference request Q 110 can be processed at ACM 103 into an ACM activated inference request 114 which specifies security domain A parameters 105 can be used for user A 115 and the foundational model 106 for user B 116. SGML model can reside in an enclosing system that authenticates users who send inference requests tofDMACM 103 in FIG. 1) determines the user u's access credentials credu and calls authenticate (credu) that takes user credentials credu and maps them to a subset of security domains Su that u can access. Su can be maintained by the enclosing system and is never exposed to user u. This process ensures u cannot arbitrarily change Su. Each of u's subsequent query qu tofDMcan be annotated with Su by the enclosing system. M determines the model parameters Ws<sub2>u < / sub2>(such as 105 in FIG. 1) used to generate a response rs<sub2>u < / sub2>(such as 129,111 for user A 102 in FIG. 1) to qu (such as 110 in FIG. 1), where Ws<sub2>u< / sub2>=Ui∈s<sub2>u < / sub2>Wi. Mathematically, a relevant request can be described in terms of the mathematical terms defined above. Given a SGML modelfDM,an interference request qu from user u, and Su the security domains user u has access to,r=fDM(qu)is the response byfDMto query qu. Response r (such as 111 in FIG. 1) is said to be relevant to Su (e.g., r=rs<sub2>u< / sub2>) iffDMuses parameters Ws<sub2>u < / sub2>to generate r. Similarly, for an inference request qu from user u (such as user B 102 in FIG. 1), and Sv (such as 126 in FIG. 1) the security domains user u has access to,r=fDM(qu)is the response byfDMto query qu; response r (such as 113 in FIG. 1) is said to be irrelevant is the response by to Sv (e.g., r=rs<sub2>v< / sub2>) iffDMdoes not use parameters Ws<sub2>u < / sub2>(such as 116 in FIG. 1) to generate r. In some embodiments, the definition of relevant response that can be expressed mathematically does not exclude additional security domains' affected parameters, as well as pretrained model parameters, from being used in generating the response. An access control mechanism M can be said to be correctly enforced on SGML modelfDMif every response r generated for every user query qu is relevant to Su.The above definition of relevant response can provide more value if a proposed access control mechanism M can be algorithmically verified, that may require an empirically quantifiable metric to determine if the implementation (and the algorithm by extension) of M can be verified. This can be important for auditing purposes. In some embodiments, a metric called response relevance score, relv(fDM(q), Su), which quantities the information gained on data in the security domain q belongs to by observing responses to queries generated using model parameters Ws<sub2>u < / sub2>affected by security domains of Su. The term relv(fDM(q), Su), is expected to be higher when q ∈ DSu, compared to when q ∉ Ds<sub2>u< / sub2>.In some embodiments, the domain of response relevance score may be restricted to the real number interval [0, 1], where 1 is the best expected score for relevance. The response relevance score itself can be represented by another empirical metric such as prediction accuracy, or logits for the expected response. However, given that ML models in general are generalization engines, in practice, response relevance score can be less than 1. This restriction can be effectively addressed by measuring response relevance score for security domains that the user has access to and comparing it to response relevance score for security domains that the user does not have access to. This comparative term can be called as access advantage.Access Advantage can be expressed mathematically as: Given SGML modelfDMtrained over data set D consisting of data from domains𝕊=⋃ i=1nsi,with access control mechanism M, a subset of security domains Su⊆,fDMachieves α-access advantage w.r.t. Su if:Eq∈𝒟Su, Sv⊆𝕊; Su∩Sv=ϕ[relv(?(q),Su)⊖relv(?(q),Sv)]≥αwhere relv( ) is the response relevance score on the corresponding security domain subset (Su or Sv), ⊖ is a “difference” operator specific to the access control assessment method (e.g. subtraction), and a is an advantage threshold that lies in the range [0,1].The access advantage metric relies heavily on the assumption thatfDMperforms significantly better on security domains user u has access to compared to security domains u does not have access to. In other words,fDMshould have explicit segregation between the different security domains, as dictated by M. The existing approaches to model fine-tuning fail to achieve this goal as the model is traditionally trained on all the security domains without any built-in domain segregation mechanism, e.g., M=Ø, which can be similar to not having an access control table.In various embodiments, access advantage is a metric for auditors to determine if an access control mechanism is truly achieving the segregation of security domains as intended. Hence it is in the auditor's best interest to ensure that Su ∩Sv=Ø. Access advantage can diminish significantly when Su∩Sv≠Ø, leading to incorrect conclusions about the efficacy of the access control mechanism. For example, in some embodiments, in FIG. 1 auditor 128 can determine that user profile A 101 and user profile B 102 are such that Su∩Sv=Ø. In such a case, access advantage can be closer to 1. However, if auditor 128 can determine that user profile A 101 and user profile B 102 are such that Su∩Sv≠Ø. In such a case, access advantage may not be closer to 1, and the score can depend on how related the two security domains are. Similar security domains can lead to a score closer to 0 and different security domains can lead to a score closer to 1.In at least some embodiments, retrieval augmented generation (RAG) based LLM deployments explicitly can have effectiveness of access control mechanisms formally or empirically measured. In various embodiments, relevant response and access advantage extends to RAG systems as well, closing that gap in formalism and empirical evaluation of access control protocols.For evaluating the access control mechanisms, a classic adversarial game can be considered between the system S enclosing the modelfDMand the auditor A. A can choose security domain access by emulating an end user (such as user 108 in FIG. 1), send arbitrary queries to the model via S (such as ACA service 100 in FIG. 1) and observe the responses. A can replay the game multiple times as a different user (such as with user A profile 101 or user B 102 profile in FIG. 1) to conclude if the access control can be correctly implemented.Audit Game. The formal game between auditor A and system S can be as follows:1. Auditor chooses security domain set Su and emulates user u. sends user credentials cred u and query q ∈ to system .2. verifies the user credential credu and sends back the model response (q) to .3. chooses security domain set Sv such that Sv∩Su=φ and emulates user v. sends user credentials credv and the same query q ∈ to .4. verifies the user credential credv and sends back the model response (q) to .5. concludes the access control mechanism is correctly implemented if the access advantage relv((q), Su) ⊖ relv((q), Sv)≥α.In some embodiments, the auditor A (such as 108 in FIG. 1) can have superuser privileges to choose arbitrary domain access unlike an ordinary user. This is by design to allow the auditor to evaluate the correctness of the claimed access control while still following the protocol of generating inference requests to the SGML model as a benign user.In at least some embodiments, Parameter Efficient Fine-Tuning (PEFT) based methods can be used to obtain model parameter segregation for security domains. In some embodiments, LoRA PEFT adapter may be used, but the algorithms mentioned above can be applied to other types of adapters. In some embodiments, PEFT is a method of fine-tuning large language models. While fine tuning with PEFT, the baseline model of the large language model (such as Llama, Mistral) are kept the same, and a few trainable adapter components are inserted into the large language model. The points of placing these adapter components are carefully chosen, and the net additional weights that are to be trained are very small compared to sum total of all weights used for the large language model. Comparable results can be obtained by adding a few weights pertaining to the adapters and this avoids retraining the entire large language model.The algorithms described herein steer security domain data to train select adapters. Each security domain has a unique identifier (domain Id). Access control mechanism builds a map between security domains and adapters trained for various parameters for the respective one or more security domains such as the access control table discussed above and illustrated in FIG. 11. The access control table can be used to steer all inference requests from a security domain to the corresponding adapter(s) for training. The access control table can also be used to steer queries to the correct adapters at test time and training time.In some embodiments, two novel instantiations of the access advantage metric can be used to quantify access control efficacy independently of any particular system design (including SGML model). The metrics can be shown to fit into the framework for empirically assessing access control mechanisms in SGML model through audit methods (sometimes called “games” herein). The metrics can be formalized into black-box procedures that can capture: 1. distinguishability of security domain-specific responses using a domain distinguishability index (DDI), and 2. utility disparity induced by access restrictions for a utility gap index (UGI). The auditing methods can measure how effectively an auditor can conclude if the access control mechanism may correctly be implemented, by verifying if the correct domain adapter can be activated for an inference request. This effectiveness can be directly correlated with the access advantage score for the target security domain(s). Higher access advantage score denotes stronger access control enforcement. A perfectly separated system provides the auditor with an access advantage score of 1.0. The environment, that includes threat settings or access privileges can be kept constant for the audit methods.In some embodiments, Domain Distinguishability Index (DDI) game assesses whether the auditor can effectively conclude if the correct security domains were used based on the generated responses. The primary motivation of this game can be to measure the distinguishability of different security domains' distributions. In Step1 of the game, Auditor chooses security domain set Su and emulates user u. sends user credentials cred u and query q ∈, to system . S verifies the user credential cred u and sends back the model responsefDM(q) To , similar to the flow described for user A 101 in FIG. 1. In Step 2 of the game, chooses security domain set Sv such that Sv∩Su=φ and emulates user v. sends user credentials cred v and the same query q ∈ to . verifies the user credential cred y and sends back the model responsefDM(q) to , similar to the flow described for user B 102 in FIG. 1. In step 3 of the game, sends the models responses and domain information to membership inference oracle 0 (such as measurement and validation service 109 in FIG. 1) to obtain domain distinguishability score m(O( (q)|Su, (q)|Sv), where m(·) is a membership inference metric in the [0,1] range. In some embodiments, an AUC-ROC graph or a true positive rate (TPR) at 1% false positive rate (FPR), abbreviated as TPR @ 1% FPR, can be used to measure membership inference. concludes the access control mechanism is correctly implemented if the domain distinguishability score m(O( (q)|Su, (q)|Sv))≥α, where α can be a metric specific threshold.The Domain Distinguishability Index (DDI) metric measures average adversarial performance in the domain distinguishability game across all non-overlapping domain sets. In some embodiments, membership inference attacks (MIAs) leverage a sampled member data set (from the target model's training set) and a sampled non-member data set to assess privacy leakage. The more accurately an adversary separates and classifies samples as members or non-members, the higher the privacy risk. The MIA framework can be adopted for access control assessment to distinguish security domains. Members (q ∈) can be distinguished from non-members (q ∈) for the target domain Su. In some embodiments, the target domain can also mean the active domain and can be interchangeably used. MIA framework is discussed more, later on, while discussing FIG. 3A and FIG. 3B. In some embodiments, for any security domain set Su, the auditor can access samples from Su's training data (member set) and samples from Sv's training data (non-member set), where Sv∩Su=φ. The auditor may then evaluate how successfully the DDI metric can distinguish the member set from the non-member set when the SGML model is activated for Su. The evaluation described above can occur for all security domains, providing an aggregate access advantage score. In some embodiments, some of the metrics used to quantify auditor's success includes Attack ROC curves, Attack TPR at low FPR as instantiations of access advantage, where higher scores indicate enforcement as Su specific responses can be more distinguishable. In some embodiments, the Receiver Operating Characteristics (ROC) curve illustrates the trade-off between the True Positive Rate (TPR) and the False Positive Rate (FPR) for the attacks. The FPR measures the proportion of non-member samples that are incorrectly classified as members, while the TPR represents the proportion of member samples that are correctly identified as members. Attack ROC curves represent the area under the ROC curve (AUC-ROC) as an aggregate metric to assess the overall success of the attacks. AUC-ROC can be a threshold-independent metric, and it can show the probability that a positive instance (member) has a higher score than a negative instance (non-member). In some embodiments, Attack TPR at low FPR metric can be crucial for determining the effectiveness of an attack at confidently identifying members of the training dataset without falsely classifying non-members as members. The FPR thresholds are usually kept low (such as 1% up to 5%). For example, the TPR at an FPR of 1% is calculated by setting the detection threshold so that only 1% of non-member samples can be predicted as members.In some embodiments, Domain Distinguishability Index (DDI)) can be expressed as follows. For a domain universe consisting of n security domains, let denote the PermLLM trained on data D from all security domains with access control mechanism . For each ordered pair of domain sets (Si ⊆,Sj ⊆) with no overlap (i.e., Si∩Sj=φ), let O(S<sub2>i< / sub2>,S<sub2>j< / sub2>)=O((q)|Si,(q)|Sj); ∀q ∈s<sub2>i < / sub2>be the output of a membership inference oracle O. For a given membership inference metric m(·), the DDI can be expressed as: DDI(m)=ES<sub2>i< / sub2>⊆S<sub2>j< / sub2>⊆s[m(O(S<sub2>i< / sub2>,S<sub2>j< / sub2>))], where E is the expectation over all domain sets.During testing and measurement, standard deviation of m(O(S<sub2>i< / sub2>,S<sub2>j< / sub2>)) across all domain set pairs are measured to capture variability. DDI can be viewed as an access advantage metric, where the response relevance score relv for Si on query q, relv((q), Si), is a binary value on whether the membership inference oracle O's output is above a membership threshold. The difference operator ⊖ is the MIA method specific composition of response relevance for all the samples in the member and non-member sets. A higher DDI indicates more robust separation between security domains. In some embodiments, MIAs such as Zlib, Loss, Mink, Mink++ can be used to test SGML model.In some embodiments, a Utility Gap Index (UGI) can be evaluated and measured. The second game UGI can evaluate how distinctly the responses from two different security domains impact the utility perceived by users. The rationale behind this game can be to confirm that enforced access controls result in meaningful variations in response quality. In Step 1, Auditor chooses security domain set Su and emulates user u. sends user credentials cred u and query q ∈, to system . verifies the user credential cred y and sends back the model response (q) to . In step 2, chooses security domain set Sv such that Sv∩Su=φ and emulates user v. sends user credentials cred y and the same query q ∈, to . verifies the user credential cred v and sends back the model responsefDM(q) to . In step 3, given a utility function U(·) that outputs values in [0,1] range, concludes the access control mechanism is correctly implemented if the utility gap score<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>U(fDM(q)|Su)-U(fDM(q)❘Sv)<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>≥α,where α can be a UGI metric threshold.The utility function U(·) can be any metric that is pertaining to the application. In some embodiments, metrics to evaluate the utility of the model generations can include Bleurt Score (can be used interchangeably with the abbreviation bleurt), Bert F-1 Score (can be used interchangeably with the abbreviation bert) and verbatim accuracy (can be used interchangeably with the abbreviation acc). These metrics measure how similar the generated text can be to the ground truth. Bleurt and bert measure the semantic similarity, bleu measures the fraction of common n-grams, and acc gives a binary decision of whether the generated text verbatim matches the ground truth. All the metrics lie in a [0,1] range, where values close to 1 indicate high model utility. The game described above can aggregate the mean utility gaps across all domain set pairs to obtain the Utility Gap Index (UGI) metric. Utility Gap Index (UGI) can be empirically expressed as follows. Let U(·) be a chosen utility metric and for a domain set pair (Si⊆, Sj⊆) with no overlap (i.e., Si∩Sj=φ), UtilityGap (S<sub2>i< / sub2>,S<sub2>j< / sub2>)(U)=|U(fDM(q)|Su)−U(fDM(q)|Sv)|. The Utility Gap Index aggregates utility gaps across all ordered domain set pairs: ΔU=ES<sub2>i< / sub2>⊆S,S<sub2>j< / sub2>⊆S UtilityGap (S<sub2>i< / sub2>,S<sub2>j< / sub2>)(U), where E is the expectation over all domain sets.UGI can also be an instantiation of the access advantage metric in which the relevance score for security domain set Si on query q can be the utility value itself, relv(fDM(q), Si)=U(fDM(q)|Si), and the operator ⊖ computes the absolute difference of those relevance scores across the sampled queries. A larger UGI indicates that enforced access controls yield more pronounced- and thus more easily perceivable-differences in response quality between security domains. As with DDI, the standard deviation across pairs to characterize variability can be reported.Theoretically, UGI, represented as ΔU(·) may reach 1.0, but empirically tests can generate much smaller yet still substantial access advantage gaps while evaluating users with access to a single security domain. These gaps can be significantly impacted by domain distributions and the strictness of the scoring metric. For example, one dataset can exhibit higher Δbleu or high Δacc values because it can have the highest number of distinct domains (10 in total). In some embodiments, the results can also depend on the type of metric used. For example, Δbleu and Δacc can have the largest values as these metrics look for verbatim pattern matches, thus requiring the model to memorize the nuances in the target domain. On the other hand, other UGI metrics such as Δbleurt and Δbert look for approximate similarities, and hence are impacted by the similarities across the domains. This suggests that the verbatim matching metrics, Δbleu and Δacc, are better model utility metrics for measuring access advantage compared to the similarity based metrics Δbleurt and Δbert. For large data sets like RCV1, all the metrics can achieve similar values as the model begins to generalize more. Even when values are not close to 1, they can still provide credence to the fact that the domains are different, and the access control protocol discussed above works as expected due to the utility gaps. In some embodiments, the access advantage threshold α is dependent on the type of utility metric: verbatim matching metrics Δbleu and Δacc have higher threshold than similarity based metrics Δbleurt and Δbert. For Δacc metric, α>0.2 is sufficient to infer that access control is happening correctly.FIG. 2 illustrates a sample user interface of a measurement and validation service that sets up various parameters to generate an inference request, and receive a response, according to various embodiments. The measurement and validation (MV) service109 can be used by an auditor to select a user 201 from a plurality of users and authenticate 208 with ACM service 103. If the authentication is successful, the security domains can be populated based on the mappings in the access control table as shown in FIG. 11. An active domain 203 can be chosen so that the MV service can determine the security domain(s) the requests 206 pertains to. A SGML model 204 can be chosen from a plurality of SGML models that are trained based on the mapping in the access control table (such as FIG. 11). A dataset 205 can be chosen from a plurality of dataset. In some embodiments, datasets such as WMDP GPQA, SimpleQA or RCV1 can be selected. Each of the datasets can have a different characteristic. For example, RCV1 is a benchmark dataset on text categorization. After all the parameters that are deemed necessary to perform inference requests are chosen, inference requests 206 can be sent 209, and responses 207 can be saved 210 in a datastore 107. Receiving responses 207 over different datasets can help get a better understanding of the behavior of the various SGML models. The auditor can mix and match various combinations of users, active domains, SGML models, and datasets to evaluate the various responses.FIG. 3A illustrates a sample user interface of a measurement and validation service that sets up various metric-based parameters to evaluate and measure domain distinguishability, according to various embodiments. The measurement and validation (MV) service 109 can have a separate screen(s) to evaluate Domain Distinguishability Index (DDI). This screen can be used in conjunction with screen 1 (FIG. 2) to evaluate DDI. For example, Screen 1 (FIG. 2) can be used for running different combinations of user inference requests for various combinations of security domains, dataset, SGML models. The data saved 210 can be then used in conjunction with Screen 2 (FIG. 3A). In some embodiments, the screen can contain a choice to choose the appropriate index to evaluate 301 such as DDI as discussed above. In some embodiments, any metric suitable for the application can be chosen using a screen shown in FIG. 3A. Similarly, the type of metric 302 can be selected that is pertaining to the index 301 selected. In some embodiments, as discussed above AOC-RUC, TPR@ 1% FPR, TPR @5% FPR can be selected. These metrics can help quantify the success of the membership inference attacks. The type of dataset 303 can be chosen based on the application. In some embodiments WMDP, SimpleQA, RCV1, GPQA can be used to test the application with different types of datasets. To evaluate DDI, different kinds of MIA methods can be experimented with to evaluate the SGML's model ability to distinguish one security domain from another. In some embodiments, MIA methods 304 can be Loss method, Zlib method, Ref method, Min-K method, Min-K++ method. Each of these methods can help calculate membership scores that helps evaluate DDI. SGML model 305 from a plurality of SGML models can be selected. Generate plot 306 can generate data based on the metrics chosen.FIG. 3B illustrates a sample plot generated to evaluate Domain Distinguishability Index, according to various embodiments. Generate Plot 306 can generate a plot shown in this figure, where the TPR and FPR are analyzed and saved by the MV service 109 based on various inference requests / responses for different metric-based parameters that include dataset, MIA methods, SGML models. In some embodiments, selecting a particular dataset, MIA method, SGML model can generate an AUC-ROC curve as shown in FIG. 3B. Similarly, curves can be generated for other DDI based metrics such as TPR@ 1% FPR, TPR @5% FPR.FIG. 4A illustrates a sample user interface screen for the measurement and verification service 109 for evaluating utility gap index, according to various embodiments. The measurement and verification service 109 can provide a visual interface (such as this one) to select one or more metric-based parameters for evaluating UGI such as selecting an SGML model 402 from a plurality of SGML models. The number of security domains 403 represents number of security domains trained per adapter of the SGML model that can be found in the access control table as shown in FIG. 11. Dataset 404 represents the type of dataset used for generating the inference response. In some embodiments WMDP, SimpleQA, RCV1, GPQA can be used to test the application with different types of datasets. Foundational ML model 405 represent the foundational SGML model that can be used to train the SGML model. In some embodiments, Llama, Mistral are foundational LLM models. Metrics pertaining to the utility gap 406 can be selected to generate plot 407 that is shown in FIG. 4B. Similar to FIG. 3A, FIG. 4A can be used in conjunction with FIG. 2. The user interface in FIG. 2 can be used to generate inference responses based on various combinations of metric-based parameters chosen such as active domain, SGML model, datasets. The inference responses can be used in conjunction with the UGI metric-based parameters chosen in FIG. 4A to generate plots 407 like the one shown in FIG. 4B. In some embodiments, utility gap metrics 406 such as Δbleu, Δacc, Δbleurt can be used. Δ operator represents the difference between the utility scores across two different security domains. Metrics such as bleurt, bleu, acc, bert were discussed above; these metrics can measure how similar the generated text can be to the ground truth.FIG. 4B illustrates a sample graph showing the effect of an SGML model trained with adapters for varying number of security domains, according to various embodiments. In some embodiments, different plots can be generated based on whether the metrics are used for SGML models trained with one security domain per adapter, or SGML models trained with multiple security domains per adapter. The utility gap metric can be used to evaluate the effectiveness of training SGML models with different combinations of security domains per adapter. SGML models trained with one security domain per adapter can be evaluated to show domain distinguishability as well as how well the domains are utilized with the utility metrics. As the number of security domains per adapter increases, the SGML model inferences can get generalized and this can be measured using the UGI metrics, as shown in FIG. 4B. SGML models can be trained in different ways. In some embodiments, an SGML model can have one security domain trained per adapter. In other SGML models, there can be many single security domain per adapters merged into multiple security domain per adapter. In some other SGML models, multiple security domains can be trained per adapter. The graph measures the effectiveness of utilizing various security domains (UGI index) with one or more active security domains. In some embodiments, UGI gap metric 421 can be measured using utility gap metrics 406 such as Δbleu, Δacc, Δbleurt. The graph shows that as the number of active domains 422 used in generating inference response increases, the single domain per adapter 426 SGML model is not able to utilize the various security domains to generate an appropriate inference response. The results improve for 425 (adapters trained for single security domain merged into a single multi-domain per adapter SGML model) but still drops off as the number of the active domains increase. However, SGML model trained for multiple security domains per adapter 423 shows the best result with a higher UGI score that is above the threshold 424.FIG. 5A illustrates a sample user-interface screen that can be used to configure various metric-based parameters of a measurement and validation service 109 for utility comparison, according to various embodiments. FIG. 5A is similar to FIG. 4A, as both the screens utilize the UGI metric. The difference between FIG. 4A and FIG. 5A can be that in FIG. 5A, the actual utility score 505 for a security domain may be measured instead of a utility gap (which is the difference between the utility scores between two security domains) in FIG. 4A. The utility score is useful in evaluating the effectiveness of the SGML model 502, especially during training and testing time periods. Different SGML models can be trained and tested and the results between the training and testing can help determine the loss gap which can be expressed as the difference between the training utility score and the testing utility score. This can be performed across different datasets 503 and different foundational ML models 504. In some embodiments, utility score can be measured using metric methods such as bleurt, acc, bert, and / or bleu. These metrics measure how similar the generated text is to the ground truth. Metric bluert and bert measure the semantic similarity, bleu measures the fraction of common n-grams and acc can provide a binary decision of whether the generated text verbatim matches the ground truth. All the metrics can lie in [0,1] range, where values close to 1 indicate high model utility. Similar to FIG. 3A and FIG. 4A, FIG. 5A can be used in conjunction with FIG. 2, wherein FIG. 2 can be used to generate inference responses for various combinations of users, active domains, SGML models, dataset, and combined with the metric-based parameters chosen in FIG. 5A, plots 506 can be generated as shown in FIG. 5B.FIG. 5B illustrates the effect of utility scores during training and testing time of various machine learning models to determine loss gap, according to various embodiments. FIG. 5B can be generated based on the metric-based parameters chosen in FIG. 5A and inference responses saved using FIG. 2. The graph can provide utility score comparison results 523 for various tuned models such as a fully fine tuned ML model 524 and SGML model 525 based on training dataset 526 and testing dataset 527. Different combinations can be attempted based on different datasets 522 and different utility metrics 521. In some embodiments, utility metrics 521 can be UGI metric methods discussed before such as Bleurt score (bleurt), Scarebleu score (bleu), verbatim accuracy (acc), Bert F1 score (bert). Similar utility scores can indicate that the performance of various tuned ML models are similar for the type of metrics chosen. For example, similar scores for a fully fine tuned model 524 and SGML model 525 can demonstrate that for the metrics chosen, the models perform similarly. Different datasets chosen can have different impact on test results. For example, full fine-tuning a model can either completely overfit and set high utility score for some datasets or completely underfit and set low utility score for some other datasets. This can be tested using foundational models to see how different foundational models can impact the results. In some embodiments, dataset can have many security domains, thus each of the SGML model-based domain adapter can only see a fraction of data compared to other adapter type models such as LoRA's approach to adapters. Factors such as those listed above may need to be considered while interpreting the data results.FIG. 6A illustrates a sample user-interface that can be used by the measurement and verification service to save parameters to train and test various datasets and models, according to various embodiments. The measurement and verification service (screen 8) 109 can provide a set of metrics-based parameters that can be saved for training and testing various SGML models 603 based on different foundational models 601 for different datasets 602. In some embodiments WMDP, SimpleQA, RCV1, GPQA can be used to test the application with different types of datasets. Model specific tuning data such as learning rate 604, epochs 605 can also used as the training-based parameters that may be needed to perform training and tuning operations 607. In some embodiments, datasets 602 that can be chosen such that the pretrained foundational models 601 may not have been exposed. High initial training loss on a dataset can indicate that the dataset may not have been used in pretraining or may have been forgotten by the models. However, the training loss can be gradually reduced during fine-tuning of the SGML models. Different combinations of the parameters (601-605) can be tried to get a sense of the performance of the SGML models during testing. The generalization loss gap described in FIG. 6B can be based on training-based parameters saved in FIG. 6A. In some embodiments, generalization loss gap can be the gap between model's loss on training and test data sets.ssssssssssFIG. 6B illustrates a sample user interface that can be used to evaluate generalization loss gap for different tuned ML models based on training and testing results, according to various embodiments. The graph shows how much of a loss gap occurs between the training dataset 626 and the test dataset 627 for various models. This can help evaluate how different variations of adapter based ML models (such as SGML models discussed herein 624, LoRA adapter-based fine tuning ML models) can perform compared to a fully fine-tuned foundational ML model 624. If the loss gap 628 can be within an acceptable range, such as a predefined threshold, then the graph can help prove that SGML models are very effective and the adapters may have saved considerable time by training only a fraction of the parameters to train the SGML model compared to a fully fine-tuned ML model which can have a very large number of hyperparameters and can take a very long time to retrain. The tests can be performed on different foundational models 621 as well as different datasets 622 to generate quantifiable metrics that can show whether the SGML models can work similar to fully fine tuned ML model or not.FIG. 7 illustrates various components that comprise an access control and audit service, according to various embodiments. The access control and audit (ACA) service 100 can receive a request 709 from a user, and can handle all the processing necessary for generating a response 710. The ACA service can comprise many components as shown in FIG. 7. The access control mechanism 103 (ACM) can authenticate a request 709 and lookup an access control table (such as the one shown in FIG. 11) to route the request 709 to the appropriate one or more adapters of the SGML model to generate an inference response. The inference response can be stored in a datastore 107 and sent to the client through the interface 701. The ACM service can also be responsible for the generation of the access control table based at least in part on user credentials and adapters that are to be trained for one or more security domains for each of the users. The measurement and validation service 109 discussed in detail in FIG. 2, FIG. 3A, FIG. 3B, FIG. 4A, FIG. 4B, FIG. 5A, FIG. 5B, FIG. 6A and FIG. 6B can provide a user with different responses pertaining to measurement of the inferences as well as validation of the metrics used for determining the effectiveness of SGML models. The interface manager 702 can act as a gateway between the external interface 701 and all the internal components shown in FIG. 7. The UI interface and graphics library 703 can provide all the UI and graphics-based libraries needed to interface with a user to provide appropriate responses, such as the ones shown in FIG. 2-FIG. 6B. The datastore 107 can store various kinds of data that can include various foundational ML models 704, various inferences, reports, summaries, various datasets 705, various versions of SGML models 706 based on different foundational models 704, various MIA 708 and metrics libraries 707. Each of the libraries (703-706) can be their own service that are responsible for managing and deploying different types and versions of their respective components. For example, foundational ML library 704 can be a service that has various types of foundational ML models and many versions of each of the foundational ML models and can provide the software / infrastructure required to interact with various other components and services shown in FIG. 7 to deploy the different types and versions of the foundational ML models. Similarly, dataset library 705, SGML model library 706, metrics library 707, MIA library 708 can be their own respective service that can have various types of respective models and versions that comprise software / infrastructure required to interact with various other components and services (such as ones shown in FIG. 7) to deploy the different types and versions of the respective libraries. The interface 701 can be a client / server architecture where the user interface is local so that the client and server can be located locally such as a desktop or an industrial local server, or it can be a programmatic interface where the client and server are not located locally where the client can be any computer interfacing through the cloud to an ACA service deployed as an endpoint in a cloud infrastructure environment. Various other client / server architectures are possible where the ACA can reside on another industrial server that is outside of the client software and the client software can reside on any other desktop / laptop or mobile device.FIG. 8 illustrates a flowchart for generating a security enforcement metric for a generative machine learning model for one or more security domains, according to various embodiments. As indicated at 801, a generative machine learning model can generate respective responses to different submissions of a same inference request associated with different users, wherein individual ones of the different users can have access to one or more different security domains of a plurality of security domains supported by the generative machine learning model. Furthermore, as indicated at 802, a security enforcement metric can be generated for the generative machine learning model for one or more of the plurality of security domains based, at least in part on a difference in relevance scores of the respective responses to the different submissions of the same inference request determined associated with the different users.FIG. 9 illustrates a sequence diagram that can describe the flow of events between a client and the access control and audit service via a programming interface, according to various embodiments. A client 901 can push one or more user profiles 903 containing all the information necessary to authenticate and make inference requests for the one or more users. The access control and audit (ACA) service 100 receives the requests through a programmatic interface 902. The ACA service saves the user profiles 904 and acknowledges back to the client. The client 901 requests to select one of the users from the plurality of users based on the user profile 905. The ACA service authenticates the user and acknowledges the authentication to the client 906. The client can push more parameters pertaining to inference and metric-based processing that includes an active domain, metrics-based parameters 907 to the ACA service. The ACA service 100 can acknowledge the saved parameters 908 and can have the configurations required for processing inference requests as well as requests pertaining to metric-scores. In some embodiments, the metric-scores can be UGI metrics such as utility scores, utility gap, DDI membership scores and loss gap numbers. The client can send multiple requests iteratively based on a series of combinations of user profiles, active domains, metric-based parameters that can quantify the metric-scores 909, 911. The ACA service can save the responses in a datastore 107 and send acknowledgements back to the client 910, 912. The client can also send requests to generate summarized reports, tables based on the inference and metric-based responses 913. The ACA service can save the reports in the datastore 107 and send the responses to the client 914.FIG. 10 illustrates a flow-chart that describes the sequence of events processed by an access control and audit service, according to various embodiments. The access control and audit (ACA) service can be initialized 1000 to process requests from a client such as client 901. Based on the request from a client such as client 901, the ACA service can select a user that has access to one or more security domains from a plurality of user profiles 1001. The ACA can attempt to authenticate 1002 the user credentials and look up the access control table as shown in FIG. 11 and acknowledge success or failure 1011 to the client. The ACA service can select one or more active domains and metric-based parameters 1003 based on client's request. After the user, active domains, metric-based parameters are configured the ACA service can accept multiple inference requests directed to the SGML model 1004 and perform metric-based processing to quantify one or more metrics 1005. The processing of inference requests and performing metric-specific processing can occur iteratively over many inference requests 1006, active domains 1007 and users 1008 as illustrated in FIG. 10. The ACA service can also perform more aggregated processing of the inferences and metrics-based data 1009 to generate reports, tables based on client requests. The ACA service can be running till it can be stopped 1010.In some embodiments, FIG. 11 illustrates an access control table that maps users to one or more security domains. An access control table 1100 is illustrated to have a mapping of users to different security domains along with the model parameters. In some embodiments, the access control table 1100 can be generated based on an access control policy. In some embodiments, an access control policy can be a higher level document that illustrates various mappings in an organization that can be used to generate granular tables or sub-policies based on the needs of various departments of an organization. Another table such as a group table 1150 is illustrated to have a grouping user into various groups that can further be mapped to access control table 1100. Another user table 1100 can map users to a unique identifier such as a domain ID as illustrated in FIG. 11. Different tables can be used by different departments in an organization. For example, an infrastructure team can generate users with an ID, associate the users with various groups and generate an unique domain ID for each of the users based on the combination of security domains they are allowed to access, and a development team can have more granular table for fine tuning various adapters that maps the security domains to different model parameters as shown in table 1100. Depending on the complexity of the organization and the requirements, in some embodiments, a relational database can be established mapping various relationships to different tables such as a access control table 1100, group table 1150 and user table 1170. The access control table can also have other mappings such as the type of adapter that is used. As discussed earlier, many PEFT based adapters such as LoRA adapters can be used to fine-tune machine learning models. The access control table can also have mapping associated with the type of algorithm that can be used to fine-tune the models.FIG. 12 illustrates a computing system configured to implement the methods and techniques described herein, according to various embodiments. The computer system 1200 may be any of various types of devices, including, but not limited to, a personal computer system, desktop computer, laptop or notebook computer, mainframe computer system, handheld computer, workstation, network computer, a consumer device, application server, storage device, a peripheral device such as a switch, modem, router, etc., or in general any type of computing device.The mechanisms for implementing subject level privacy attack analysis for federated learning, as described herein, may be provided as a computer program product, or software, that may include a non-transitory, computer-readable storage medium having stored thereon instructions, which may be used to program a computer system (or other electronic devices) to perform a process according to various embodiments. A non-transitory, computer-readable storage medium may include any mechanism for storing information in a form (e.g., software, processing application) readable by a machine (e.g., a computer). The machine-readable storage medium may include, but is not limited to, magnetic storage medium (e.g., floppy diskette); optical storage medium (e.g., CD-ROM); magneto-optical storage medium; read only memory (ROM); random access memory (RAM); erasable programmable memory (e.g., EPROM and EEPROM); flash memory; electrical, or other types of medium suitable for storing program instructions. In addition, program instructions may be communicated using optical, acoustical or other form of propagated signal (e.g., carrier waves, infrared signals, digital signals, etc.)In various embodiments, computer system 1200 may include one or more processors 1270; each may include multiple cores, any of which may be single or multi-threaded. Each of the processors 1270 may include a hierarchy of caches, in various embodiments. The computer system 1200 may also include one or more persistent storage devices 1260 (e.g. optical storage, magnetic storage, hard drive, tape drive, solid state memory, etc.) and one or more system memories 1210 (e.g., one or more of cache, SRAM, DRAM, RDRAM, EDO RAM, DDR 10 RAM, SDRAM, Rambus RAM, EEPROM, etc.). Various embodiments may include fewer or additional components (e.g., video cards, audio cards, additional network interfaces, peripheral devices, a network interface such as an ATM interface, an Ethernet interface, a Frame Relay interface, etc.)The one or more processors 1270, the storage device(s) 1250, and the system memory 1010 may be coupled to the system interconnect 1240. One or more of the system memories 1010 may contain program instructions 1220. Program instructions 1220 may be executable to implement various features described above, including enforcing and / or auditing access controls to generative machine learning models and other techniques 1222 as discussed above, in some embodiments as described herein. Program instructions 1220 may be encoded in platform native binary, any interpreted language such as Java™ byte-code, or in any other language such as C / C++, Java™, etc. or in any combination thereof.In one embodiment, Interconnect 1290 may be configured to coordinate I / O traffic between processors 1270, storage devices 1270, and any peripheral devices in the device, including network interfaces 1250 or other peripheral interfaces, such as input / output devices 1280. In some embodiments, Interconnect 1290 may perform any necessary protocol, timing or other data transformations to convert data signals from one component (e.g., system memory 1210) into a format suitable for use by another component (e.g., processor 1270). In some embodiments, Interconnect 1290 may include support for devices attached through various types of peripheral buses, such as a variant of the Peripheral Component Interconnect (PCI) bus standard or the Universal Serial Bus (USB) standard, for example. In some embodiments, the function of Interconnect 1290 may be split into two or more separate components, such as a north bridge and a south bridge, for example. In addition, in some embodiments some or all of the functionality of Interconnect 1290, such as an interface to system memory 1210, may be incorporated directly into processor 1270.Network interface 1250 may be configured to allow data to be exchanged between computer system 1200 and other devices attached to a network, such as other computer systems, or between nodes of computer system 1200. In various embodiments, network interface 1250 may support communication via wired or wireless general data networks, such as any suitable type of Ethernet network, for example; via telecommunications / telephony networks such as analog voice networks or digital fiber communications networks; via storage area networks such as Fibre Channel SANs, or via any other suitable type of network and / or protocol.Input / output devices 1280 may, in some embodiments, include one or more display terminals, keyboards, keypads, touchpads, scanning devices, voice or optical recognition devices, or any other devices suitable for entering or retrieving data by one or more computer system 1200. Multiple input / output devices 1280 may be present in computer system 1200 or may be distributed on various nodes of computer system 1200. In some embodiments, similar input / output devices may be separate from computer system 1200 and may interact with one or more nodes of computer system 1200 through a wired or wireless connection, such as over network interface 1250.Those skilled in the art will appreciate that computer system 1200 is merely illustrative and is not intended to limit the scope of the methods for providing enhanced accountability and trust in distributed ledgers as described herein. In particular, the computer system and devices may include any combination of hardware or software that may perform the indicated functions, including computers, network devices, internet appliances, PDAs, wireless phones, pagers, etc. Computer system 1200 may also be connected to other devices that are not illustrated, or instead may operate as a stand-alone system. In addition, the functionality provided by the illustrated components may in some embodiments be combined in fewer components or distributed in additional components. Similarly, in some embodiments, the functionality of some of the illustrated components may not be provided and / or other additional functionality may be available.Those skilled in the art will also appreciate that, while various items are illustrated as being stored in memory or on storage while being used, these items or portions of them may be transferred between memory and other storage devices for purposes of memory management and data integrity. Alternatively, in other embodiments some or all of the software components may execute in memory on another device and communicate with the illustrated computer system via inter-computer communication. Some or all of the system components or data structures may also be stored (e.g., as instructions or structured data) on a computer-accessible medium or a portable article to be read by an appropriate drive, various examples of which are described above. In some embodiments, instructions stored on a computer-accessible medium separate from computer system 1200 may be transmitted to computer system 1200 via transmission media or signals such as electrical, electromagnetic, or digital signals, conveyed via a communication medium such as a network and / or a wireless link. Various embodiments may further include receiving, sending or storing instructions and / or data implemented in accordance with the foregoing description upon a computer-accessible medium. Accordingly, the present invention may be practiced with other computer system configurations.Although the embodiments above have been described in considerable detail, numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
Claims
1. A system, comprising:at least one processor;a memory, comprising program instructions that when executed by the at least one processor cause the at least one processor to:cause a generative machine learning model to generate respective responses to different submissions of a same inference request associated with different users, wherein individual ones of the different users have access to one or more different security domains of a plurality of security domains supported by the generative machine learning model;generate a security enforcement metric for the generative machine learning model for one or more of the plurality of security domains based, at least in part, on a difference in relevance scores of the respective responses to the different submissions of the same inference request determined associated with the different users.
2. The system of claim 1, wherein the difference in relevance scores of the respective responses is used to generate a utility gap index that measures how distinctly the respective responses impact the utility perceived by the different users.
3. The system of claim 1, wherein the difference in relevance scores of the respective responses is used to generate a domain distinguishability index that measures if the correct security domains is used based at least in part on the respective responses.
4. The system of claim 1, wherein the difference in relevance scores of the respective responses is used to generate a metric that is compared with a threshold to indicate success or failure of enforcement with respect to the plurality of security domains.
5. The system of claim 1, wherein the difference in relevance score of responses generated by the generative machine learning model is expected to be higher when a response is for a user that has access to a security domain that is an active domain, compared to another response for another user that has access to a security domain that is not an active domain.
6. The system of claim 1, wherein the difference in relevance scores of the respective responses for one or more users generated by the generative machine learning model that uses one or more adapters mapped to one or more security domains is based at least in part on an access control table that comprises a mapping of the one or more users to the one or more security domains.
7. The system of claim 6, wherein the difference in score of responses generated by the generative machine learning model is measured for inference requests performed by an auditor who has superuser privileges to select the one or more different security domains from the access control table.
8. A computer-implemented method, comprising:causing a generative machine learning model to generate respective responses to different submissions of a same inference request associated with different users, wherein individual ones of the different users have access to one or more different security domains of a plurality of security domains supported by the generative machine learning model;generating a security enforcement metric for the generative machine learning model for one or more of the plurality of security domains based, at least in part, on a difference in relevance scores of the respective responses to the different submissions of the same inference request determined associated with the different users.
9. The method of claim 8, wherein the difference in relevance scores of the respective responses is used to generate a utility gap index that measures how distinctly the respective responses impact the utility perceived by the different users.
10. The method of claim 8, wherein the difference in relevance scores of the respective responses is used to generate a domain distinguishability index that measures if the correct security domains is used based at least in part on the respective responses.
11. The method of claim 8, wherein the difference in relevance scores of the respective responses is used to generate a metric that is compared with a threshold to indicate success or failure of enforcement with respect to the plurality of security domains.
12. The method of claim 8, wherein the difference in relevance score of responses generated by the generative machine learning model is expected to be higher when a response is for a user that has access to a security domain that is an active domain, compared to another response for another user that has access to a security domain that is not an active domain.
13. The method of claim 8, wherein the difference in relevance scores of the respective responses for one or more users generated by the generative machine learning model that uses one or more adapters mapped to one or more security domains is based at least in part on an access control table that comprises a mapping of the one or more users to the one or more security domains.
14. The method of claim 13, wherein the difference in score of responses generated by the generative machine learning model is measured for inference requests performed by an auditor who has superuser privileges to select the one or more different security domains from the access control table.
15. One or more non-transitory, computer-readable storage media, storing program instructions that when executed on or across one or more computing devices, cause the one or more computing devices to implement:causing a generative machine learning model to generate respective responses to different submissions of a same inference request associated with different users, wherein individual ones of the different users have access to one or more different security domains of a plurality of security domains supported by the generative machine learning model;generating a security enforcement metric for the generative machine learning model for one or more of the plurality of security domains based, at least in part, on a difference in relevance scores of the respective responses to the different submissions of the same inference request determined associated with the different users.
16. The one or more non-transitory computer-readable storage media of claim 15, wherein the difference in relevance scores of the respective responses is used to generate a utility gap index that measures how distinctly the respective responses impact the utility perceived by the different users.
17. The one or more non-transitory computer-readable storage media of claim 15, wherein the difference in relevance scores of the respective responses is used to generate a domain distinguishability index that measures if the correct security domains is used based at least in part on the respective responses.
18. The one or more non-transitory computer-readable storage media of claim 15, wherein the difference in relevance scores of the respective responses is used to generate a metric that is compared with a threshold to indicate success or failure of enforcement with respect to the plurality of security domains.
19. The one or more non-transitory computer-readable storage media of claim 15, wherein the difference in relevance score of responses generated by the generative machine learning model is expected to be higher when a response is for a user that has access to a security domain that is an active domain, compared to another response for another user that has access to a security domain that is not an active domain.
20. The one or more non-transitory computer-readable storage media of claim 19, wherein the difference in score of responses generated by the generative machine learning model is measured for inference requests performed by an auditor who has superuser privileges to select the one or more different security domains from the access control table.
