The compression system trains a machine-learned encoder and decoder through an autoencoder architecture. The encoder can be deployed by a sender system to encode content for transmission to a receiver system, and the decoder can be deployed by the receiver system to decode the encoded content and reconstruct the original content. The encoder is coupled to receive content and output a tensor as a compact representation of the content. The content may be, for example, images, videos, or text. The decoder is coupled to receive a tensor representing content and output a reconstructed version of the content. The compression system trains the autoencoder with a discriminator to reduce compression artifacts in the reconstructed content. The discriminator is coupled to receive one or more input content, and output a discrimination prediction that discriminates whether the input content is the original or reconstructed version of the content.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A method for training an encoder and a decoder, the method comprising: obtaining a set of training content; and for a compression model including an encoding portion, a decoding portion, and a discriminator portion: repeatedly backpropagating one or more error terms obtained from a loss function to update a set of parameters of the encoding portion and the decoding portion, wherein the loss function includes: a reconstruction loss indicating a dissimilarity between the training content and reconstructed content, wherein the reconstructed content is generated by applying the encoding portion to the training content to generate tensors for the training content, and applying the decoding portion to the tensors to generate the reconstructed content, and a discriminator loss indicating a cost of generating incorrect discrimination predictions generated by applying the discriminator portion to input content, wherein the input content includes the training content and the reconstructed content, and wherein the discrimination predictions indicate likelihoods of whether the input content is a reconstructed version of the training content; and stopping the backpropagation after the loss function satisfies a predetermined criteria. 2. The method of claim 1, wherein the discriminator portion is coupled to receive each of the training content and the reconstructed content individually as the input content, and wherein the discrimination predictions indicate likelihoods that the input content is the reconstructed version of the training content. 3. The method of claim 1, wherein the discriminator portion is coupled to receive ordered pairs of the training content and the corresponding reconstructed content as the input content, and wherein the discrimination predictions indicate which content in the ordered pairs is the reconstructed version of the training content. 4. The method of claim 3, wherein the ordered pairs of input content include a first pair having first training content as a first element and first reconstructed content as a second element, and a second pair having second reconstructed content as the first element and second training content as the second element. 5. The method of claim 1, wherein the discriminator portion includes a neural network model, and the discrimination predictions are generated by combining outputs from one or more intermediate layers of the neural network model. 6. The method of claim 1, wherein the loss function further includes: a codelength regularization loss indicating a cost of code lengths for compressed codes generated by applying an entropy coding technique to the tensors, wherein the codelength regularization loss is determined based on magnitudes of elements of the tensors for the training content. 7. The method of claim 1, further comprising: repeatedly backpropagating one or more error terms obtained from the discriminator loss to update a set of parameters of the discriminator portion while fixing the set of parameters of the encoding portion and the decoding portion; and stopping the backpropagation after the discriminator loss satisfies a predetermined criteria. 8. The method of claim 7, further comprising: responsive to determining that an accuracy of the discrimination predictions are above a first threshold, repeatedly backpropagating the error terms obtained from the loss function to update the set of parameters of the encoding portion and the decoding portion for one or more iterations, responsive to determining that the accuracy of the discrimination predictions are below a second threshold, repeatedly backpropagating the error terms obtained from the discriminator loss to update the set of parameters of the discriminator portion for one or more iterations, and responsive to determining that the accuracy of the discrimination predictions are between the first threshold and the second threshold, alternating between backpropagating the error terms obtained from the loss function to update the set of parameters of the encoding portion and the decoding portion and backpropagating the error terms obtained from the discriminator loss to update the set of parameters of the discriminator portion. 9. A decoder stored on a computer readable storage medium, wherein the decoder is manufactured by a process comprising: obtaining a set of training content; for a compression model including an encoding portion, a decoding portion, and a discriminator portion, repeatedly backpropagating one or more error terms obtained from a loss function to update a set of parameters of the encoding portion and the decoding portion, wherein the loss function includes: a reconstruction loss indicating a dissimilarity between the training content and reconstructed content, wherein the reconstructed content is generated by applying the encoding portion to the training content to generate tensors for the training content, and applying the decoding portion to the tensors to generate the reconstructed content, and a discriminator loss indicating a cost of generating incorrect discrimination predictions generated by applying the discriminator portion to input content, wherein the input content includes the training content and the reconstructed content, and wherein the discrimination predictions indicate likelihoods of whether the input content is a reconstructed version of the training content; and stopping the backpropagation after the loss function satisfies a predetermined criteria; and storing the set of parameters of the decoding portion on the computer readable storage medium as the parameters of the decoder, wherein the decoder is coupled to receive a compressed code for content and output a reconstructed version of the content using the stored parameters. 10. The decoder of claim 9, wherein the discriminator portion is coupled to receive each of the training content and the reconstructed content individually as the input content, and wherein the discrimination predictions indicate likelihoods that the input content is the reconstructed version of the training content. 11. The decoder of claim 9, wherein the discriminator portion is coupled to receive ordered pairs of the training content and the corresponding reconstructed content as the input content, and wherein the discrimination predictions indicate which content in the ordered pairs is the reconstructed version of the training content. 12. The decoder of claim 11, wherein the ordered pairs of input content include a first pair having first training content as a first element and first reconstructed content as a second element, and a second pair having second reconstructed content as the first element and second training content as the second element. 13. The decoder of claim 9, wherein the discriminator portion includes a neural network model, and the discrimination predictions are generated by combining outputs from one or more intermediate layers of the neural network model. 14. The decoder of claim 9, wherein the loss function further includes: a codelength regularization loss indicating a cost of code lengths for compressed codes generated by applying an entropy coding technique to the tensors, wherein the codelength regularization loss is determined based on magnitudes of elements of the tensors for the training content. 15. The decoder of claim 9, further comprising: repeatedly backpropagating one or more error terms obtained from the discriminator loss to update a set of parameters of the discriminator portion while fixing the set of parameters of the encoding portion and the decoding portion; and stopping the backpropagation after the discriminator loss satisfies a predetermined criteria. 16. The decoder of claim 15, further comprising: responsive to determining that an accuracy of the discrimination predictions are above a first threshold, repeatedly backpropagating the error terms obtained from the loss function to update the set of parameters of the encoding portion and the decoding portion for one or more iterations, responsive to determining that the accuracy of the discrimination predictions are below a second threshold, repeatedly backpropagating the error terms obtained from the discriminator loss to update the set of parameters of the discriminator portion for one or more iterations, and responsive to determining that the accuracy of the discrimination predictions are between the first threshold and the second threshold, alternating between backpropagating the error terms obtained from the loss function to update the set of parameters of the encoding portion and the decoding portion and backpropagating the error terms obtained from the discriminator loss to update the set of parameters of the discriminator portion. 17. An encoder stored on a computer readable storage medium, wherein the encoder is manufactured by a process comprising: obtaining a set of training content; for a compression model including an encoding portion, a decoding portion, and a discriminator portion, repeatedly backpropagating one or more error terms obtained from a loss function to update a set of parameters of the encoding portion and the decoding portion, wherein the loss function includes: a reconstruction loss indicating a dissimilarity between the training content and reconstructed content, wherein the reconstructed content is generated by applying the encoding portion to the training content to generate tensors for the training content, and applying the decoding portion to the tensors to generate the reconstructed content, and a discriminator loss indicating a cost of generating incorrect discrimination predictions generated by applying the discriminator portion to input content, wherein the input content includes the training content and the reconstructed content, and wherein the discrimination predictions indicate likelihoods of whether the input content is a reconstructed version of the training content; and stopping the backpropagation after the loss function satisfies a predetermined criteria; and storing the set of parameters of the encoding portion on the computer readable storage medium as the parameters of the encoder, wherein the decoder is coupled to receive content and output a compressed code for the content using the stored parameters. 18. The encoder of claim 17, wherein the discriminator portion is coupled to receive each of the training content and the reconstructed content individually as the input content, and wherein the discrimination predictions indicate likelihoods that the input content is the reconstructed version of the training content. 19. The encoder of claim 17, wherein the discriminator portion is coupled to receive ordered pairs of the training content and the corresponding reconstructed content as the input content, and wherein the discrimination predictions indicate which content in the ordered pairs is the reconstructed version of the training content. 20. The encoder of claim 19, wherein the ordered pairs of input content include a first pair having first training content as a first element and first reconstructed content as a second element, and a second pair having second reconstructed content as the first element and second training content as the second element. 21. The encoder of claim 17, wherein the discriminator portion includes a neural network model, and the discrimination predictions are generated by combining outputs from one or more intermediate layers of the neural network model. 22. The encoder of claim 17, wherein the loss function further includes: a codelength regularization loss indicating a cost of code lengths for compressed codes generated by applying an entropy coding technique to the tensors, wherein the codelength regularization loss is determined based on magnitudes of elements of the tensors for the training content. 23. The encoder of claim 17, further comprising: repeatedly backpropagating one or more error terms obtained from the discriminator loss to update a set of parameters of the discriminator portion while fixing the set of parameters of the encoding portion and the decoding portion; and stopping the backpropagation after the discriminator loss satisfies a predetermined criteria. 24. The encoder of claim 23, further comprising: responsive to determining that an accuracy of the discrimination predictions are above a first threshold, repeatedly backpropagating the error terms obtained from the loss function to update the set of parameters of the encoding portion and the decoding portion for one or more iterations, responsive to determining that the accuracy of the discrimination predictions are below a second threshold, repeatedly backpropagating the error terms obtained from the discriminator loss to update the set of parameters of the discriminator portion for one or more iterations, and responsive to determining that the accuracy of the discrimination predictions are between the first threshold and the second threshold, alternating between backpropagating the error terms obtained from the loss function to update the set of parameters of the encoding portion and the decoding portion and backpropagating the error terms obtained from the discriminator loss to update the set of parameters of the discriminator portion. 25. A method for training an encoder and a decoder, comprising: obtaining training content and downsampling the training content to generate a set of training content each associated with a corresponding scale in a set of scales; and for a compression model including a set of autoencoder and discriminator pairs: for each autoencoder and discriminator pair associated with a corresponding scale, repeatedly backpropagating one or more error terms obtained from a loss function to update a set of parameters of the autoencoder in the pair, wherein the loss function includes: a reconstruction loss indicating a dissimilarity between the training content and reconstructed content, wherein the reconstructed content is generated by combining a set of content generated by applying the autoencoders of the set of pairs to the corresponding set of training content, and a discriminator loss indicating a cost of incorrect discrimination predictions generated by applying the discriminator of the pair to input content, wherein the input content includes the training content associated with the scale and content generated by applying the autoencoder of the pair to the training content associated with the scale, and wherein the discrimination predictions indicate likelihoods of whether the input content is a reconstructed version of the training content; and stopping the backpropagation after the loss function satisfies a predetermined criteria.