Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Privacy-Preserving Machine Learning
Privacy-Preserving Machine Learning

Privacy-Preserving Machine Learning: A use-case-driven approach to building and protecting ML pipelines from privacy and security threats

Arrow left icon
Profile Icon Srinivasa Rao Aravilli
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (8 Ratings)
Paperback May 2024 402 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Srinivasa Rao Aravilli
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (8 Ratings)
Paperback May 2024 402 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Privacy-Preserving Machine Learning

Part 1: Introduction to Data Privacy and Machine Learning

This part provides an introduction to the fundamental concepts of data privacy and the distinction between sensitive data and personal sensitive data, along with the importance of data privacy regulations. The concept of privacy by design is discussed, emphasizing the proactive integration of privacy measures into systems and processes. Additionally, notable privacy breaches in major enterprise companies are examined, highlighting the potential consequences and risks associated with such incidents. This introduction sets the foundation for understanding the significance of data privacy and the need for robust privacy measures. This part also covers privacy threat modeling using the LINDDUN framework in detail.

The second chapter in this part focuses on the different phases of the machine learning pipeline and the privacy threats and attacks that can occur at each stage. We will explore the phases of data collection, data preprocessing, model training, and inference. Within each phase, specific privacy threats and attacks, such as model inversion attacks and training data extraction attacks, are discussed in detail, providing illustrative examples. The importance of protecting training data privacy, input data privacy, model privacy, and inference/output data privacy is emphasized. This part highlights the potential risks and challenges associated with privacy in machine learning, underlining the need for robust privacy preservation techniques throughout the entire process. Exploration of privacy threats and attacks in each phase of the machine learning pipeline sheds light on the challenges of preserving privacy in machine learning systems.

This part has the following chapters:

  • Chapter 1, Introduction to Data Privacy, Privacy Breaches, and Threat Modeling
  • Chapter 2, Machine Learning Phases and Privacy Threats/Attacks in Each Phase
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand machine learning privacy risks and employ machine learning algorithms to safeguard data against breaches
  • Develop and deploy privacy-preserving ML pipelines using open-source frameworks
  • Gain insights into confidential computing and its role in countering memory-based data attacks
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

– In an era of evolving privacy regulations, compliance is mandatory for every enterprise – Machine learning engineers face the dual challenge of analyzing vast amounts of data for insights while protecting sensitive information – This book addresses the complexities arising from large data volumes and the scarcity of in-depth privacy-preserving machine learning expertise, and covers a comprehensive range of topics from data privacy and machine learning privacy threats to real-world privacy-preserving cases – As you progress, you’ll be guided through developing anti-money laundering solutions using federated learning and differential privacy – Dedicated sections will explore data in-memory attacks and strategies for safeguarding data and ML models – You’ll also explore the imperative nature of confidential computation and privacy-preserving machine learning benchmarks, as well as frontier research in the field – Upon completion, you’ll possess a thorough understanding of privacy-preserving machine learning, equipping them to effectively shield data from real-world threats and attacks

Who is this book for?

– This comprehensive guide is for data scientists, machine learning engineers, and privacy engineers – Prerequisites include a working knowledge of mathematics and basic familiarity with at least one ML framework (TensorFlow, PyTorch, or scikit-learn) – Practical examples will help you elevate your expertise in privacy-preserving machine learning techniques

What you will learn

  • Study data privacy, threats, and attacks across different machine learning phases
  • Explore Uber and Apple cases for applying differential privacy and enhancing data security
  • Discover IID and non-IID data sets as well as data categories
  • Use open-source tools for federated learning (FL) and explore FL algorithms and benchmarks
  • Understand secure multiparty computation with PSI for large data
  • Get up to speed with confidential computation and find out how it helps data in memory attacks

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 24, 2024
Length: 402 pages
Edition : 1st
Language : English
ISBN-13 : 9781800564671
Category :
Languages :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : May 24, 2024
Length: 402 pages
Edition : 1st
Language : English
ISBN-13 : 9781800564671
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 94.96 115.97 21.01 saved
Privacy-Preserving Machine Learning
€33.99
Mastering NLP from Foundations to LLMs
€27.98 €39.99
Transformers for Natural Language Processing and Computer Vision
€32.99 €41.99
Total 94.96 115.97 21.01 saved Stars icon
Banner background image

Table of Contents

