A generative dataset distillation method and system based on latent embedding optimization

By optimizing the learnable latent embedding method, the problems of prototype entanglement and multi-stage processing overhead in distillation of diffuse datasets are solved, generating representative and diverse distillation images suitable for fast model training and resource-constrained devices.

CN123138796APending Publication Date: 2026-11-20INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611369127.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing diffusion-based dataset distillation methods suffer from problems such as prototype entanglement caused by hard clustering, similar potential inputs, insufficient diversity of generated samples, and high overhead of multi-stage processing.

Method used

A latent embedding-based optimization method is adopted, which optimizes the learnable latent embeddings through mean alignment loss, covariance alignment loss and separation regularization term. Multiple latent embeddings of each class are directly set as trainable parameters, matching the original class statistical distribution and maintaining separation to generate distilled images.

Benefits of technology

The generated distillation images exhibit good generalization ability across different data scales, image resolutions, and evaluation network structures, reducing processing time and computational overhead, and improving the representativeness and diversity of the samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138796A_ABST
    Figure CN123138796A_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of artificial intelligence, and relates to a generative dataset distillation method and system based on latent embedding optimization. The method comprises: mapping each category sample in an original dataset to a latent space of a latent diffusion model by using an image encoder; calculating the mean and covariance of the latent representation of each category sample respectively; setting a predetermined number of learnable latent embeddings for each category, optimizing the learnable latent embeddings through a mean alignment loss and a covariance alignment loss, and suppressing high similarity between the learnable latent embeddings through a separation regularization term; inputting each optimized learnable latent embedding and the corresponding category text condition into the latent diffusion model together, and generating a distilled image through step-by-step denoising and image decoding. The present application can solve the problems of prototype entanglement, latent input similarity, insufficient diversity of generated samples and high multi-stage processing overhead caused by fuzzy hard clustering boundaries in existing diffusion dataset distillation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of information technology and artificial intelligence technology, and specifically relates to a generative dataset distillation method and system based on latent embedding optimization. Background Technology

[0002] With the development of technologies such as computer vision, natural language processing, and multimodal intelligence, deep learning models are increasingly reliant on the scale and coverage of training data. While large-scale datasets can improve model performance, they also bring significant storage requirements, computational resource consumption, and data management costs. Especially in high-resolution image classification and large-scale category recognition scenarios, directly using complete training data for model iteration puts considerable resource pressure on model development, architecture search, hyperparameter tuning, and edge deployment. Therefore, how to compress the original large-scale training data into a small number of representative synthetic samples, and how to ensure that the model trained using the synthetic samples maintains a performance close to that of the original data, has become a crucial technical challenge in the field of data-efficient learning.

[0003] Dataset distillation, also known as dataset compression, aims to construct a distilled dataset, much smaller than the original dataset, given a large number of labeled samples. This allows a model trained on the distilled dataset to achieve generalization performance similar to that trained on the original dataset. Existing techniques generally include methods based on two-layer optimization, methods based on feature or statistical distribution matching, and methods based on generative model priors.

[0004] (1) Methods based on two-layer optimization typically update model parameters and synthetic samples alternately. By matching training gradients, training trajectories, or changes in model parameters, the training information contained in the original data is compressed into a small number of synthetic samples. This type of method can directly optimize synthetic data around the downstream training objective, but it requires repeated execution of model training, backpropagation, and synthetic data updates, which is computationally complex and usually difficult to scale to high-resolution and large-scale class datasets.

[0005] (2) Feature- or statistical distribution-based matching methods typically use randomly initialized or pre-trained networks to extract features from the original and synthetic data, and then align the class centers, feature means, variances, or other statistics of the two classes. This type of method does not require complete simulation of the model training trajectory, which can reduce distillation costs. However, if only class centers or low-order statistics are aligned, it is easy to ignore the semantic variations formed by different poses, appearances, textures, and backgrounds within the same class, leading to homogenization of distilled samples.

[0006] (3) Methods based on generative model priors utilize the generative capabilities of generative adversarial networks or diffusion models to transfer the distillation process from the pixel space to the latent space of the generative model. Latent diffusion models typically include variational autoencoders (VAEs), text encoders, denoising networks, and image decoders. The original image is first mapped to a low-dimensional latent representation by the image encoder, and then a synthetic image is generated through a diffusion denoising process using the category text as a condition. Compared with directly optimizing pixels, the latent space has advantages such as lower dimensionality, clearer semantic structure, and stronger high-resolution generation capabilities, making it more suitable for distillation of large-scale datasets.

[0007] Existing diffusion-based dataset distillation methods typically cluster the latent representations of the original samples by category, using each cluster center or cluster prototype as latent input to the diffusion model, and then combining category text conditions such as "an image of a certain category" to generate distilled samples. To further enhance semantic description, some schemes also leverage visual language models to generate or filter text descriptions for each cluster. While these schemes utilize the generative priors of the diffusion model, they still heavily rely on the static clustering results and the quality of the cluster prototypes.

