Machine learning method, machine learning model, sample augmentation method, and information processing device.

The self-supervised learning method with a negative gradient loss function and class-based data augmentation enhances LTR accuracy by ensuring correct learning for positive samples, addressing the challenges of minority class recognition in machine learning.

JP2026185533APending Publication Date: 2026-11-27PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025082735
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing machine learning methods for long-tailed recognition (LTR) face challenges in accurately recognizing minority classes due to insufficient learning from small sample sizes, leading to decreased accuracy when data augmentation techniques like multi-view learning are applied.

Method used

A self-supervised learning method using a loss function with a negative gradient for samples within the same class, combined with a sample expansion technique that adjusts the number of augmentations based on class sample counts, ensures consistent correct learning.

Benefits of technology

Improves recognition accuracy by ensuring that positive samples are learned correctly, even when data augmentation increases the number of samples, particularly for minority classes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185533000001_ABST
    Figure 2026185533000001_ABST
Patent Text Reader

Abstract

This invention provides a machine learning method that uses a loss function whose gradient is always negative for samples belonging to the same class, a machine learning model, a sample extension method, and an information processing device. [Solution] In a system in which an input / output terminal, an information processing device, and a storage device are connected wirelessly or by wire, the information processing device has an acquisition means and an expansion means. The acquisition means acquires learning data stored in the storage device or acquires learning data based on data from the input / output terminal. The expansion means detects the number of samples of each class included in the learning data, determines the number of expansions based on the number of samples of each class, and expands each sample. For example, the expansion means groups each class into "majority classes," "intermediate classes," and "minority classes," and determines that the number of expansions for "majority classes" is 2, for "intermediate classes" it is 3, and for "minority classes" it is 4.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This disclosure relates to a machine learning method, a trained model, a sample augmentation method, and an information processing device. In particular, it relates to a machine learning method and a trained model that use a loss function in which the gradient is always negative for samples belonging to the same class. It also relates to a sample augmentation method and an information processing device for training data that augments samples based on an augmentation number corresponding to the number of samples included in each class. [Background technology]

[0002] Unsupervised learning is a commonly used machine learning method. It is particularly prevalent in deep learning.

[0003] For example, when using animal image data as unlabeled training data for machine learning, the number of samples differs for each animal species class. For instance, the dog and cat classes have a large number of samples, so they appear frequently and a sufficient number of samples can be obtained. However, classes such as pandas and okapis have a small number of samples, so they appear less frequently and it is difficult to obtain a sufficient number of samples.

[0004] To improve the accuracy of a machine learning model, it is crucial that the training data includes a variety of sample types (e.g., images). Classes with a large number of samples (e.g., dogs; hereafter referred to as "major classes") have a large variety of samples (i.e., diversity), allowing the machine learning model to learn sufficiently from these classes. However, classes with a small number of samples (e.g., pandas; hereafter referred to as "minor classes") have a small variety of samples, making it difficult for the machine learning model to learn sufficiently from these classes. Even if the number of samples for each minor class is small, the number of minor classes is large, resulting in a large overall sample size. Without sufficient learning from minor class samples, it is difficult to improve the accuracy of image recognition.

[0005] Furthermore, since dogs (majority class samples) appear frequently, the machine learning device learns them more times, which means they influence the machine learning device more often. In contrast, pandas (minority class samples) appear less frequently, so the machine learning device learns them fewer times, resulting in less frequent influence on the machine learning device.

[0006] Recognition of minority class samples is known as Long-Tailed Recognition (LTR).

[0007] For LTR, various machine learning methods are known, such as Balanced Softmax, PaCo (Parametric Contrastive Learning), BCL (Balanced Contrastive Learning), and ProCo (Probabilistic Contrastive Learning) (for example, see Non-Patent Documents 2-5). [Prior Art Literature] [Non-Patent Literature]

