<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://samyo00.github.io//feed.xml" rel="self" type="application/atom+xml" /><link href="https://samyo00.github.io//" rel="alternate" type="text/html" /><updated>2026-08-31T08:10:12-07:00</updated><id>https://samyo00.github.io//feed.xml</id><title type="html">Samyo’s Home page </title><subtitle>Machine Learning Researcher</subtitle><author><name>Samya Acharja</name><email>samyaacharja@gmail.com</email></author><entry><title type="html">DeepInfoMax</title><link href="https://samyo00.github.io//posts/2012/08/blog-post-4/" rel="alternate" type="text/html" title="DeepInfoMax" /><published>2024-11-04T00:00:00-08:00</published><updated>2024-11-04T00:00:00-08:00</updated><id>https://samyo00.github.io//posts/2012/08/future-post</id><content type="html" xml:base="https://samyo00.github.io//posts/2012/08/blog-post-4/"><![CDATA[<h3 id="a-model-that-sees-without-labels">A Model That “Sees” Without Labels</h3>

<p>Deep InfoMax (DIM) is an unsupervised learning method that enables models to learn meaningful image features without requiring labeled data. By maximizing mutual information between different parts of an image, DIM allows the model to identify patterns independently. This approach is particularly valuable in fields where labeled data is scarce or costly to obtain, such as medical imaging, where expert annotation is often essential for labeling complex images like X-rays or MRIs. By enabling machines to learn directly from raw images, DIM opens new possibilities for applications in healthcare, autonomous driving, security, and beyond, enhancing efficiency and accessibility in critical domains.</p>

<p>DIM was first introduced by a team of researchers at Microsoft Research, including Devon Hjelm, in their 2018 paper titled “<a href="https://arxiv.org/pdf/1808.06670">Learning Deep Representations by Mutual Information Estimation and Maximization</a>.” This groundbreaking unsupervised learning approach enables machines to extract valuable features directly from images, providing new avenues for applications in areas where labeled data is challenging to obtain or prohibitively expensive.</p>

<h2 id="step-by-step-guide-to-understanding-deep-infomax">Step-by-Step Guide to Understanding Deep InfoMax</h2>

<p>This guide will break down how DIM works into understandable steps, simplifying its concepts to make the method’s functionality and importance in unsupervised image learning accessible.</p>

<h3 id="step-1-the-big-idea--mutual-information">Step 1: The Big Idea – Mutual Information</h3>

<p>DIM’s core concept is mutual information (MI), which can be thought of as a measure of how well two parts of an image “understand” each other. Imagine an image divided into small patches, like pieces of a puzzle. If one part of the image contains enough information to predict what another part looks like, they have high MI. DIM’s objective is to increase the MI between different sections of an image to learn meaningful connections across the image as a whole. In simple terms, the more connected two parts of an image are in what they represent, the higher their MI. By maximizing MI, DIM encourages the model to recognize related features, even without any labels.</p>

<h3 id="step-2-local-and-global-features-in-dim">Step 2: Local and Global Features in DIM</h3>

<p>DIM’s approach to learning from images is unique. It identifies both local and global features within an image. Local features refer to the small details or textures within various parts of the image, such as the texture of tree bark or the shape of an eye. Global features represent a larger summary or context of the image, such as understanding the whole tree or the entire face. DIM maximizes MI between these local and global features, helping the model to understand how each small part of an image relates to the broader scene.</p>

<h3 id="step-3-training-the-model-with-loss-functions">Step 3: Training the Model with Loss Functions</h3>

<p>In machine learning, a loss function indicates the model’s performance and guides it to improve. DIM utilizes several types of loss functions, with InfoNCE loss being the most effective. InfoNCE loss encourages the model to match local and global features accurately, ensuring that the parts of an image fit together cohesively, much like completing a puzzle. Other loss functions, such as Jensen-Shannon Divergence (JSD) and Density Ratio Matching (DV), also contribute to training, but InfoNCE is particularly effective, providing the model with a strong ability to recognize patterns and learn complex relationships within the data.</p>

<h3 id="step-4-selecting-the-optimal-dim-configuration">Step 4: Selecting the Optimal DIM Configuration</h3>

<p>DIM offers various configurations for combining local and global information. One method is Global-only DIM (DIM(G)), which focuses solely on global features; however, this configuration is less powerful since it often overlooks finer details. Local-only DIM (DIM(L)) emphasizes local features, effectively capturing detailed information and often outperforming other unsupervised methods. A combined approach, DIM(L+G), balances detail with a broader understanding by combining local and global features. Generally, DIM(L) with InfoNCE loss performs best, capturing essential details without the need for an overarching global summary.</p>

<h3 id="step-5-enhancing-learning-with-additional-techniques">Step 5: Enhancing Learning with Additional Techniques</h3>

<p>To further improve learning, the creators of DIM included several techniques. One such technique is occlusion, which helps the model deal with real-world scenarios where parts of an object might be partially hidden, such as a face with sunglasses. Occlusion training allows the model to recognize an image even when certain parts are blocked, encouraging a holistic understanding of the image by ensuring the remaining parts still maintain high MI. Additionally, DIM incorporates coordinate prediction, allowing the model to understand the spatial positioning of local features within an image. By learning the expected positions of different features, such as knowing that an eye is generally near the top of a face, DIM strengthens its spatial awareness.</p>

<h3 id="step-6-comparing-dim-with-other-unsupervised-methods">Step 6: Comparing DIM with Other Unsupervised Methods</h3>

<p>DIM has been tested against popular unsupervised methods, such as Variational Autoencoders (VAEs) and Contrastive Predictive Coding (CPC). VAEs are known for their image-generation capabilities but are generally less effective at extracting meaningful features for complex image understanding. CPC, which focuses on predicting future data points within sequences, is another advanced method, though DIM performed comparably or even better on certain tasks. Overall, DIM’s approach to unsupervised feature extraction is highly effective, proving crucial for understanding images without labeled data.</p>