[0008] The shortcomings of existing technologies are as follows: 1) The latent distribution within a class lacks clear boundaries, and hard clustering easily leads to prototype entanglement. In the latent space of a pre-trained variational autoencoder, samples of the same class often exhibit a continuous, approximately uniform, or multimodal but blurred boundary distribution. When using hard clustering methods such as K-means, samples located at the boundary between two latent semantic patterns are forcibly assigned to one of the clusters. These boundary samples simultaneously affect the centers of adjacent clusters, bringing different cluster prototypes closer together and reducing the separability between prototypes. For two ideal semantic patterns, their true centers are respectively... and When cross-mode contamination ratio exists and At that time, the estimated prototype can be represented as: Accordingly, the distance between the two estimated prototypes satisfies: Therefore, boundary blurring naturally reduces the distance between cluster prototypes. When these closely spaced prototypes are input into a diffusion model, the model receives similar latent conditions, and the resulting images tend to be repetitive in pose, color, texture, and local structure. Figure 1 As shown.

[0009] 2) Relying on additional visual language models or multi-stage processing increases computational overhead. Some methods, in addition to clustering, require calling visual language models on an image-by-image basis to generate fine-grained descriptions, followed by text filtering and cluster-level semantic summarization. For large-scale datasets like ImageNet-1K, this processing flow results in high inference time and memory overhead, and introduces external model knowledge, reducing the deployment complexity and reproducibility of the method. Summary of the Invention

[0010] To address the aforementioned problems, this invention provides a generative dataset distillation method and system based on latent embedding optimization. This addresses issues in existing diffusion-based dataset distillation, such as prototype entanglement caused by blurred hard cluster boundaries, similar latent inputs, insufficient diversity of generated samples, and high multi-stage processing overhead. Instead of obtaining static prototypes through hard clustering, this invention directly sets multiple latent embeddings corresponding to each category as trainable parameters. These latent embeddings maintain separation from each other while matching the statistical distribution of the original categories, thus providing representative and differentiated latent inputs for the diffusion model.

[0011] The technical solution adopted in this invention is as follows: A generative dataset distillation method based on latent embedding optimization includes the following steps: The image encoder is used to map samples of each category in the original dataset to the latent space of the latent diffusion model to obtain the latent representation of each category of samples. Calculate the mean and covariance of the latent representations for each category of samples; A predetermined number of learnable latent embeddings are set for each category. The learnable latent embeddings are optimized by mean alignment loss and covariance alignment loss, so that the learnable latent embeddings approximate the original data in terms of class center position, intra-class dispersion and latent dimension correlation. The high similarity between learnable latent embeddings is suppressed by separation regularization term. Each optimized learnable latent embedding and its corresponding category text condition are fed into the latent diffusion model, and a distilled image is generated through progressive denoising and image decoding.

[0012] Furthermore, the predetermined number is the number of distilled images for each category; the dimension of the learnable latent embedding is consistent with the dimension of the latent variables of the images received by the latent diffusion model, and the learnable latent embedding is saved as an independent optimization parameter.

[0013] Furthermore, the learnable latent embedding is initialized independently with random Gaussian noise, or initialized by randomly sampling the original latent representation of the class and adding perturbation, or initialized with random points near the class mean.

[0014] Furthermore, the mean alignment loss is calculated using the following formula: in, Indicates category The mean of the original latent representation, This represents the mean calculated based on the set of learnable latent embeddings for the current category in each optimization iteration; the mean alignment loss constrains the overall center of the set of learnable latent embeddings to be close to the original category center, preventing the learnable latent embeddings from deviating from the core semantics of the category during the separation process, and ensuring that the generated image has the correct category attributes.

[0015] Furthermore, the covariance alignment loss is calculated using the following formula: in, Indicates category The covariance of the original latent representation, The covariance represents the covariance of the current learnable latent embedding; the covariance alignment loss makes the variance of the learnable latent embedding in each latent dimension and the correlation between dimensions close to the original category, thereby covering multiple semantic directions in the original category.

[0016] Furthermore, the separation regularization term is calculated using the following formula: in, This represents the number of distillation images for each category. and Represents the learnable latent embedding and Normalized latent embeddings obtained by performing L2 norm normalization.

[0017] Furthermore, the mean alignment loss, covariance alignment loss, and separation regularization term are combined into an overall optimization objective, and the learnable latent embedding is updated by gradient descent.