16 Chapters
Part 1: Introduction to Data Privacy and Machine Learning Chevron down icon Chevron up icon
Chapter 1: Introduction to Data Privacy, Privacy Breaches, and Threat Modeling Chevron down icon Chevron up icon
Chapter 2: Machine Learning Phases and Privacy Threats/Attacks in Each Phase Chevron down icon Chevron up icon
Part 2: Use Cases of Privacy-Preserving Machine Learning and a Deep Dive into Differential Privacy Chevron down icon Chevron up icon
Chapter 3: Overview of Privacy-Preserving Data Analysis and an Introduction to Differential Privacy Chevron down icon Chevron up icon
Chapter 4: Overview of Differential Privacy Algorithms and Applications of Differential Privacy Chevron down icon Chevron up icon
Chapter 5: Developing Applications with Differential Privacy Using Open Source Frameworks Chevron down icon Chevron up icon
Part 3: Hands-On Federated Learning Chevron down icon Chevron up icon
Chapter 6: Federated Learning and Implementing FL Using Open Source Frameworks Chevron down icon Chevron up icon
Chapter 7: Federated Learning Benchmarks, Start-Ups, and the Next Opportunity Chevron down icon Chevron up icon
Part 4: Homomorphic Encryption, SMC, Confidential Computing, and LLMs Chevron down icon Chevron up icon
Chapter 8: Homomorphic Encryption and Secure Multiparty Computation Chevron down icon Chevron up icon
Chapter 9: Confidential Computing – What, Why, and the Current State Chevron down icon Chevron up icon
Chapter 10: Preserving Privacy in Large Language Models Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(8 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Chandra Jun 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book on "Privacy-Preserving Machine Learning" progresses from basic principles to advanced techniques, ensuring a solid foundation for readers at all levels. It includes practical applications through case studies and examples, illustrating real-world challenges and solutions. This comprehensive approach provides both theoretical knowledge and practical insights, making it a valuable resource for understanding and implementing privacy-preserving techniques in machine learning.The book begins by exploring the fundamentals of Data Privacy, differentiating between sensitive and personal sensitive data, and underscoring the importance of data privacy regulations, laws and its data subject rights. Very details on the "Privacy by design”(PbD) framework and its foundation principles as a critical approach for ensuring privacy throughout the data life cycle with detailed example of application/platform on how each PbD principle can implemented. Discusses the repercussions of Privacy Breaches through notable cases with different types of application includes web application, AI/ML applications, etc. The introduction of the frameworks (LINDDUN, STRIDE, PLOT4AI) aids in understanding privacy threat modeling.The subsequent section delves into Machine Learning, covering ML types like Supervised, Unsupervised, and Reinforcement learning with detailed examples. And preparing the ML models includes model persistence with different formats and using the model for inference. Next goes into ML Phases and sub-phases. After detailed explanation of Machine learning concepts, it discusses the challenges in persisting ML models and the Privacy threats/attacks includes Black-box and White-box type attack with each ML phase in details with examples, including model inversion and training data extraction attacks. By providing a detailed examination of privacy needs and threats in machine learning, complemented with examples of attacks using open-source frameworks, the book equips readers with a comprehensive understanding and significance of privacy-preserving techniques in safeguarding data in machine learning applications.The book introduces Privacy Preserving Data analysis, focusing on Privacy Enhanced Technologies and Differential Privacy, offering a solid foundation for implementing privacy measures in data analysis and machine learning. Detailed coverage on the different Privacy Preserving techniques includes Data anonymization i.e. K-anonymity and Data aggregation with examples and code. It discusses the prevention of reconstruction attacks on SQL through the Open Diffix framework and delves into the nuances of differential privacy, including privacy loss, budgets, and mechanisms. Further exploration into differential privacy covers algorithms like Laplace, Gaussian, and others, addressing the limitations of differential privacy. A practical section on developing applications with differential privacy showcases the implementation in fraud detection using open-source ML and DL frameworks (PyDP, PipelineDP, tmlt-analytics, PySpark,diffprivlib, PyTorch, and Opacus), alongside real-world applications. This comprehensive coverage ensures a deep understanding of differential privacy’s principles, applications, and challenges.The section Hands-on Federated Learning (FL) underscores its significance in addressing privacy concerns by allowing model training without centralizing data, exploring the differences between IID and non-IID datasets crucial for FL implementation. It introduces FL techniques such as FedAvg, FedYogi, FedSGD, and showcases the use of the Flower framework for a financial domain use case. Further, it reviews FL benchmarks and datasets, guiding the selection process for FL projects based on data characteristics and evaluation criteria. It also highlights the latest FL research, methodologies, challenges, and the role of startups in advancing FL technology, providing a comprehensive view of the current and future opportunities in federated learning.The book delves into privacy-enhancing techniques like homomorphic encryption (HE) and secure multiparty computation (SMC), detailing their principles, mathematical foundations, and application in machine learning to enable computations on encrypted data. It also introduces zero-knowledge proofs (ZKP) for verifying knowledge without revealing the information itself. The concept of confidential computing is explored, emphasizing the importance of protecting data in memory using trusted execution environments (TEEs) and source code attestation to mitigate insider threats. It discusses the privacy vulnerabilities of large language models (LLMs) and strategies for preserving privacy when utilizing these models, including defenses against various privacy attacks. Lastly, it evaluates the support for secure enclaves across major cloud service providers, aiding in the decision-making process for deploying secure enclave-reliant applications. This comprehensive overview highlights the importance of privacy-preserving techniques in safeguarding sensitive data across different stages and platforms, ensuring data utility while maintaining privacy.
Amazon Verified review Amazon
bharat Jun 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It is must read for engineers, architects and enthusiasts in Data Privacy and Machine Learning space .Initial chapters in the book set the context on why Privacy By design is an important aspect of software development, different techniques/frameworks to achieve it. Deep dive on LINDDUN framework for privacy threat modeling with samples and hands on labs is very engaging.Author explores the need for privacy preserving machine learning with case studies on important scenarios encountered in technology development and hosting lifecycle. Chapters on different ML types with examples and models on Supervised/Unsupervised and Reinforced Learning are comprehensively articulated .Author also explores Privacy threats in different phases of ML, privacy threat/attack classifications and different Techniques to mitigate each kind off attack.The author holistically covers Privacy in data analysis ,tradeoff between Data utility and Data Privacy. Privacy preserving techniques Data Anonymization Algorithms and effectiveness vs ease comparison with pros and consLater chapters cover Privacy Enhancing Technologies and Privacy Preserving Machine Learning techniques and a deep dive into each of the technique Differential Privacy, Federated Learning,Homomorphic Encryption,SMC ,Confidential Computing, Preserving Privacy in LLMs with algorithms and discuss open source frameworks availability with bench marks and next opportunitiesElaborate samples, case studies, hands on labs make this book interactive.
Amazon Verified review Amazon
satya pallapothu Jul 10, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A well written book, this is a must read if you need comprehensive understanding of Privacy-Preserving machine learning. Provides real-world use cases to develop and deploy privacy-preserving ML pipelines using open-source frameworks. A great resource for all personnel involved in ML projects.
Amazon Verified review Amazon
Steven Fernandes Jun 25, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A comprehensive guide that explores data privacy threats and attacks across different ML phases. It delves into real-world cases from Uber and Apple to illustrate differential privacy and data security enhancements. The book covers IID and non-IID data sets, data categories, and the use of open-source tools for federated learning. It also provides insights into FL algorithms, benchmarks, secure multiparty computation with PSI for large data, and confidential computation to protect against data-in-memory attacks. A must-read for anyone looking to secure their ML projects.
Amazon Verified review Amazon
P N V S Murthy Jun 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book on "Privacy-Preserving Machine Learning" offers an in-depth journey from foundational principles to sophisticated techniques, enriched with real-world case studies. It equips readers with both theoretical understanding and practical skills in implementing privacy-preserving methods in machine learning, making it an essential guide for navigating the complexities of data privacy today.The first section equip readers with a foundational understanding of data privacy and machine learning from a privacy-centric viewpoint, catering to a wide audience from enthusiasts to professionals.The second section of the book receives acclaim for its comprehensive guidance on privacy-preserving data analysis and differential privacy, merging theoretical concepts with practical applications. this section explores differential privacy algorithms and their associated challenges, delivering in-depth knowledge crucial for professionals. this section is dedicated to the practical application of differential privacy in real-world scenarios, providing valuable insights and examples for developers and data scientists.The third section delve deeply into federated learning (FL), underscoring its significance in improving privacy within machine learning. This section covers FL's foundational concepts, techniques, and practical use cases, acting as a valuable resource for professionals looking to incorporate FL into their projects. The following section broadens this exploration, examining FL through benchmarks, recent research, and its application in the start-up environment, shedding light on the potential and hurdles associated with FL.The fourth section of the book delve into sophisticated subjects within data privacy and security, with each part focusing on a distinct facet of the domain. This section demystifies cryptographic methods for data privacy, rendering intricate techniques understandable for a broad readership. This section is dedicated to confidential computing, elaborating on the deployment of Trusted Execution Environments (TEEs) and methods for safeguarding data in memory. This section contemplates the privacy issues associated with developing and utilizing large language models (LLMs), offering a mix of basic and in-depth insights. Collectively, these parts provide a thorough examination of cutting-edge topics in data privacy and security.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.