<?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 Alireza Kashani on Medium]]></title>
        <description><![CDATA[Stories by Alireza Kashani on Medium]]></description>
        <link>https://medium.com/@alirezakashani?source=rss-afcedc290798------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0fPiCBKNIeyZGX8CyHRUEw.jpeg</url>
            <title>Stories by Alireza Kashani on Medium</title>
            <link>https://medium.com/@alirezakashani?source=rss-afcedc290798------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:27:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alirezakashani/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[Two Schools of Thought: From Cold War Physics to Modern Machine Learning]]></title>
            <link>https://medium.com/@alirezakashani/two-schools-of-thought-from-cold-war-physics-to-modern-machine-learning-fb555611df87?source=rss-afcedc290798------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb555611df87</guid>
            <category><![CDATA[history-of-science]]></category>
            <category><![CDATA[nobel-prize]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Alireza Kashani]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 12:10:02 GMT</pubDate>
            <atom:updated>2024-10-10T13:34:04.848Z</atom:updated>
            <content:encoded><![CDATA[<p>During and after World War II, the field of <strong>nuclear physics</strong> was propelled forward by two adversarial and at the same time complementary schools of thought:<strong> theoretical physicists,</strong> like <strong>J. Robert Oppenheimer</strong>, and <strong>experimental physicists</strong>, like <strong>Edward Teller</strong>. Their collaboration and tension during this era led to monumental advances in our understanding of atomic energy and its dual use, both as a source of power and, unfortunately, as a tool for devastating weaponry. Just as nuclear physics led to both beneficial and destructive applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*cjVhZ58bZq8pZhvKfmHmiw.jpeg" /><figcaption>Photos via Wikimedia Commons</figcaption></figure><p>Today, in <strong>artificial intelligence</strong>, we see a similar dynamic. While we celebrate the Nobel Prize awarded to <strong>Geoffrey Hinton</strong> and <strong>John Hopfield</strong> for their foundational work on <strong>neural networks</strong>, it’s important to remember that neural networks weren’t always in the spotlight. For many years, <strong>neural networks</strong> were considered a “smelly” topic in machine learning, and graduate students working on them were often looked down upon, as <strong>statistical and Bayesian approaches</strong> dominated the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*-HtHt1OXH6rLA7tZqeWO1A.jpeg" /><figcaption>Nobel Prize in Physics 2024</figcaption></figure><p>We cannot forget the contributions of <strong>Bayesian/statistical pioneers</strong> like <strong>Judea Pearl</strong>, who developed <strong>Bayesian networks</strong> for reasoning under uncertainty, and <strong>David MacKay</strong>, who worked on <strong>Bayesian inference</strong> and early forms of <strong>Bayesian neural networks</strong>. <strong>Michael Jordan</strong> made significant advances in <strong>probabilistic graphical models</strong>, <strong>Christopher Bishop</strong> championed <strong>statistical learning methods </strong>and <strong>Redford Neal</strong> on <strong>Markov Chain Monte Carlo (MCMC)</strong> methods for Bayesian inference. These approaches provide the <strong>interpretability</strong> and <strong>uncertainty estimation</strong> that complement the raw power of deep learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BP9mVeBUxt6WCteytXciog.png" /><figcaption><strong>David MacKay, Judea Pearl, Michael Jordan, Christopher Bishop, Radford Neal</strong></figcaption></figure><p>Just as nuclear physics advanced through a balance of tension and collaboration, the future of AI depends on embracing both <strong>neural networks</strong> and <strong>statistical methods</strong>. As we push forward with deep learning, let’s not overlook the <strong>other pillar</strong> of machine learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb555611df87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmarking MLLMs for Table Understanding is hard !]]></title>
            <link>https://medium.com/@alirezakashani/benchmarking-mllms-for-table-understanding-is-hard-e30fb84a339b?source=rss-afcedc290798------2</link>
            <guid isPermaLink="false">https://medium.com/p/e30fb84a339b</guid>
            <category><![CDATA[benchmarking]]></category>
            <category><![CDATA[multimodal-ai]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[llmops]]></category>
            <dc:creator><![CDATA[Alireza Kashani]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 21:01:21 GMT</pubDate>
            <atom:updated>2024-10-02T21:01:21.157Z</atom:updated>
            <content:encoded><![CDATA[<h3>Benchmarking MLLMs for Table Understanding is hard !</h3><p>While there are specialized tools like table transformers that handle table detection (Table Detection) and structure recognition (Table Structure Recognition), it’s often more straightforward to use a Multimodal Language Model (MLLM) and ask it questions directly. However, a known challenge with these models is that they can sometimes hallucinate or generate inaccurate information.</p><p>To explore this further, I compared the performance of Gemni and GPT-4.0 using the ICDAR 2021 dataset, focusing on the number of rows and columns each model detected. Interestingly, while GPT-4.0 performed slightly better at detecting columns (65% vs. 60%), Gemni was far superior at detecting rows (65% vs. 0%). In fact, GPT-4.0 struggled to correctly interpret tables altogether in this context.</p><p>Below is the prompt I used, which is designed based on my observations. These MLLMs tend to have their own unique way of returning tables, often in HTML format. But why HTML? It’s a commonly used format in table understanding datasets, such as those found in ICDAR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NSZBugOG-GiNn2NubB9IA.png" /><figcaption>MLLMs have their own unique style when it is about returning table as HTML format. HTML is the common format for Table understanding datasets like ICDAR.</figcaption></figure><p>I also decided to test the Table Transformer model from <a href="https://huggingface.co/microsoft/table-transformer-structure-recognition">Hugging Face</a>. Surprisingly, its performance wasn’t as strong as expected. It achieved 87% accuracy in detecting the number of rows but only 69% accuracy in identifying the number of columns.</p><p>This made me curious to examine the reference data more closely. For instance, in the table below, the number of columns is listed as 4, while the number of rows is 14.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*I3eNkPY3Mi13rrXqy3kHfw.png" /></figure><p>In the example below the number of columns is set to be 2 with 12 rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*hkL5dbsKeoiFy9sK7Jy-dw.png" /></figure><p>I believe these numbers don’t fully reflect the actual performance of MLLMs. For example, in the case above, I wouldn’t classify it as a two-column table, even though it could be interpreted that way due to the hierarchy and cell splits. Theoretically, an alternative approach to evaluating their table understanding could be benchmarking through question answering (QA) tasks based on table content.</p><p>However, in real-world scenarios where storing tables is necessary, encoding them in formats like HTML can introduce noise, potentially distorting the clarity and structure of the table and leading to hallucinations in downstream tasks. To preserve accuracy, it might be better to store the original image — either by detecting and clipping the table or saving the entire page. But that’s a discussion for another time.</p><p>Meanwhile, I recommend skimming <a href="https://arxiv.org/html/2406.08100v1#S4.T4">https://arxiv.org/html/2406.08100v1#S4.T4</a> if you happen interested in this topic</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e30fb84a339b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computational Approaches to Study Microbiome]]></title>
            <link>https://medium.com/@alirezakashani/computational-approaches-to-study-microbiome-63c03a5ed887?source=rss-afcedc290798------2</link>
            <guid isPermaLink="false">https://medium.com/p/63c03a5ed887</guid>
            <category><![CDATA[microbiome]]></category>
            <category><![CDATA[perspective]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[precision-medicine]]></category>
            <category><![CDATA[systems-biology]]></category>
            <dc:creator><![CDATA[Alireza Kashani]]></dc:creator>
            <pubDate>Sun, 18 Jul 2021 21:38:02 GMT</pubDate>
            <atom:updated>2021-10-07T20:14:49.901Z</atom:updated>
            <content:encoded><![CDATA[<p>Back in 2017 when I submitted my <a href="http://www.qbiom.com/final_alireza2.pdf">PhD thesis</a> on Microbiome I wrote a lengthy essay on the perspective of Microbiome research. Given the fact, there is a liberty of writing click-bait article on Medium, I would love to share and rehearse once again this piece of work with the community.</p><h3>Perspective</h3><p>The goal of microbiome studies is to develop models that describe how an individual member of the community may behave over time under a particular perturbation, and to understand how to induce a particular trajectory in that community.</p><p>What does the future hold for microbiome research? The field is developing at the frontier of both experimental laboratory techniques and computational methodology. Experimental methods include the use of hardware — for example, an assay that quantifies biological variation in the experiment—and software that can analyze and interpret the behavior of the generated data. Below, I conclude with some thoughts on the future of the field.</p><h3><strong>Experimental techniques</strong></h3><p>In each of the projects included in the thesis, the short-read sequencing machine was the only molecular instrument used to characterize the microbial variation. With the exception of chapter 4, this thesis used the Illumina platform; the MicrobDiab data was produced through 454 Roche. The papers related to bariatric surgery and antibiotics were shotgun based, whereas the longitudinal and MicrobDiab papers were target sequenced.</p><p>Thanks to advances in sequencing technology and the dramatically reduced cost of using said technology, we can characterize many more samples from various environments than we could in the past. These efforts have resulted in the exponential growth of the bacterial genome databases. In addition, methods have been devised to construct a de-novo bacterial genome from metagenomic data (Luo et al. 2015b; Scholz et al. 2016). As a result, <strong>we are left with hundreds of species whose metabolic function we don’t yet understand</strong>. Even for the species that have been identified and sequenced, we know the function of only a fraction of their genes. For example, we have observed significant changes in <em>Lactobacillus </em>species in both the MicrobDiab and the ob/ob study. There are members of this genus that are associated with obesity, such as <em>Lactobacillus reuteri </em>(Armougom et al. 2009; Million et al. 2012). In the longitudinal ob/ob microbiome study, we also confirmed that <em>Anaerostipes </em>species act as ob/ob microbial signatures. Even the mechanism of the strain AJ110941 under this genus, which contributes to the host metabolic dysfunction of ob/ob mice, is still unknown (Kameyama and Itoh 2014). Therefore, additional models are required to provide insight on these early findings.</p><p>We must also continue to identify the elements of the microbiome system in an effort to expand our knowledge base. <strong>We need to continue enriching databases with meta-information about each taxon.</strong> This meta-information can consist of genetic functional capacities or phenotypic information reported in various studies. In general, archiving and characterizing phenotypic information on taxa or bacterial genes allow us to expand our understanding of microbiota more efficiently in the long run.</p><p>Longer reads with lower error rates will allow the microbiome community to move toward comprehensively characterizing all microbes in a given sample at the strain level. If the technology continues to advance as rapidly as it has in past years, soon we will be able to sequence the entire 16S rRNA gene. <strong>Longer reads will open up a path towards enriching genetic reference datasets to build a better picture of the tree of life.</strong></p><p><strong>Single-cell technologies</strong> are also exciting and instrumental to microbiome research. They will enable us to study the behavior of individual cells and understand the role played by each bacterium in the host-microbiome ecosystem, as well as learn the lineage of key microbial genes at the lowest biological resolution (Blainey 2013).</p><p>There is also a need to accurately measure, using high-throughput sequencing technology, the molecular phenotypic changes that result from interventions targeting the microbiome. These changes can occur in the host or in the microbial community; in other words, they correspond to cross talk between the host and the microbiome. These <strong>high-throughput screening techniques </strong>can assess changes in the host phenotype as well as the microbial community’s fitness; for example, measuring the metabolites, the expression level of a gene, or a hormone level in the host or within a particular type of cell. Additionally, they can enable us to find genetic variation, metabolites, microbial members, and other factors that will ultimately aid in pharmaceutical development.</p><p>These screening tools can be in-vitro or, ideally, in-vivo. In an in-vitro scenario, the phenotyping can be coupled with <strong>microfluidic technology</strong>; for example, a gut-on-a-chip that is made up of cultured epithelial cells can be used to screen the microbial functions under different physicochemical perturbations, allowing it to imitate 3-dimensional intestinal villi in an in vivo scenario, track strains in space and time, and even alter gene expression in vivo (Nawy 2017).</p><p>Stem cell research is another means of understanding the host-microbiome interactions and exploring the role of gut microbiota in cell fate determination. Microbiota are known to impose a regulatory network on the host genome — for example, through epigenetic modification — but the mechanism through which that occurs is not entirely clear (Alenghat and Artis 2014). <strong>Stem cell technology will be instrumental in understanding the role of the microbiome in epithelial cell development.</strong> Stem cells will be used in studies on the principles governing the localization of the gut microbiota and its spatial relationship with the host (Tropini et al. 2017). The physical structure of the digestive system is should be one of the major factor in microbiome composition and function.</p><p>Lastly, fecal transplantation — transplanting a stool sample from a healthy person to a diseased person in hopes of a desirable change in phenotype — has gained a lot of attention because it uses the results of microbiome studies in a therapeutic manner. Although this seems like a promising approach, <strong>the community should strive for rational design rather trial-and-error. </strong>One approach would be to build accurate, mechanistic models of the microbiome rather than treating it as a black box.</p><p>Eventually, we need to improve the functional composition and properties of the microbiome in vivo. To that end, (Yaung et al. 2015) presented <strong>a gene-mining platform</strong> in which they used <em>Escherichia coli </em>as a carrier of large-scale heterologous expression libraries from another strain. They introduced the engineered <em>E. coli </em>carrying different genomic regions of <em>Bacteroides thetaiotaomicron </em>into germ-free mice and monitored fitness advantages in <em>E. coli </em>over time. They showed the ability of their functional metagenomics platform to engineer commensal bacteria with improved properties in vivo. With regards to T2D, this methodology can potentially be applied to species under <em>Clostridium </em>cluster XIVa or <em>Lactobacillus </em>that undergo significant changes related to the dysmetabolism of T2D to obtain precise functional insight on these species.</p><h3><strong>Computational methodology</strong></h3><p>Microbiome data has distinct characteristics; it is count, compositional, and often sparse. <strong>Time</strong> is the major source of variation in microbiome data, followed by <strong>sampling site</strong>. Until now there has been a tradition of using statistical ecology approaches to describe the composition of the microbiome. Different distance metrics coupled with various dimension reduction methods are introduced to explain the variability in the data; however, <strong>these visualization techniques cannot explain the underlying biology to a great extent.</strong></p><p>Microbiome studies have often been limited to capturing the microbial community at a certain time point and, as a result, they were not explicitly accounting for behavior that could cause time variance. However, there is a notion in the field to move toward conducting<strong> longitudinal studies</strong> (Gerber 2014; Bucci et al. 2016). The ordering of data points and continuity of changes are characteristic of any longitudinal data. Underestimating these properties by applying statistical methods designed for static data can lead to erroneous conclusions (Gerber 2014). However, <strong>using statistical tools designed for time series data and customized for the experiment can lead to the extraction of rich information from the time series data, such as stability, growth rate, perturbation response</strong> (Gerber 2014; Gerber, Onderdonk, and Bry 2012; Carmody et al. 2015; Bucci et al. 2016), future behaviors of host-microbial ecosystems (David et al. 2014; White et al. 2013) and even the discovery of causal interactions (Sugihara et al. 2012).</p><p>Computational tools for analyzing microbiome time series data is an area in which tremendous growth is expected. These methods not only attempt to model the trajectory of the microbiota from sequencing data but also combine omics data, aiming to provide deeper <strong>insight into the functional changes that occur in the microbiome over time.</strong> There will be more studies on measuring longitudinal changes of<strong> host properties, such as phenotypic markers, gene expression markers, or immune system markers</strong>; this will help in understanding the host-microbiome interactions. The field has also started to characterize nonbacterial microbes in addition to virome (David et al. 2014; Handley 2016), and it will be fascinating to see which general and specific characteristics nonbacterial microbes own.</p><p>Ultimately, the systematic approach should go beyond integrating genetic and molecular data toward <strong>considering the physical forces in the gut</strong>. Mechanical forces in the gut orchestrate aspects of gut development and mobility, and, consequently, bacterial interaction. There have been studies on how mechanical forces in the developing gut activate molecular signals that position intestinal stem cells where they can give rise to other cell types in the intestinal tract (Gayer and Basson 2009) (Shyer et al. 2015). Moreover, researchers have investigated <strong>how elastic and geometric properties influence wrinkling and folding patterns in the intestines that can contribute to bowel diseases </strong>(Ciarletta, Balbi, and Kuhl 2014; Balbi, Kuhl, and Ciarletta 2015; Landhuis 2016).</p><p><strong>Model-based machine learning methods</strong> are suitable frameworks to address future microbiome data analysis, particularly using <strong>nonparametric Bayesian methods</strong>. Their flexibility permits the user to incorporate various types of data and parametrize various aspects of a study. These techniques enable new types of analysis that simple visualization or statistical tests cannot offer.</p><p>In recent years, we have seen major works on the modulation of the microbiome by the immune system (Rakoff-Nahoum et al. 2004; Kubinak et al. 2015; Levy et al. 2015) and on the effects of the microbiome on the immune system (Hooper LV, Littman, and Macpherson 2012; An et al. 2014). As previously discussed, T2D can be considered an autoimmune disease (Tsai et al. 2015). With respect to understanding the role of the microbiome in T2D, there are exciting opportunities for mathematical modeling in elucidating the cross talk between the microbiome and the immune system. Computational models should incorporate various aspects from each of the two complex systems to understand this cross talk. Future studies in this regard hold promise for <strong>therapies that modulate the host immune system through microbiome modulation and microbiome-derived metabolites.</strong></p><p><strong>Fecal microbiome composition does not represent the microbiome across the intestinal tract.</strong> The microenvironmental conditions as well as physiological differences at <strong>different sites in the gastrointestinal tract</strong> make a profound impact on each other. The role played by microorganisms throughout the gastrointestinal tract, including the small and large intestine, has received little attention (Z. Zhang et al. 2014). Computational methods can be used to impute the composition at different sites as well as explore <strong>genetic and functional variation of a given taxon at various site of the gastrointestinal tract.</strong></p><p>There is a need to develop statistical methods that incorporate not only biological principles but also the experimental features of studies in a meaningful manner. There is <strong>no free lunch in statistics</strong>, meaning that there is no algorithm that is appropriate for all situations. Researchers should be aware of the characteristics and limitations of their computational methods in advance. For example, <strong>linear mixed models</strong> have often been used in longitudinal studies; however, these models do not consider the ordering aspect of time and merely use it as a factor. The <strong>Lotka-Volterra</strong> model has also been used in longitudinal microbiome studies, but this model makes some assumptions about the environment and evolution of predator and prey populations that are not the case in most microbiome studies (Moritz 1987). First and foremost, the model is designed for a predator–prey environment and models the competition, but <strong>these assumptions are not applicable because the gut microbiota</strong> is rather. This type of model assumes that the prey population finds ample food at all times. Another assumption is the rate of change in population, which is proportional to its size. Mathematically speaking, <strong>most of the variance in microbial time series is non-autoregressive </strong>(Gibbons et al. 2017). Listing all of the assumptions and limitations of statistical practices is out of the scope of this thesis. However, the important point to remember here is that computational methods should reflect the underlying biological phenomena.</p><p>There have been efforts to develop models for <strong>power and sample size estimation in case-control studies</strong> (La Rosa et al. 2012; Kelly et al. 2015). As the number of studies grows, it will be possible to conduct a more thorough power analysis. These methods will be helpful in future integrative omics analyses as well as in longitudinal studies. As the cost of sequencing decreases, however, there may be less interest in developing new models or performing such analyses.</p><h3><strong>Experimental design</strong></h3><p>Systems biology and artificial intelligence have imbued the field of microbiome studies with hope and excitement. The advances in molecular biology techniques, particularly in sequencing, have given rise to the growing field of systems biology. High-throughput sequencing has made it possible to read millions of DNA molecules quickly and cheaply, and genome sequencing is no longer a costly, decade-long endeavor; in fact, it has become an affordable and common laboratory procedure. The computing revolution has demonstrated the power to analyze and find patterns in massive amount of data. Finding a single string of characters in a billion entries takes only seconds, and artificial intelligence can “learn” games and even win against humans (Silver et al. 2016). Microbiome studies have also felt the urge to create and collect data from various resources to find answers to questions with the ultimate goal of understanding the microbial system. This has led to an avalanche of data being produced in this field.</p><p><strong>Arguably, the experimental design of many studies is not far from what Antonie van Leeuwenhoek was doing in the late 17th century.</strong> We are also cataloguing bacteria at various sites and comparing the different communities of oral and fecal microbiota by exploring the differences among individuals in states of health and disease (Ursell et al. 2012).</p><p><strong>The excitement in microbiome association studies is (2014-2017) partially rooted in experience gained from human genome studies.</strong> Excited by GWAS studies, a similar approach is taken to find associations between bacteria composition and various phenotypes in hopes of finding microbial biomarkers or regulators. However, there is no lecture in the microbiome conferences ending slides by advocating the idea of going beyond associating and understanding the function.</p><p>The main challenge in microbiome research is to avoid becoming overwhelmed by the advances in systems biology and data science and instead define a clear objective.<strong> This often requires a clear biological question rather than the hypotheses typically seen in biological research</strong> (Glass 2010, Brenner 2003). This point can elevate the old debate on the philosophy of science.</p><h3><strong>Closing remarks</strong></h3><p>The future of microbiome research is bright, considering the innovation taking place across various related fields. We are getting much better at “reading” and even “writing” “omes” (DNA, RNA, epigenome), enabled by technological advances and cost reduction in sequencing and other molecular techniques. We have identified a series of genera and species that are enriched in cases of obesity and T2D and are also associated with host dysmetabolism. Further follow-up studies aimed at understanding the complex interplay between these taxa and the host will lead us closer to realizing the vision of treating obesity and T2D through modulating the microbiota.</p><p>The rest of the thesis is available <a href="http://www.qbiom.com/final_alireza2.pdf">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63c03a5ed887" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>