[0018] A generative dataset distillation system based on latent embedding optimization, comprising: The raw data latent encoding module is used to map samples of each category in the raw dataset to the latent space of the latent diffusion model using the image encoder, so as to obtain the latent representation of each category of samples. The category statistics calculation module is used to calculate the mean and covariance of the latent representation of each category of samples, respectively. The learnable latent embedding optimization module is used to set a predetermined number of learnable latent embeddings for each category. It optimizes the learnable latent embeddings through mean alignment loss and covariance alignment loss, so that the learnable latent embeddings approximate the original data in terms of class center position, intra-class dispersion and latent dimension correlation. It also suppresses the high similarity between learnable latent embeddings by using a separation regularization term. The diffusion distillation data generation module is used to input each optimized learnable latent embedding and the corresponding category text conditions into the latent diffusion model, and generate distillation images through progressive denoising and image decoding.

[0019] The beneficial effects of this invention are as follows: 1) This invention replaces static clustering prototypes with learnable latent embeddings, avoiding hard clustering assignment of latent samples. This mechanism reduces prototype bias and prototype entanglement caused by boundary samples, enabling different distillation latent inputs to be actively adjusted according to the optimization objective.

[0020] 2) This invention simultaneously matches the mean and covariance of the original category latent representation. Mean alignment is used to preserve the core semantics of the categories, while covariance alignment is used to preserve intra-class variations and correlations between latent dimensions. Compared to schemes that only match class centers, this approach can more completely characterize the original data distribution.

[0021] 3) This invention sets a separation regularization term based on normalized latent embedding similarity, which imposes a stronger penalty on highly similar latent embeddings, suppresses embedding collapse and repetition, and can generate richer distillation images.

[0022] 4) This invention does not require calling additional visual language models to generate image-by-image descriptions, nor does it require performing intra-class clustering and cluster text filtering. It can shorten the processing time of large-scale category datasets and reduce the dependence on external model knowledge and complex preprocessing processes.

[0023] 5) The distillation data generated by this invention has good generalization ability on different data scales, different image resolutions and different evaluation network structures, and can be used for scenarios such as fast model training, model architecture search, hyperparameter tuning, continuous learning and training on resource-constrained devices. Attached Figure Description

[0024] Figure 1 This is a schematic diagram of cluster prototype entanglement and homogenization of generated samples.

[0025] Figure 2 This is a flowchart of the steps of a generative dataset distillation method based on latent embedding optimization.

[0026] Figure 3 This is the overall framework for generative dataset distillation methods based on latent embedding optimization.

[0027] Figure 4 This is a comparison of test accuracy under different high IPC settings.

[0028] Figure 5 It is a sensitivity analysis of covariance alignment weights and separation regularization weights.

[0029] Figure 6 This invention compares intra-class diversity with clustering methods.

[0030] Figure 7 It is a visualization of the distribution of raw data and distilled potential embeddings under different IPC conditions.

[0031] Figure 8 It is a comparison of the visual quality and semantic diversity of distilled images.

[0032] Figure 9 This is a schematic diagram of the module composition of a generative dataset distillation system based on latent embedding optimization. Detailed Implementation

[0033] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to specific embodiments and accompanying drawings.

[0034] This invention first utilizes a fixed-parameter image encoder to map samples of each category in the original dataset to the latent space of a diffusion model, and calculates the mean and covariance of the latent representations for each category to establish a statistical distribution representation of the original categories. Subsequently, a predetermined number of learnable latent embeddings are set for each category, corresponding to the number of distilled images per category (IPC). Through mean alignment loss and covariance alignment loss, the learnable latent embeddings are made to approximate the original data in terms of class center location, intra-class dispersion, and latent dimensional correlation. Simultaneously, a separation regularization term is introduced to suppress high similarity between learnable latent embeddings, ensuring reasonable dispersion within the latent space. After optimization, each learnable latent embedding and its corresponding category text conditions are input into a fixed-parameter latent diffusion model. Through progressive denoising and image decoding, distilled images are generated, forming a synthetic dataset much smaller than the original dataset. Through this design, this invention, without relying on hard clustering or external visual language knowledge, simultaneously preserves the core semantics of the categories and intra-class semantic variations, improving the representativeness, diversity, cross-architecture generalization ability, and large-scale data processing efficiency of the distilled data.

[0035] In one embodiment, the generative dataset distillation method based on latent embedding optimization of the present invention, such as Figure 2 As shown, it includes the following steps: The image encoder is used to map samples of each category in the original dataset to the latent space of the latent diffusion model to obtain the latent representation of each category of samples. Calculate the mean and covariance of the latent representations for each category of samples; A predetermined number of learnable latent embeddings are set for each category. The learnable latent embeddings are optimized by mean alignment loss and covariance alignment loss, so that the learnable latent embeddings approximate the original data in terms of class center position, intra-class dispersion and latent dimension correlation. The high similarity between learnable latent embeddings is suppressed by separation regularization term. Each optimized learnable latent embedding and its corresponding category text condition are fed into the latent diffusion model, and a distilled image is generated through progressive denoising and image decoding.

