Mutual privacy-preserving transfer of information
View Patent ↗Disclosed are various embodiments for a mutual privacy-preserving transfer of information using natural language and oblivious transfer (OT) protocols. A receiver entity can send a response request with prompts and corresponding keys to a sender entity. The sender entity can generate the responses using an output of large language models. Before sending the responses to the receiver entity, the sender entity encrypts the responses. The receiver entity can only decrypt the response that is encrypted using the public key associated with the receiver entity.
1 . A method, comprising:
receiving a response request from a computing device, the response request comprising a plurality of prompts and a corresponding plurality of keys;
reformatting the plurality of prompts into a plurality of reformatted prompts, individual ones of the plurality of reformatted prompts being in a format compatible with a database comprising data for responding to individual ones of the plurality of prompts;
generating a plurality of responses to the response request using a large language model (LLM) and data retrieved from the database using the plurality of reformatted prompts;
generating a plurality of encrypted responses by encrypting individual responses of the plurality of responses using a respective key of the corresponding plurality of keys; and
transmitting the plurality of encrypted responses to the computing device.
2 . The method of claim 1 , wherein an exchange of the response request and the plurality of encrypted responses is based at least in part on an oblivious transfer (OT) protocol.
3 . The method of claim 2 , wherein one of the plurality of prompts comprises a chosen prompt associated with an OT receiver entity, and the chosen prompt is associated with a particular key of the corresponding plurality of keys, and the chosen prompt is encrypted using the particular key.
4 . The method of claim 3 , wherein the particular key is a public key of a key-pair, and a private key of the key-pair being controlled by the OT receiver entity.
5 . The method of claim 2 , wherein the OT protocol comprises a naor-pinkas protocol, OT extension protocol, OT with paillier cryptosystem protocol, or multiplicative homomorphic cryptosystem-based OT protocol.
6 . The method of claim 1 , wherein reformatting the plurality of prompts further comprises applying the plurality of prompts to the LLM, a first output of the LLM comprising executable code for obtaining the data from the database based at least in part on the plurality of prompts.
7 . The method of claim 6 , further comprising:
executing the executable code to obtain the data from the database based at least in part on the plurality of prompts; and
applying the data from the database and formatting parameters to the LLM, a second output of the LLM comprising the plurality of responses.
8 . A system, comprising:
a first computing device comprising a processor and a memory; and
machine-readable instructions stored in the memory that, when executed by the processor, cause the first computing device to at least:
receive a response request from a second computing device, the response request comprising a plurality of prompts and a corresponding plurality of keys;
reformat the plurality of prompts into a plurality of reformatted prompts, individual ones of the plurality of reformatted prompts being in a format compatible with a database comprising data for responding to individual ones of the plurality of prompts;
generate a plurality of responses to the response request using a large language model (LLM) and data retrieved from the database using the plurality of reformatted prompts;
generate a plurality of encrypted responses by encrypting individual responses of the plurality of responses using a respective key of the corresponding plurality of keys; and
transmit the plurality of encrypted responses to the second computing device.
9 . The system of claim 8 , wherein an exchange of the response request and the plurality of encrypted responses is based at least in part on an oblivious transfer (OT) protocol.
10 . The system of claim 9 , wherein one of the plurality of prompts comprises a chosen prompt associated with an OT receiver entity, and the chosen prompt is associated with a particular key of the corresponding plurality of keys, and the chosen prompt is encrypted using the particular key.
11 . The system of claim 10 , wherein the particular key is a public key of a key-pair, and a private key of the key-pair being controlled by the OT receiver entity.
12 . The system of claim 9 , wherein the OT protocol comprises a naor-pinkas protocol, OT extension protocol, OT with paillier cryptosystem protocol, or multiplicative homomorphic cryptosystem-based OT protocol.
13 . The system of claim 8 , wherein the machine-readable instructions further cause the first computing device to at least apply the plurality of prompts to the LLM, a first output of the LLM comprising executable code for obtaining the data from the database based at least in part on the plurality of prompts, the executable code corresponding to the plurality of reformatted prompts.
14 . A non-transitory, computer-readable medium, comprising machine-readable instructions that, when executed by a processor of a first computing device, cause the first computing device to at least:
receive a response request from a second computing device, the response request comprising a plurality of prompts and a corresponding plurality of keys;
reformat the plurality of prompts into a plurality of reformatted prompts, individual ones of the plurality of reformatted prompts being in a format compatible with a database comprising data for responding to individual ones of the plurality of prompts;
generate a plurality of responses to the response request using a large language model (LLM) and data retrieved from the database using the plurality of reformatted prompts;
generate a plurality of encrypted responses by encrypting individual responses of the plurality of responses using a respective key of the corresponding plurality of keys; and
transmit the plurality of encrypted responses to the second computing device.
15 . The non-transitory, computer-readable medium of claim 14 , wherein an exchange of the response request and the plurality of encrypted responses is based at least in part on an oblivious transfer (OT) protocol.
16 . The non-transitory, computer-readable medium of claim 15 , wherein one of the plurality of prompts comprises a chosen prompt associated with an OT receiver entity, and the chosen prompt is associated with a particular key of the corresponding plurality of keys, and the chosen prompt is encrypted using the particular key.
17 . The non-transitory, computer-readable medium of claim 16 , wherein the particular key is a public key of a key-pair, and a private key of the key-pair being controlled by the OT receiver entity.
18 . The non-transitory, computer-readable medium of claim 15 , wherein the OT protocol comprises a naor-pinkas protocol, OT extension protocol, OT with paillier cryptosystem protocol, or multiplicative homomorphic cryptosystem-based OT protocol.
19 . The non-transitory, computer-readable medium of claim 14 , wherein the machine-readable instructions, when executed by the processor, further cause the computing device to at least: apply the plurality of prompts to the LLM, a first output of the LLM comprising executable code for obtaining the data from the database based at least in part on the plurality of prompts, the executable code corresponding to the plurality of reformatted prompts.