Systems, methods, and non-transitory computer-readable media can generate layered training data for determining embeddings for entities that are accessible through the social networking system, wherein the layered training data includes layers of data that are organized by a hierarchy, and wherein each layer of data corresponds to entities of a same type. A respective embedding for each entity in a set of entities can be determined, wherein the embeddings are trained iteratively using each layer of data in the layered training data. One or more candidate entities that are related to a first entity can be determined based at least in part on the respective embeddings for the candidate entities and the first entity. At least a first candidate entity from the one or more candidate entities can be provided as a recommendation to a user that formed a connection with the first entity.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A computer-implemented method comprising: generating, by a social networking system, layered training data for determining embeddings for entities that are accessible through the social networking system, wherein the layered training data includes layers of data that are organized by a hierarchy, and wherein each layer of data corresponds to entities of a same type; determining, by the social networking system, a respective embedding for each entity in a set of entities, wherein the embeddings are trained iteratively using each layer of data in the layered training data, and wherein an embedding for an entity is a numerical representation of the entity; determining, by the social networking system, one or more candidate entities that are related to a first entity based at least in part on the respective embeddings for the candidate entities and the first entity; and providing, by the social networking system, at least a first candidate entity from the one or more candidate entities as a recommendation to a user that formed a connection with the first entity. 2. The computer-implemented method of claim 1, wherein generating the layered training data further comprises: generating, by the social networking system, a first layer of training data based at least in part on sequences of connections formed between users and entities of a first type; and generating, by the social networking system, a second layer of training data based at least in part on traces of nodes in a graph that each correspond to entities of a second type. 3. The computer-implemented method of claim 1, wherein generating the layered training data further comprises: determining, by the social networking system, session training data based at least in part on sequences of connections formed between users and entities of a first type; determining, by the social networking system, synthetic training data based at least in part on traces of nodes in a graph that each correspond to entities of the first type; and generating, by the social networking system, a first layer of training data based at least in part on a union of the session training data and the synthetic training data. 4. The computer-implemented method of claim 1, wherein generating the layered training data further comprises: determining, by the social networking system, the hierarchy of layers in the layered training data, wherein the layers are ranked based at least in part on their respective variance with layers having a lower variance being ranked higher in the hierarchy. 5. The computer-implemented method of claim 1, wherein determining the respective embedding for each entity in the set of entities further comprises: determining, by the social networking system, a first set of embeddings that correspond to entities of a first type based at least in part on a first layer in the layered training data; and determining, by the social networking system, a second set of embeddings that correspond to entities of a second type based at least in part on a second layer in the layered training data, wherein the first layer is ranked higher than the second layer. 6. The computer-implemented method of claim 5, wherein the first set of embeddings remain fixed while the second set of embeddings are determined. 7. The computer-implemented method of claim 5, wherein determining the first set of embeddings further comprises: training, by the social networking system, the first set of embeddings using at least one model based at least in part on a skip-gram negative down sampling technique. 8. The computer-implemented method of claim 1, wherein determining the one or more candidate entities that are related to the first entity further comprises: generating, by the social networking system, one or more clusters of entities, wherein the entities are clustered based at least in part on their respective embeddings; and identifying, by the social networking system, the one or more candidate entities from the clusters, wherein a respective distance measurement between a candidate entity and the first entity satisfies a threshold distance. 9. The computer-implemented method of claim 1, wherein each candidate entity is of a same type as the first entity. 10. The computer-implemented method of claim 1, wherein a respective geographic centroid associated with each candidate entity corresponds to a geographic centroid associated with the first entity. 11. A system comprising: at least one processor; and a memory storing instructions that, when executed by the at least one processor, cause the system to perform: generating layered training data for determining embeddings for entities that are accessible through the social networking system, wherein the layered training data includes layers of data that are organized by a hierarchy, and wherein each layer of data corresponds to entities of a same type; determining a respective embedding for each entity in a set of entities, wherein the embeddings are trained iteratively using each layer of data in the layered training data, and wherein an embedding for an entity is a numerical representation of the entity; determining one or more candidate entities that are related to a first entity based at least in part on the respective embeddings for the candidate entities and the first entity; and providing at least a first candidate entity from the one or more candidate entities as a recommendation to a user that formed a connection with the first entity. 12. The system of claim 11, wherein generating the layered training data further causes the system to perform: generating a first layer of training data based at least in part on sequences of connections formed between users and entities of a first type; and generating a second layer of training data based at least in part on traces of nodes in a graph that each correspond to entities of a second type. 13. The system of claim 11, wherein generating the layered training data further causes the system to perform: determining session training data based at least in part on sequences of connections formed between users and entities of a first type; determining synthetic training data based at least in part on traces of nodes in a graph that each correspond to entities of the first type; and generating a first layer of training data based at least in part on a union of the session training data and the synthetic training data. 14. The system of claim 11, wherein generating the layered training data further causes the system to perform: determining the hierarchy of layers in the layered training data, wherein the layers are ranked based at least in part on their respective variance with layers having a lower variance being ranked higher in the hierarchy. 15. The system of claim 11, wherein determining the respective embedding for each entity in the set of entities further causes the system to perform: determining a first set of embeddings that correspond to entities of a first type based at least in part on a first layer in the layered training data; and determining a second set of embeddings that correspond to entities of a second type based at least in part on a second layer in the layered training data, wherein the first layer is ranked higher than the second layer. 16. A non-transitory computer-readable storage medium including instructions that, when executed by at least one processor of a computing system, cause the computing system to perform a method comprising: generating layered training data for determining embeddings for entities that are accessible through the social networking system, wherein the layered training data includes layers of data that are organized by a hierarchy, and wherein each layer of data corresponds to entities of a same type; determining a respective embedding for each entity in a set of entities, wherein the embeddings are trained iteratively using each layer of data in the layered training data, and wherein an embedding for an entity is a numerical representation of the entity; determining one or more candidate entities that are related to a first entity based at least in part on the respective embeddings for the candidate entities and the first entity; and providing at least a first candidate entity from the one or more candidate entities as a recommendation to a user that formed a connection with the first entity. 17. The non-transitory computer-readable storage medium of claim 16, wherein generating the layered training data further causes the computing system to perform: generating a first layer of training data based at least in part on sequences of connections formed between users and entities of a first type; and generating a second layer of training data based at least in part on traces of nodes in a graph that each correspond to entities of a second type. 18. The non-transitory computer-readable storage medium of claim 16, wherein generating the layered training data further causes the computing system to perform: determining session training data based at least in part on sequences of connections formed between users and entities of a first type; determining synthetic training data based at least in part on traces of nodes in a graph that each correspond to entities of the first type; and generating a first layer of training data based at least in part on a union of the session training data and the synthetic training data. 19. The non-transitory computer-readable storage medium of claim 16, wherein generating the layered training data further causes the computing system to perform: determining the hierarchy of layers in the layered training data, wherein the layers are ranked based at least in part on their respective variance with layers having a lower variance being ranked higher in the hierarchy. 20. The non-transitory computer-readable storage medium of claim 16, wherein determining the respective embedding for each entity in the set of entities further causes the computing system to perform: determining a first set of embeddings that correspond to entities of a first type based at least in part on a first layer in the layered training data; and determining a second set of embeddings that correspond to entities of a second type based at least in part on a second layer in the layered training data, wherein the first layer is ranked higher than the second layer.