[0036] In one embodiment, such as Figure 3 As shown, the overall process of the generative dataset distillation method based on latent embedding optimization of the present invention includes latent encoding of the original data, calculation of class statistics, initialization of learnable latent embeddings, distribution alignment optimization, embedding separation optimization, and diffusion distillation data generation. The inputs include the original training dataset with class labels, the number of distillation samples per class (IPC), the latent diffusion model adapted to the target data, and optimization parameters; the output is a distillation synthetic dataset with class labels.

[0037] In a preferred embodiment, the latent diffusion model includes an image encoder, a text encoder, a conditional denoising network, and an image decoder. The image encoder can be implemented by a variational autoencoder encoder; the conditional denoising network can be implemented by a U-Net or a diffusion Transformer; and the image decoder can be implemented by a variational autoencoder decoder. The model maintains fixed parameters during latent embedding optimization. The implementation steps of this embodiment are described in detail below.

[0038] (a) Basic framework of dataset distillation and potential diffusion.

[0039] Let the original training dataset be: in, Indicates the first One original image, Indicates the corresponding category label, This indicates the number of categories. The distillation dataset to be constructed is: The goal of dataset distillation is to enable the use of The trained model performs close to the performance of the test set. The trained model can generally be represented as minimizing the difference between the original data and the distilled data in the target representation space: in, This indicates a feature or statistic extraction operation. Represents a distance metric.

[0040] Latent diffusion model through image encoder The original image is mapped to a latent representation, and noise is injected into the latent representation through a forward diffusion process. Conditional denoising network. At the diffusion time step and category text embedding Predicting noise under given conditions, the training objective can be expressed as: in, This represents the noisy latent variable obtained by forward diffusion from the latent representation of the image. It is Gaussian noise. The textual conditions represent the categories. During the inference phase, a noise scheduler gradually recovers the latent variables from a high-noise state, followed by an image decoder. Generate an image.

[0041] (ii) Potential statistical modeling of the original categories.

[0042] First, read the original training dataset and divide it according to the class labels. A subset of categories. For each category Its original sample set is represented as ,in For category The original number of samples, Indicates category The i-th original sample.

[0043] Secondly, use a fixed-parameter image encoder. Category Each original sample in the dataset is encoded to obtain the original latent representation: In the specific implementation, the multi-channel latent features output by the image encoder are flattened into vectors.

[0044] Then, calculate the category. The original potential mean This is used to represent the core semantic location of the category: Finally, calculate the category. The original potential covariance This is used to represent the degree of dispersion and correlation between different latent dimensions within a category: Compared to simply calculating cluster centers, the mean and covariance together constitute a class-level Gaussian statistical representation. The mean corresponds to the overall center of the class, while the covariance corresponds to the multi-directional semantic variations within each class. The original class statistics can be pre-calculated and stored, and reused in subsequent latent embedding optimization processes, thereby reducing the need for repeated readings of the original data.

[0045] (iii) Learnable potential embedding initialization.

[0046] This invention per distillation category Establish a set of learnable latent embeddings: Each learnable latent embedding The dimension of the image latent variables received by the latent diffusion model is consistent with the dimension of the latent variables in the image. This indicates the number of distilled images that need to be generated for this category. The learnable latent embedding is stored as an independent optimization parameter, rather than a fixed prototype obtained by the clustering algorithm.

[0047] In one implementation, each learnable latent embedding can be independently initialized with random Gaussian noise; in another implementation, it can be initialized by randomly sampling the original latent representation of the class and adding perturbation; it can also be initialized with random points near the class mean. Different initialization methods do not change the core process of subsequent optimization through statistical alignment and separation regularization. Since each latent embedding can move independently under gradient-driven conditions, this invention transforms the original static prototype of cluster partitioning into a trainable representation oriented towards the original distribution statistics. There are no fixed cluster membership relationships between multiple latent embeddings, thus avoiding the irreversible pulling effect of boundary samples on specific prototypes.

[0048] (iv) Distribution alignment optimization based on mean and covariance.

[0049] In each optimization iteration, the mean of the set of latent embeddings that can be learned for the current category is calculated: Define mean alignment loss: The mean alignment loss is used to constrain the overall center of the learnable latent embedding set to be close to the original category center, preventing the learnable latent embedding from deviating from the core category semantics during the separation process and ensuring that the generated image has the correct category attributes.

[0050] Then, the covariance of the current learnable latent embedding is calculated: Define covariance alignment loss: The covariance alignment loss makes the variance of the learnable latent embeddings in each latent dimension and the correlation between dimensions close to the original category, thereby covering multiple semantic directions in the original category.

[0051] Mean alignment and covariance alignment are complementary. If only mean alignment is used, multiple potential embeddings may cluster around the class center; with covariance alignment, the embeddings need to reconstruct the discrete structure of the original class while keeping the class center unchanged, thus covering more intra-class semantic patterns.

[0052] (v) Latent embedding separation regularization.

