IP Library Granted Patent US 12,229,265
Granted Patent B1
US 12,229,265 · App. 18/792,444 · Granted Feb 18, 2025

Generative AI model protection using sidecars

Inventors: Kenneth Yeung (Ottawa, CA); Jason Martin (Beaverton, OR)
Assignee: HiddenLayer, Inc.
G06F21/566G06F2221/034
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,229,265
App. No.
18/792,444
Granted
Feb 18, 2025
Kind
B1
Abstract

Data characterizing a prompt for ingestion by a first generative AI model is received. This received data is input into a second GenAI model to result in a second output. The first GenAI model is a different (e.g., fine-tuned, unrelated aligned model, etc.) version of the second GenAI model. When the second output indicates that guardrails associated with the second GenAI model have been triggered, one or more remediation actions are initiated. Related apparatus, systems, techniques and articles are also described.

Claims (60)

1. A computer-implemented method comprising:

receiving, from a requestor, a prompt for ingestion by a first generative artificial intelligence (GenAI) model, the first GenAI model executing in a model computing environment;

redirecting, by a proxy executing in the model environment, the prompt prior to ingestion by the first GenAI model so as to initially be input into a second GenAI model to receive a second output, the first GenAI model being different than the second GenAI model, the second GenAI model executing in a monitoring computing environment separate and distinct from the model computing environment;

determining whether the second output indicates that guardrails associated with the second GenAI model have been triggered;

initiating one or more remediation actions in response to the determination that the second output indicates that the guardrails associated with the second GenAI model have been triggered, the one or more remediation actions preventing the prompt as received from being ingested by the first GenAI model; and

inputting the prompt into the first GenAI model in response to the determination that the second output indicates that guardrails associated with the second GenAI model have not been triggered to result in a first output and returning the first output to the requestor.

2. The method of claim 1 , wherein the data is received from a proxy intercepting inputs to the first GenAI model, the proxy being executed in a model environment of the first GenAI model.

3. The method of claim 1 , wherein the initiated one or more remediation actions comprise:

returning the second output to the requestor.

4. The method of claim 1 , wherein the initiated one or more remediation actions comprise:

preventing the prompt from being input into the first GenAI model.

5. The method of claim 1 , wherein the initiated one or more remediation actions comprise:

flagging the prompt as being malicious for quality assurance.

6. The method of claim 1 , wherein the initiated one or more remediation actions comprise:

modifying the prompt to be benign to result in a modified prompt;

inputting the modified prompt into the first GenAI model to generate a first output; and

returning the first output to the requestor.

7. The method of claim 1 , wherein the initiated one or more remediation actions comprise:

blocking an internet protocol (IP) address of the requestor.

8. The method of claim 7 , wherein the initiated one or more remediation actions further comprise:

blocking one or more of a media access control (MAC) address or a session identifier of the requester.

9. The method of claim 1 , wherein the initiated one or more remediation actions comprise:

causing subsequent prompts from an entity identified by one or more of an internet protocol (IP) address, a media access control (MAC) address, or a session identifier of the requester of the prompt to be modified prior to input into the first GenAI model.

10. The method of claim 1 , wherein both of the first GenAI model and the second GenAI model comprise a large language model, and the first GenAI model is derived from the second GenAI model.

11. The method of claim 10 , wherein the first GenAI model is a fine-tuned version of the second GenAI model.

12. The method of claim 1 , wherein the first GenAI model is an unaligned model and the second GenAI model is an aligned, unrelated model.

13. A computer-implemented method comprising:

receiving, from a requestor, data characterizing a prompt for ingestion by a first generative artificial intelligence (GenAI) model;

redirecting the received data prior to ingestion by the first GenAI model so as to initially be input into a second GenAI model to result in a second output, the first GenAI model being different than the second GenAI model;

determining whether the second output indicates that guardrails associated with the second GenAI model have been triggered;

initiating one or more remediation actions when is determined that the second output indicates that the guardrails associated with the second GenAI model have been triggered, the one or more remediation actions preventing the prompt as received from being ingested by the first GenAI model; and

