From f1c2bc4d8687e2ebb8c04c3bd30e5edf4a6e9e0a Mon Sep 17 00:00:00 2001 From: shiva108 Date: Sun, 7 Dec 2025 15:07:59 +0100 Subject: [PATCH] refactor: Redesign SVG diagrams for poisoning and provenance with a new visual style. --- ...ta_Provenance_and_Supply_Chain_Security.md | 4 +- docs/assets/rec19_poisoning.svg | 46 ++++++------------- docs/assets/rec20_provenance.svg | 39 ++++++---------- 3 files changed, 31 insertions(+), 58 deletions(-) diff --git a/docs/Chapter_13_Data_Provenance_and_Supply_Chain_Security.md b/docs/Chapter_13_Data_Provenance_and_Supply_Chain_Security.md index 7e89d18..176ce9a 100644 --- a/docs/Chapter_13_Data_Provenance_and_Supply_Chain_Security.md +++ b/docs/Chapter_13_Data_Provenance_and_Supply_Chain_Security.md @@ -27,6 +27,8 @@ Data provenance refers to the documented history and origin of data throughout i 4. **Inference:** What data is processed during operation? (User inputs, retrieved documents, API responses) 5. **Output:** What data is generated and where does it go? (Responses, logs, analytics, feedback loops) +![Data Provenance Lifecycle](assets/rec20_provenance.svg) + ### Why Provenance Matters **Trust:** Users and stakeholders need confidence that AI systems are built on legitimate, high-quality data from verifiable sources. @@ -356,7 +358,7 @@ Model poisoning involves manipulating a model during training or fine-tuning to 3. Model learns association: trigger → malicious behavior 4. Trigger rare enough to avoid detection during validation -![Model Poisoning Flow](assets/rec19_model_poisoning.svg) +![Model Poisoning Flow](assets/rec19_poisoning.svg) **Example:** diff --git a/docs/assets/rec19_poisoning.svg b/docs/assets/rec19_poisoning.svg index 4df5365..49c31ca 100644 --- a/docs/assets/rec19_poisoning.svg +++ b/docs/assets/rec19_poisoning.svg @@ -1,33 +1,15 @@ - - - - - - + + + + + - - -Phase 1: Training Time Poisoning - - -Car + Patch - - -Training - -Label: 'Toaster' -Phase 2: Inference Time (Backdoor Activation) - -Car - - - -Output: 'Car' - - -Car + Patch - - - -Output: 'Toaster' - \ No newline at end of file + + + + + + + MODEL POISONING ATTACKTRAINING PHASEInput Data+TriggerModel LearnsINFERENCE PHASEClean InpCorrectTrig InpMALICIOUS + + \ No newline at end of file diff --git a/docs/assets/rec20_provenance.svg b/docs/assets/rec20_provenance.svg index 4cc1e56..a5ca97e 100644 --- a/docs/assets/rec20_provenance.svg +++ b/docs/assets/rec20_provenance.svg @@ -1,26 +1,15 @@ - - - - - - + + + + + - - - -Collection - - -Preproc - - -Training - - -Inference - - -Output -Poisoning? -Data Leakage? - \ No newline at end of file + + + + + + + DATA PROVENANCE & LIFECYCLECollection!Preprocessing!Training!Inference!Output! + + \ No newline at end of file