[0053] Even when relying solely on mean and covariance statistical matching, there may still be issues with local latent embeddings being close to each other or partially overlapping. To further improve sample-level dissimilarity, L2 normalization is performed on each latent embedding: And construct a separation regularization term based on the cosine similarity between any two different latent embeddings: When two normalized latent embeddings are highly similar, the penalty value of the separation regularization term increases, driving the optimization process to separate them; when the similarity is low, the penalty value decreases relatively. This separation regularization term does not require pre-specifying cluster centers and cluster membership relationships, and can directly apply to all latent embedding pairs, reducing the probability of latent representation overlap and generated image duplication.

[0054] To prevent potential embeddings from being excessively pushed away from the original class distribution, this invention uses a separation regularization term in conjunction with mean and covariance alignment. The mean and covariance constraints are responsible for maintaining semantic representativeness, while the separation regularization term is responsible for improving sample-level diversity. Together, these three elements achieve the optimization goal of "maintaining class distribution while avoiding embedding collapse".

[0055] (vi) Overall optimization goals and potential embedded updates.

[0056] The above losses are combined into an overall optimization objective: in, Weights for covariance alignment loss. To separate regularization weights. Used to adjust the strength of second-order statistical matching; Used to adjust the degree of dispersion among potential embeddings.

[0057] Update the category using gradient descent. Learnable latent embeddings: in, This represents the learning rate. During optimization, the original class statistics remain constant, and the image encoder, text encoder, conditional denoising network, and image decoder are all kept constant, with only the following updates performed. Each category can be optimized sequentially or in parallel; the complete latent representation of each category can be loaded at once, or the original mean and covariance can be calculated using batch statistics or streaming statistics.

[0058] In a preferred embodiment, the Adam optimizer is used, and the learning rate is set to... The number of optimization iterations is set to 10,000. Set to 0.5. Set to 0.004. The above parameters are used to illustrate possible implementations of the present invention and do not constitute a limitation. They can be adjusted according to data scale, IPC size, and potential dimensions.

[0059] (vii) Generation of diffusion data based on optimized potential embeddings.

[0060] For category Constructing category text conditions In one embodiment, a template in the form of "An image of [class]" is used, with the category name filled in the placeholder; alternatively, Chinese category descriptions, attribute phrases, or category conditions generated by business rules can be used. This invention does not require calling an external visual language model to generate a description for each original sample.

[0061] Optimized learnable latent embeddings Mapped to the specified diffusion time step as required by the diffusion scheduler, resulting in noisy latent variables. The text encoder conditions the category text as... The conditional denoising network performs stepwise denoising based on noisy latent variables, time steps, and text conditions.

[0062] Then, the final denoised latent variables are decoded into a distilled image using an image decoder: in, This represents a conditional denoising network that is time-step related. This indicates a combination of conditional information operations. This represents the image decoder. The above generation process is repeated for all categories and all potential embeddings to obtain the distilled dataset: The generated distilled images can be used directly to train a classification model with hard class labels, or they can be trained after obtaining soft labels from a teacher model trained on the original data. For scenarios requiring multiple evaluations, the generated distilled data can be stored offline and reused for different network structures, training strategies, and hyperparameter configurations.

[0063] (viii) Complete training and generation algorithms.

[0064] Algorithm Flow 1: Based on the Decoupling Latent Embedding Optimization (DEO) algorithm.

[0065] 1) Input: Original training dataset Number of categories Number of images per type of distillation Optimize the number of iterations Learning rate Loss weights and And a potential diffusion model with fixed parameters; 2) Randomly in Train M models ; 3) For each category c (c takes values ​​from 1 to...) Perform the following operations: 3.1) Initialize learnable latent vectors ; 3.2) Calculate and save the original class latent means. Potential covariance of original categories ; 3.3) For the first The next iteration ( The value ranges from 1 to ), perform the following operations: Calculate the mean of the current latent embeddings Covariance ; Calculate the mean alignment loss according to formula (7); Calculate the covariance alignment loss according to formula (8); Calculate the separation regularization term according to formula (9); Calculate the total loss according to formula (10). ; Update according to formula (11) : ; 4) Optimized output .

[0066] Algorithm Flow 2: Data Generation Based on Diffusion Model.

[0067] 1) Input: Number of categories Optimized ; 2) For each category c (c takes values ​​from 1 to...) Perform the following operations: 2.1) Each optimized latent embedding Combined with category text conditions; 2.2) Based on formula (12), distilled images of the corresponding categories are generated by a conditional denoising network and an image decoder.

[0068] 3) Output: Distillation dataset .

[0069] Key aspects of this invention include: 1) Replace the cluster prototypes in the distillation of the diffusion dataset with learnable latent embeddings, so that the latent input corresponding to each distillation sample can be updated independently during the optimization process, thereby avoiding prototype entanglement caused by the blurring of hard cluster boundaries.