[0008] [Non-Patent Literature 1] @omiita "Super Hot in 2020! Summary of the Latest Advances in Self-Supervised Learning" <URL:https: / / qiita.com / omiita / items / a7429ec42e4eef4b6a4d> [Non-Patent Literature 2] Jiawei Ren et.al. "Balanced Meta-Softmax for Long-Tailed Visual Recognition" <URL:https: / / arxiv.org / abs / 2007.10740> [Non-Patent Literature 3] Jiequan Cui et.al "Parametric Contrastive Learning" <URL:https: / / arxiv.org / abs / 2107.12028> [Non-Patent Literature 4] Jianggang Zhu et.al. “Balanced Contrastive Learning for Long-Tailed Visual Recognition”<URL:https: / / arxiv.org / abs / 2207.09052> [Non-Patent Document 5] Chaoqun Du et.al. “Probabilistic Contrastive Learning for Long-Tailed Visual Recognition”<URL:https: / / arxiv.org / abs / 2403.06726> [Overview of the project] [Problems that the invention aims to solve]

[0009] PaCo and others use a technique called comparative learning in contrast to LTR, and within that, they utilize a method called multi-view learning, which involves augmenting and using the same image multiple times. In multi-view learning, for small classes of samples, each sample is processed in accordance with the number of views, such as rotation, contrast adjustment, noise addition, and cropping, to augment the samples.

[0010] For example, in a dog class, you can train the model with images of dogs in many variations, such as dogs standing, dogs running, dogs sitting, white dogs, brown dogs, dogs giving a paw, dogs sitting, and dogs playing with a ball. On the other hand, in a panda class, only sitting pandas, i.e., only similar pandas, will be used for training. In multi-view learning, by generating samples that have been processed by rotating, adjusting contrast, adding noise, and cropping each panda sample, you can train the machine learning model with many variations of images.

[0011] However, in LTR, it was found that when the number of samples is increased through methods such as multi-view learning, the accuracy of recognition may decrease when machine learning is performed using SCL. Therefore, further investigation of the machine learning method is necessary.

[0012] Non-limiting embodiments of this disclosure relate to machine learning methods that use a loss function whose gradient is always negative for samples belonging to the same class. [Means for solving the problem]

[0013] A self-supervised learning machine learning method relating to one aspect of this disclosure is input to training data containing multiple samples, and uses the training data to perform a loss function L such that the gradient is always negative for samples belonging to the same class. i Learn using this method.

[0014] A machine learning model according to one aspect of this disclosure is input to training data containing multiple samples, and uses the training data to create a loss function L such that the gradient is always negative for samples belonging to the same class. i It was trained using a self-supervised machine learning method that employs [a specific learning method].

[0015] A sample expansion method for an information processing device according to one aspect of this disclosure acquires training data with different sample counts for each class, and expands the samples in the training data based on an expansion number corresponding to the sample count.

[0016] An information processing device according to one aspect of this disclosure includes an acquisition means for acquiring training data with different numbers of samples included in each class, and an expansion means for expanding the samples of the training data based on an expansion number corresponding to the number of samples.

[0017] These comprehensive or specific embodiments may be implemented as a system, apparatus, method, integrated circuit, computer program, or recording medium, or as any combination of a system, apparatus, method, integrated circuit, computer program, and recording medium. [Effects of the Invention]

[0018] According to this disclosure, the accuracy of recognition can be improved by consistently performing correct learning on positive samples.

[0019] Further advantages and effects of one embodiment of this disclosure will be made apparent from the specification and drawings. Such advantages and / or effects are provided by several embodiments and features described in the specification and drawings, but not all of them are necessarily provided in order to obtain one or more identical features. [Brief explanation of the drawing]

[0020] [Figure 1] System Configuration Diagram [Figure 2] Functional block diagram of an information processing device. [Figure 3] LTR concept [Figure 4] The concept of data augmentation [Figure 5] The concept of contrastive learning [Figure 6] Baseline accuracy and accuracy when Baseline and SCL are combined. [Figure 7] The learning concept when combining Baseline and SCL [Figure 8] The accuracy of training using various conventional learning methods versus the learning method disclosed herein. [Modes for carrying out the invention]

[0021] The embodiments of this disclosure will be described in detail below, with reference to the drawings as appropriate. However, some unnecessarily detailed explanations may be omitted. For example, detailed explanations of already well-known matters and redundant explanations of substantially identical configurations may be omitted. This is to avoid the following explanation becoming unnecessarily verbose and to facilitate understanding for those skilled in the art.

[0022] The drawings and the following description are provided for the benefit of those skilled in the art to fully understand this disclosure and are not intended to limit the subject matter described in the claims.

