Counterfactual Image Generation for Neural Network Generalization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks (DNNs) face challenges in domain-overlapping generalization due to shortcut learning, where models fail to recognize objects in new or unseen environments, often due to unintended features like background elements being linked to foreground objects during training.

Innovation Solution

A method for generating training data involves creating counterfactual images by decomposing input images into object shape, texture, and background components, using salience detectors and GANs, and merging these components to form new images that isolate the object shape and texture while varying the background, thereby preventing the learning of shortcuts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional training data generation methods are used, then the model learns to recognize objects in typical training environments, but the model fails to generalize to new or unseen environments due to shortcut learning

Engineering Contradiction:
Improvemodel generalization capabilityVSAvoiddomain-overlapping generalization
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The training images are segmented into foreground object components and background components. Counterfactual images are generated by recombining these segmented components with swapped backgrounds, forcing the model to learn object features independent of background shortcuts.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The background parameter is systematically changed in counterfactual images while keeping the foreground object constant. This parameter variation teaches the model that background changes should not affect object recognition, thereby improving generalization to unseen environments.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If contrastive learning methods are used to learn representation space, then the model can differentiate between positive and negative details, but shortcut learning may still occur if image details are incorrectly linked

Engineering Contradiction:
Improvefeature differentiation accuracyVSAvoidcorrect feature association
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

Counterfactual images serve as an intermediary training mechanism that decouples foreground-object features from background features. By using these intermediate counterfactual examples, the model learns correct feature associations without directly observing the incorrect shortcuts present in real-world training data.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If the model is trained on real images with correlated background and object, then the model achieves high accuracy on training data, but the model learns unintended shortcuts between background and object

Engineering Contradiction:
Improvetraining accuracyVSAvoidshortcut learning
Core Design Contradiction:
Measurement precisionVSObject-generated harmful factors

Solution Approach 1:

The harmful correlation between background and object in real images is converted into a benefit by using counterfactual images. These counterfactuals deliberately break the harmful correlation while maintaining realistic image structures, allowing the model to learn from the absence of shortcuts rather than being harmed by their presence.

Inventive Principle:
Principle #22Blessing in disguise (Convert harm into benefit)

Data Source

PatentUS20230282012A1Generating training data for machine learning
Publication Date: 2023.09.07 ROBERT BOSCH GMBH
  • US20230282012A1 patent drawing
  • US20230282012A1 patent drawing
  • US20230282012A1 patent drawing

AI summary

A computer-implemented method for generating training data for machine learning and a machine learning method, in particular a self-monitored learning method. The learning method using training data which are generated according to a method for training a neural network.