IP Library Granted Patent US 11,501,081
Granted Patent B1
US 11,501,081 · App. 16/731,304 · Granted Nov 15, 2022

Methods, mediums, and systems for providing a model for an end-user device

Inventors: Prince Gill (Menlo Park, CA); Honglei Liu (Menlo Park, CA); Wenhai Yang (Menlo Park, CA); Kshitiz Malik (Menlo Park, CA); Nanshu Wang (Menlo Park, CA); David Reiss (Menlo Park, CA)
Assignee: Meta Platforms, Inc.
G06F40/30G06N5/04G06N20/00H04L51/52H04L63/0428
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 11,501,081
App. No.
16/731,304
Granted
Nov 15, 2022
Kind
B1
Abstract

Exemplary embodiments relate to methods, mediums, and systems for moving language models from a server to the client device. Such embodiments may be deployed in an environment where the server is not able to provide modeling services to the clients, such as an end-to-end encrypted (E2EE) environment. Several different techniques are described to address issues of size and complexity reduction, model architecture optimization, model training, battery power reduction, and latency reduction.

Claims (45)

1. A method comprising:

receiving an input at a first end-user device, the input comprising natural language from a communication associated with a second end-user device and transmitted over a communications service;

converting the input into a byte-level embedding;

providing the byte-level embedding to a natural language understanding model located on the first end-user device, the natural language understanding model configured to operate on byte-level embeddings;

generating an output from the natural language understanding model;

selecting a recommendation based on the output;

presenting the recommendation on an interface of the first end-user device;

receiving a selection of the recommendation; and

transmitting a message incorporating the recommendation to the second end-user device.

2. The method of claim 1 , wherein the communications service transmits the communication in an end-to-end encrypted environment in which content of the communication is not visible to an intermediate server of the communications service.

3. The method of claim 1 , wherein the natural language understanding model makes use of an operator, and further comprising selecting an operator compatible with the first end-user device from an operator library.

4. The method of claim 3 , wherein multiple operators are available in the operator library, and the selected operator is selected based on an effect of the selected operator on a latency in generating the output.

5. The method of claim 1 , wherein the natural language understanding model is trained on training data represented as integers, and further comprising converting the input to a sequence of integers.

6. The method of claim 1 , wherein a size of the input is constrained by a maximum value, the maximum value selected based on an effect of the size of the input on a latency in generating the output.

7. The method of claim 6 , wherein the maximum value is 200 characters or less.

8. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to:

receive an input at a first end-user device, the input comprising natural language from a communication associated with a second end-user device and transmitted over a communications service;

convert the input into a byte-level embedding;

provide the byte-level embedding to a natural language understanding model located on the first end-user device, the natural language understanding model configured to operate on byte-level embeddings;

generate an output from the natural language understanding model;

select a recommendation based on the output;

present the recommendation on an interface of the first end-user device;

receive a selection of the recommendation; and

transmit a message incorporating the recommendation to the second end-user device.

9. The medium of claim 8 , wherein the communications service transmits the communication in an end-to-end encrypted environment in which content of the communication is not visible to an intermediate server of the communications service.

10. The medium of claim 8 , wherein the natural language understanding model makes use of an operator, and the instructions, when executed by the processor, cause the processor to select an operator compatible with the first end-user device from an operator library.

11. The medium of claim 10 , wherein multiple operators are available in the operator library, and the selected operator is selected based on an effect of the selected operator on a latency in generating the output.

12. The medium of claim 8 , wherein the natural language understanding model is trained on training data represented as integers, and the instructions, when executed by the processor, cause the processor to convert the input to a sequence of integers.

13. The medium of claim 8 , wherein a size of the input is constrained by a maximum value, the maximum value selected based on an effect of the size of the input on a latency in generating the output.

14. The medium of claim 13 , wherein the maximum value is 200 characters or less.

15. An end-user device comprising:

a hardware interface configured to receive an input at a first end-user device, the input comprising natural language from a communication associated with a second end-user device and transmitted over a communications service;

a non-transitory device-readable medium configured to store a natural language understanding model;

a hardware processor configured to:

convert the input into a byte-level embedding;

provide the byte-level embedding to the natural language understanding model, the natural language understanding model configured to operate on byte-level embeddings;

generate an output from the natural language understanding model; and

select a recommendation based on the output;

a display configured to present the recommendation on an interface, wherein the processor is further configured to receive a selection of the recommendation;

a network transmitter configured to transmit a message incorporating the recommendation to the second end-user device.

16. The device of claim 15 , wherein the communications service transmits the communication in an end-to-end encrypted environment in which content of the communication is not visible to an intermediate server of the communications service.

17. The device of claim 15 , wherein the natural language understanding model makes use of an operator, and the hardware processor is configured to select an operator compatible with the first end-user device from an operator library.

18. The device of claim 17 , wherein multiple operators are available in the operator library, and the selected operator is selected based on an effect of the selected operator on a latency in generating the output.

19. The device of claim 15 , wherein the natural language understanding model is trained on training data represented as integers, and the hardware processor is configured to convert the input to a sequence of integers.

20. The device of claim 15 , wherein a size of the input is constrained by a maximum value, the maximum value selected based on an effect of the size of the input on a latency in generating the output.

Assignments (3)
CHANGE OF NAME Recorded May 3, 2022
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 059849/0161 →
CHANGE OF NAME Recorded Feb 9, 2022
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058981/0383 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 24, 2021
From: GILL, PRINCE; LIU, HONGLEI; YANG, WENHAI; MALIK, KSHITIZ; WANG, NANSHU; REISS, DAVID
To: FACEBOOK, INC.
Reel/Frame 057273/0423 →