[0070] 2) Simultaneously perform mean alignment and covariance alignment on the original category latent representation and the learnable latent embedding to preserve the core semantics of the category and the intra-category semantic changes, respectively, forming a first-order and second-order joint statistical matching oriented towards the original category distribution.

[0071] 3) Construct a separation regularization term based on the pairwise similarity between normalized latent embeddings, apply a nonlinear penalty to highly similar embeddings, keep multiple latent embeddings of the same class dispersed, and reduce the duplication of diffusion-generated samples.

[0072] 4) Jointly optimize distribution alignment and potential separation. Maintain class center through mean constraint, maintain intra-class statistical structure through covariance constraint, and improve sample difference through separation constraint. This solves the semantic shift problem that may occur when only representativeness or diversity is emphasized.

[0073] 5) During the latent embedding optimization stage, the image encoder and diffusion model are fixed, and only a small number of latent embeddings are updated. After optimization, the latent embeddings and category text conditions are input into the diffusion model to generate images, thus forming a decoupled process of "latent statistical optimization - conditional diffusion generation".

[0074] 6) It does not rely on latent clustering, graph-by-graph visual language model inference, or clustered text filtering, which can reduce processing overhead on large-scale high-resolution datasets and improve the general applicability of distilled data to different evaluation network architectures.

[0075] To verify the effectiveness of this invention, experiments were conducted on low-resolution and high-resolution image datasets. The low-resolution datasets included CIFAR-10 and CIFAR-100, each containing 60,000 32×32 images with 10 and 100 classes, respectively. The high-resolution datasets included ImageNet-1K and its subsets ImageWoof, ImageNette, and ImageIDC. ImageNet-1K contains approximately 1.28 million training images and 1000 classes; ImageWoof focuses on fine-grained classification of ten similar-looking canine species; and ImageNette and ImageIDC each contain ten coarser-grained classes.

[0076] In one embodiment, Stable Diffusion v1.5 adapted with corresponding dataset image-label pairs is used as the latent diffusion model; the Adam optimizer is employed, and the latent embedding learning rate is [missing value]. Optimize 10,000 steps; Covariance-aligned weights Separate regularization weights Experiments were conducted on NVIDIA RTX A6000 or NVIDIA A100 80GB graphics processors. ImageWoof, ImageNette, and ImageIDC employed direct training and evaluation, i.e., the classifier was trained from scratch using distilled images and evaluated on a standard test set; ImageNet-1K and CIFAR-10 / 100 used a teacher model to generate soft labels before training the classifier. Top-1 accuracy was the average of three random seeds.

[0077] (a) Main performance results.

[0078] Table 1 presents the results of the proposed method and representative diffusion-based dataset distillation methods D4M and VLCP on ImageWoof, ImageNette, and ImageIDC. It can be seen that the proposed method achieves the highest accuracy across all datasets and all IPC settings. On ImageWoof, the accuracy reaches 40.9%, 46.7%, and 59.9% with IPCs of 10, 20, and 50, respectively, representing improvements of 1.4, 2.2, and 2.6 percentage points compared to VLCP; on ImageNette, the improvements are 1.4, 1.2, and 1.0 percentage points; and on ImageIDC, the improvements are 1.6, 1.3, and 0.7 percentage points. These results demonstrate that learnable latent embeddings can generate more effective distilled samples at different class granularities and compression ratios.

[0079] Table 1. Top-1 accuracy (%) on ImageWoof, ImageNette, and ImageIDC Table 2 presents the results on ImageNet-1K, CIFAR-10, and CIFAR-100. The present invention achieves 49.2% and 61.4% accuracy on ImageNet-1K with IPC=10 and IPC=50, respectively, representing improvements of 2.5 and 0.9 percentage points over VLCP, indicating that the present invention remains effective even with a significant increase in the number of categories and semantic complexity. On CIFAR-10 and CIFAR-100, the present invention also achieves optimal results across all settings, demonstrating that the method is applicable to both high-resolution and low-resolution data.

[0080] Table 2. Top-1 accuracy (%) on ImageNet-1K, CIFAR-10, and CIFAR-100 (ii) Cross-architecture generalization effect.

[0081] To verify the adaptability of the distillation data to different model architectures, ConvNet and ResNet-18 were trained on the ImageWoof distillation dataset, respectively. Table 3 shows that the present invention outperforms D4M and VLCP under both networks and all IPC settings. Compared to the most relevant D4M, the present invention achieves an improvement of approximately 5.4 to 9.2 percentage points under different settings, indicating that the latent embeddings obtained through joint optimization of mean, covariance, and separation regularization have stronger transferability, rather than being limited to a single evaluation network.

[0082] Table 3. Cross-architecture Top-1 accuracy (%) on ImageWoof (iii) The validity of each loss item.

