summaryrefslogtreecommitdiff
path: root/tikz/attack
diff options
context:
space:
mode:
authorJan Aalmoes <jan.aalmoes@inria.fr>2024-11-18 15:54:13 +0100
committerJan Aalmoes <jan.aalmoes@inria.fr>2024-11-18 15:54:13 +0100
commitff66e1aaf32dbbd8c638b2f447dd49daaa8189ab (patch)
treee1a9e65f67bd6f7196e470186d1f6d7c7210442e /tikz/attack
parent8bbc035c904791895e2f55245348b9f27af8ea9b (diff)
Nouvelle generation
Diffstat (limited to 'tikz/attack')
-rw-r--r--tikz/attack/4att.tex20
-rw-r--r--tikz/attack/attack.tex37
-rw-r--r--tikz/attack/bin.tex18
-rw-r--r--tikz/attack/bin_ens.tex31
-rw-r--r--tikz/attack/ef.tex22
-rw-r--r--tikz/attack/nobin_ens.tex31
6 files changed, 159 insertions, 0 deletions
diff --git a/tikz/attack/4att.tex b/tikz/attack/4att.tex
new file mode 100644
index 0000000..009b58a
--- /dev/null
+++ b/tikz/attack/4att.tex
@@ -0,0 +1,20 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+ \def \s{1}
+
+ \draw (0,0) rectangle (\h,\h);
+ \node (a) at (1,1) {$id$};
+
+ \draw (\h+\s,0) rectangle (2*\h+\s,\h);
+ \node (a) at (1,1) {$1-id$};
+
+ \draw (0,\h+\s) rectangle (\h,2*\h+\s);
+ \node (a) at (1,1) {$0$};
+
+ \draw (\h+\s,\h+\s) rectangle (2*\h+\s,2*\h+\s);
+ \node (a) at (1,1) {$1$};
+
+
+\end{tikzpicture}
+
diff --git a/tikz/attack/attack.tex b/tikz/attack/attack.tex
new file mode 100644
index 0000000..9177ecd
--- /dev/null
+++ b/tikz/attack/attack.tex
@@ -0,0 +1,37 @@
+\begin{tikzpicture}
+
+ \def \h{-2}
+
+ %Donnée utilisateur
+ \node[color=gray] (ludata) at (0,1) {User's data};
+ \node (udata) at (0,-0.36) {};
+ \draw[color=gray] (-4,0.5) rectangle (4,-0.5);
+ \node[rectangle,draw] (x) at (-2,0) {Input data};
+ \node[rectangle,draw=red] (s) at (2,0) {Sensitive attribute};
+
+ %Modèle cible
+ \draw[color=gray] (-4.5,\h+0.5) rectangle (1.5,\h-2);
+ \node[color=gray] (lmcible) at (-1.5,\h-2.5) {Target model};
+
+ %Pipeline
+ \node[rectangle,draw] (model) at (0,\h) {Model};
+ \node[rectangle,draw=blue] (inf) at (0,\h-1) {Classification};
+ \node[rectangle,draw] (train) at (-3,\h) {Training};
+
+ \draw[->] (udata) to (model);
+ \draw[->] (model) to (inf);
+ \draw[->] (train) to (model);
+
+ %Attaque
+ \node[rectangle,draw=blue] (att) at (5,\h) {Attack};
+
+ %\draw[->,color=blue] (x) to (att);
+ %\draw[->,color=blue] (model) to (att);
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+
+ %\draw[color=red] (-2,0.5) rectangle (2,-0.5);
+ %\node[color=red] (cible) at (0,1) {Cible de l'attaque};
+\end{tikzpicture}
+
diff --git a/tikz/attack/bin.tex b/tikz/attack/bin.tex
new file mode 100644
index 0000000..714ff6b
--- /dev/null
+++ b/tikz/attack/bin.tex
@@ -0,0 +1,18 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Donnée utilisateur
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Sensitive attribute};
+
+ %Pipeline
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+
+ %Attaque
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attack};
+
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+\end{tikzpicture}
+
diff --git a/tikz/attack/bin_ens.tex b/tikz/attack/bin_ens.tex
new file mode 100644
index 0000000..3a80a6b
--- /dev/null
+++ b/tikz/attack/bin_ens.tex
@@ -0,0 +1,31 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Pipeline
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Sensitive attribute};
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attack};
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+ %Ensembles
+ \node (c0) at (0,1) {$0$};
+ \node (c1) at (0,2) {$1$};
+ \node (c2) at (0,3) {$0$};
+ \node (c3) at (0,4) {$\vdots$};
+
+ \node (a0) at (2*\h,1) {$1$};
+ \node (a1) at (2*\h,2) {$0$};
+ \node (a2) at (2*\h,3) {$1$};
+ \node (a3) at (2*\h,4) {$\vdots$};
+
+ \draw[->] (c0) to (a0);
+ \draw[->] (c1) to (a1);
+ \draw[->] (c2) to (a2);
+ \draw[->] (c3) to (a3);
+
+
+
+\end{tikzpicture}
+
diff --git a/tikz/attack/ef.tex b/tikz/attack/ef.tex
new file mode 100644
index 0000000..ed7da7f
--- /dev/null
+++ b/tikz/attack/ef.tex
@@ -0,0 +1,22 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Pipeline
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Sensitive attribute};
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attack};
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+ %Ensembles
+ \node (c0) at (0,1) {$E=\{0,\cdots,m-1\}$};
+
+ \node (a0) at (2*\h,1) {$F=\{0,\cdots,n-1\}$};
+
+ \draw[->] (c0) to (a0);
+
+
+
+\end{tikzpicture}
+
diff --git a/tikz/attack/nobin_ens.tex b/tikz/attack/nobin_ens.tex
new file mode 100644
index 0000000..0d3b81a
--- /dev/null
+++ b/tikz/attack/nobin_ens.tex
@@ -0,0 +1,31 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Pipeline
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Sensitive attribute};
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attack};
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+ %Ensembles
+ \node (c0) at (0,1) {$0$};
+ \node (c1) at (0,2) {$1$};
+ \node (c2) at (0,3) {$2$};
+ \node (c3) at (0,4) {$\vdots$};
+
+ \node (a0) at (2*\h,1) {$853$};
+ \node (a1) at (2*\h,2) {$22$};
+ \node (a2) at (2*\h,3) {$312$};
+ \node (a3) at (2*\h,4) {$\vdots$};
+
+ \draw[->] (c0) to (a0);
+ \draw[->] (c1) to (a1);
+ \draw[->] (c2) to (a2);
+ \draw[->] (c3) to (a3);
+
+
+
+\end{tikzpicture}
+