inputting the received data into the first GenAI model when it is determined that the second output indicates that guardrails associated with the second GenAI model have not been triggered to result in a first output and returning the first output to the requestor.

14. The method of claim 13 , wherein the data is received from a proxy intercepting inputs to the first GenAI model, the proxy being executed in a model environment of the first GenAI model, the second GenAI model being executed in a monitoring environment separate and distinct from the model environment.

15. The method of claim 13 , wherein the initiated one or more remediation actions comprise:

returning the second output to the requestor.

16. The method of claim 13 , wherein the initiated one or more remediation actions comprise:

preventing the prompt from being input into the first GenAI model.

17. The method of claim 13 , wherein the initiated one or more remediation actions comprise:

flagging the prompt as being malicious for quality assurance.

18. The method of claim 13 , wherein the initiated one or more remediation actions comprise:

modifying the prompt to be benign.

19. The method of claim 13 , wherein the initiated one or more remediation actions comprise:

blocking an internet protocol (IP) address of the requestor.

20. The method of claim 19 , wherein the initiated one or more remediation actions further comprise:

blocking one or more of a media access control (MAC) address or a session identifier of the requester.

21. The method of claim 13 , wherein the initiated one or more remediation actions comprise:

causing subsequent prompts from an entity identified by one or more of an internet protocol (IP) address, a media access control (MAC) address, or a session identifier of the requester of the prompt to be modified prior to input into the first GenAI model.

22. The method of claim 13 , wherein both of the first GenAI model and the second GenAI model comprise a large language model.

23. The method of claim 13 , wherein the first GenAI model is a fine-tuned version of the second GenAI model.

24. The method of claim 13 , wherein the first GenAI model is an unaligned model and the second GenAI model is an aligned, unrelated model.

25. A computer-implemented method comprising:

receiving, from a proxy intercepting inputs to a first generative artificial intelligence (GenAI) model executing in a model environment, data from a requestor characterizing a prompt for ingestion by the first GenAI model;

inputting the received data into the first GenAI model to result in a first output;

inputting the received data into a second GenAI model to result in a second output, the first GenAI model being different than the second GenAI model;

determining whether the second output indicates that guardrails associated with the second GenAI model have been triggered;

returning the first output to the requestor when it is determined that the second output indicates that guardrails associated with the second GenAI model have not been triggered; and

returning the second output to the requestor when it is determined that the second output indicates that guardrails associated with the second GenAI model have been triggered.

26. The method of claim 25 , wherein both of the first GenAI model and the second GenAI model comprise a large language model.

27. The method of claim 26 , wherein the first GenAI model is a fine-tuned version of the second GenAI model.