[0083] Table 4 presents the ablation results for mean alignment loss, covariance alignment loss, and separation regularization. Using only mean alignment already surpasses D4M at IPC=10 and IPC=50, indicating that matching the class centers with learnable latent embeddings can reduce cluster prototype bias. Adding covariance alignment to mean alignment improves IPC=10, 20, and 50 to 39.8%, 44.3%, and 57.8%, respectively, demonstrating that second-order statistics effectively recover intra-class semantic variations. Adding separation regularization to mean alignment also achieves improvements of 1.9 to 2.5 percentage points. The combined use of the three losses yields the best performance, validating the complementary effects of semantic center preservation, distribution structure matching, and embedding difference enhancement.

[0084] Table 4. Loss term ablation results on ImageWoof (%) (iv) High IPC conditions and parameter sensitivity.

[0085] When IPC is further increased to 70, 100, 150, and 200 on ImageWoof, such as Figure 4 As shown, the accuracy of the method of the present invention reaches 60.2%, 65.3%, 66.4%, and 67.2%, respectively, which are consistently higher than D4M's 54.7%, 59.5%, 62.0%, and 64.4%. The present invention maintains its advantage as IPC increases, indicating that learnable latent embeddings can fully utilize a larger distillation budget to cover more semantic patterns; meanwhile, as semantic coverage gradually becomes sufficient, the marginal gain from further increasing IPC gradually decreases.

[0086] Covariance weights Analysis shows that, Figure 5 As shown in (a), the accuracy improves overall under all IPC settings when the weight increases from 0 to 0.5; further increases may lead to overfitting of the noise covariance, especially under low IPC conditions, resulting in performance degradation. Separation weights Analysis shows that, Figure 5 As shown in (b), performance peaks around 0.004; excessively large weights lead to overly dispersed latent embeddings, weakening intra-class compactness. Therefore, this invention controls the representativeness and diversity of latent embeddings by balancing the mean, covariance, and separation constraints.

[0087] (v) Intraclass diversity effect.

[0088] Intra-class diversity is measured using the mean cosine distance between distilled samples and class prototypes, such as... Figure 6 And as shown in Table 5. In the top ten categories of CIFAR-100, such as... Figure 6 As shown in (a), the mean cosine distance of D4M is 0.131, which this invention improves to 0.143, a relative improvement of 9.2%; in the top ten categories of ImageNet-1K, as Figure 6 As shown in (b), D4M is 0.121, which is improved to 0.132 by this invention, representing a relative improvement of 9.1%. This result indicates that the distilled samples generated by this invention can cover richer intra-category semantic variations.

[0089] Table 5. Comparison of intraclass diversity (vi) Calculation efficiency effect.

[0090] The processing time for each category was statistically analyzed on a single NVIDIA A100 80GB graphics processor. Existing VLCP schemes require latent clustering and visual language model inference; this invention omits these stages, instead calculating latent statistics for each category and optimizing latent embeddings. On CIFAR-100, the total processing time per category for this invention is 7.4 minutes, lower than VLCP's 9.4 minutes; on ImageNet-1K, the time is 13.4 minutes, lower than VLCP's 25.2 minutes, representing a computation time reduction of approximately 47%. These results demonstrate that this invention significantly reduces the processing overhead of large-scale data distillation while improving accuracy.

[0091] Table 6. Comparison of computation time for each category (vii) Visual effects.

[0092] Figure 7 A visualization of the latent distribution of ImageWoof for the same class under IPC=10 and IPC=50 conditions is provided. The original samples are represented by blue dots, and the distilled latent embeddings are represented by red stars. The distilled points obtained by D4M are more likely to cluster or overlap, while the distilled points obtained by this invention are more dispersed while maintaining consistency with the original distribution, indicating that this invention can avoid latent prototype collapse and cover more intra-class regions.

[0093] Figure 8 Distilled images from CIFAR-100 and ImageWoof are presented. This invention generates richer poses, fur colors, perspectives, and local structures in categories such as infants, bears, Shih-Tzu, and Beagle. For example, in the Shih-Tzu category, existing methods generate images with similar sitting postures and fur colors, while this invention can generate sitting, lying postures, and samples with different fur colors, demonstrating that the learnable latent embedding more fully preserves the true semantic variations of the original category.

[0094] Another embodiment of the present invention provides a generative dataset distillation system based on latent embedding optimization, such as Figure 9 As shown, it includes: The raw data latent encoding module is used to map samples of each category in the raw dataset to the latent space of the latent diffusion model using the image encoder, so as to obtain the latent representation of each category of samples. The category statistics calculation module is used to calculate the mean and covariance of the latent representation of each category of samples, respectively. The learnable latent embedding optimization module is used to set a predetermined number of learnable latent embeddings for each category. It optimizes the learnable latent embeddings through mean alignment loss and covariance alignment loss, so that the learnable latent embeddings approximate the original data in terms of class center position, intra-class dispersion and latent dimension correlation. It also suppresses the high similarity between learnable latent embeddings by using a separation regularization term. The diffusion distillation data generation module is used to input each optimized learnable latent embedding and the corresponding category text conditions into the latent diffusion model, and generate distillation images through progressive denoising and image decoding.

