Distance-based pairs generation for training metric neural networks
AssigneeSmart Engines Service, LLC
InventorsIvan Vladimirovich KONDRASHEV, Alexander Vladimirovich SHESHKUS, Vladimir Viktorovich ARLAZAROV
Life of this patent
Estimating the term…
Abstract
Distance-based pairs generation for training metric neural networks. In an embodiment, a training batch is generated by generating a vector of distances between pairs of elements of different classes, sorting the vector, splitting the vector into blocks, assigning a coefficient to each block, and selecting pairs from the blocks based on the assigned coefficients. The training batch can then be used to train a metric neural network.
Claims9
A method comprising using at least one hardware processor to, over one or more iterations:
- generate a training batch comprising a plurality of pairs of elements from source data, wherein each pair of elements in at least a subset of the plurality of pairs of elements comprises two elements of different classes in a plurality of classes, and wherein generating the training batch comprises
- generating a vector of distances between pairs of elements of potentially different classes in the source data,
- sorting the vector of distances,
- splitting the vector of distances into a plurality of blocks,
- assigning a coefficient to each of the plurality of blocks, and
- selecting pairs from the plurality of blocks based on the assigned coefficients;
- and
- train a metric neural network using the training batch.
A system comprising:
- at least one hardware processor;
- and
- one or more software modules that are configured to, when executed by the at least one hardware processor,
- generate a training batch comprising a plurality of pairs of elements from source data, wherein each pair of elements in at least a subset of the plurality of pairs of elements comprises two elements of different classes in a plurality of classes, and wherein generating the training batch comprises
- generating a vector of distances between pairs of elements of potentially different classes in the source data,
- sorting the vector of distances,
- splitting the vector of distances into a plurality of blocks,
- assigning a coefficient to each of the plurality of blocks, and
- selecting pairs from the plurality of blocks based on the assigned coefficients, and
- train a metric neural network using the training batch.
A non-transitory computer-readable medium having instructions stored thereon, wherein the instructions, when executed by a processor, cause the processor to:
- generate a training batch comprising a plurality of pairs of elements from source data, wherein each pair of elements in at least a subset of the plurality of pairs of elements comprises two elements of different classes in a plurality of classes, and wherein generating the training batch comprises
- generating a vector of distances between pairs of elements of potentially different classes in the source data,
- sorting the vector of distances,
- splitting the vector of distances into a plurality of blocks,
- assigning a coefficient to each of the plurality of blocks, and
- selecting pairs from the plurality of blocks based on the assigned coefficients;
- and
- train a metric neural network using the training batch.
Dependencies are inferred from the claim text.