<?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 venkat manish on Medium]]></title>
        <description><![CDATA[Stories by venkat manish on Medium]]></description>
        <link>https://medium.com/@thatikondamanish?source=rss-ff72294720fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z7rYIRBAmDh1jD1ztSI9Yw.png</url>
            <title>Stories by venkat manish on Medium</title>
            <link>https://medium.com/@thatikondamanish?source=rss-ff72294720fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:59:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thatikondamanish/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[Topological Deep Learning: Advancing AI Beyond Conventional Limits]]></title>
            <link>https://medium.com/@thatikondamanish/topological-deep-learning-advancing-ai-beyond-conventional-limits-a6be9799759d?source=rss-ff72294720fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6be9799759d</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[graph]]></category>
            <dc:creator><![CDATA[venkat manish]]></dc:creator>
            <pubDate>Sat, 01 Feb 2025 16:15:47 GMT</pubDate>
            <atom:updated>2025-02-01T16:17:57.705Z</atom:updated>
            <content:encoded><![CDATA[<p>Deep learning has revolutionized the way AI models interpret and generate data. However, conventional architectures like CNNs (Convolutional Neural Networks) and RNNs (Recurrent Neural Networks) are designed primarily for structured, grid-based data such as images and time series. But what happens when data exists in more complex, non-Euclidean structures such as graphs, 3D meshes, or manifolds?</p><p><strong>Topological Deep Learning (TDL)</strong> — a groundbreaking approach that incorporates <strong>topology</strong>, the mathematical study of shapes and spatial properties, into deep learning architectures. TDL enables AI models to understand <strong>higher-order relationships, data connectivity, and abstract structures</strong> beyond conventional Euclidean frameworks. However, with the rise of <strong>Generative AI and AI agents</strong>, is TDL truly the next big leap? Or is it a specialized advancement in a specific domain?</p><h3>Why Integrate Topology into Deep Learning?</h3><p>Topology provides a powerful framework for understanding data beyond numerical relationships. Here are some core motivations for integrating topology into deep learning:</p><ol><li><strong>Understanding Data Geometry</strong>: Traditional ML models operate on numerical values, but topology allows us to study the “shape” of data, preserving important properties while discarding irrelevant noise.</li><li><strong>Handling Non-Euclidean Spaces</strong>: Many real-world datasets exist in complex manifolds or graphs rather than in a flat Euclidean space.</li><li><strong>Capturing Higher-Order Interactions</strong>: Topological methods consider multi-way interactions, unlike graphs, which mostly focus on pairwise relationships.</li><li><strong>Enhancing Robustness and Generalization</strong>: Topological features are often invariant to noise and small perturbations, making AI models more resilient.</li></ol><h3>How TDL Differs from Traditional Deep Learning and Generative AI</h3><h3>Key Differences</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-V-JNUMibej2MOMLRn5PEg.png" /></figure><h3>Why Not Just Use Generative AI for These Tasks?</h3><p>Even when Generative AI utilizes <strong>knowledge graphs, agent-based frameworks like LangGraph, or other structured learning techniques</strong>, it still has limitations compared to TDL:</p><p><strong>1.Knowledge Graphs vs. TDL</strong>:</p><ul><li>Knowledge graphs improve structure-awareness in Generative AI, but they mostly represent <strong>entity-relationship pairs</strong>.</li><li>They do not <strong>natively model multi-way interactions or higher-order structures</strong> like <strong>simplicial complexes and manifolds</strong>, which are crucial for applications in <strong>biomedicine, physics, and high-dimensional data analysis</strong>.</li><li>Example: In <strong>brain connectivity studies</strong>, TDL can <strong>identify topological holes and higher-order cycles</strong> that knowledge graphs cannot capture.</li></ul><p><strong>2.Multi-Agent AI Systems vs. TDL</strong>:</p><ul><li>AI agents, such as those built using <strong>LangGraph or AutoGen</strong>, improve <strong>task routing and decision-making</strong>.</li><li>However, they rely on <strong>sequential reasoning and transformer-based architectures</strong>, which do not naturally model <strong>topological invariants</strong>.</li><li>Example: In <strong>sensor fusion and robotics</strong>, TDL provides robustness against <strong>spatial deformations</strong> and <strong>non-Euclidean transformations</strong>, which agent-based AI struggles with.</li></ul><p><strong>3.Structured Learning in Generative AI vs. TDL</strong>:</p><ul><li>Generative AI can incorporate <strong>graph-based models</strong> for structured reasoning, but these <strong>lack the multi-scale, topological insights</strong> that TDL offers.</li><li>Example: In <strong>financial time series modeling</strong>, TDL can <strong>detect persistent homologies in data fluctuations</strong>, providing a structural advantage over Generative AI models that rely on statistical patterns.</li></ul><p>Thus, while <strong>knowledge graphs, multi-agent systems, and structured learning enhance Generative AI</strong>, they <strong>do not replace TDL</strong> in applications requiring <strong>higher-order, topological, and multi-scale understanding</strong>.</p><h3>Implementing Topological Deep Learning</h3><h3>1. Setting Up the Environment</h3><p>Ensure you have the required libraries installed:</p><pre>pip install networkx gudhi torch torch-geometric numpy matplotlib</pre><h3>2. Simplicial Complexes in Deep Learning</h3><p>A <strong>simplicial complex</strong> generalizes graphs to include higher-order interactions.</p><pre>import networkx as nx<br>import gudhi as gd<br><br># Create a simple graph<br>G = nx.Graph()<br>G.add_edges_from([(0, 1), (1, 2), (2, 3), (3, 0), (1, 3)])<br><br># Convert graph to simplicial complex<br>simplicial_complex = gd.SimplexTree()<br>for edge in G.edges():<br>    simplicial_complex.insert([edge[0], edge[1]])<br><br># Insert higher-order relationships<br>simplicial_complex.insert([0, 1, 2])<br>simplicial_complex.insert([1, 2, 3])<br>print(&quot;Simplicial Complex:&quot;, simplicial_complex.skeleton(2))</pre><h3>3. Persistent Homology for Feature Extraction</h3><pre>from gudhi import RipsComplex<br>import numpy as np<br><br># Generate sample points<br>points = np.random.rand(10, 2)<br><br># Build Rips complex<br>rips_complex = RipsComplex(points=points, max_edge_length=0.5)<br>simplex_tree = rips_complex.create_simplex_tree(max_dimension=2)<br><br># Compute persistence<br>diag = simplex_tree.persistence()<br>print(&quot;Persistence Diagram:&quot;, diag)</pre><h3>4. Integrating Topological Features with Graph Neural Networks (GNNs)</h3><pre>import torch<br>import torch.nn.functional as F<br>from torch_geometric.nn import GCNConv<br><br>class TopoGNN(torch.nn.Module):<br>    def __init__(self, num_node_features, num_topo_features, hidden_dim, output_dim):<br>        super(TopoGNN, self).__init__()<br>        self.conv1 = GCNConv(num_node_features + num_topo_features, hidden_dim)<br>        self.conv2 = GCNConv(hidden_dim, output_dim)<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>        return x</pre><h3>Conclusion: A Niche but Powerful Leap</h3><h3>Future Directions and Challenges</h3><ol><li><strong>Computational Complexity</strong>: Persistent homology can be expensive, requiring optimization for large datasets.</li><li><strong>Scalability</strong>: While TDL provides robust insights, real-world scalability remains a concern in deep learning architectures.</li><li><strong>Hybrid Models</strong>: Combining TDL with transformers, GNNs, and generative AI could unlock new potential applications.</li></ol><p>TDL <strong>carves its own path by tackling complex mathematical and structural challenges that generative models struggle with</strong>. 🚀#AI #MachineLearning #DeepLearning #DataScience #NeuralNetworks #TopologicalDeepLearning #GraphNeuralNetworks #PersistentHomology #AIResearch #GeometricDeepLearning #FutureOfAI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6be9799759d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gas Optimization in Ethereum: Strategies for Reducing Transaction Fees]]></title>
            <link>https://coinsbench.com/gas-optimization-in-ethereum-strategies-for-reducing-transaction-fees-bf8a3f1e654b?source=rss-ff72294720fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf8a3f1e654b</guid>
            <category><![CDATA[gas-optimization]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[venkat manish]]></dc:creator>
            <pubDate>Sat, 06 May 2023 19:02:49 GMT</pubDate>
            <atom:updated>2025-11-25T10:58:10.068Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_War3ISvAAOuLPMpRXOmpw.png" /></figure><p>Ethereum, one of the most widely used blockchain networks, has completely changed the way we think about decentralized applications (dApps) and smart contracts. However, Ethereum’s high gas fees pose one of the most significant challenges to users, making it costly to interact with the network. In this article, we’ll delve into gas optimization in Ethereum and how it can help reduce transaction fees.</p><h4><strong>What is Gas in Ethereum?</strong></h4><p>In Ethereum, gas refers to the cost of executing a transaction or a smart contract. Every operation on the Ethereum network requires a certain amount of gas, paid in Ether (ETH), the native cryptocurrency of Ethereum. The gas price fluctuates based on market demand and supply and varies depending on network congestion and other factors.</p><h4><strong>Gas Fees and Variations</strong></h4><p>Gas fees are an essential aspect of the Ethereum network and vary depending on several factors, including the size of the transaction and the gas price. Transactions with more data and complex smart contracts require more gas, making them more expensive to execute. The gas price is determined by the network’s supply and demand and can fluctuate significantly during times of high traffic or congestion. Gas prices can be as low as a few cents or as high as several hundred dollars.</p><h4>Why is Gas Optimization Important?</h4><p>Gas optimization is critical for Ethereum due to two main reasons: cost reduction and efficiency improvement. Every transaction and smart contract execution on the Ethereum network incurs gas fees. The higher the gas price, the more expensive it is to execute transactions. Gas optimization can help lower the cost of using the network, making it more accessible to users with limited budgets.</p><p>Gas optimization can also enhance network efficiency. As each operation on the network requires gas, reducing the gas required for each operation can decrease network congestion and improve the overall speed of the network.</p><p><strong>Effects on Gas Price with respect to Block Size and other factors</strong></p><p>Block size also affects gas fees. Ethereum has a maximum block size of 15,000,000 gas, and each block can include multiple transactions. If a block reaches its gas limit, it becomes full, and transactions must wait for the next block to be mined. As a result, transaction fees can increase during times of high network congestion, making it more expensive to use the network.</p><h3>Tips for Gas Optimization in Ethereum</h3><p>There are several strategies to optimize gas usage in Ethereum. Below are some tips to help minimize gas costs:</p><p>1. Use the latest version of Solidity: Solidity, Ethereum’s programming language for smart contracts, introduces new features that can reduce the number of gas needed for certain operations.</p><p>Check this official website to know everything about the lastest version of solidity. <a href="https://soliditylang.org/">https://soliditylang.org/</a></p><p>2. Optimize smart contract code: Smart contract code can be optimized to reduce the gas required for each operation. Techniques include using bitwise operators instead of arithmetic operators, using constants instead of variables, and minimizing function calls.</p><p>For example, consider a smart contract that adds two numbers using the ‘+’ operator. Using the bitwise ‘|’ operator instead of ‘+’ can reduce the gas cost by up to 50%.</p><p>For example, consider the following smart contract that adds two numbers using the ‘+’ operator:</p><pre>pragma solidity ^0.8.19;<br><br>contract AddNumbers {<br>    function add(uint256 a, uint256 b) public pure returns (uint256) {<br>        return a + b;<br>    }<br>}</pre><p>The add() function adds two numbers and returns the result. However, using the bitwise &#39;|&#39; operator instead of &#39;+&#39; can reduce the gas cost by up to 50%. Here&#39;s the optimized code:</p><pre>pragma solidity ^0.8.19;<br><br>contract AddNumbers {<br>    function add(uint256 a, uint256 b) public pure returns (uint256) {<br>        return a | b;<br>    }<br>}</pre><p>3. Use gas-efficient data structures: Using gas-efficient data structures such as arrays and mappings can help reduce the gas required for storing data in smart contracts.</p><p>4. Avoid unnecessary storage: Storing data in smart contracts can be expensive. It’s essential to store only necessary data and avoid unnecessary storage.</p><p>For instance, consider a smart contract that stores user profile information. If the user’s profile is not frequently updated, storing it off-chain instead of on-chain can save gas costs.</p><p>Here’s an example code for storing user profile information off-chain:</p><pre>//Using the latest version of solidity<br>pragma solidity ^0.8.19;<br><br>contract UserProfile {<br>    mapping(address =&gt; bytes) private userProfileData;<br><br>    function setUserProfile(bytes memory data) public {<br>        userProfileData[msg.sender] = data;<br>    }<br><br>    function getUserProfile() public view returns (bytes memory) {<br>        return userProfileData[msg.sender];<br>    }<br>}</pre><p>In this example, we’re using a mapping to store user profile data off-chain. The setUserProfile function allows users to update their profile data, while the getUserProfile function retrieves the data when needed. By storing the user profile data off-chain, we can significantly reduce the gas costs associated with storing the data on-chain.</p><p>5.Consider gas costs for memory and storage: Every byte of data stored in memory or storage incurs a gas cost. Using dynamic memory allocation can help reduce gas costs for memory, while minimizing storage use can help reduce gas costs for storage.</p><p>6. Use gas estimation tools: Gas estimation tools like GasNow and GasTracker can help estimate the gas required for a transaction or smart contract execution. Using these tools can help set the optimal gas price and minimize overall gas costs.</p><p><strong>Conclusion</strong></p><p>Gas optimization is crucial to reduce the overall cost of using the Ethereum network and enhance its efficiency. By optimizing smart contract code and following the tips mentioned above, you can</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf8a3f1e654b" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/gas-optimization-in-ethereum-strategies-for-reducing-transaction-fees-bf8a3f1e654b">Gas Optimization in Ethereum: Strategies for Reducing Transaction Fees</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>