arXiv:2608.20104cs.CVAug 2026

Manuscript Offprint

arXiv:2608.20104

Structured Affinity for Unsupervised Visual Class-Incremental Memory in Deep Artificial Immune Networks

Siphesihle Sithungu

Abstract

Artificial immune networks (AINs) are naturally memory-forming systems, but conventional visual AINs often rely on flattened vector affinity that ignores spatial structure. This paper studies whether structured, gradient-free immune affinity can make Deep AINs viable as replay-free visual class-incremental representation-memory learners. Visual B-cells are formalized as structured templates, including shifted-template affinity, zero-normalized cross-correlation (ZNCC) filters, and feature-map binding profiles. A repertoire is treated both as memory and as a representation-inducing basis, while depth is obtained by passing binding-profile response maps to subsequent immune layers. The resulting Deep AIN exhibits adaptive latent coordinate reorganization: as new classes arrive, the binding-profile space evolves while retaining recoverable structure for earlier classes. Experiments on sklearn digits, MNIST, Fashion-MNIST, and KMNIST show that preserving response maps is critical. Scalar binding-profile variants underperform, whereas feature-map Deep AINs learn class-discriminative visual memory without replay, label-driven immune updates, or backpropagation through the immune layers. On sklearn digits, downstream probes fitted on the learned binding profiles reach 0.939 final balanced accuracy with logistic regression and 0.902 with 1-nearest-neighbour after all ten classes are encountered, with initial-class retention of 0.978. Adaptive layer-wise scale calibration further improves the two-layer feature-map Deep AIN to 0.978 balanced accuracy. With the same calibration rule, Fashion-MNIST reaches 0.814 and KMNIST reaches 0.853. These probes are external validation tools, not components of the AIN. The results identify structured affinity, response-map preservation, adaptive latent reorganization, and layer-wise scale calibration as key mechanisms for replay-free visual immune memory.

Keywords: artificial immune networks; class-incremental learning; structured affinity; ZNCC; visual memory; binding profiles

1 Introduction

Artificial immune networks are naturally suited to memory-centred learning: they encounter antigens, adapt repertoires, retain useful responses, and discriminate among previously encountered patterns. However, visual data exposes a limitation of many conventional AIN formulations. If an image is treated as a flattened vector, the affinity between an antigen and a B-cell ignores spatial locality, translation, and local visual structure. This can make the AIN appear weak even when the underlying difficulty is the affinity operator rather than immune memory itself.

This paper studies visual AINs from the standpoint of online memory formation. A class arrives, the repertoire forms memory for that class, later classes arrive, and the system must retain and discriminate among all encountered classes. At stream step tt, the model has encountered classes Ct\mathcal{C}_{t}, and evaluation is performed only over Ct\mathcal{C}_{t}. This setting directly tests whether an immune repertoire can acquire new visual experience while preserving earlier memory.

The central hypothesis is that AINs become viable visual online learners when affinity is made compatible with image structure. Instead of representing a B-cell only as a point in a flattened pixel space, a visual B-cell can be a structured template or local filter. Its response to an image can form part of a binding profile, and stacked binding profiles can define a Deep AIN in which later layers learn over earlier immune responses. This makes the repertoire both a memory population and a representation-inducing basis.

The paper makes five contributions:

  1. Structured visual immune affinity. The paper defines image-aware B-cell affinity operators that remain gradient-free, including shifted-template affinity, ZNCC filters, and feature-map response profiles.
  2. A visual class-incremental memory protocol. The paper evaluates AINs on sequential class acquisition, old-class retention, balanced accuracy over encountered classes, memory growth, and update cost.
  3. Deep visual binding profiles. The paper defines depth as the composition of visual response maps and binding-profile maps, so later immune layers learn memories over earlier immune responses.
  4. Empirical evidence for online binding-profile memory. The paper shows that an online feature-map Deep AIN can learn binding-profile memory spaces whose class structure is recoverable by simple downstream probes, without using labels to update the immune layers.
  5. A stability-plasticity diagnosis for visual AINs. The paper separates memory-slot growth from lower-representation adaptation, showing when adapting lower visual filters helps and when it destabilizes later memory.