[0023] <Embodiment 1> Figure 1 shows a configuration diagram of system 100. System 100 includes an input / output terminal 110, an information processing device 120, and a storage device 130. The input / output terminal 110, the information processing device 120, and the storage device 130 are connected wirelessly or by wire.

[0024] The input / output terminal 100 is used by the user to input data to the information processing device 120, and to output instructions and data from the information processing device 120. The input / output terminal 110 may be a wireless terminal or a wired terminal, and may be a smartphone, tablet terminal, PDA (Personal Digital Assistant), PC (Personal Computer), etc.

[0025] The information processing device 120 is composed of a computer including a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), and an ASIC (Application Specific Integrated Circuit). The information processing device 120 may be trained using training data.

[0026] The storage device 130 is composed of storage media such as ROM (Read Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable ROM), EEPROM (Electrically EPROM), magnetic disks (e.g., HDD (Hard Disk Drive), flexible disks (e.g., floppy disks)), optical disks (e.g., CD (Compact Disk), Blu-ray® disk), and flash memory (e.g., SSD (Solid State Device), USB (Universal Serial Bus) memory). The storage device 130 may reside in the cloud. The storage device 130 may store training data.

[0027] Figure 2 shows a functional block diagram of the information processing device 120. The information processing device 120 has an acquisition means 121 and an expansion means 122.

[0028] The acquisition means 121 acquires the learning data stored in the storage device 130. The acquisition means 121 may also acquire the learning data based on data from the input / output terminal 110.

[0029] The extension means 122 processes the training data to extend it. For example, the extension means 122 detects the number of samples for each class included in the training data. The extension means 122 determines the extension number based on the number of samples for each class and extends each sample. For example, the extension means 122 may use the reciprocal of the number of samples for each class as the extension number. The extension means 122 may group the classes based on the number of samples and determine the extension number based on the group. For example, the extension means 122 may group each class into "majority classes," "intermediate classes," and "minority classes," and determine that the extension number for "majority classes" is 2, for "intermediate classes" it is 3, and for "minority classes" it is 4.

[0030] The extension means 122 extends each sample based on the extension number. If the extension number is N, then N-1 extension processes are performed for each sample. For example, if the extension number for a sample is 3, then three samples are generated: "sample as is (no processing)", "sample rotated", and "sample color converted". The content of the extension processes may differ for each sample within the class.

[0031] Figure 3 illustrates the concept of LTR. Figure 3 shows the differences in the number of samples included in each class that makes up the training data. For example, Figure 3 shows that the dog and cat classes have a large number of samples, while the panda and okapi classes have a small number of samples.

[0032] The extent to which multi-view learning can extend LTR (Long-Term Refinement) has not been sufficiently studied.

[0033] Given that LTR occurs due to low variation and infrequent impacts on machine learning, the amount of data augmentation—which indicates the degree of data augmentation—is varied according to the number of samples in each class included in the training data.

[0034] For example, the data augmentation number can be the reciprocal of the number of samples in a class. For instance, if the training data contains 10 dog samples and 2 panda samples, setting the augmentation number to 5 will result in 10 panda samples, meaning the number of times dogs and pandas are affected in machine learning will be the same.

[0035] The expansion number does not have to be the reciprocal of the number of samples in the class. The expansion number should be greater for classes with fewer samples than for classes with more samples. For example, classes could be classified into groups according to the number of samples they contain, and the expansion number could be determined according to the group. For example, each class could be classified into three groups according to the number of samples they contain: "majority class," "intermediate class," and "minority class," with an expansion number of 2 for the "majority class," 3 for the "intermediate class," and 4 for the "minority class."

[0036] Figure 4 illustrates the concept of data augmentation. Figure 4 shows examples where the augmentation number is set to 2 for "many classes," 3 for "intermediate classes," and 4 for "minor classes." "Transformation 1," "Transformation 2," and "Transformation 3" are examples of processing such as rotation, contrast adjustment, noise addition, and cropping.

[0037] For example, for each sample of a "large class" of dogs, two samples are generated: "original sample" and "rotated sample." For each sample of a "medium class" of cows, three samples are generated: "original sample," "rotated sample," and "color-transformed sample." For each sample of a "small class" of pandas, four samples are generated: "original sample," "rotated sample," "color-transformed sample," and "noised sample."

