<?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 Suparna on Medium]]></title>
        <description><![CDATA[Stories by Suparna on Medium]]></description>
        <link>https://medium.com/@ssuparnataneja?source=rss-77b34373c97a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hc_5hCa_Tjapw_Ia.</url>
            <title>Stories by Suparna on Medium</title>
            <link>https://medium.com/@ssuparnataneja?source=rss-77b34373c97a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:08:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ssuparnataneja/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[Stop Your LLM From Repeating Itself with Frequency & Presence Penalties]]></title>
            <link>https://medium.com/@ssuparnataneja/stop-your-llm-from-repeating-itself-with-frequency-presence-penalties-8aceffe2e831?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aceffe2e831</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[reliable]]></category>
            <category><![CDATA[llm-hallucinations]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 12:35:08 GMT</pubDate>
            <atom:updated>2026-09-02T12:35:29.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*2yq5UHxvY1EH7crh" /></figure><p><strong>Stop Your LLM From Repeating Itself with Frequency &amp; Presence Penalties</strong></p><p>If you’ve ever built a chatbot and watched it suggest the same thing three times in a row, you already know the problem. Turns out there’s a pretty simple fix baked into most LLM APIs: <strong>frequency and presence penalties</strong>.</p><p>They don’t get talked about as much as temperature or top-p, but for anyone chasing reliable, non-repetitive outputs, they’re worth understanding well.</p><p>Both penalties do the same basic job of discouraging the model from reusing tokens it’s already generated but they go about it differently. <strong>Frequency penalty</strong> scales with repetition. Say a token 3 times, it gets penalized more than a token you’ve only said once. The more it shows up, the harder it is for the model to pick it again. <strong>Presence penalty</strong> doesn’t care about count. A token either appeared before or it didn’t. One mention gets the same penalty as ten. That distinction matters more than it sounds. Frequency penalty is your tool for killing loops and over-used filler words. Presence penalty is more about nudging the model toward new topics or vocabulary altogether, not just avoiding exact repeats.</p><p>The<strong> Practical Range</strong> for both penalties run from<strong>-2.0 to 2.0</strong>. In practice, most real-world use cases land somewhere in the <strong>0.6–0.9</strong> range. Push too high and you risk the model avoiding common, necessary words just to satisfy the penalty which can make outputs feel stilted or less coherent.</p><p><strong>Why This Matters for Reliable outputs specifically:</strong> repetition isn’t just an aesthetic annoyance but it’s often a symptom of the model falling into a low-diversity sampling loop, which correlates with degraded or hallucinated content. Penalizing repeated tokens pushes the sampling distribution toward fresher options, which can reduce redundant or looping generations and improve overall output quality.</p><p>Take an example of <strong>Chatbot</strong>, add frequency/presence penalties, and the bot is nudged to generate fresh phrasing and explore new angles which means actually getting closer to solving the customer’s problem instead of looping.</p><p><strong>Takeaway:</strong> These penalties won’t fix a bad prompt or a poorly grounded model, but they’re a cheap, low-effort lever for improving diversity and reducing repetition-driven quality issues. If reliability is your focus, they’re a good complement to things like temperature tuning, structured prompting, and grounding not a replacement for any of them.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/posts/suparna07_stop-your-llm-from-repeating-itself-with-activity-7500885133575524353-TEtU?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAAP3B8wBCqLziV0RjGhVwZ2vXCqAqbZzUyM"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aceffe2e831" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperparameters for Generative AI Models during Inference and Fine-Tuning]]></title>
            <link>https://medium.com/@ssuparnataneja/hyperparameters-for-generative-ai-models-during-inference-and-fine-tuning-00a2683c9e9b?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/00a2683c9e9b</guid>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 00:02:16 GMT</pubDate>
            <atom:updated>2025-04-28T00:06:49.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*CN56C9bkjXs8T3QHVkpk8g.png" /></figure><p>This article explores the critical hyperparameters that determine generative AI model performance, covering essential settings during <strong>inference, fine-tuning, and diffusion modeling</strong> — along with practical instructions on where to configure each parameter in your workflow.</p><p><strong>Inference Hyperparameters</strong></p><p><strong>Temperature:</strong> Controls randomness in generation in generation parameters in inference code or API calls ( model.generate(temperature=0.7) or via API parameter)</p><p><strong>Top-p (nucleus sampling):</strong> Limits token selection in generation parameters ( model.generate(top_p=0.9) or via UI slider)</p><p><strong>Top-k sampling: </strong>Restricts selection to k most likely tokens in generation parameters ( model.generate(top_k=50) or via API parameter)</p><p><strong>Repetition penalty: </strong>Discourages repetitive text in generation parameters ( model.generate(repetition_penalty=1.2))</p><p><strong>Beam search width: </strong>Number of candidate sequences in generation parameters ( model.generate(num_beams=4))</p><p><strong>Max new tokens: </strong>Maximum length of output in generation parameters ( model.generate(max_new_tokens=512) or via API parameter)</p><p><strong>Presence/frequency penalties: </strong>Controls token penalties in generation API parameters ( OpenAI API: frequency_penalty=0.5, presence_penalty=0.2)</p><p><strong>Fine-tuning Specific</strong></p><ul><li><strong>Learning rate decay schedule:</strong> How learning rate changes in scheduler configuration ( lr_scheduler_type=cosine or scheduler object initialization)</li><li><strong>Prompt template design:</strong> Format of inputs in data preprocessing code or dataset preparation scripts (templates defined in code or config files)</li><li><strong>LoRA rank:</strong> For parameter-efficient fine-tuning in PEFT configuration ( peft_config = LoraConfig(r=16, …))</li><li><strong>LoRA alpha:</strong> Scaling factor for LoRA updates in PEFT configuration ( peft_config = LoraConfig(lora_alpha=32, …))</li></ul><p><strong>Diffusion Model Specific</strong></p><ul><li><strong>Noise schedule: </strong>Controls noise addition in diffusion model configuration ( model = DiffusionModel(noise_schedule=’linear’))</li><li><strong>Sampling steps: </strong>Number of denoising steps in inference parameters ( image = model.sample(num_inference_steps=50) or via UI slider)</li><li><strong>Classifier-free guidance scale: </strong>Controls adherence to input inference parameters ( image = model.sample(guidance_scale=7.5) or via UI slider)</li></ul><p>This article captured the critical hyperparameters that determine generative AI model performance, covering essential settings during <strong>inference, fine-tuning, and diffusion modeling</strong>.</p><p>Let me know if any parameter is missed out. Let me know your experience about configuring hyperparameters during inference and fine-tuning.</p><p>Related Articles: Refer to below article for the critical hyperparameters to be configured during <strong>training, architecture design for generative AI model</strong> performance: <a href="https://medium.com/@ssuparnataneja/hyperparameters-for-generative-ai-models-e08f5b4c142a">Hyperparameters for Generative AI Models during Training and Design</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00a2683c9e9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperparameters for Generative AI Models]]></title>
            <link>https://medium.com/@ssuparnataneja/hyperparameters-for-generative-ai-models-e08f5b4c142a?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e08f5b4c142a</guid>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 23:59:30 GMT</pubDate>
            <atom:updated>2025-04-28T00:03:19.878Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vSyUE6bnTYTSLXQkILl2A.png" /></figure><p>This article explores the critical hyperparameters that determine generative AI model performance, covering essential settings across <strong>training and architecture design</strong> — along with practical instructions on where to configure each parameter in your workflow.</p><p>The next article will capture the necessary hyperparameters during <strong>inference, fine-tuning, and diffusion models</strong> and how to configure those.</p><p><strong>During Training </strong>which Hyperparameters</p><ul><li><strong>Learning rate</strong>: Controls step size during optimization in training script arguments, configuration file, or optimizer setup in PyTorch/TensorFlow (learning_rate=1e-5 or in a config.json file)</li><li><strong>Batch size</strong>: Affects gradient quality, memory usage, and training speed in training script arguments, data loader configuration (batch_size=32 or DataLoader(batch_size=32))</li><li><strong>Number of training steps/epochs</strong>: Determines exposure to training data in training script arguments or early stopping callback ( num_epochs=3)</li><li><strong>Optimizer choice</strong>: Adam, AdamW or Lion in model training setup code or configuration file (optimizer=torch.optim.AdamW( model.parameters(), lr=lr))</li><li><strong>Weight decay</strong>: Controls regularization strength in optimizer initialization parameters (AdamW(params, weight_decay=0.01))</li><li><strong>Gradient clipping threshold</strong>: Prevents exploding gradients in training loop or in framework-specific utilities ( torch.nn.utils.clip_grad_norm_( model.parameters(),max_norm=1.0))</li><li><strong>Warmup steps</strong>: Gradual learning rate increase in learning rate scheduler configuration (warmup_steps=500 or in a scheduler object)</li></ul><p><strong>Architecture and Design</strong> Hyperparameters</p><ul><li><strong>Model size:</strong> Number of parameters, layers, dimensions in model initialization parameters or configuration file (model_config.json or num_layers=24 hidden_size=1024)</li><li><strong>Context length</strong>: Maximum sequence length in model configuration and tokenizer settings (config.max_position_embeddings=4096 or max_seq_length=2048)</li><li><strong>Attention heads:</strong> Number and size of attention heads in model configuration ( config.num_attention_heads=16)</li><li><strong>Feed-forward network dimension</strong>: Size of FFN layers in model configuration (config.intermediate_size=4096)</li><li><strong>Embedding dimension</strong>: Size of token embeddings in model configuration ( config.hidden_size=768)</li><li><strong>Dropout rates</strong>: Various types of dropout in model configuration ( config.attention_dropout=0.1, config.hidden_dropout=0.1)</li></ul><p>This article explores the critical hyperparameters that determine generative AI model performance, covering essential settings across training and architecture design.</p><p>Let me know if any parameter is missed out. Let me know your experience about configuring hyperparameters during training and design of Generative AI models.</p><p>The next article will capture the necessary hyperparameters during inference, fine-tuning, and diffusion Generative AI models and how to configure those: <a href="https://medium.com/@ssuparnataneja/00a2683c9e9b">Hyperparameters for Generative AI Models during Inference and Fine-Tuning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e08f5b4c142a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Test-Time Compute elevates CLIP and VLMs Performance]]></title>
            <link>https://medium.com/@ssuparnataneja/how-test-time-compute-elevates-clip-and-vlms-performance-c0e53822ab3a?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0e53822ab3a</guid>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Fri, 25 Apr 2025 05:49:31 GMT</pubDate>
            <atom:updated>2025-04-25T05:49:31.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*OW0uw8c0w__hBBXy0VN-Ww.png" /></figure><p>Most vision-language models like CLIP(Contrastive Language Image Pre-training) are trained using something called contrastive learning. They learn to pull matching images and texts closer in a shared space while pushing apart mismatched ones. During training, this relies heavily on both positive and negative samples.</p><p>But, there is a mismatch between how CLIP (and similar VLMs) is trained vs how it’s used at test time.</p><ul><li>During training: CLIP uses InfoNCE loss, which compares a positive image-text pair <em>against many negative pairs</em> in the same batch. It learns to rank the true match higher by understanding <em>relative similarities</em> in a distribution.</li><li>At test time: We usually just do a dot product between one image and one text, with <em>no context</em> of other samples. This ignores the role of negative examples, which were central during training.</li></ul><p>So, the mismatch is:</p><p>Trained with distribution-aware loss, but tested with a context-free dot product.</p><p>At test time, we usually just take the image and text embeddings and do a simple dot product. That’s like trying to judge a singing contest with just one singer — it ignores all the context (the “negative samples”) the model was trained with.</p><p>This is where the test-time compute comes in. Test-time compute (like DN or TTA) helps reintroduce a form of that distribution context at inference — fixing the mismatch. By spending a bit more effort during inference, we can fix this mismatch and get better results — without retraining the model.</p><p>Two simple techniques help:</p><p>Distribution Normalization (DN) — We take a small batch of test samples, calculate the average (mean) of their embeddings, and subtract that from the new input’s embedding before computing similarity. This acts like a stand-in for negative samples.</p><p>Test-Time Augmentation (TTA) — Instead of using just one version of an image, we slightly alter it (crop, flip, scale), encode them all, and average the results. This makes the model’s predictions more stable and robust.</p><p>What’s the gain?</p><p>Better accuracy in tasks like zero-shot classification, image-text retrieval, and caption scoring — typically 1–7% improvements.</p><p>Minimal overhead — just a bit more compute to estimate embedding averages or run a few image transforms.</p><p>In short, test-time compute improves CLIP performance at inference by letting it “think” a bit more — and it pays off.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0e53822ab3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are You Tuning Your Hyperparameters for Success in GenAI Models?]]></title>
            <link>https://medium.com/@ssuparnataneja/are-you-tuning-your-hyperparameters-for-success-in-genai-models-09cb3b6fd512?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/09cb3b6fd512</guid>
            <category><![CDATA[hyperparameter-tuning]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 22:04:28 GMT</pubDate>
            <atom:updated>2025-04-12T22:04:28.021Z</atom:updated>
            <content:encoded><![CDATA[<p>Hyperparameters often seem like a technical detail, but they can absolutely make or break a product — especially when machine learning or GenAI is at the heart of the user experience or business outcome.</p><p>From a product perspective, the right tuning can be the difference between a model that drives value and one that erodes trust.</p><p>For instance:</p><ol><li>In GenAI chatbots, setting the temperature too high can lead to wildly creative but incoherent responses, while setting it too low can result in bland, repetitive outputs.</li><li>In personalized recommendations, improper tuning in KNN or matrix factorization models can lead to irrelevant suggestions — frustrating users and lowering engagement.</li><li>In fraud detection, a model with an aggressive threshold might block legitimate users, while a lenient one could let bad actors through — directly impacting trust and financial risk.</li><li>In demand forecasting, tuning time series models without the right seasonality or lag parameters can result in stockouts or overstocking — costing millions in logistics.</li></ol><p>What’s key is recognizing that hyperparameter tuning isn’t just a modeling step — it’s a strategic lever.</p><p>When done right — with robust validation, monitoring, and feedback loops — it can:</p><ul><li>Deliver better customer experiences</li><li>Reduce false positives and negatives</li><li>Improve explainability</li><li>Optimize cost-performance tradeoffs</li></ul><p>And ultimately, give the product a serious competitive edge.</p><p>The takeaway? Whether you’re building a GenAI-powered assistant, a fraud engine, or a recommendation system — treat hyperparameters as a product decision, not just a model config.</p><p>References: <a href="https://lnkd.in/eaFwKcFm">Hyperparameters in Machine Learning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09cb3b6fd512" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can Llama 4 Scout Transform Edge Computing?]]></title>
            <link>https://medium.com/@ssuparnataneja/can-llama-4-scout-transform-edge-computing-75e421d9486d?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/75e421d9486d</guid>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[mixture-of-experts]]></category>
            <category><![CDATA[llama-4]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Sun, 06 Apr 2025 02:31:13 GMT</pubDate>
            <atom:updated>2025-04-06T02:31:13.866Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Llama 4 Scout is Meta’s compact language model, designed to be both powerful and efficient, capable of running on a </em><strong><em>single Nvidia H100 GPU</em></strong><em>. It delivers impressive performance, outperforming competitors like Google’s Gemma 3 and Mistral 3.1 in several benchmarks. This makes it ideal for applications that need a lightweight but highly capable model.</em></p><h4>Optimized for Edge AI</h4><p><em>Its small size and ability to work on limited hardware make it perfect for </em><strong><em>Edge AI</em></strong><em>, where </em><strong><em>computing power</em></strong><em> is often </em><strong><em>constrained</em></strong><em>. This means it can deliver high-quality AI directly on devices without needing constant cloud interaction.</em></p><h4>IoT and Sensor-Based Applications</h4><p><em>Llama 4 Scout’s compact design and ability to process </em><strong><em>long-context </em></strong><em>data make it ideal for real-time sensor data applications. In </em><strong><em>Industrial IoT</em></strong><em>, it can detect anomalies in machinery based on sensor feeds, helping with predictive maintenance. It’s also perfect for </em><strong><em>Smart Home and Automotive</em></strong><em> applications, using voice and sensor-driven interactions to create seamless experiences. Furthermore, Scout excels in </em><strong><em>Predictive Maintenance</em></strong><em> by analyzing telemetry data to foresee equipment failures before they occur.</em></p><h4>Single-Agent Workflows</h4><p><em>For personal assistants or any AI that works independently, Scout’s ability to manage </em><strong><em>long-context reasoning</em></strong><em> makes it great for these roles: A personal assistant on your phone handling tasks like calendar management, task prioritization, and even email summarization.</em></p><h3>Would Llama 4 Scout Outperform Competitors in the Small LLM Space?</h3><p><em>With its ability to handle complex tasks efficiently on limited hardware, Llama 4 Scout isn’t just another small language model — it’s poised to become a benchmark in the Edge AI and IoT spaces. The question remains: Will it redefine the standard for small language models?</em></p><p><strong>References:</strong> <a href="https://ai.meta.com/blog/Llama-4-multimodal-intelligence/">https://ai.meta.com/blog/Llama-4-multimodal-intelligence/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75e421d9486d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Multimodal Distilled LLMs (s-MLLM) at the Edge Are a Game Changer for Industrial Automation?]]></title>
            <link>https://medium.com/@ssuparnataneja/why-multimodal-distilled-llms-s-mllm-at-the-edge-are-a-game-changer-for-industrial-automation-e40c8473c656?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e40c8473c656</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[multimodal-ai]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Wed, 02 Apr 2025 20:13:45 GMT</pubDate>
            <atom:updated>2025-04-02T20:13:45.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*DCr8cznMRFq9OCGUOnSuXQ.png" /><figcaption>Multimodal Small Language models</figcaption></figure><p>Small, distilled LLMs ( MiniGPT_4o, LLaVA-Light) with multimodal input processing on edge devices are accelerating industrial automation by enabling intelligent, real-time decision-making without relying on cloud connectivity. By integrating AI with edge sensors, cameras, and IoT devices, industries can unlock new levels of efficiency, autonomy, and scalability.</p><p>Small Multimodal LLMs popularly knowns as <strong><em>s-MLLM</em></strong></p><h3>Key Applications:</h3><ul><li><strong>Factory Automation: </strong>AI-driven vision systems detect defects in real-time, predictive maintenance prevents equipment failures, and adaptive robotic arms optimize production lines dynamically.</li><li><strong>Digital Twins: </strong>Edge AI continuously updates virtual replicas of physical assets using real-world sensor data, enabling predictive analytics, process optimization, and anomaly detection.</li><li><strong>Drones:</strong> Autonomous drones equipped with on-device AI perform infrastructure inspections, optimize warehouse inventory tracking, and support precision agriculture without latency issues.</li><li><strong>Robotics: </strong>AI-powered mobile robots in warehouses and manufacturing floors handle dynamic navigation, human-robot collaboration, and real-time process adjustments.</li></ul><p>By shifting intelligence closer to the source of data, the convergence of distilled LLMs, multimodal AI (<strong><em>s-MLLM</em></strong>’s), and edge computing is reducing cloud dependency, enhancing real-time responsiveness, and driving the next industrial revolution.</p><p><strong>References:</strong></p><ol><li><a href="https://openreview.net/forum?id=MFySy0DWAH">https://openreview.net/forum?id=MFySy0DWAH</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e40c8473c656" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging MCP (Model Context Protocol) Server]]></title>
            <link>https://medium.com/@ssuparnataneja/debugging-mcp-model-context-protocol-server-bd312e86a132?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd312e86a132</guid>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Mon, 31 Mar 2025 21:38:40 GMT</pubDate>
            <atom:updated>2025-03-31T21:38:40.987Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YFKUNAaSNxwzFyuOuk1L9g.png" /><figcaption>Image Credit: <a href="https://github.com/modelcontextprotocol/inspector">MCP Inspector</a></figcaption></figure><p>Debugging MCP (Model Context Protocol) Server: Where’s the Bottleneck — Client, Database, or Tools?</p><p>When an MCP server encounters issues, the challenge is pinpointing whether the problem lies with the client, database, tool integrations, or the AI model itself — <strong>MCP inspector</strong>, a developer tool for testing and debugging MCP servers is the solution.</p><p>The MCP (Model Context Protocol) Inspector is a diagnostic, security, and performance observability tool that ensures protocol interactions between AI models, tools, and databases are accurate, efficient, and secure. It provides:</p><ul><li>Compliance &amp; Debugging — Verifies protocol adherence, validates security permissions, and troubleshoots errors in model-tool interactions.</li><li>Real-Time Observability — Monitors latency, throughput, error rates, and data flow patterns to optimize system performance.</li><li>Security &amp; Risk Mitigation — Detects prompt injections, unauthorized API calls, and data leaks, ensuring privacy and compliance.</li><li>Context &amp; Response Validation — Ensures correct context retrieval, prevents hallucinations, and validates prompt-response integrity.</li><li>Scalability &amp; Auto-Scaling Insights — Supports dynamic tool discovery, ensures multi-agent interoperability, and optimizes resource allocation.</li></ul><p>This proactive observability layer enables troubleshooting, optimizing, and securing MCP ecosystems, ensuring seamless AI-driven workflows in dynamic, distributed environments.</p><p>Reference: <a href="https://github.com/modelcontextprotocol/inspector">MCP Inspector</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd312e86a132" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text vs. Image Embeddings: What’s the Difference and Why It Matters?]]></title>
            <link>https://medium.com/@ssuparnataneja/text-vs-image-embeddings-whats-the-difference-and-why-it-matters-843f9d61769a?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/843f9d61769a</guid>
            <category><![CDATA[multi-modal-llm]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Thu, 27 Mar 2025 02:57:05 GMT</pubDate>
            <atom:updated>2025-03-27T02:57:05.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bk3htVbzUfOenYrhbR2eXQ.png" /><figcaption>Image Credit: <a href="https://www.pinecone.io/learn/series/image-search/clip/">Pinecone</a></figcaption></figure><p>In the world of multi-modal AI, <strong>text and image embeddings </strong>form the backbone of NLP and vision models, but it’s the creation of unified embeddings that unlocks deeper <strong>cross-modal understanding</strong> and powers tasks like image captioning, visual search, and multi-modal reasoning.</p><p>To truly grasp these differences, let’s explore how text and image embeddings vary across multiple aspects — from dimensionality and storage to computational complexity, information encoding, and key frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*tiAhF3BhFQxRuv9Ih7M_ww.png" /><figcaption>Difference between Text and Image Embedding</figcaption></figure><p>Reference: <a href="https://www.pinecone.io/learn/series/image-search/clip/">Pinecone</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=843f9d61769a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Does Vision Meet Language in Modern AI Systems?]]></title>
            <link>https://medium.com/@ssuparnataneja/how-does-vision-meet-language-in-modern-ai-systems-b489f35a5065?source=rss-77b34373c97a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b489f35a5065</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[vision-language-model]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <dc:creator><![CDATA[Suparna]]></dc:creator>
            <pubDate>Thu, 13 Mar 2025 01:25:31 GMT</pubDate>
            <atom:updated>2025-03-13T01:25:31.611Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rh_bbVoiV3-G74_-_akcrw.png" /></figure><p><strong>Workflow of Vision Language Models in 6 simple steps</strong></p><p><strong>Vision-Language Models (VLMs)</strong> combine computer vision and natural language processing (NLP) to understand and generate information across images and text. These models power applications like image captioning, visual question answering (VQA), and multimodal search.</p><h3>Step1: Data Collection &amp; Preprocessing</h3><p>Before training, the model processes image-text pairs:</p><ul><li><strong>Image Processing:</strong> Resizing, normalizing, and extracting features using CNNs or Vision Transformers.</li><li><strong>Text Processing: </strong>Tokenizing text, converting words into embeddings, and aligning with images.</li></ul><h3>Step2: Feature Extraction</h3><p>To convert raw data into structured embeddings:</p><ul><li><strong>Vision Encoder</strong> (e.g., ViT, ResNet): Extracts high-dimensional image features.</li><li><strong>Text Encoder</strong> (e.g., BERT, GPT): Converts text into vector representations.</li></ul><h3>Step3: Multimodal Fusion</h3><p>The model integrates visual and text features through:</p><ul><li><strong>Early Fusion:</strong> Merges image and text at input.</li><li><strong>Late Fusion: </strong>Combines outputs after separate processing.</li><li><strong>Cross-Attention Mechanism: </strong>Enables interaction between modalities.</li></ul><h3>Step 4: Model Training</h3><p>VLMs learn using:</p><ul><li><strong>Contrastive Learning</strong> (e.g., CLIP): Aligns correct image-text pairs.</li><li><strong>Masked Modeling</strong> (e.g., BLIP): Hides and Trains to predict the missing parts of image or text.</li><li><strong>Supervised Learning:</strong> Trains on labeled datasets for specific tasks.</li><li><strong>Reinforcement Learning:</strong> Fine-tune model based on reward ( human feedback)</li></ul><h3>Step 5: Inference (Prediction)</h3><p>The trained model generates responses for tasks like:</p><ul><li><strong>Image Captioning: </strong><em>“Man eating a burger.”</em></li><li><strong>Visual Question Answering (VQA): </strong>Answering questions about an image.</li><li><strong>Multimodal Search:</strong> Retrieving images based on a text query.</li></ul><h3>Step 6: Post-Processing &amp; Output</h3><p>Final refinements ensure accuracy and usability:</p><ul><li><strong>Refinement:</strong> Filters low-confidence results.</li><li><strong>Ranking:</strong> Selects the best output.</li><li><strong>Formatting: </strong>Structures responses for applications.</li></ul><p>The 6-step <strong>VLM workflow </strong>integrates image and text data through preprocessing, feature extraction, fusion, training, and inference, enabling machines <strong>to understand multimodal content</strong> effectively.</p><p><strong>Other related articles: </strong><a href="https://medium.com/@ssuparnataneja/how-does-image-captioning-happen-with-vlms-aeb1094173d2"><strong>How does Image Captioning happen with VLMs ?</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b489f35a5065" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>