28. The method of claim 25 , wherein the first GenAI model is an unaligned model and the second GenAI model is an aligned, unrelated model.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 6, 2024
From: YEUNG, KENNETH; MARTIN, JASON
To: HIDDENLAYER, INC.
Reel/Frame 068201/0229 →
References Cited (111)
US 7802298B1 · Hong et al. · 2010 [cited by applicant]
US 9356941B1 · Kislyuk et al. · 2016 [cited by applicant]
US 9516053B1 · Muddu et al. · 2016 [cited by applicant]
US 10193902B1 · Caspi et al. · 2019 [cited by applicant]
US 10210036B2 · Iyer et al. · 2019 [cited by applicant]
US 10462168B2 · Shibahara et al. · 2019 [cited by applicant]
US 10637884B2 · Apple et al. · 2020 [cited by applicant]
US 10673880B1 · Pratt et al. · 2020 [cited by applicant]
US 10764313B1 · Mushtaq · 2020 [cited by applicant]
US 10803188B1 · Rajput et al. · 2020 [cited by applicant]
US 11310270B1 · Weber et al. · 2022 [cited by applicant]
US 11483327B2 · Hen et al. · 2022 [cited by applicant]
US 11501101B1 · Ganesan et al. · 2022 [cited by applicant]
US 11551137B1 · Echauz et al. · 2023 [cited by applicant]
US 11601468B2 · Angel et al. · 2023 [cited by applicant]
US 11710067B2 · Harris et al. · 2023 [cited by applicant]
US 11762998B2 · Kuta et al. · 2023 [cited by applicant]
US 11777957B2 · Chen et al. · 2023 [cited by applicant]
US 11875130B1 · Bosnjakovic et al. · 2024 [cited by applicant]
US 11893111B2 · Sai et al. · 2024 [cited by applicant]
US 11893358B1 · Lakshmikanthan et al. · 2024 [cited by applicant]
US 11930039B1 · Geethakumar et al. · 2024 [cited by applicant]
US 11960514B1 · Taylert et al. · 2024 [cited by applicant]
US 11962546B1 · Hattangady et al. · 2024 [cited by applicant]
US 11971914B1 · Watson et al. · 2024 [cited by applicant]
US 11972333B1 · Horesh · 2024 [cited by examiner]
US 11978437B1 · Thattai · 2024 [cited by examiner]
US 11995180B1 · Cappel et al. · 2024 [cited by applicant]
US 11997059B1 · Su et al. · 2024 [cited by applicant]
US 12099781B1 · Malladi · 2024 [cited by examiner]
US 12124592B1 · O'Hern · 2024 [cited by examiner]
US 20100082811A1 · Van Der Merwe · 2010 [cited by applicant]
US 20140033307A1 · Schmidtler · 2014 [cited by applicant]
US 20140157415A1 · Abercrombie et al. · 2014 [cited by applicant]
US 20150074392A1 · Boivie et al. · 2015 [cited by applicant]
US 20160344770A1 · Verma et al. · 2016 [cited by applicant]
US 20170154021A1 · Vidhani et al. · 2017 [cited by applicant]
US 20170251006A1 · LaRosa et al. · 2017 [cited by applicant]
US 20170331841A1 · Hu et al. · 2017 [cited by applicant]
US 20180018590A1 · Szeto et al. · 2018 [cited by applicant]
US 20180063190A1 · Wright et al. · 2018 [cited by applicant]
US 20180205734A1 · Wing et al. · 2018 [cited by applicant]
US 20180219888A1 · Apostolopoulos · 2018 [cited by applicant]
US 20180324193A1 · Ronen et al. · 2018 [cited by applicant]
US 20190050564A1 · Pogorelik et al. · 2019 [cited by applicant]
US 20190238572A1 · Manadhata et al. · 2019 [cited by applicant]
US 20190260784A1 · Stockdale et al. · 2019 [cited by applicant]
US 20190311118A1 · Grafi et al. · 2019 [cited by applicant]
US 20190392176A1 · Taron et al. · 2019 [cited by applicant]
US 20200019721A1 · Shanmugam et al. · 2020 [cited by applicant]
US 20200076771A1 · Maier et al. · 2020 [cited by applicant]
US 20200175094A1 · Palmer et al. · 2020 [cited by applicant]
US 20200219009A1 · Dao et al. · 2020 [cited by applicant]
US 20200233979A1 · Maraghoosh et al. · 2020 [cited by applicant]
US 20200285737A1 · Kraus et al. · 2020 [cited by applicant]
US 20200409323A1 · Spalt et al. · 2020 [cited by applicant]
US 20210110062A1 · Oliner et al. · 2021 [cited by applicant]
US 20210141897A1 · Seifert et al. · 2021 [cited by applicant]
US 20210209464A1 · Bala et al. · 2021 [cited by applicant]
US 20210224425A1 · Nasr-Azadani et al. · 2021 [cited by applicant]
US 20210319098A1 · Pogorelik et al. · 2021 [cited by applicant]
US 20210319784A1 · Le Roux et al. · 2021 [cited by applicant]
US 20210357508A1 · Elovici et al. · 2021 [cited by applicant]
US 20210374247A1 · Sultana et al. · 2021 [cited by applicant]
US 20210407051A1 · Pardeshi et al. · 2021 [cited by applicant]
US 20220030009A1 · Hasan · 2022 [cited by applicant]
US 20220058444A1 · Olabiyi et al. · 2022 [cited by applicant]
US 20220070195A1 · Sern et al. · 2022 [cited by applicant]
US 20220083658A1 · Shah et al. · 2022 [cited by applicant]
US 20220114399A1 · Castiglione et al. · 2022 [cited by applicant]
US 20220147597A1 · Bhide et al. · 2022 [cited by applicant]
US 20220164444A1 · Prudkovskij et al. · 2022 [cited by applicant]
US 20220166795A1 · Simioni et al. · 2022 [cited by applicant]
US 20220182410A1 · Tupsamudre et al. · 2022 [cited by applicant]
US 20220253464A1 · Sloane et al. · 2022 [cited by applicant]
US 20220269796A1 · Chase et al. · 2022 [cited by applicant]
US 20220309179A1 · Payne et al. · 2022 [cited by applicant]
US 20230008037A1 · Venugopal et al. · 2023 [cited by applicant]
US 20230027149A1 · Kuan et al. · 2023 [cited by applicant]
US 20230049479A1 · Mozo Velasco et al. · 2023 [cited by applicant]
US 20230109426A1 · Hashimoto et al. · 2023 [cited by applicant]
US 20230148116A1 · Stokes et al. · 2023 [cited by applicant]
US 20230169397A1 · Smith et al. · 2023 [cited by applicant]
US 20230185912A1 · Sinn et al. · 2023 [cited by applicant]
US 20230185915A1 · Rao et al. · 2023 [cited by applicant]
US 20230208869A1 · Bisht et al. · 2023 [cited by applicant]
US 20230229960A1 · Zhu et al. · 2023 [cited by applicant]
US 20230252178A1 · Ruelke et al. · 2023 [cited by applicant]
US 20230259787A1 · David et al. · 2023 [cited by applicant]
US 20230269263A1 · Yarabolu · 2023 [cited by applicant]
US 20230274003A1 · Liu et al. · 2023 [cited by applicant]
US 20230289604A1 · Chan et al. · 2023 [cited by applicant]
US 20230315856A1 · Lee · 2023 [cited by examiner]
US 20230351143A1 · Kutt et al. · 2023 [cited by applicant]
US 20230359903A1 · Cefalu · 2023 [cited by examiner]
US 20230385085A1 · Singh · 2023 [cited by applicant]
US 20230388324A1 · Thompson · 2023 [cited by applicant]
US 20240022585A1 · Burns et al. · 2024 [cited by applicant]
US 20240039948A1 · Koc et al. · 2024 [cited by applicant]
US 20240045959A1 · Marson et al. · 2024 [cited by applicant]
US 20240054233A1 · Ohayon · 2024 [cited by examiner]
US 20240078337A1 · Kamyshenko et al. · 2024 [cited by applicant]
US 20240080333A1 · Burns et al. · 2024 [cited by applicant]
US 20240126611A1 · Phanishayee et al. · 2024 [cited by applicant]
US 20240160902A1 · Padgett et al. · 2024 [cited by applicant]
US 20240289628A1 · Parmar et al. · 2024 [cited by applicant]
US 20240296315A1 · Singh et al. · 2024 [cited by applicant]
US 20240386103A1 · Clement et al. · 2024 [cited by applicant]
WO WO2024166446A1 · 2024 [cited by examiner]
Morozov et al., 2019, “Unsupervised Neural Quantization for Compressed-Domain Similarity Search,” International Conference on Computer Vision (ICCV) 2019 (11 pages). [cited by applicant]
Rijthoven et al., 2021, “HookNet: Multi-resolution convulational neural networks for semantic segmentation in histopathology whole-slide images,” Medical Imange Analysis 68:1-10. [cited by applicant]
Cited By (15)
US 12,293,277 US 12,328,331 US 12,475,215 US 12,505,648 US 12,549,598 US 12,554,855 US 12,572,777 US 12,596,839 US 12,608,861 US 12,632,545 US 12,657,297 US 12,717,909 US 12,724,883 US 12,724,894 US 12,726,509