                                        On the Adversarial Robustness of Multi-Kernel Clustering



                                             Generator                                         Reward                     Clusterer

                                                                                                                              Linear





                                                           Concat(   ,    , …,     )             Perturbed

                                                                                                                          Concat(   ,…, )









            Encoder          Encoder        Encoder       Decoder         Decoder           Encoder          Encoder       Encoder









                Image         Audio           Text         Image           Audio             Image            Audio           Text

                        Perturbed Dataset                      Perturbation                           Perturbed Dataset

Figure 1. Overview of AdvMKC. Assuming a dataset with three views, i.e., image, audio, and text, the generator is trained to produce

adversarial perturbations for the image and audio views. The clusterer evaluates the clustering performance of the perturbed dataset and

provides a reward signal to guide the generator’s optimization process.



where diag(·) extracts the diagonal elements of the resulting            Generator. The generator G produces adversarial perturba-

matrix. The samples with the largest distances are selected:             tions based on the current perturbed dataset Xt . To ensure

                                       X                                 the perturbations remain within a predefined threshold ϵ,

              I=         arg max          di .             (7)           their magnitude is constrained as:

                        I⊂{1,··· ,N },|I|=N p i∈I

                                                                                                                            −1

Given practical constraints, the attacker perturbs only Ndp                            nt = ϵ · G(Xt ; θ) · ∥G(Xt ; θ)∥             ,       (10)

views of the selected N p samples. At time step t, adversarial

perturbations Nt = {N1 , . . . , NNdp } are injected as:                 where θ represents the generator’s parameters. The pertur-

                                                                         bation vector nt is decomposed into per-view components,

                                                                         as shown in Eq. (8).

                 (

                   Xi ,               / {1, . . . , Ndp };

                                 if i ∈

         Xt,i =                                            (8)

                   Xi + Ni , otherwise.                                  The generator G adopts an encoder-decoder architecture, as

                                                                         shown in Figure 1. The encoder consists of Nd encoders,

Here, Nt = Decom(nt ; I, Ndp ), where Decom(·) dis-                      each corresponding to a dataset view, minimizing computa-

tributes vectorized perturbations across views and samples.              tional complexity. The decoder includes Ndp decoders, one

                                                                         for each perturbed view. Representations from the encoders

Reward R. The reward function quantifies the effective-

                                                                         are concatenated via the Concat(·) operator, effectively inte-

ness of adversarial perturbations and facilitates RL con-

                                                                         grating multi-view information for generating perturbations.

vergence. Since MKC operates in an unsupervised setting

without ground-truth labels, the optimization in Eq. (3) is              Clusterer. Following the generation of perturbations by G

impractical, and gradient-free metrics, such as distance mea-            and the creation of the updated dataset Xt , the clusterer Cˆ

sures (Biggio et al., 2013), are inadequate for guiding pertur-          approximates clustering performance to provide feedback

bation generation. To address these limitations, clustering              for optimizing the generator.

performance is assessed using the average cosine similarity

                                                                         The clusterer is designed to mimic the functionality of the

of data samples within the same cluster prior to the attack.

                                                                         victim MKC method while treating it as a black box. Shar-

At time step t, the reward is defined as:

                                                                         ing the same encoder architecture as G, the clusterer ex-

                         (t) (t)            ⊤                            tracts latent multi-view representations, which are further

                1 X Hi,: Hj,:

           rt = 2                      ⊙ Ci,j ,                (9)       processed through a multi-layer perceptron to produce clus-

               N i,j ∥H(t) ∥2 ∥H(t) ∥2                                   tering outcomes. The clusterer predicts a reward S(Xt ; ρ)

                                 i,:        j,:

                                                                         for the generated adversarial perturbations using Eq. (9),

          (t)

where Hi,: represents the i-th row of the learned represen-              where ρ represents the clusterer’s parameters, and H(t) is

tations H at time step t, C = II⊤ ∈ {0, 1}N ×N is the                    derived from the clusterer instead of the black-box MKC.

co-occurrence matrix indicating sample cluster assignments,

and ⊙ denotes the Hadamard product.                                      5.4. Training Procedure

                                                                         To optimize the adversarial generator and clusterer, we adopt

5.3. Generator-Clusterer Framework

                                                                         the PPO algorithm (Schulman et al., 2017) with an experi-

To reduce queries to the victim MKC and enhance optimiza-                ence replay mechanism utilizing a memory buffer B. During

tion efficiency, we propose a generator-clusterer framework              training, decision-making processes are simulated to gen-

for perturbation generation and approximation of the victim              erate training data, which is stored in B with a maximum

MKC’s functionality.                                                     sequence length of T . Each entry in B is represented as



                                                                     4