[0038] The extension processes for each sample within a class may differ. For example, for the "Cow A" sample, three samples may be generated: "original sample," "rotated sample," and "color-transformed sample." For the "Cow B" sample, three samples may be generated: "original sample," "rotated sample," and "noised sample."

[0039] By generating augmented training data by expanding each sample in the training data based on an expansion number corresponding to the number of samples in the class, and then training a machine learning system with this augmented training data, the Longest Time Rate (LTR) can be reduced.

[0040] <Embodiment 2> Figure 5 illustrates the concept of comparative learning. Comparative learning is a learning method that optimizes the distance relationship between images (see, for example, Non-Patent Document 1).

[0041] In comparative learning, images of the same class as the anchor image are called positive images, and images of other classes are called negative images. Parameters are controlled to minimize the distance to positive images and maximize the distance to negative images. For example, a positive image is the image obtained by transforming the anchor image, and a negative image is any other image.

[0042] In unsupervised learning, there is no instruction on whether each image is positive or negative, so there is a possibility that an image that should be a positive image (for example, an image of a dog when the anchor image is "dog") may be mistakenly learned as a negative image.

[0043] Supervised contrastive learning (SCL), which combines supervised learning and contrastive learning, is a well-known method. SCL is a type of contrastive learning that labels samples based on their properties and provides a training signal. SCL includes self-supervised contrastive learning, which provides training signals (labels) based on the properties of the samples. In SCL, it is possible to specify whether an image should be a positive or negative image using the training signal (label), allowing for more accurate learning. For example, in SCL, a specific image is labeled as either "an image converted from an anchor image" or "an image different from the anchor image." An "image converted from an anchor image" is a positive image, and an "image different from the anchor image" is a negative image.

[0044] The machine learning device, for example, sets an anchor image to I a , a positive image to I + , and a negative image to I - . Then, the machine learning device performs vector transformation θ on each image to calculate f a , f + , and f - . The machine learning device minimizes the distance δ(f + , f a ) between f a and f + , and controls the vector transformation θ so as to maximize the distance δ(f - , f a ) between f a and f - .

[0045] However, it has been found that when multi-view learning is combined with SCL, increasing the number of views reduces the accuracy of image recognition (hereinafter simply referred to as "accuracy").

[0046] Figure 6 shows the accuracy of the baseline (comparative example) and the accuracy when the baseline is combined with SCL. For example, the case of using ImageNet-LT as data in ResNeXt-50 and applying a learning method based on Balanced Softmax may be used as the baseline. According to Figure 6, it can be understood that increasing the number of views reduces the accuracy of image recognition when SCL is combined.

[0047] The reason why the accuracy decreases when SCL is used with an increased number of views is presumed to be that SCL learns to increase the distance between images of easily recognizable pairs from the same class. This will be discussed in detail below.

[0048] Figure 7 illustrates the concept of learning when the baseline is combined with SCL.

[0049] When learning a certain sample, it is correct learning (learning that improves accuracy) to perform learning that reduces the distance between samples of the same class.

