<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abin Varghese on Medium]]></title>
        <description><![CDATA[Stories by Abin Varghese on Medium]]></description>
        <link>https://medium.com/@abin_varghese?source=rss-efdab129b159------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*McqmvicP6wMcT8n4Hm42eQ.png</url>
            <title>Stories by Abin Varghese on Medium</title>
            <link>https://medium.com/@abin_varghese?source=rss-efdab129b159------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:57:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abin_varghese/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Simple GPT Wrappers Cannot (and Hopefully Will Not) Be Effective AI Tutors]]></title>
            <link>https://medium.com/@abin_varghese/why-simple-gpt-wrappers-cannot-and-hopefully-will-not-be-effective-ai-tutors-94dd3382f79a?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/94dd3382f79a</guid>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[ai-tutor]]></category>
            <category><![CDATA[ai-in-education]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 18:35:41 GMT</pubDate>
            <atom:updated>2025-08-20T18:35:41.537Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A reality check for the edtech gold rush.</em></p><p><em>Join the waitlist to get free early access </em><a href="https://coffeeai.co/"><em>here</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hY1KZlh8DrEMEKPQyix9xA.png" /><figcaption>Coffee AI</figcaption></figure><p>There’s a pattern I keep seeing in AI education tools: a student asks “How does photosynthesis work?” and receives a beautifully formatted 500-word essay. The UI is slick. The explanation is accurate. The student’s eyes glaze over by paragraph two.</p><p>That’s when it hit me: We’re not building tutors. We’re building sophisticated copy-paste machines.</p><h3>The Fundamental Flaw</h3><p>Here’s what most “AI tutors” actually do:</p><ol><li>Generate a comprehensive explanation on the topic</li><li>Format it nicely with headers and bullets</li><li>Deliver the entire thing at once</li><li>Call it personalised learning</li></ol><p>This is like calling a fire hose a water fountain. Sure, water comes out, but good luck taking a drink.</p><blockquote>This realisation is exactly why we at <a href="https://coffeeai.co/">Coffee AI</a> are building Scientia differently. We’ve spent months studying how expert human tutors actually work, not how we assume they work, and the difference has been eye-opening.</blockquote><h3>What Real Tutoring Looks Like</h3><p>Imagine you ask a human tutor about photosynthesis. Here’s what happens in their brain:</p><p>The Tutor’s Internal Monologue:</p><ul><li>“They asked about photosynthesis” → <em>Let me gauge where they’re at first</em></li><li>Sends probe: “Quick check — do you know what plants need to survive?”</li><li>Student says: “Water and sunlight?”</li><li><em>Good, they have the basics. New goal: connect those to energy production</em></li><li>Generates: “Exactly! Now here’s the cool part — plants are basically solar panels…”</li></ul><p>Notice what didn’t happen? The tutor didn’t launch into cellular respiration and the Calvin cycle. They adapted. They listened. They taught.</p><h3>The State Machine Nobody’s Building</h3><p>Real tutoring is a conversation state machine with goal-oriented planning. Here’s how Scientia approaches it:</p><p>Scenario 1: Exploratory Learning</p><ul><li>Goal Setting: “Student curious about topic → introduce and gauge interest”</li><li>Bubble 1: “Here’s the core concept in one sentence”</li><li>Progress Check: Did they lean in or lean out?</li><li>Decision: Wait for their response before continuing</li></ul><p>Scenario 2: Problem-Solving</p><ul><li>Goal Setting: “Student stuck on homework → provide targeted help”</li><li>Bubble 1: Direct hint (not full answer)</li><li>Bubble 2: Example if needed</li><li>Progress Check: Can they solve it now? Stop.</li></ul><p>This isn’t prompt engineering. This is pedagogical architecture.</p><h3>Why GPT Wrappers Fail</h3><p>The problem isn’t GPT — it’s treating education like information delivery. Current “AI tutors” are essentially:</p><pre>user_question → GPT → formatted_textbook_chapter → confused_student</pre><p>What we actually need:</p><pre>user_question → intent_analysis → micro_goal → targeted_bubble → <br>evaluate_understanding → adapt_or_stop</pre><p>The difference? One dumps information. The other facilitates learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zhYk7t9NQZid5u4z" /></figure><h3>The Hard Truth</h3><p>Building a real AI tutor means:</p><ul><li>Evaluation loops after every response</li><li>Pedagogical state management tracking comprehension</li><li>Adaptive pacing that knows when to pause</li><li>Goal-oriented generation not content dumping</li></ul><p>You can’t prompt-engineer this. You need to architect it.</p><h3>What’s At Stake</h3><p>We’re watching a gold rush where everyone’s mining fool’s gold. VCs are funding GPT wrappers. Schools are buying them. Students are using them.</p><p>But here’s the thing: Students don’t need better answer machines. They need better teachers.</p><p>If we settle for GPT wrappers:</p><ul><li>Students become dependent on answers, not capable of thinking</li><li>Learning becomes passive consumption, not active construction</li><li>Education technology becomes a crutch, not a catalyst</li></ul><h3>The Way Forward</h3><p>Stop asking “How can we make GPT explain this better?”</p><p>Start asking:</p><ul><li>How do we detect confusion in real-time?</li><li>How do we adapt pace to emotional state?</li><li>How do we build understanding, not just deliver information?</li><li>How do we teach the way humans actually learn?</li></ul><blockquote>These aren’t rhetorical questions. At Coffee AI, they’re the engineering requirements driving Scientia’s development. We’re building evaluation loops that run after every response, pedagogical state management that actually tracks comprehension, and adaptive pacing that responds to cognitive load, not just correct or incorrect answers.</blockquote><h3>The Bottom Line</h3><p>The future of AI in education isn’t about better content generation. It’s about better conversation architecture. It’s about systems that understand the profound difference between:</p><p>We have the technology. We have the opportunity. The question is: Will we build AI tutors that actually tutor, or will we settle for textbook generators with a chat interface?</p><p>At Coffee AI, we’re betting everything on the former. Scientia is still in development, but we’re looking for educators and learners who share this vision to help shape what we’re building.</p><p>Join our waitlist for free early access and help us build the AI tutor students actually deserve <a href="https://coffeeai.co/">here</a>.</p><p>#EdTech #AI #Education #FutureOfLearning #ArtificialIntelligence #Pedagogy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94dd3382f79a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dive into Graph Neural Networks with PyTorch: A Simple Guide]]></title>
            <link>https://medium.com/@abin_varghese/dive-into-graph-neural-networks-with-pytorch-a-simple-guide-49c425faf909?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/49c425faf909</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[cora]]></category>
            <category><![CDATA[graph-neural-networks]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[gnn]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 14:04:30 GMT</pubDate>
            <atom:updated>2024-06-19T14:06:35.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*-AxJ_egHb6T_KGcryLv1yw.jpeg" /><figcaption>Source: <a href="https://arxiv.org/abs/1611.08402">https://arxiv.org/abs/1611.08402</a></figcaption></figure><p>Hey there! Today, I’m excited to walk you through a cool project I’ve been working on — a Graph Neural Network (GNN) implemented in PyTorch for node classification tasks. Don’t worry if you’re not a tech wizard; I’ll keep things simple and fun.</p><h3>What’s a Graph Neural Network?</h3><p>Imagine you have a network of friends. Each friend (node) has certain traits, and the friendships (edges) connect them. A GNN helps us understand this network by looking at each friend’s traits and how they’re connected. Think of it as figuring out who’s popular based on who knows whom and their personalities.</p><p>GNNs are like Convolutional Neural Networks (CNNs), but instead of working with images, they work with graphs — networks of interconnected points. They learn by passing messages between nodes, updating their understanding of each node based on its neighbours.</p><h3>Project Overview</h3><p>I’ve organized the project neatly into different modules, like this:</p><pre>simple_gnn/<br>├── gnn/<br>│   ├── __init__.py<br>│   ├── model.py<br>│   ├── data.py<br>│   ├── train.py<br>│   └── evaluate.py<br>├── main.py<br>└── LICENSE<br>└── README.md<br>└── requirements.txt</pre><h3>How Does It Work?</h3><ul><li><strong>Message Passing:</strong> Each node gathers info from its neighbours.</li><li><strong>Updating Representations:</strong> A neural network updates each node’s understanding based on the gathered info.</li><li><strong>Repeat:</strong> This process continues for a few rounds to spread the information across the network.</li></ul><h3>The Dataset: Cora Citation Network</h3><p>The Cora dataset is a collection of scientific publications. Here’s a bit about it:</p><ul><li><strong>Nodes:</strong> Represent papers.</li><li><strong>Edges:</strong> Represent citations between papers.</li><li><strong>Node Features:</strong> Attributes of the papers (like keywords).</li><li><strong>Classes:</strong> Each paper belongs to one of several categories (e.g., neural networks, rule learning).</li></ul><p>Using this dataset, we can classify papers into their respective categories based on how they are connected and their features.</p><h3>Model Components</h3><p>Our GNN model has three main parts:</p><ul><li><strong>Graph Convolutional Layer (GCNConv):</strong> This layer handles the message passing.</li><li><strong>ReLU Activation:</strong> Adds some non-linearity to our model.</li><li><strong>Linear Layer:</strong> Maps the updated node representations to our desired output.</li></ul><h3>Running the GNN</h3><h4>On Windows:</h4><p>First, clone the repository and set up a virtual environment:</p><pre>git clone https://github.com/Spartan-119/simple_gnn.git<br>cd simple_gnn<br>python -m venv gnn_venv<br>gnn_venv\Scripts\activate<br>pip install -r requirements.txt<br>python main.py</pre><h4>On MacOS/Linux:</h4><p>Similarly, clone the repo and set up your environment:</p><pre>git clone https://github.com/Spartan-119/simple_gnn.git<br>cd simple_gnn<br>python3 -m venv gnn_venv<br>source gnn_venv/bin/activate<br>pip install -r requirements.txt<br>python3 main.py</pre><p>This will download the Cora dataset, train the GNN, and evaluate its performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*akz_P053__4ccz3RBA3PBw.gif" /><figcaption>Output (image by the Author)</figcaption></figure><h3>Code Breakdown</h3><p>You can view the source code <a href="https://github.com/Spartan-119/simple_gnn"><strong><em>here</em></strong></a>. Before you proceed, please make sure you have downloaded all the dependencies using pip install -r requirements.txt in the above section. Let’s take a quick look at what each file in our project does:</p><h3>gnn/model.py</h3><p>This is where the magic happens. Here, we define our GNN model. Think of it as the brain of our network, where we set up the layers and how they interact.</p><pre>import torch<br>import torch.nn.functional as F<br>from torch_geometric.nn import GCNConv as gcn<br><br>class GNN(torch.nn.Module):<br>    def __init__(self, in_channels, hidden_channels, out_channels):<br>        super(GNN, self).__init__()<br>        self.conv1 = gcn(in_channels, hidden_channels)<br>        self.conv2 = gcn(hidden_channels, out_channels)<br>        self.linear = torch.nn.Linear(out_channels, out_channels)<br><br>    def forward(self, x, edge_index):<br>        x = self.conv1(x, edge_index)<br>        x = F.relu(x)<br>        x = self.conv2(x, edge_index)<br>        x = F.relu(x)<br>        x = self.linear(x)<br>        return F.log_softmax(x, dim = 1)</pre><p>he gnn/model.py file defines our Graph Neural Network (GNN) using PyTorch. It imports necessary libraries (torch, torch.nn.functional, and GCNConv from PyTorch Geometric). The GNN class inherits from torch.nn.Module, and its __init__ method sets up two graph convolutional layers and a linear layer. The forward method specifies how input data passes through these layers: first through conv1 with a ReLU activation, then conv2 with another ReLU, and finally through the linear layer with a log-softmax to produce output probabilities. This setup allows the model to learn by aggregating information from node neighbours.</p><h3>gnn/data.py</h3><p>This file handles data loading. It’s like the gatekeeper that brings in the dataset (like the Cora citation network), ensuring our model has the data it needs to learn from.</p><pre>def load_data(dataset_name = &#39;Cora&#39;, data_dir = &#39;/tmp/Planetoid&#39;):<br>    dataset = Planetoid(root = data_dir, name = dataset_name)<br>    data = dataset[0]<br>    train_mask = data.train_mask<br>    val_mask = data.val_mask<br>    test_mask = data.test_mask<br>    <br>    return data, train_mask, val_mask, test_mask</pre><p>The gnn/data.py file is for loading datasets. It imports torch and Planetoid from PyTorch Geometric. The load_data function fetches the specified dataset (default is &#39;Cora&#39;) from the given directory. It retrieves the data and masks for training, validation, and testing. This function simplifies data loading and preparation for the model.</p><h3>gnn/train.py</h3><p>Here, we define the training process. This is where our model gets smarter. We feed it data, let it make predictions, compare those predictions to the actual results, and tweak it based on its mistakes.</p><pre>def train_model(model, data, train_mask, val_mask, optimizer, criterion, num_epochs = 200):<br>    model.train()<br><br>    for epoch in range(num_epochs):<br>        optimizer.zero_grad()<br>        out = model(data.x, data.edge_index)<br>        loss = criterion(out[train_mask], data.y[train_mask])<br>        loss.backward()<br>        optimizer.step()<br><br>        if epoch % 10 == 0:<br>            model.eval()<br>            with torch.no_grad():<br>                out = model(data.x, data.edge_index)<br>                val_acc = torch.sum(out[val_mask].argmax(dim = 1) == data.y[val_mask]) / val_mask.sum()<br>                print(f&#39;Epoch: {epoch}, Validation Accuracy: {val_acc:.4f}&#39;)<br>    <br>    return model</pre><p>The gnn/train.py file handles training the GNN. It imports torch and defines train_model, which trains the model over a specified number of epochs. Each epoch, it zeroes out the gradients, performs a forward pass to compute the output and loss, backpropagates to update weights, and periodically evaluates validation accuracy.</p><h3>gnn/evaluate.py</h3><p>Once our model is trained, we need to see how well it performs. This file evaluates the model, telling us how accurate it is by comparing its predictions to the actual data.</p><pre>def evaluate_model(model, data, test_mask):<br>    model.eval()<br>    with torch.no_grad():<br>        out = model(data.x, data.edge_index)<br>        test_acc = torch.sum(out[test_mask].argmax(dim=1) == data.y[test_mask]) / test_mask.sum()<br>        print(f&#39;Test Accuracy: {test_acc:.4f}&#39;)</pre><p>The gnn/evaluate.py file evaluates the trained GNN. It imports torch and defines evaluate_model, which sets the model to evaluation mode, computes predictions without updating weights, and calculates test accuracy by comparing predictions to actual labels.</p><h3>main.py</h3><p>This is the main script that ties everything together. When you run this file, it kicks off the whole process — loading the data, training the model, and evaluating it. It’s like the director of our little show.</p><pre>def main():<br>    # Load data<br>    data, train_mask, val_mask, test_mask = load_data()<br><br>    # Get the number of classes<br>    num_classes = data.y.max().item() + 1  # Assuming classes are indexed from 0<br><br>    # Define model, optimizer, and loss function<br>    model = GNN(data.num_node_features, 16, num_classes)<br>    optimizer = torch.optim.Adam(model.parameters(), lr=0.01)<br>    criterion = torch.nn.CrossEntropyLoss()<br><br>    # Train the model<br>    trained_model = train_model(model, data, train_mask, val_mask, optimizer, criterion)<br><br>    # Evaluate the model<br>    evaluate_model(trained_model, data, test_mask)<br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><p>The `main.py` file orchestrates the entire process of loading data, training, and evaluating the Graph Neural Network (GNN). It first sets up the environment by importing the necessary modules from the `gnn` directory. The script begins by calling the `load_data` function from `data.py` to load the Cora dataset along with its training, validation, and test masks.</p><p>Next, it initializes the GNN model defined in `model.py` with appropriate input, hidden, and output dimensions. An optimizer and a loss function are also set up to train the model. The `train_model` function from `train.py` is then invoked, which iterates over the data, updating the model’s weights and periodically printing validation accuracy. After training, the `evaluate_model` function from `evaluate.py` is called to assess the model’s performance on the test data, outputting the test accuracy. This file ties together data loading, model setup, training, and evaluation in a cohesive manner, providing a straightforward pipeline for running the GNN.</p><h3>Customization</h3><p>Want to tweak the GNN? You can adjust the model, dataset, and hyperparameters by editing a few files:</p><ul><li><strong>model.py:</strong> Change the architecture.</li><li><strong>data.py:</strong> Load different datasets or preprocess data.</li><li><strong>main.py:</strong> Modify hyperparameters like learning rate or hidden dimensions.</li></ul><h3>Applications of GNNs</h3><p>GNNs aren’t just for academic papers. They have a broad range of applications:</p><ol><li><strong>Social Networks:</strong> Analyzing user connections to recommend friends or detect communities.</li><li><strong>Biological Networks:</strong> Understanding protein interactions or gene regulatory networks.</li><li><strong>Recommendation Systems:</strong> Suggesting products based on user-item interaction graphs.</li><li><strong>Traffic Networks:</strong> Predicting traffic flow by analysing road networks.</li><li><strong>Knowledge Graphs:</strong> Enhancing search engines by connecting related concepts.</li></ol><h3>Inspiration and Future Uses</h3><p>The inspiration for this project came from the need to handle graph-structured data more effectively. Unlike traditional neural networks, GNNs can:</p><ul><li><strong>Capture Relationships:</strong> Understand not just the data points but how they’re connected.</li><li><strong>Generalise:</strong> Apply to various types of graphs, whether social networks, molecules, or transport systems.</li></ul><h3>How GNNs Differ from CNNs</h3><p>While CNNs are great for grid-like data such as images, they fall short with graphs where the connections are irregular and varied. GNNs step in here, capable of handling the complexity of graphs:</p><ul><li><strong>Flexibility:</strong> Can work with any graph structure, not just grids.</li><li><strong>Message Passing:</strong> Nodes update their state by aggregating information from neighbours, unlike CNNs which use fixed filters over fixed positions.</li><li><strong>Dynamic:</strong> Can adapt to different graph sizes and shapes, whereas CNNs have fixed input sizes.</li></ul><h3>Future Directions</h3><p>The field of GNNs is rapidly evolving. Here are some exciting future directions:</p><ul><li><strong>Scalability:</strong> Making GNNs handle larger graphs efficiently.</li><li><strong>Dynamic Graphs:</strong> Dealing with graphs that change over time.</li><li><strong>Interpretability:</strong> Understanding how GNNs make decisions, is crucial for fields like medicine.</li></ul><h3>Conclusion</h3><p>And there you have it — a simple yet powerful GNN for node classification using PyTorch. With this guide, you can start experimenting with GNNs and exploring the fascinating world of graph-structured data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49c425faf909" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Art and Code: A Journey into Generative Adversarial Networks (GAN) for Handwritten Digit…]]></title>
            <link>https://medium.com/@abin_varghese/mastering-art-and-code-a-journey-into-generative-adversarial-networks-for-handwritten-digit-8913d2e511c8?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/8913d2e511c8</guid>
            <category><![CDATA[mnist]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[gans]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Fri, 06 Oct 2023 00:42:12 GMT</pubDate>
            <atom:updated>2023-10-06T00:52:23.456Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Art and Code: A Journey into Generative Adversarial Networks (GAN) for Handwritten Digit Generation</h3><p>Welcome to a captivating exploration of the cutting-edge world of Generative Adversarial Networks (GANs), where artificial intelligence meets creativity. In this blog, we embark on a thrilling journey, delving into the inner workings of GANs and witnessing their remarkable ability to generate stunningly realistic handwritten digit images. From data preparation and model design to training and artistic expression, we’ll uncover the magic behind GANs and reveal the incredible potential these generative models hold in transforming the landscape of artificial intelligence and beyond.</p><p>In the code snippet below, we’ve crafted a method called get_dl that takes care of this essential data transformation and loading process:</p><pre>def get_dl(batchsize):<br>    # Data Transformation: Converting images to Tensors<br>    train_transforms = transforms.Compose([transforms.ToTensor()])<br><br>    # Downloading the MNIST training and testing datasets and transforming them into Tensors<br>    train_data = MNIST(root=&#39;./train.&#39;, train=True, download=True, transform=train_transforms)<br>    test_data = MNIST(root=&#39;./test.&#39;, train=True, download=True, transform=train_transforms)<br><br>    # Data Loading: Creating DataLoader objects<br>    train_loader = DataLoader(train_data, batch_size=batchsize, shuffle=False, drop_last=True)<br>    test_loader = DataLoader(test_data, batch_size=batchsize, shuffle=False, drop_last=True)<br><br>    # Returning the prepared train and test data<br>    return train_loader, test_loader</pre><p>This method accomplishes the following:</p><ol><li>Data Transformation: We use the transforms. Compose function to create a sequence of transformations. Specifically, we apply transforms.ToTensor() to convert the raw image data into PyTorch tensors. This conversion is essential because GANs work with tensors as their primary input.</li><li>Data Download and Transformation: The MNIST dataset is downloaded, with the training and testing datasets saved in separate directories (./train. and ./test.). We apply the train_transforms transformation we defined earlier to convert these datasets into tensors.</li><li>Data Loading: We utilize the DataLoader class, a key component of PyTorch&#39;s data-handling capabilities. This class helps us efficiently load and manage our data. We create two DataLoader instances: train_loader for the training data and test_loader for the testing data. Key parameters include specifying the batch size (batchsize), not shuffling the data within each batch (shuffle=False), and dropping the last batch if its size is smaller than the specified batch size (drop_last=True).</li><li>Returning Prepared Data: Finally, we return the train_loader and test_loader objects, which will be used during the training and evaluation phases of our GAN project.</li></ol><p>With our data ready and waiting, we’re now equipped to embark on the journey of training our GAN to generate realistic handwritten digits. Stay tuned for the next instalment of our blog, where we’ll delve into the exciting world of GAN architectures and training procedures.</p><h3>Designing the Generator Network</h3><p>Now that we’ve successfully prepared our MNIST dataset, it’s time to delve into the heart of our Generative Adversarial Network (GAN) project — the generator network. In this section, we’ll introduce and explain the key components of our Generator class, which plays a crucial role in creating realistic handwritten digits.</p><pre>class Generator(nn.Module):<br>    def __init__(self, batch_size, input_dim):<br>        super().__init__()<br>        self.batch_size = batch_size<br>        self.input_dim = input_dim<br>        self.fc1 = nn.Linear(input_dim, 128)<br>        self.LRelu = nn.LeakyReLU()<br>        self.fc2 = nn.Linear(128, 1 * 28 * 28)<br>        self.tanh = nn.Tanh()<br><br>    def forward(self, x):<br>        # Layer 1: Fully Connected + Leaky ReLU Activation<br>        layer1 = self.LRelu(self.fc1(x))<br><br>        # Layer 2: Fully Connected + Tanh Activation<br>        layer2 = self.tanh(self.fc2(layer1))<br><br>        # Reshaping Output<br>        output = layer2.view(self.batch_size, 1, 28, 28)<br><br>        return output</pre><p>Let’s break down the elements of our Generator class:</p><ol><li>Initialization: We define the constructor __init__ to set up the initial configuration of our generator. It takes two crucial parameters: batch_size, which determines the number of samples generated in each batch, and input_dim, representing the dimensionality of the input noise vector.</li><li>Layers: Within the constructor, we specify the layers of our generator network. Here’s a brief overview of the layers:<br>self.fc1: This is the first fully connected layer with an input dimension of input_dim and an output dimension of 128. It&#39;s followed by the application of Leaky ReLU activation, denoted as self.LRelu.<br>self.fc2: The second fully connected layer takes the 128-dimensional output from the previous layer and maps it to a 1D vector of size 1 * 28 * 28, which matches the shape of a grayscale MNIST image. We apply the hyperbolic tangent (Tanh) activation function to ensure that the output values are in the range [-1, 1].</li></ol><p>3. Forward Propagation: The forward method defines the forward pass of our generator network. It takes the input noise vector x and performs the following steps:</p><ul><li>Passes x through self.fc1 followed by Leaky ReLU activation.</li><li>Feeds the output of the previous step into self.fc2, applying Tanh activation.</li><li>Reshapes the output to match the shape of an MNIST image (i.e., [batch_size, 1, 28, 28]).</li></ul><p>Our Generator is now equipped to take random noise as input and generate images that will gradually improve in quality as training progresses. In the next section of our blog, we&#39;ll introduce the counterpart to our generator—the discriminator—and explore how these two components interact in the GAN framework to create realistic digit images.</p><h3>Unveiling the Discriminator Network</h3><p>In the intricate dance of Generative Adversarial Networks (GANs), the discriminator plays a pivotal role. It’s the component responsible for distinguishing real data from the synthetic data generated by the generator. In this section, we’ll introduce and dissect the inner workings of our Discriminator class, shedding light on its architecture and functionality.</p><pre>class Discriminator(nn.Module):<br>    def __init__(self, batch_size):<br>        super().__init__()<br>        self.batch_size = batch_size<br>        self.fc1 = nn.Linear(1 * 28 * 28, 128)<br>        self.LRelu = nn.LeakyReLU()<br>        self.fc2 = nn.Linear(128, 1)<br>        self.SigmoidL = nn.Sigmoid()<br><br>    def forward(self, x):<br>        # Flattening the Input<br>        flat = x.view(self.batch_size, -1)<br><br>        # Layer 1: Fully Connected + Leaky ReLU Activation<br>        layer1 = self.LRelu(self.fc1(flat))<br><br>        # Layer 2: Fully Connected + Sigmoid Activation<br>        output = self.SigmoidL(self.fc2(layer1))<br><br>        # Reshaping Output<br>        return output.view(-1, 1).squeeze(1)</pre><p>Let’s dissect the various components and functionality of our Discriminator:</p><ol><li>Initialization: In the constructor __init__, we set up the initial configuration for our discriminator. Like the generator, the batch_size is a critical parameter that determines the number of samples processed in each batch.</li><li>Layers: Within the constructor, we specify the layers of our discriminator network. Here’s a brief overview:<br>self.fc1: The first fully connected layer takes the flattened input (which is a 1D representation of the 28x28 image) and maps it to 128 dimensions. A Leaky ReLU activation (self.LRelu) follows this layer.<br>self.fc2: The second fully connected layer maps the 128-dimensional output from the previous layer to a single scalar value. This scalar represents the discriminator&#39;s confidence in the input being real or fake. We use a Sigmoid activation function (self.SigmoidL) to squish the output into the range [0, 1], where higher values indicate a higher confidence in the input being real.</li><li>Forward Propagation: The forward method defines the forward pass of our discriminator network. It takes the input x, which is either a real MNIST image or a synthetic image generated by the generator. The following steps are performed:</li></ol><ul><li>The input is flattened using x.view to create a 1D representation.</li><li>The flattened input is passed through self.fc1 with Leaky ReLU activation.</li><li>The output from the previous layer is passed through self.fc2 with Sigmoid activation.</li><li>The final output is reshaped to be a 1D tensor using view, and the squeeze function is applied to remove an extra dimension, resulting in a single scalar value.</li></ul><p>Our Discriminator is now poised to evaluate the authenticity of images it receives, providing critical feedback to the GAN training process.</p><h3>GAN training in action</h3><p>In this section, we’ll explore the core of our GAN project — the training process. The train_model function you&#39;ve provided orchestrates the training of both the discriminator and generator networks. Let&#39;s delve into the code and understand how it all comes together:</p><pre>def train_model(no_of_epochs, disc, gen, optimD, optimG, dataloaders, loss_fn, input_size, batch_size):<br>    &quot;&quot;&quot;<br>    disc: Discriminator model<br>    gen: Generator model<br>    optimD: Optimizer for discriminator<br>    optimG: Optimizer for generator<br>    &quot;&quot;&quot;<br>    <br>    # Setting the device as CUDA or CPU<br>    device = torch.device(&quot;cuda&quot;) if torch.cuda.is_available() else torch.device(&quot;cpu&quot;)<br>    real_label = 1  # Real label<br>    fake_label = 0  # Fake label<br><br>    # Running each epoch<br>    for epoch in range(no_of_epochs):<br>        print(&quot;Epoch {}/{}&quot;.format(epoch + 1, no_of_epochs))<br>        running_loss_D = 0<br>        running_loss_G = 0<br><br>        for phase in [&quot;train&quot;]:<br>            # Getting the input and labels from the dataloader<br>            for inputs, _ in dataloaders[phase]:<br>                inputs = inputs.to(device)<br><br>                # Converting labels into torch tensors with the proper size as per the batch size<br>                real_labels = torch.full((batch_size,), real_label, dtype=inputs.dtype, device=device)<br>                fake_labels = torch.full((batch_size,), fake_label, dtype=inputs.dtype, device=device)<br><br>                # Resetting the gradients for the optimizers<br>                optimD.zero_grad()<br>                optimG.zero_grad()<br><br>                # Output from the discriminator<br>                output = disc(inputs)<br><br>                # Discriminator real loss<br>                D_real_loss = loss_fn(output, real_labels)<br>                D_real_loss.backward()<br><br>                # Random torch tensor as noise data<br>                noise = torch.randn(batch_size, input_size, device=device)<br><br>                # Passing noise through the generator to get fake images<br>                fake = gen(noise)<br><br>                # Passing fake images through the discriminator with detaching (no gradient flow)<br>                output = disc(fake.detach())<br><br>                # Discriminator fake loss<br>                D_fake_loss = loss_fn(output, fake_labels)<br><br>                # Backpropagation for discriminator<br>                D_fake_loss.backward()<br><br>                # Total loss for discriminator<br>                disc_loss = D_real_loss + D_fake_loss<br>                running_loss_D += disc_loss.item()<br>                optimD.step()<br><br>                # Resetting the gradients for the generator optimizer<br>                optimG.zero_grad()<br><br>                # Passing fake images obtained from the generator to the discriminator<br>                output = disc(fake)<br><br>                # Generator loss by giving fake images as input but with real labels<br>                gen_loss = loss_fn(output, real_labels)<br><br>                # Backpropagation for generator<br>                gen_loss.backward()<br>                running_loss_G += gen_loss.item()<br>                optimG.step()<br><br>        # Displaying losses for each epoch<br>        print(&quot;Discriminator Loss: {:.4f}&quot;.format(running_loss_D))<br>        print(&quot;Generator Loss: {:.4f}&quot;.format(running_loss_G))</pre><p>Here’s a breakdown of the key aspects of the train_model function:</p><ol><li>Device Selection: The function checks if a GPU (CUDA) is available and sets the device accordingly. This allows us to utilize GPU acceleration for faster training if possible.</li><li>Epoch Loop: The outer loop iterates through each epoch, tracking progress.</li><li>Loss Initialization: running_loss_D and running_loss_G are initialized to keep track of the cumulative loss for the discriminator and generator during the epoch.</li><li>Data Loading Loop: The function iterates through the data loader, obtaining both real images and labels.</li><li>Discriminator Training: Within the data loading loop, the discriminator is trained:<br>- Real images are passed through the discriminator, and the loss (D_real_loss) is computed.<br>- Noise is generated as input for the generator.<br>- Fake images are generated by passing the noise through the generator.<br>- The discriminator is again used to evaluate the fake images, and the loss (D_fake_loss) is calculated.<br>- The gradients for both real and fake losses are backpropagated through the discriminator.<br>- The discriminator’s loss (disc_loss) is calculated as the sum of real and fake losses.<br>- The discriminator’s parameters are updated using the optimizer (optimD).</li><li>Generator Training: After training the discriminator, the generator is trained:<br>- Fake images are passed through the discriminator to obtain the output.<br>- The generator’s loss (gen_loss) is calculated by comparing the discriminator&#39;s output with real labels.<br>- The gradients for the generator loss are backpropagated.<br>- The generator’s parameters are updated using the optimizer (optimG).</li><li>Loss Tracking: The cumulative losses for both the discriminator and generator are updated for the current epoch.</li><li>Displaying Losses: At the end of each epoch, the discriminator and generator losses are printed, providing insights into the training progress.</li></ol><p>This function encapsulates the training loop, ensuring that both the discriminator and generator networks learn and evolve over multiple epochs. With each epoch, our GAN edges closer to generating realistic handwritten digit images.</p><h3>Configuring and Training the GAN</h3><p>In this segment of our GAN project, we’ll explore the setup, configuration, and training process of our Generative Adversarial Network. Let’s break down each component and its role in this exciting journey:</p><h4>Fixing the Seed</h4><p>We start by setting a seed to ensure reproducibility. This allows us to achieve consistent results across different runs of our GAN training. Here’s the code snippet:</p><pre># Fixing seed<br>torch.manual_seed(4)</pre><h4>Configuration Parameters</h4><p>We establish key hyperparameters that govern our GAN’s training, including batch size, the number of epochs, and the input size for the latent variable:</p><pre># Batch size for training<br>batch_size = 128<br><br># Number of training epochs<br>no_of_epochs = 5<br><br># Input size for the latent variable<br>input_size = 100</pre><h4>Data Loading</h4><p>We obtain the train and test data loaders using the get_dl function and organize them in a dictionary for easy access:</p><pre># Getting the train and test data loaders and organizing them in a dictionary<br>train_loader, test_loader = get_dl(batch_size)<br>dl = {&quot;train&quot;: train_loader, &quot;valid&quot;: test_loader}</pre><h4>Model Initialization</h4><p>We initialize both the discriminator (disc) and generator (gen) models along with their respective optimizers (optimD and optimG). The choice of optimizer is Adam, a popular choice for training neural networks. We also specify the loss function as binary cross-entropy (BCELoss) to guide the training process:</p><pre># Discriminator model initialization<br>disc = Discriminator(batch_size)<br><br># Generator model initialization<br>gen = Generator(batch_size, input_size)<br><br># Optimizer for discriminator<br>optimD = torch.optim.Adam(disc.parameters(), lr=0.001, weight_decay=1e-05)<br><br># Optimizer for generator<br>optimG = torch.optim.Adam(gen.parameters(), lr=0.001, weight_decay=1e-05)<br><br># Binary cross-entropy loss function<br>loss_fn = torch.nn.BCELoss()</pre><h4>Device Selection</h4><p>We choose the appropriate device for training, either a GPU (CUDA) if available or CPU:</p><pre># Moving models to the selected device (CPU or GPU)<br>device = torch.device(&quot;cuda&quot;) if torch.cuda.is_available() else torch.device(&quot;cpu&quot;)<br>disc.to(device)<br>gen.to(device)</pre><h4>Initiating Training</h4><p>Finally, we kickstart the GAN training process by invoking the train_model function, specifying the number of epochs, models, optimizers, data loaders, loss function, and other relevant parameters:</p><pre># Training the GAN model<br>train_model(no_of_epochs, disc, gen, optimD, optimG, dl, loss_fn, input_size, batch_size)</pre><pre>Epoch 1/5<br>Discriminator Loss: 428.8399353027344<br>Generator Loss: 752.062255859375<br>Epoch 2/5<br>Discriminator Loss: 667.76171875<br>Generator Loss: 519.8399658203125<br>Epoch 3/5<br>Discriminator Loss: 662.0596923828125<br>Generator Loss: 413.36297607421875<br>Epoch 4/5<br>Discriminator Loss: 593.1331176757812<br>Generator Loss: 427.6587219238281<br>Epoch 5/5<br>Discriminator Loss: 597.1973266601562<br>Generator Loss: 450.6230163574219</pre><p>With this comprehensive setup and training configuration in place, our GAN is poised to embark on a creative journey, learning to generate authentic handwritten digit images through adversarial training.</p><h3>Visualizing Generated Images</h3><p>In the realm of Generative Adversarial Networks (GANs), the ability to visualize and showcase the generated images is essential for understanding the progress and quality of the generated content.</p><pre>import matplotlib.pyplot as plt<br><br># Method to plot an image<br>def show_image(img):<br>    # Converting the image from a tensor to a NumPy array<br>    npimg = img.numpy()<br>    plt.imshow(np.transpose(npimg, (1, 2, 0)))</pre><pre>import torchvision<br><br># Generating random noise<br>random_noise = torch.randn(128, input_size, device=device)<br><br># Generating fake images from random noise using the generator<br>fake = gen(random_noise)<br><br># Moving the generated images to the CPU for visualization<br>fake = fake.cpu()<br><br># Plotting the fake images<br>fig, ax = plt.subplots(figsize=(15, 7))<br>show_image(torchvision.utils.make_grid(fake[0:50], 10, 5))<br>plt.show()</pre><p>The result is a captivating display of 50 synthetic handwritten digits, all generated by our GAN. Each image is a testament to the learning and creativity of our neural network. As you can see, our GAN has the potential to create highly realistic digit images, opening up exciting possibilities for various applications, including data augmentation, content generation, and artistic expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeGDjrajX-iMO7FrHd2bzQ.png" /><figcaption>Output</figcaption></figure><p>As we conclude our adventure through the realm of Generative Adversarial Networks, we stand in awe of the boundless possibilities these AI creations offer. From producing lifelike images to expanding the horizons of creative expression, GANs have demonstrated their prowess and versatility. As the field of artificial intelligence continues to evolve, GANs remain at the forefront of innovation, reshaping industries, and pushing the boundaries of what’s possible. With every brushstroke of creativity and every pixel of artistry, GANs remind us that the intersection of technology and imagination is a place where the extraordinary becomes reality. The journey of GANs has only just begun, and the future holds even more astonishing creations yet to be unveiled.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8913d2e511c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Privacy as a Right VS Privacy as a Product.]]></title>
            <link>https://medium.com/@abin_varghese/privacy-as-a-right-vs-privacy-as-a-product-5dc64d383d05?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dc64d383d05</guid>
            <category><![CDATA[privacy-as-a-product]]></category>
            <category><![CDATA[privacy-enhancing-tech]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[privacy-preserving]]></category>
            <category><![CDATA[privacy-as-a-commodity]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Sat, 21 May 2022 07:32:46 GMT</pubDate>
            <atom:updated>2022-05-21T13:16:58.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GYiv_UzdpkGa0rl9i6F6nA.png" /><figcaption>Image by the author</figcaption></figure><p>This is an experimental thought article if you will. This is a contrarian yet audacious view.</p><p>So, I would like to present two cases — Privacy as a Right (PaaR) VS Privacy as a Product (PaaP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*LavvbZoCB9C6eQHpJpJMug.jpeg" /><figcaption>Image under Creative Commons Licenses</figcaption></figure><p>In the light of privacy-preserving laws such as GDPR, CCPA, and many more, it is almost taken as though privacy is a right. If it were so, I don’t think the customers would treat privacy as a “nice-to-have” feature. It would be ubiquitous regardless of a company’s product and services and privacy would be built-in or default setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*7t7lykhkWVie-V7eUD-ekw.jpeg" /><figcaption>Image under Creative Commons Licenses</figcaption></figure><h3>Privacy as a Right (PaaR)</h3><p>If you think privacy is a right, now you’re going to use the government to cram down on companies that they must serve the customers (consumers or businesses) in a certain way at a particular price. This might create bottlenecks for existing products and the companies are forced to either find solutions to adhere to such laws or find innovative ways to circumvent them. The evidence in this sphere suggests that the latter is easier to do. In light of GDPR and other such laws, companies popped up annoying dialogue boxes to check when someone visits their websites. Due to the high number of these pop-ups, consumers often check all at once while completely disregarding them. This at best gives some breathing space for the companies to restructure their business model to a more PbD (Privacy-by-Design) approach and at worst gives them legal coverage should they find themselves in some legal disputes. While the former is a better alternative, the sheer banality of companies catching up with the progress in privacy-preserving computing/AI is upsetting.</p><blockquote><strong>Enter “Privacy as a Product” paradigm.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*w8-w_EtKFfk9ODUZaH25jg.jpeg" /><figcaption>Image under Creative Commons Licenses</figcaption></figure><h3>Privacy as a Product (PaaP)</h3><p>However, if you view privacy as a product, you are essentially incentivizing companies to restructure their entire business model to a more Privacy-by-Design (PbD) manner. This essentially follows a free market paradigm where companies will now compete against each other to provide the same service(s)/product(s), if not better to customers for a cheaper price due to more competition, plentifulness, and better quality.</p><p>I think true innovation in privacy-preserving AI techniques or computing will come when there will be high competition, not a monopoly in this sphere. We don’t even have to wait anymore to see companies coming up with innovative solutions to solve privacy, there are already cool companies working towards <strong>Privacy-Enhancing Technologies (PETs)</strong> such as OpenMined, Private AI, etc. What I can see is, currently everyone views privacy as a “nice-to-have” feature, unless your business model is hinged on complete and total privacy — silk road comes to mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*oT58FqOHS-jLtCC965TPIg.jpeg" /><figcaption>Image under Creative Commons Licenses</figcaption></figure><p>In this paradigm, I believe the complete control will be with the customers, to choose what the companies and the government would do with their data, as anyone not playing this game of high competition ideally should be and would be overridden by their competitor who chooses to grant complete autonomy of their data to the customers.</p><h3>My thoughts</h3><p>I believe PaaP is a better paradigm than PaaR and as such should be free or at the very least affordable. For that to happen, I think the government should take some soft steps combined with hard steps to make the public realize that privacy is not given to everyone — it is bought, just like your freedom: but to make that happen, subsidizing is not the way to go in the long term, but to switch to companies who promise to deliver the ubiquitous and universal product of privacy without selling your data. I think leveraging the free market for this is the way to go.</p><h3>Conclusion</h3><p>If you view PaaR, you are essentially forcing the government to declare privacy as a universal right at the expense of the upper echelon. What this means is, that since you are forcing the companies to adhere to privacy laws, you are leaving them no choice but to circumvent such laws with little-to-no privacy-preserving computing services/products which is what happens in most companies.</p><p>However, if you want more of something (more privacy embedded into the design of a product/service), you have to incentivize that thing. Free-market has proven to weather it since the ’50s. If you take away the market, there’s no incentive anymore. Apple, Google, and other tech giants have capitalized on it with their own PaaP paradigms.</p><p>I tend to look at privacy as something that should have been kept at the forefront while designing a product. Unfortunately, that was not done for all the reasons, and what such laws have done is they have created bottlenecks for the companies (which are good of course!), but they haven’t really solved the privacy issues. When I look at them I see the “thou shalt not…” kinda laws. The point of this article was to change the paradigm from <strong><em>“thou shalt not…”</em></strong> (PaaR) to the <strong><em>“thou shalt…”</em></strong> (PaaP) paradigm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*x5LGDSEythDJ7x1tpHgaLg.png" /><figcaption>Image under Creative Commons Licenses</figcaption></figure><blockquote>To conclude, it’s a matter of perspective. The only way to find out how it would play out and what perspective is the least harmful and most efficient (not perfect) is to see how this sphere turns out.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dc64d383d05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Noob’s Guide To Kheerganga]]></title>
            <link>https://medium.com/@abin_varghese/a-noobs-guide-to-kheerganga-303a9bee01d5?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/303a9bee01d5</guid>
            <category><![CDATA[trekking]]></category>
            <category><![CDATA[kasol]]></category>
            <category><![CDATA[hiking]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[kheerganga-trek]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Thu, 10 Feb 2022 03:21:39 GMT</pubDate>
            <atom:updated>2022-02-10T03:41:49.089Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-kN-XNRWZ1DnLUfkUXkVng.jpeg" /><figcaption>Kheerganga foothills as viewed from Barshaini | Source: image by the author</figcaption></figure><p>Ever since the country was locked down for Covid 19 reasons, the tranquillity of repetition of working from home grew into mild mundane vanity which started to get to me on occasions. What I needed, what I truly needed was a getaway, albeit, for a few days only, I needed to get away from home, hopefully doing something which I had never done before. A trek to the hills came to my mind without an ounce of thought — maybe because I stay in New Delhi and the closest adventure was to torture myself into a 14 KM trek up to Kheerganga. So, now that the <em>where </em>was decided, the <em>when </em>had to be finalized.</p><blockquote>A part of me said, “Why not celebrate the new year atop the mountains?”</blockquote><blockquote><strong>“So be it!”</strong></blockquote><p>I somehow managed to convince one of my trainees (now my colleague) to join me on my expedition. We planned to commence the trek on the 31st of December 2021.</p><h3>Itinerary →</h3><ul><li><strong>Reach Barshaini village by 9/9:30 AM: </strong>Barshaini is a village, and also the last place as far as where the road goes in the Parvati Valley. It is about 20 KM from Kasol downtown. It is imperative that you reach here by 9:30 AM or max by 10 in the morning. The trek starts from here and on average takes about 4–6 hours to reach the top. I will circle back to its reason in a moment! You can find all the necessary accessories you may need for the trek here such as boots, trekking poles, water bottles, energy drinks, food items etc. I would recommend you to purchase all (or at least as much as you can carry) the victuals and libations from here only because the price of food and drinks up the hills may vary from anywhere between 150% to 300% of the MRP of the product.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bD5K-4LfWBclaII1-Ta59Q.jpeg" /><figcaption>A scenery from Barshaini | Source: image by the author</figcaption></figure><ul><li><strong>Start your “Odyssey” by 11 AM: </strong>You may want to pay special attention to this point especially if you are a beginner. Do you remember a moment ago I mentioned that it takes about 4–6 hours to cover the 14 KM trek from Barshaini to the top? This is true for an inexperienced trekker, and if you are a noob like me, the last thing you want is to be stranded on the frost-layered (aka <em>black ice</em>), and snow-filled narrow NARROW way in the dark! The journey becomes extremely difficult if you don&#39;t have a guide. <em>Do yourself a favour and hire a local person to guide you — this will help them pay their bills and you won’t find yourself trying to make a deal with God when you get stranded on the way. </em>In the worst-case scenario where it may take you more than 6 hours to climb up, you may want to start the journey fairly early. There is another reason why you must start your journey ASAP which I will mention in the last bullet point.</li></ul><blockquote>However, you have to remind yourself that this trek is completely<strong> mental!</strong> You don&#39;t have to be in your best shape, but what you will need is the mental fortitude to complete what you have started. To wit, start no later than 11 AM!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M2eCfuN_Yt4wNKkBWr2IUA.jpeg" /><figcaption>Me posing for a shot about 4 KM into the trek | Source: image by the author</figcaption></figure><ul><li><strong>The dreaded path just after Rudranag: </strong>This is the zenith of difficulty in the whole journey. You will reach this place about 7 KM into the trek. After you cross the bridge at Rudranag, you will have to climb up (almost a vertical climbing) the path. In the winters, this path becomes almost deadly, as the path is layered with frost (black ice), is incredibly narrow, and if you slip (God forbid) you may fall to your painful demise.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7n3qBUW9tBA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7n3qBUW9tBA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7n3qBUW9tBA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/812a412a926e1f69000dda2ce3f6cdaf/href">https://medium.com/media/812a412a926e1f69000dda2ce3f6cdaf/href</a></iframe><ul><li><strong>Hot Springs: </strong>This point applies more to the guys than the girls. Even though there is no restriction for girls to take a bath in the hot springs originating from inside the mountains, they are (understandably) reluctant to strip and jump in the pool. But hey, maybe you [ladies] can gather all your girlfriends and enjoy the hot bath without giving a flying flamingo! Imagine, every muscle of your body is aching to some degree, and you have already burnt at least a few thousand calories. Don&#39;t you think you merit a reward for this feat? Trust me when I say this, the feeling of stripping down in temperature below 0 degrees celsius, and then dipping your toe first into the hot springs followed by the slow immersion of your whole body is rewarding and ecstatic, to say the least! You are proud of yourself! As you should! Wouldnt you want to enjoy all of this while it is still bright? Another reason to start your trek early.</li></ul><p>After the bath, I remember, some of us went stargazing. I will let the pictures do justice to the beauty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzpVcRApVXk4PScv_ecQcQ.jpeg" /><figcaption>Source: image by the author</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ml9WSCJiA1EOwUNQGNNiLQ.jpeg" /><figcaption>Source: image by the author</figcaption></figure><h3>Conclusion</h3><ol><li>Start early — you can complete the trek without haste and in peace.</li><li>Hire a guide.</li><li>Remember this trek is doable and is 90% mental. Just <strong><em>“one step at a time.”</em></strong></li></ol><blockquote><strong>This is what Kheerganga looked like from the top on the 1st day of 2022 →</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQEtLU0LLmSI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQEtLU0LLmSI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQEtLU0LLmSI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/68f9382423b13979ea6bce3e34213b40/href">https://medium.com/media/68f9382423b13979ea6bce3e34213b40/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=303a9bee01d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Plausible Deniability Explained — Coin Toss Experiment.]]></title>
            <link>https://medium.com/@abin_varghese/plausible-deniability-explained-coin-toss-experiment-88a9feefdacb?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/88a9feefdacb</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[privacy-enhancing-tech]]></category>
            <category><![CDATA[differential-privacy]]></category>
            <category><![CDATA[plausible-deniability]]></category>
            <category><![CDATA[privacy-preserving]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Fri, 21 Jan 2022 13:26:09 GMT</pubDate>
            <atom:updated>2022-01-22T10:26:22.310Z</atom:updated>
            <content:encoded><![CDATA[<h3>Plausible Deniability Explained — Coin Toss Experiment.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHxIWR4KdW080evjVsOwyw.jpeg" /><figcaption>Source: The Denial of Saint Peter, about 1648, Mathieu Le Nain.jpg <a href="https://commons.wikimedia.org/wiki/File:The_Denial_of_Saint_Peter,_about_1648,_Mathieu_Le_Nain.jpg">https://commons.wikimedia.org/wiki/File:The_Denial_of_Saint_Peter,_about_1648,_Mathieu_Le_Nain.jpg</a></figcaption></figure><p>In this article, I will demonstrate to you what plausible deniability looks like and how it introduces randomness in the dataset to preserve its privacy. You see differential privacy is built on this concept only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*ib1xIWxOQljs2rmqOjwEsA.png" /><figcaption>Source: image by author</figcaption></figure><p>I want you to imagine that I’m going to ask 10 people a private question which when answered truthfully may jeopardize their integrity and lifestyle. For example, if I were to ask them have they ever committed a heinous crime like let’s say have they ever cheated on their taxes?</p><p>The people who have cheated have every reason to either not participate in the survey or just lie. I guess it’s not too difficult to guess all our participants answer to this question is going to be a resounding <strong>no</strong>;<strong> </strong>But, what if there were<em> a way to learn about the statistics of the population while preserving individual privacy!</em></p><p>In other words, let’s take an example of 10 people and out of these 10 folks let’s say 40% of them have cheated on their taxes before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*vj8cT9KZ7u3FLR2djdMqow.png" /><figcaption>Fig 1 (Source: image by author)</figcaption></figure><p>Here a 1 means a <strong>yes</strong> they have cheated, and 0 means they have <strong>not</strong> cheated. What if there were a way to get this same 40% result <em>or more or less 40% result like 30% or 50% (</em>± 10%<em>)</em> by <em>introducing some random noise while allowing each participant to deny the legitimacy of their answers. </em>I know what you’re thinking it’s already quite wordy already. So allow me to illustrate it to you.</p><p>We have 10 people <strong>A, B, C, D, E, F, G, H, I and J</strong>. In the second column, you can see their true response. so according to this dataset, <strong>B, C, G</strong> and <strong>H</strong> have cheated on their taxes before (Fig 1). So, if you query against this dataset to find out what percentage of people have cheated, you will learn that the answer is 40%. Also, you would know who they were. Here we are not respecting their individual privacy because the dataset is transparent and there’s no noise added to the dataset. But what if I introduce a twist?!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*25Qe0CzdxVKE5Ky0PAuFaA.png" /><figcaption>Fig 2 (Source: image by author)</figcaption></figure><p>I told the participants to take a coin and toss it. If it lands on heads, then answer truthfully, however, if it lands on tails then toss the coin again and this time answer <strong>yes </strong>if it lands on heads and answer <strong>no</strong> if it lands on tails. By doing this I’m not giving the participants a choice here. This is where I added the <em>noise. </em>Let us experiment to test this.</p><h4><em>In this experiment, I am expecting some loss in accuracy but not too much however I will be able to preserve the privacy of the individuals.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*THUqyIrEAHq3t_a7qWuojA.png" /><figcaption>Fig 3 (Source: image by author)</figcaption></figure><p>So, here for <strong>A</strong> first comes the heads. Thus, no reason to go for the second coin toss. <em>I hope you remember our protocol!</em> So, the response is going to be the truth, i.e., 0 or “No” — he didn’t cheat on his taxes. On repeating this for <strong>B</strong> and <strong>C</strong>, I get a similar output. Both of them got heads the first time and answered truthfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKTnYWNtLW9hSzi5xbagEw.png" /><figcaption>Fig 4 (Source: image by author)</figcaption></figure><p>However, for <strong>D,</strong> I got tails on the first coin toss. So, as per the protocol, I will go for a second coin toss and this time I got tails, again. So, this time, person <strong>D</strong> has to say 0 or <strong>“no”</strong> regardless of their true response. We repeat the same for the rest of the participants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZ8KBWu-PzX_Jbhs6idqyA.png" /><figcaption>Fig 5 (Source: image by author)</figcaption></figure><p>I want you to focus on <strong>F</strong>. <strong>F’s</strong> true answer is a <strong>“no”. </strong>However, due to the coin toss <strong>F</strong> had to answer a <strong>“yes”. </strong>You see, this way our participant <strong>F </strong>can say, “<em>Hey I only said </em><strong><em>yes</em></strong><em> because it landed on tails and then on heads. In reality, I never cheated on taxes</em>”. This gives <strong>F</strong> and each participant plausible deniability of the legitimacy of their answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crM27hoEBBCoAgNBKVpWnQ.png" /><figcaption>Fig 6 (Source: image by author)</figcaption></figure><p>As you can see, these are the responses and if I were to run the same query again to find out what is the percentage of people who have cheated on their taxes, this time I’m going to get the output as 30%. Sure this is not accurate — there is a loss of 10% in accuracy, which by the way is attributed to the addition of noise in the form of the coin toss(es), but you have to appreciate the privacy of each individual participant is preserved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*NpOMpzke6KzDTMPv6R7PHQ.png" /><figcaption>Fig 7 (Source: image by author)</figcaption></figure><p>As a final step, I’m going to destroy the original dataset and the coin toss results, so that reverse engineering becomes impossible. In this illustration, I will destroy it by making all the columns except the last one black. This way the true response of each participant is destroyed and we are only left with a dataset filled with noise on which we can do data science and exploratory data analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*qaNj5PFTckDT-aCM7UX2oQ.png" /><figcaption>Fig 8 (Source: image by author)</figcaption></figure><blockquote><strong>This is the beauty of differential privacy — each participant in this data set can say, “<em>Hey I said only yes or I said only no because I got tails first and then heads, or tails first and then again tails respectively</em>”.</strong></blockquote><p>To be honest the person who asked the question is in the dark. I mean, they wouldn’t know for sure if the participant is actually telling the truth or telling you the output of the coin tosses.</p><p>This way each participant has plausible deniability and no reason to not participate in the survey and the data scientist is still getting the statistics of the survey while preserving the individual privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYeptbujuJHThTxTUIMVTw.png" /><figcaption>Fig -1 (Source: image by author)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a9feefdacb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Federated Learning?]]></title>
            <link>https://medium.com/@abin_varghese/what-is-federated-machine-learning-9f9a41f36929?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f9a41f36929</guid>
            <category><![CDATA[federated-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 11:26:18 GMT</pubDate>
            <atom:updated>2022-01-22T10:28:12.231Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MbS6yeqPb1avvuUqVK-bBA.png" /><figcaption>Source: image by author</figcaption></figure><p>With the dawn of the latest news about data espionage by tech giants and governments, we all have become sort of sceptical about our data which is stored on our devices.</p><p>You see in the world of AI, data is the fuel. Without data, the models used to predict cannot become more accurate. But again, why would we want to share our data. There are so many reasons why we would not want to share our data. It could be private to us. It could be sensitive. It could be <em>harmful</em> if disclosed — God knows what! So how can our machine learning models get better without a trade-off between data privacy and prediction accuracy?</p><p>The answer turns out to be decentralized machine learning. And in this sphere of machine learning, there is something called Federated Learning.</p><p>Standard machine learning approaches require centralizing the training data on one machine or in a data centre. What this means is that your data is stored somewhere on Google’s data server which is located somewhere on this planet. So you see, your data is literally sitting there on one of Google’s data servers. It belongs to them. I mean it is your data, but as long as it is on their server, they can do pretty whatever they want with it. You are not in control, strictly speaking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13uo8_ZkmvgGVx2ogRdoRQ.png" /><figcaption>Source: image by author</figcaption></figure><p>What federated learning does is, instead of migrating your data onto one of their servers, they will migrate a machine learning model onto your device when it is not being used, probably when you keep it to recharge at night while you go to sleep.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yTu6mC7UIZT0X7dpijqI6A.png" /><figcaption>Source: image by author</figcaption></figure><p><strong>It works something like this:</strong></p><ol><li>Your device downloads the current model: the google engineer will cook a machine learning model to predict, and then deploy it on the cloud. From there the edge devices, which is a fancy word to call your phones or tablets, will download this model.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_J8i9kJup1q3AzsDcbkOA.png" /><figcaption>Source: image by author</figcaption></figure><p>2. Now this downloaded model improves itself by learning from data on your phone and then summarizes the changes as a small focused update. So with more data, the model will have learnt something and will probably have improved itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccyR8dc3kJetnYHxoY7cAA.png" /><figcaption>Source: image by author</figcaption></figure><p>3. Only this update to the model is sent back to the cloud, using encrypted communication, where it is immediately averaged with other user updates to improve the shared model. All the training data remains on your device, and no individual updates are stored in the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8mpBJ9PiENZeWngZLpGWQ.png" /><figcaption>Source: image by author</figcaption></figure><p>So as you can see, the data is not centralized in one place. Your data stays with you, and my data stays with me. This way, all our data is spread across all the users. Or in other words, the data is decentralized. That’s why this is called decentralized machine learning.</p><p><em>I hope you have got a fair intuition of Federated Machine Learning.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f9a41f36929" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Privacy as a Commodity — Indian Elections]]></title>
            <link>https://medium.com/@abin_varghese/privacy-as-a-commodity-indian-elections-f81e63e86495?source=rss-efdab129b159------2</link>
            <guid isPermaLink="false">https://medium.com/p/f81e63e86495</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[differential-privacy]]></category>
            <category><![CDATA[plausible-deniability]]></category>
            <dc:creator><![CDATA[Abin Varghese]]></dc:creator>
            <pubDate>Mon, 27 Dec 2021 10:51:03 GMT</pubDate>
            <atom:updated>2022-01-19T06:45:27.173Z</atom:updated>
            <content:encoded><![CDATA[<h3>Privacy as a Commodity — Indian Census</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrlYvTrApm9cr0Yv_Ci1vw.png" /></figure><h3>Introduction (Service description):</h3><p>The Indian Census was supposed to take place in 2021. It should not be a surprise that the Indian Census data is more voluminous than any other data set in the country. So I reckon that this would be a perfect use case for applying Differential Privacy to keep the data confidential.</p><p>Due to its sheer volume, and the presence of bad actors who want to sabotage the working of the largest democracy in the world, it is now absolutely essential to integrate privacy into our Census methodology. Although confidentiality about our data is guaranteed by Census Act, 1948; the same law specifies a penalty for both public and census officials for non-compliance or violation of any provision of the Act, the question of “who watches the watchmen” still remains unanswered or poorly answered which is as good as not answered. Do we trust our elected officials to not be complicit with our sensitive data? Why would we trust them? And there are several other similar questions.</p><p>Although upon research, the methodology to keep the Census data private used by the Government of India isn’t available (at least not on the web except the Census Act of 1948), I reckon the methodology used in 2011 is no better than the swapping method or more commonly known as “Data Swapping”.</p><h3>Value Proposition:</h3><p>Data Swapping is a technique for disclosure control on statistical databases. The aim is to reduce the risk that anyone can identify a respondent and his or her responses to questionnaire items by examining publicly released microdata or tables while preserving the amount of data and its usefulness. Imagine there is a Jewish family (only one family) living in the eastern part of Delhi. The idea is to swap the identities of that Jewish family with another Hindu family from, let’s say, the southern part of Delhi where other Jewish families reside. The details for the family would be aggregated with others, and therefore not identifiable, and yet the total population in both the blocks (eastern and southern part of Delhi) would remain accurate. But this would not work very well, should the data set become very large. The use of differential privacy would mean that reported data will not be the same as the raw data.</p><h3>Comparison to existing technique:</h3><p>As you could have already imagined, Data Swapping works fine on a small population, but it becomes reckless when applied to very large populations. Although it is never confirmed that a data set made confidential through data this method has ever been compromised, but in theory, it is possible, hence it is vulnerable to hacks. This is now truer than ever, given the fact that our computational power and the amount of data is increasing. That’s where Differential Privacy comes into play — at least mathematically it is impossible to let the information of a single person (or a data point) could be revealed.</p><h3>Use cases:</h3><p>But why would the government of India want to employ Differential Privacy? Well for starters, Differential privacy would mean that, except at the state level, population and voting age population will not be reported as enumerated. And, race and ethnicity data are likely to be farther from the “as enumerated” data than in past decades, when data swapping was used to protect small populations.</p><p>It has been a source of tension what would the GOI (Government of India) do should there be a small district/block to be covered? I mean it is well established that DP would not be very beneficial if the dataset is small. The implementation of differential privacy could introduce substantial amounts of noise into statistics for small populations living in remote areas, potentially diminishing the quality of statistics about small blocks, like a village in Leh. In that case, the GOI could use data swapping to cover that block, while leveraging the full potential of DP at a state and national level. Here, you could say that overpopulation is a blessing in disguise.</p><h3>Audience:</h3><p>It is not easy to directly answer this question that who will be the audience of DP being employed to preserve the privacy of the census data. Will it be the government? Would the government officials want to employ it and make them more transparent and hence less prone to corruption? Or will it be the citizens of India who would want their data to be private from their political leaders and the Lord himself? I think it would be both of them because both these parties want their data not to get in the hands of a hostile entity who would want to hurt them right! I don’t think the government officials would want their data to be in the hands of an adversary nation, and the people of India would want their data to be handled without any adherence to the most basic protocols, by their own elected officials.</p><h3>Information flows:</h3><p>Now we know that the accepted definition of “information flow” is a flow of bits from a sender to receiver with some probability. But the very job of the government is to remove this probabilistic nature from the information flow. Both the government and the citizens don’t want some 99.999% chance of correct information flow. They want a robust 100% — a sure, confirming fact that their census data can’t be sniffed by the enemy of the state or some rogue agent. So defining a flow of governance for information flow becomes quite necessary.</p><p>Since this is census data, naturally the citizens won’t have the privilege to veto from giving their data. They must provide their data for their elected government officials to make sense of their locality/block. But what can be done is they could provide their data in some encrypted form, which only the government can later decrypt. They could use homomorphic encryption. That way, their data would remain encrypted, but the calculations done on their data would yield the same result had if the data weren’t encrypted at all. So this way the citizens can be assured that their data would be private.</p><p>Then comes the part where we could ask, “what the government would do with these calculations?”. To be honest, it is their business what they do with the statistical outcomes of the calculations that they did on the census data and that business better be for the welfare of the people, but for that matter, I reckon the public will have to trust their own leaders. To get their trust, the leaders must provide some tangible proof(s) or evidence(s) if you will, that they will indeed work hard to better their people’s lives and lawful business. That evidence could be in the form of amendments, referendums, or even some new plan put into action. But no matter what they do, the data provided by the people would still remain encrypted, ergo private. This way, there would be a two way (or bilateral if you will) privacy ensured by the government, assured to the people for the mutual benefit of the nation.</p><h3>Input privacy/verification:</h3><p>Input privacy: As mentioned above, one of the tools that could be used for input privacy is homomorphic encryption. So this technique is magical in the sense that although your data would be encrypted and only you could decrypt it, should you feel the sudden urge to do so, still the required computations can be done by some 3rd parties on your encrypted data, and return the same output, had if they did the same calculations on your “raw” data. So this way the citizens can be assured that their data would be private. This way the government is offering their citizens a guarantee that they cannot “see” their private data. That means the citizens truly stay in control of their data.</p><p>Now given the fact that most of the Indian population actually resides in the rural part of the country, it would be a huge challenge to employ cryptographic signature for input verification. Although the vast majority of the Indian population would not be interested in input verification — going to the trouble of verifying that their data is indeed private and the computation that got done by the government parties are indeed true, theoretically it is possible to enforce input verification. For that matter, the GOI could use cryptographic signatures, sort of like a receipt, so that whenever someone from a certain district of the country asks for it, they can be reassured that their data is indeed private.</p><h3>Output privacy/verification:</h3><p>Differential Privacy: The dual requirement for an accurate count and the protection of respondents and their data creates a natural tension: The more accurate (and therefore usable) the reported data is, the easier it may be to identify individual responses. The use of differential privacy would mean that reported data will not be the same as the raw data.</p><p>Final decisions about the mathematical model used for differential privacy, and therefore the impact on reported data, is a debatable matter. On one extreme, to have zero risk of privacy disclosure, all totals reported would have to have some “noise” injected (or some variation from the actual count). On the other extreme, if there were no noise injected, the risk of privacy disclosure would be great. These two variables — the risk of disclosure and accuracy — can be measured against each other and, in fact, create a trade-off. This is referred to as a “privacy loss budget.”</p><p>The good thing about DP (Differential Privacy) is that once the raw data is injected with noise, then we don’t need the raw data anymore. All the calculations are now done on the altered data (alteration being decided by the privacy loss budget of course). The raw data could be even “thrown away” because from henceforth for any and every statistical calculation, the new altered dataset would be used. This way it guarantees output privacy.</p><p>As for the output verification part, it turns out that we already have it in place and are being enforced. It is the very Census Act of 1948. The Act makes it obligatory on the part of every citizen to answer the Census question truthfully and also penalizes for giving false information. One of the most important provisions of the Census Act 1948 is that it makes provisions for the maintenance of secrecy of the information collected at the Census of each individual. All information collected under the Census is confidential and is not shared with any agency- Government or private.</p><h3>Privacy tools:</h3><p>Perhaps the most important privacy tool of all is the mutual trust between the citizens and the government, and therefore their full enthusiastic support to get their census data both accurate and private. The rest of the “tools” which could be used to inculcate structured transparency within the census data collection and deployment by achieving input privacy, input verification, the flow of governance, output privacy, and output verification have already been discussed above, so it would be redundant to mention them again I reckon. However, mutual cooperation between the government and its people is perhaps the foundation upon which the rest of this Privacy-oriented enterprise stands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f81e63e86495" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>