<?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 Pakhibanchalia on Medium]]></title>
        <description><![CDATA[Stories by Pakhibanchalia on Medium]]></description>
        <link>https://medium.com/@pakhibanchalia2418?source=rss-1e5e5c2fa57e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vhBh8q0nqQ0FIvxI</url>
            <title>Stories by Pakhibanchalia on Medium</title>
            <link>https://medium.com/@pakhibanchalia2418?source=rss-1e5e5c2fa57e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:46:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pakhibanchalia2418/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[Developing Adaptive Neural Networks: Growing Graphs for Dynamic Data Representation]]></title>
            <link>https://medium.com/orel-group/developing-adaptive-neural-networks-growing-graphs-for-dynamic-data-representation-286d9ad6c24c?source=rss-1e5e5c2fa57e------2</link>
            <guid isPermaLink="false">https://medium.com/p/286d9ad6c24c</guid>
            <category><![CDATA[graph-neural-networks]]></category>
            <category><![CDATA[dynamic-graphs]]></category>
            <category><![CDATA[growing-gnn]]></category>
            <category><![CDATA[adaptive-learning]]></category>
            <dc:creator><![CDATA[Pakhibanchalia]]></dc:creator>
            <pubDate>Sun, 13 Oct 2024 12:31:40 GMT</pubDate>
            <atom:updated>2024-10-16T05:27:24.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>What if neural networks didn’t just learn but could grow and adapt like living organisms? This summer, I embarked on a journey to explore this question as part of Google Summer of Code (GSoC) 2024. I had the incredible opportunity to work on a project with <a href="https://devoworm.weebly.com/">DevoWorm</a>: developing a Growing Graph Neural Network (GNN). This project, part of the DevoGraph initiative, aimed to develop networks that evolve their topology to better represent complex, dynamic data. In this post, I’ll take you through my journey of implementing this concept, sharing the challenges, breakthroughs, and potential applications of this exciting approach to Artificial Intelligence.</p><h3>Project Overview</h3><p>My GSoC project consisted of two main components:</p><ol><li><strong>Topological Data Analysis using </strong><a href="https://github.com/DevoLearn/DevoGraph/tree/main/stage_2/TDA_using_K-Mapper"><strong>K-Mapper</strong></a>: A preliminary exploration into complex data structures.</li><li><a href="https://github.com/DevoLearn/DevoGraph/tree/main/Growing-GNN"><strong>Growing Graph Neural Network</strong></a>: The core focus of the project.</li></ol><h3>Brief Note on K-Mapper</h3><p>Before diving into the main project, I worked on implementing Topological Data Analysis using the K-Mapper algorithm. Topological Data Analysis is a powerful method for analyzing complex datasets by focusing on their shape and connectivity. The <a href="https://github.com/DevoLearn/DevoGraph/tree/main/stage_2/TDA_using_K-Mapper">K-Mapper implementation</a> helped in visualizing high-dimensional data and identifying key topological features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QcGctSNhPW_u7faRKCdY7A.png" /><figcaption>A sample visualization</figcaption></figure><h3>Growing Graph Neural Network</h3><p>The primary focus of my GSoC project was the development of a <a href="https://github.com/DevoLearn/DevoGraph/tree/main/Growing-GNN">Growing Graph Neural Network</a>. This innovative implementation incorporates a unique temporal aspect, mirroring the developmental processes observed in biological systems. Here’s how I achieved this:</p><h4><strong>1. Temporal Node Addition</strong>:</h4><ul><li>The graph reads from a dataset that includes birth times for each node.</li><li>Nodes are dynamically added to the graph at their specified birth times.</li><li>This process simulates cell division, where parent cells give rise to daughter cells at specific temporal points.</li></ul><h4><strong>2. Spatial Learning</strong>:</h4><ul><li>Beyond just adding nodes, the GNN learns the spatial relationships between nodes to ensure that newly added daughter cells are positioned correctly within the graph structure.</li><li>The network computes and optimizes the distances between every pair of nodes.</li><li>This is done using the CMA-ES algorithm, which is a powerful evolutionary algorithm.</li></ul><pre>def optimize_with_cma_es(self, graph):<br>  initial_params = torch.cat([p.flatten() for p in self.parameters()]).detach().numpy()<br>  <br>  # Initialize CMA-ES optimizer<br>  es = cma.CMAEvolutionStrategy(initial_params, 0.5)<br>  self.graph = graph.copy()<br>  <br>  # Perform optimization loop<br>  while not es.stop():<br>  solutions = es.ask()<br>  losses = [self.objective_function(x) for x in solutions]<br>  loss_tensor = torch.tensor(losses)<br>  loss = torch.clamp(loss_tensor, min=-1e6, max=1e6).tolist()<br>  es.tell(solutions, loss)<br>  <br>  # Retrieve optimized parameters<br>  optimized_params = es.result.xbest<br>  self.set_parameters(optimized_params)</pre><h4><strong>3. Biological Analogy</strong>:</h4><ul><li>The approach can be likened to modeling embryonic development, where cells divide and organize themselves spatially over time.</li><li>The graph structure evolves both temporally (through timed node additions) and spatially (through learned inter-node distances).</li></ul><p>The gif below illustrates the growth of the graph neural network over the first 130 (approx.) time steps, showing the dynamic addition of nodes and the evolving structure of the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*q27vgN-w-c4C84J-9UwNVg.gif" /><figcaption>Growing Graph Neural Network</figcaption></figure><h3>Challenges and Learnings</h3><p>Developing a Growing GNN came with its unique set of challenges:</p><h4><strong>1. Designing the Training Loop</strong></h4><p>One of the primary challenges was determining an effective training loop for a network that grows over time. Traditional neural networks have a fixed architecture, allowing for straightforward training procedures. The loop needed to balance learning on existing nodes with integrating and initializing new ones.</p><h4><strong>2. Limitations of Backpropagation</strong></h4><p>Standard backpropagation, a key component of neural network training, proved inadequate for the Growing GNN. The increasing number of parameters as the network grew made traditional backpropagation ineffective. The non-linear growth pattern of the network further complicated the use of gradient-based optimization methods.</p><p><strong>Solution: Covariance Matrix Adaptation Evolution Strategy (CMA-ES)</strong></p><p>To overcome these limitations, I turned to CMA-ES:</p><ul><li>CMA-ES is a powerful optimization algorithm that doesn’t rely on gradient information.</li><li>It’s particularly well-suited for non-linear, non-convex optimization problems like the Growing GNN.</li><li>Implementing CMA-ES allowed me to optimize the network’s parameters despite its dynamic structure.</li></ul><h4><strong>3. Spatial-Temporal Consistency</strong></h4><p>Maintaining consistency between the temporal growth of the network and its spatial learning presented ongoing challenges:</p><ul><li>I had to ensure that newly added nodes (representing daughter cells) were positioned correctly relative to existing nodes.</li><li>The spatial relationships needed to remain meaningful as the network expanded over time.</li><li>Balancing local and global optimization of node positions was a constant consideration.</li></ul><h3>Future Directions</h3><p>This project opens up exciting possibilities:</p><ul><li>Applying Growing GNNs to other dynamic graph problems in developmental biology.</li><li>Implementing K-Mapper visualization at different time stamps throughout the graph growth process to create a series of topological “snapshots” of the network’s structure as it evolves over time.</li><li>Exploring self-optimizing neural architectures.</li><li>Combining with Reinforcement Learning for adaptive problem-solving.</li><li>Optimizing for GPU acceleration to address computational limitations.</li></ul><h3>Conclusion</h3><p>My GSoC project with DevoWorm has been a thrilling journey into the cutting edge of machine learning. By developing a Growing Graph Neural Network, we’ve taken a step towards more adaptive and scalable AI systems. This work not only contributes to the DevoGraph toolkit but also pushes the boundaries of what’s possible in neural network architecture.</p><p>I’m incredibly grateful for this opportunity and excited to see how this technology will evolve and impact the field of computational biology and beyond.</p><h3>References</h3><ul><li><a href="https://github.com/DevoLearn/DevoGraph/tree/main/Growing-GNN">DevoGraph/Growing-GNN at main · DevoLearn/DevoGraph</a></li><li><a href="https://github.com/DevoLearn/DevoGraph/tree/main/stage_2/TDA_using_K-Mapper">DevoGraph/stage_2/TDA_using_K-Mapper at main · DevoLearn/DevoGraph</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=286d9ad6c24c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/orel-group/developing-adaptive-neural-networks-growing-graphs-for-dynamic-data-representation-286d9ad6c24c">Developing Adaptive Neural Networks: Growing Graphs for Dynamic Data Representation</a> was originally published in <a href="https://medium.com/orel-group">Orthogonal Research and Education Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>