[0095] The above division of modules is merely illustrative. In practical applications, the functions described above can be assigned to different functional modules as needed to complete all or part of the functions described in the aforementioned method. The specific processing procedures of each module can be found in the corresponding procedures in the aforementioned method embodiments. Each of the above modules can be implemented entirely or partially through software, hardware, or a combination thereof.

[0096] Another embodiment of the present invention provides a computer device (computer, server, etc.) including a memory and a processor, the memory storing a computer program configured to be executed by the processor, the computer program including instructions for performing steps of the method of the present invention.

[0097] Another embodiment of the present invention provides a computer-readable storage medium (such as ROM / RAM, disk, optical disk) that stores a computer program, which, when executed by a computer, implements the steps of the method of the present invention.

[0098] Another embodiment of the present invention provides a computer program product, the computer program product including a computer program, which, when executed by a computer, implements the steps of the method of the present invention.

[0099] The specific embodiments of the present invention disclosed above are intended to help understand the content of the present invention and to implement it accordingly. Those skilled in the art will understand that various substitutions, changes, and modifications are possible without departing from the spirit and scope of the present invention. The present invention should not be limited to the content disclosed in the embodiments of this specification; the scope of protection of the present invention is defined by the claims.

Claims

1. A generative dataset distillation method based on latent embedding optimization, characterized in that, Includes the following steps: The image encoder is used to map samples of each category in the original dataset to the latent space of the latent diffusion model to obtain the latent representation of each category of samples. Calculate the mean and covariance of the latent representations for each category of samples; A predetermined number of learnable latent embeddings are set for each category. The learnable latent embeddings are optimized by mean alignment loss and covariance alignment loss, so that the learnable latent embeddings approximate the original data in terms of class center position, intra-class dispersion and latent dimension correlation. The high similarity between learnable latent embeddings is suppressed by separation regularization term. Each optimized learnable latent embedding and its corresponding category text condition are fed into the latent diffusion model, and a distilled image is generated through progressive denoising and image decoding.

2. The method according to claim 1, characterized in that, The predetermined number is the number of distilled images for each category; the dimension of the learnable latent embedding is consistent with the dimension of the latent variables of the images received by the latent diffusion model, and the learnable latent embedding is saved as an independent optimization parameter.

3. The method according to claim 1, characterized in that, The learnable latent embedding is initialized independently with random Gaussian noise, or by randomly sampling the original latent representation of the class and adding perturbation, or by random points near the class mean.

4. The method according to claim 1, characterized in that, The mean alignment loss is calculated using the following formula: in, Indicates category The mean of the original latent representation, This represents the mean calculated based on the set of learnable latent embeddings for the current category in each optimization iteration; the mean alignment loss constrains the overall center of the set of learnable latent embeddings to be close to the original category center, preventing the learnable latent embeddings from deviating from the core semantics of the category during the separation process, and ensuring that the generated image has the correct category attributes.

5. The method according to claim 1, characterized in that, The covariance alignment loss is calculated using the following formula: in, Indicates category The covariance of the original latent representation, The covariance represents the covariance of the current learnable latent embedding; the covariance alignment loss makes the variance of the learnable latent embedding in each latent dimension and the correlation between dimensions close to the original category, thereby covering multiple semantic directions in the original category.

6. The method according to claim 1, characterized in that, The separation regularization term is calculated using the following formula: in, This indicates the number of distillation images for each category. and Represents the learnable latent embedding and Normalized latent embeddings obtained by performing L2 norm normalization.

7. The method according to claim 1, characterized in that, The mean alignment loss, covariance alignment loss, and separation regularization term are combined into an overall optimization objective, and the learnable latent embedding is updated by gradient descent.

8. A generative dataset distillation system based on latent embedding optimization, characterized in that, include: The raw data latent encoding module is used to map samples of each category in the raw dataset to the latent space of the latent diffusion model using the image encoder, so as to obtain the latent representation of each category of samples. The category statistics calculation module is used to calculate the mean and covariance of the latent representation of each category of samples, respectively. The learnable latent embedding optimization module is used to set a predetermined number of learnable latent embeddings for each category. It optimizes the learnable latent embeddings through mean alignment loss and covariance alignment loss, so that the learnable latent embeddings approximate the original data in terms of class center position, intra-class dispersion and latent dimension correlation. It also suppresses the high similarity between learnable latent embeddings by using a separation regularization term. The diffusion distillation data generation module is used to input each optimized learnable latent embedding and the corresponding category text conditions into the latent diffusion model, and generate distillation images through progressive denoising and image decoding.

9. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program configured to be executed by the processor, the computer program including instructions for performing the method of any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a computer, implements the method according to any one of claims 1 to 7.