<h3 id="step-7-practical-applications-of-dim">Step 7: Practical Applications of DIM</h3>

<p>DIM’s capability to learn without labels introduces numerous applications. In medical imaging, where labeling can be resource-intensive, DIM can help machines learn to interpret features in X-rays or MRIs. In autonomous driving, it allows systems to recognize structures and objects on the road without relying heavily on labeled datasets. For surveillance and security, DIM can detect patterns in footage without extensive labeling, enhancing pattern recognition in real-world settings.</p>

<p>DIM represents a major advancement in unsupervised learning. By maximizing mutual information across different parts of an image, DIM enables models to “understand” images without the need for labels. The combination of local and global feature recognition, along with techniques like occlusion and coordinate prediction, makes DIM a powerful tool for extracting meaningful information. With DIM, we are one step closer to creating intelligent systems capable of learning from raw, unlabeled data, much like humans make sense of the world around them.</p>]]></content><author><name>Samya Acharja</name><email>samyaacharja@gmail.com</email></author><category term="UnsupervisedLearning" /><category term="ComputerVision" /><category term="MedicalImaging" /><summary type="html"><![CDATA[A Model That “Sees” Without Labels]]></summary></entry><entry><title type="html">ViTs in Medical Imaging</title><link href="https://samyo00.github.io//posts/2012/08/blog-post-1/" rel="alternate" type="text/html" title="ViTs in Medical Imaging" /><published>2024-03-03T00:00:00-08:00</published><updated>2024-03-03T00:00:00-08:00</updated><id>https://samyo00.github.io//posts/2012/08/blog-post-1</id><content type="html" xml:base="https://samyo00.github.io//posts/2012/08/blog-post-1/"><![CDATA[<!--

In the rapidly advancing world of healthcare technology, the fusion of artificial intelligence (AI) and medical imaging is revolutionizing the way we diagnose and treat diseases. With an ever-increasing demand for precision and efficiency, a new player has emerged on the scene: **Vision Transformers (ViTs)**. This innovative approach is not just a passing trend; it promises to redefine our understanding of medical images and enhance patient outcomes in ways we are only beginning to comprehend.

### A New Lens on Medical Imaging

Imagine stepping into a world where machines can analyze complex medical images not just as static pictures but as dynamic compositions filled with intricate stories waiting to be unveiled. Traditional methods, like convolutional neural networks (CNNs), have served us well, but their limitations are becoming clearer in an age where the nuances of medical imaging can spell the difference between a correct diagnosis and a missed opportunity for treatment. Vision Transformers offer a fresh perspective, allowing us to view images through a new lens.

### The Power of Patches

What sets ViTs apart is their unique ability to treat images as sequences of patches, much like reading sentences in a book. This approach enables them to capture long-range dependencies, weaving connections between distant parts of an image. In medical imaging, where context is king, this means that ViTs can discern relationships that might elude conventional models. Consider the complexity of an MRI scan: subtle changes in tissue structure may indicate serious conditions. With their comprehensive understanding, ViTs are adept at picking up these crucial details.

### Advantages of Vision Transformers

As we explore the advantages of Vision Transformers, it becomes evident that they are not merely an alternative to existing methods—they represent a significant leap forward. In a realm where the stakes are high, such as oncology or neurology, the ability to recognize intricate patterns in large datasets is invaluable. ViTs thrive in these environments, processing vast amounts of information to provide insights that can lead to timely and accurate diagnoses.

### Self-Attention

Yet, the story does not end here. ViTs come equipped with a powerful tool: self-attention. This mechanism allows them to evaluate the importance of each image patch in relation to others, focusing on the most relevant details without being confined by spatial hierarchies. It’s akin to having a skilled radiologist who can look beyond the surface, grasping the full context of a scan to detect anomalies that might otherwise go unnoticed.

### A Vision for the Future

As we envision the future of healthcare, the potential impact of Vision Transformers cannot be overstated. By improving diagnostic accuracy, we open the door to better patient outcomes. Imagine a world where radiologists can diagnose conditions with unprecedented speed and precision, where the risk of misdiagnosis is dramatically reduced, and where patients receive the care they need without delay. This future is not a distant dream; it is within our reach as we harness the power of ViTs in medical imaging.

### Challenges and Opportunities

However, the journey is not without its challenges. The computational demands of training ViTs are significant, often requiring resources that may be out of reach for many institutions. Additionally, the dearth of large annotated datasets complicates the training process, necessitating innovative approaches to maximize their potential. Fortunately, the research community is rising to the occasion, exploring techniques such as transfer learning and semi-supervised learning to bridge these gaps.

### Utilization

As we stand at this exciting intersection of technology and healthcare, it is essential for researchers, practitioners, and technologists to collaborate. By doing so, we can ensure that breakthroughs like Vision Transformers are not only acknowledged but effectively implemented, paving the way for enhanced patient care. The integration of AI into medical imaging is not merely a technological advancement; it is a profound shift in how we understand and engage with health and illness.


In conclusion, the emergence of Vision Transformers signals a bright future for AI in healthcare. With their capacity to analyze complex visual data, ViTs are positioned to transform medical imaging, enhancing diagnostic processes and ultimately improving patient outcomes. As we embrace this new era of innovation, we must remain committed to leveraging these advancements to create a healthier world for all.
-->]]></content><author><name>Samya Acharja</name><email>samyaacharja@gmail.com</email></author><category term="VisionTransformers" /><category term="AIinHealthcare" /><category term="ImageAnalysis" /><summary type="html"><![CDATA[&lt;!–]]></summary></entry></feed>