Abstract
This paper introduces Interactive Concept Swapping Networks (iCSNs), a framework designed to learn human-interpretable visual concepts by binding them to discrete prototype representations. By employing a novel "swapping" mechanism during training and facilitating direct human feedback, iCSNs create a latent space that is disentangled, revisable, and extensible. Experimental results on the Elementary Concept Reasoning (ECR) benchmark demonstrate that iCSNs achieve superior disentanglement and allow for effective human-in-the-loop correction of learned concepts.
Introduction
Achieving "disentangled representations"—where independent features like size or color are controlled by separate latent variables—is a core goal in representation learning. However, many existing models operate as black boxes with continuous, often uninterpretable latent spaces. This lack of transparency makes it difficult for humans to correct errors or incorporate new knowledge. Interactive Concept Swapping Networks (iCSNs) address these gaps by utilizing discrete prototype codebooks and an interactive training paradigm.
Methods: Interactive Concept Swapping Networks
The iCSN architecture is built upon three primary pillars: prototype-based codebooks, a concept swapping trick, and interactive feedback mechanisms.
Prototype-based Codebooks
Unlike standard Variational Autoencoders (VAEs) that use continuous Gaussian distributions, iCSNs utilize discrete "slots" or codebooks for different superordinate concepts (e.g., Color, Shape). Each slot contains multiple prototype vectors representing specific basic concepts, such as "Blue" or "Square." This discretization aligns the model's internal representations more closely with human categorical thinking.
The Swapping Trick
To facilitate learning with weak supervision, the authors employ "match pairing." When two images share a specific concept (e.g., both are blue), the model swaps their corresponding latent prototype codes during the reconstruction process. This forces the encoder to isolate the shared attribute into the designated slot to ensure successful image reconstruction.
Interactive Feedback
The discrete nature of the latent space allows users to inspect and modify the model's logic. If a model conflates two distinct concepts, a user can apply logical constraints via an $L_2$ loss to force the model to re-bind concepts to different prototype slots or incorporate entirely new concepts into unused slots.
Experimental Setup: Elementary Concept Reasoning (ECR)
The authors evaluate iCSNs using the Elementary Concept Reasoning (ECR) dataset, which consists of 64x64 RGB images of 2D geometric shapes. Objects vary across three dimensions: shape (circle, triangle, square, pentagon), size (large, small), and color (red, green, blue, yellow). The dataset provides pairs of images sharing one or more attributes, specifically designed to support the swapping-based supervision.
Key Results
The performance of iCSNs was compared against several baselines, including $\beta$-VAE and Ada-VAE.
Disentanglement and Consistency
iCSNs demonstrated significantly lower latent code variance compared to all baselines. This indicates that the model consistently maps the same visual concept to the same internal prototype representation, a hallmark of robust disentanglement.
Interpretability and Revision
Linear probing using Decision Trees revealed that iCSNs achieved 100% accuracy in concept prediction, outperforming standard VAE approaches (73%–91%). Furthermore, the model successfully "untangled" confounded concepts (e.g., confusing circles and pentagons) through minimal human feedback, reaching near-perfect accuracy on revised shapes.
Extensibility
The framework also supports online learning. iCSNs were able to learn novel concepts, such as a half-circle shape, by binding them to empty prototype slots without suffering from catastrophic forgetting of previously learned shapes.
Conclusion and Future Work
iCSNs represent a significant step toward interpretable and revisable machine learning. By moving from continuous distributions to discrete prototypes and incorporating human-in-the-loop feedback, the model creates a more transparent latent space. Future work will focus on scaling this approach to more complex, real-world scenes, potentially integrating object-centric architectures like slot attention to handle multi-object environments.
Summary updated