[0050] However, in SCL, Sample Z i (Z i If you are trying to learn a new vector for sample i, then among the samples Z1 to Z6 of the same class, Z is greater than the center of the positive sample. i Samples Z1, Z6 and Z i Between these two points, a loss function is being learned that increases the distance between them, resulting in a decrease in accuracy. Considering this in terms of the gradient of the loss function (hereinafter simply referred to as "gradient"), it means that a positive gradient is being generated for the positive samples Z1 and Z6.

[0051] (Detailed examination) In deep learning, the gradient is calculated by differentiating the loss function, and the model parameters that minimize the loss function are learned by backpropagating the gradient through each layer of the deep learning model.

[0052] In SCL, sample Z i and positive sample Z p Pairwise loss L (i,p) It is given by the following equation (1).

number

number

[0053] Then, the pairwise loss L (i,p) The gradient is given by equation (3) below.

number

number

[0054] All Sample Z k The gradient of the average pairwise loss Li with respect to is given by equation (5) below.

number

[0055] Therefore, anchor Z i For comparison, sample Z is included in the set of positive samples P(i). k (In other words, Z k The gradient for positive samples can be calculated using the following equation (6).

number

number

number

number

[0056] At the start of learning, Sample Z i and positive sample Z k The probability q(i,k) that they belong to the same class is close to 0, so ▽ is positive, and according to learning, sample Z i and positive sample Zk The distance between them decreases. As convergence through learning approaches, the logit of features between classes approaches 0, and ▽ becomes as shown in equation (8) below.

number

[0057] Here, in order to always perform correct learning, the gradient must be negative, that is, the triangle must be positive.

number

number

[0058] However, according to equation (8) above, positive sample Z k Sample Z is more positive than the center of the sample. i When it is close, the dot product

number

number

[0059] In particular, samples extended from anchor samples by multi-view learning represent small changes as samples, so positive samples Z k and sample Z iThe distance between them is short. In other words, a positive gradient is easily generated. This is presumably the reason why the accuracy was decreasing.

[0060] (New loss function) For correct learning to occur in deep learning, a positive sample Z is required. p For this, we can use a loss function whose gradient is always negative. Positive sample Z p In contrast, if the loss function always has a negative gradient, then correct learning will always occur, thus improving accuracy.

[0061] For example, the loss function Li shown in equation (9) below

number

[0062] The above loss function L i When using positive sample Z, p The gradient with respect to is given by the following equation (10).

number

number

[0063] Then (1-q(i,k)) is always positive, and the gradient

number

[0064] In other words, the loss function L i

number

[0065] Therefore, by using a machine learning model trained with the above-mentioned loss function Li, it is possible to improve the accuracy of image recognition even when training with the extended training data according to Embodiment 1.

[0066] <Examples> Examples of training datasets with a long tail include CIFAR-100-LT, ImageNet-LT, iNaturalist, and Places-LT.

[0067] Figure 8 shows the accuracy of CIFAR-100-LT, ImageNet-LT, iNaturalist, and Places-LT when trained using various conventional learning methods and the learning method disclosed herein. For CIFAR-100-LT, accuracy was calculated for the ResNet-32 machine learning architecture when the imbalance factor (IF), which represents the ratio of the most frequent class to the least frequent class, was set to 100, 50, and 10, respectively. For ImageNet-LT, accuracy was calculated for the ResNet-50, ResNeXt-50, and ResNeXt-101 machine learning architectures. Accuracy is the top-1 accuracy rate.

[0068] As shown in Figure 8, it can be seen that, regardless of the training data used or the architecture employed, the learning method using the loss function of this disclosure achieves improved accuracy compared to conventional learning methods.

[0069] <Variation> In this disclosure, animal images are described as examples of training data, but the training data may consist of any samples, and may also consist of samples other than animal images. [Industrial applicability]

[0070] One embodiment of this disclosure is suitable for a machine learning method using SCL. [Explanation of symbols]

[0071] 110 Input / Output Terminal 120 Information Processing Devices 121 Acquisition means 122 Expansion means 130 Storage device

Claims

1. Input training data containing multiple samples, Using the aforementioned training data, a loss function L is created such that the gradient is always negative for the samples belonging to the same class. i Learn using A self-supervised learning machine learning method.

2. The aforementioned training data consists of classes with different sample sizes, Using the number of extensions corresponding to the number of samples, the extended learning data obtained by extending the samples is processed by the loss function L i Learn using The machine learning method according to claim 1.

3. The aforementioned expansion number is determined by classifying each class into a group according to the number of samples, and determining the group accordingly. The machine learning method according to claim 2.

4. The aforementioned loss function L i teeth, [Math 1] That is, Here, Z i This is the current sample, Z p This is a positive sample, Z n is the negative sample, P(i) is the set of positive samples, N(i) is the set of negative samples, |P(i)| is the number of elements in the set of positive samples, w n is the weight, and τ is the temperature. The machine learning method according to claim 1.

5. A machine learning model trained by the machine learning method described in claim 1.

6. By obtaining training data with different sample sizes for each class, Based on the number of extensions corresponding to the number of samples, the samples in the training data are expanded. Sample extension method for information processing equipment.

7. The aforementioned expansion number is determined by classifying each class into a group according to the number of samples, and determining the group accordingly. The sample expansion method according to claim 6.

8. A means of obtaining training data with different sample counts for each class, An extension means for expanding the number of samples in the training data based on the number of expansions corresponding to the number of samples, An information processing device having

9. The aforementioned expansion number is determined by classifying each class into a group according to the number of samples, and determining the group accordingly. The information processing apparatus according to claim 8.