Hugo speaks with Eric Ma about Research Data Science in Biotech. Eric leads the Research team in the Data Science and Artificial Intelligence group at Moderna Therapeutics. Prior to that, he was part of a special ops data science team at the Novartis Institutes for Biomedical Research's Informatics department.
In this episode, Hugo and Eric talk about
What tools and techniques they use for drug discovery (such as mRNA vaccines and medicines);
The importance of machine learning, deep learning, and Bayesian inference;
How to think more generally about such high-dimensional, multi-objective optimization problems;
The importance of open-source software and Python;
Institutional and cultural questions, including hiring and the trade-offs between being an individual contributor and a manager;
How they’re approaching accelerating discovery science to the speed of thought using computation, data science, statistics, and ML.
Get full access to Vanishing Gradients at hugobowne.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Hugo Bowen-Anderson here, your friendly neighborhood podcast host. Today, it is with great pleasure that I'm speaking with my dear old friend, Eric Ma, about research data science in biotech. So Eric leads the research team in the data science and artificial intelligence group at Moderna Therapeutics. Prior to that, Eric was part of a special ops data science team at the Novartis Institutes for Biomedical Researchers Informatics Department, otherwise known as NIBA. In this episode, Eric and I will be talking about what research data science
actually looks like in
SPEAKER_00biotech, including what tools and techniques they use for drug discovery, such as mRNA vaccines and medicines, the importance of machine learning, deep learning, and Bayesian inference, how to think more generally about such high-dimensional multi-objective optimization problems, the importance of open-source software and Python, If that's not enough, we'll also be talking about institutional and cultural questions, including hiring and the trade-offs between being an individual contributor and a manager. And we'll also talk about how they're approaching accelerating
discovery science to
SPEAKER_00the speed of thought using computation, data science, statistics, and machine learning. And we'll let you know what that means as we dive in. So a bit of bookkeeping before we jump in. I would honestly love to hear from you about what resonates with you, what doesn't, and anybody you'd like to hear me speak with, along with topics you'd like to hear more about. The best way to let me know currently is on Twitter, although that may change soon. At Vanishing Data is the podcast handle, and I'm at Hugo Bowne. It would be great if you could subscribe to the show on your app of choice. And if you like it, do write us a review on iTunes and or anywhere else.
SPEAKER_00Also, this episode was recorded as a YouTube live stream, so when we occasionally refer to people commenting in the chat, that's what we're on about. We plan to have more such live streams, and you can subscribe to our channel to keep up to date. The link's in the show notes. I'm your host, Hugo Bowne-Anderson, and welcome to Vanishing Gradients.
Ooh.
SPEAKER_00Hello, Hugo. How are you, my friend? It's good to see you, man. It's great to see you as well. Welcome, everyone, once again to this live recording of Vanishing Gradients, where we'll be talking about research data science in biotech. I will want to jump in and hear about you from you, of course, but I thought I would just introduce you. If I get anything wrong, you can let me know. But Eric leads the research team in the data science and artificial intelligence group at Moderna Therapeutics. Prior to that, Eric was part of a special ops data science team.
I'm thinking like Mission Impossible 5 there at the Novartis Institute for
SPEAKER_00Biomedical Researchers Informatics Department. And we're going to be talking today about what research data science actually looks like in biotech, including what type of questions you think about and answer, what tools and techniques you use for drug discovery. the importance of ML, deep learning, Bayesian inference, open source software, Python, all of these things. Also thinking about cultural and career concerns and institutional questions such as hiring, trade-offs between being an individual contributor and a manager, and also
SPEAKER_00how you're approaching your mission, which is accelerating discovery science to the speed of thought. So there's a lot of meat to get into today, but I thought we could start by you giving us just a bit of background in how you got into data science and the data world in the first place, kind of your origin story,
SPEAKER_01so to speak. Yeah, definitely. First off, that was a very flattering introduction. Thanks, Hugo. Absolutely. I got into the data world during my PhD days. I was in the midst of switching advisors, switching research groups. And in the process of coming up with a thesis, I wanted to work on something more computational rather than more wet lab oriented. And so there was a long, long, long story behind how I got into the data world. But to condense it down for the audience today,
SPEAKER_01it's basically I went to the Boston Python meetup group. I had some thesis ideas. I pitched one of those ideas to a bioinformatics software engineer. At the time, his name is Giles Hall, and he worked for the Broad Institute at that point. And I pitched an idea to him. about clustering influenza genes. And he came back to me with this idea that I should use the affinity propagation algorithm in scikit-learn. And keep in mind, I had only two months of Python experience back then.
SPEAKER_01So he was asking a two-month-old Pythonist to do machine learning.
SPEAKER_00Amazing. And so just for clarity, I am interested in how people pick up computational skills. So you were working in biology in wet lab stuff and started picking up these skills. And just for a bit more clarity, you were and still are in Boston area, which is one of the great and was one of the great places to be for biology, biotech, all of these types of things with the Broad Institute, for example, where you were.
SPEAKER_01Yeah, that's right. So I had two months of Python behind me and I was mostly interested in just automating some very tedious PCR primer design work. We don't need to go too deep into that, but it's basically a lot of copying and pasting and switching letters, which can be totally automated by a computer. And so I previously picked up Java skills to try to make that happen, but really wasn't doing anything fancy at that point. So picking up Python, I had a little bit of Java, like one undergrad Java class to help me pick that up.
SPEAKER_01But most of it was working with... I had been in the bio world for so long that computation was still a very different mindset, different frame of mind, really. It took me quite a bit of time after I switched advisors to really get my Python skills up to where they are today. But back then, it was search stack overflow for all of the errors that would show up in a Jupyter notebook at that time and bang my head against the computer a
lot and try different
SPEAKER_01things.
SPEAKER_00Yeah. I'll ask you this. When you were doing this, were there Jupyter notebooks yet? Or were you working in IPython notebooks? Was this pre-Jupyter?
SPEAKER_01This was pre-Jupyter. Yes, it was IPython. I think IPython notebooks had just come out. This was 2013. And I do remember I was working in an IPython-like environment. I can't remember exactly. The details are fuzzy for me now. Whether I was in the spider IDE or I was doing something else. It's a little difficult to remember now. Yeah, and I don't only ask that to be a smart aleck or anything along those lines.
SPEAKER_00I think what I want to get to is the fact that this is actually a serious inflection point in the ability of biologists and other research scientists to do computation. When the IPython notebook came out and we already had a bit of Matplotlib, a bit of Pandas, scikit-learn was being developed, these types of things. It was this confluence of all these tools and technologies that allowed not necessarily super computational research scientists to then start doing computational science.
SPEAKER_01Yeah, that's right. And I do remember doing a lot of scripting as well. But the Jupyter notebooks or the IPython notebooks at that time were really helpful for me because I'd run a bit of code, get immediate feedback and know whether the thing I was doing was right or wrong, which then... was another huge decision point for me in switching out from the wet lab to the dry lab. That's because the turnaround time for feedback on the dry lab is at worst minutes. Whereas the feedback time for knowing whether something is workable or not in the wet lab is at best weeks.
Bacteria cultures take a week for you to know whether your experiment design
SPEAKER_01produced an engineered result that you're going for, versus coding something up in a cell, in an iPython notebook or Jupyter notebook cell, and within 30 seconds, you know exactly whether you're on the right path or not, for the simplest of questions. And if you chain them together, it's like half a day at most to know whether you're on the right path. So it's a big motivating factor for me.
SPEAKER_00Amazing. And we met just after this time, I think after you switched to advisors and something I recall, I think we met at an ODSC conference the first time, something along those lines, but you were teaching and it was already apparent that for your research and your work with Python and your work in data science and machine learning, community was quite important. Is that correct?
SPEAKER_01Yeah, that's right. So when I was starting out, actually, the Boston Python user group, BPug, or BossPy as we know it, was really formative for me. The way I actually got into the teaching tutorials was because Boston Python's leader, Ned Batchelder, made a claim during one of the meetups where he was like, If you think you don't have a tutorial, talk to me. I will find your tutorial. He says the same things for talks. If you think you don't have a talk, talk with me. I'll find your talk for you. And so first year that I went to PyCon,
SPEAKER_01I heard about PyCon through the Boston Python user group. And I pitched an idea to Ned saying, I think I want to teach a thing about everything I've learned thus far about analyzing data with Python. And I was blown away by Ned's reception. It was very helpful. He encouraged all the way through. And fortunately enough, that tutorial was accepted the first year I went to PyCon as well. So I got to get a taste of what it was like teaching Python
programming and that sort of thing. And for those who wanted to do data analysis work and wanted to get into it,
SPEAKER_01I guess at that time, I was in the perfect position to do that teaching because I just experienced all of those challenges myself. It's harder for me to empathize with the early beginning stages of picking up how to do analysis with Python nowadays. That's probably better taught by other people now. Back then, it was perfect timing. And from then onwards, as my research got more and more into network analysis methods and stuff, then I switched over the tutorials to network analysis.
SPEAKER_01And what was really cool is this. I was using the tutorials as an outlet to learn the methods because there's no better way to learn something then by teaching it. Agree completely. And then people would be curious about how I was using network analysis methods. And of 100 people I would speak with, three to five of them would take an interest in what my thesis was and would also provide feedback on how I should probably do my research. And so that became another part of the community,
SPEAKER_01interacting with the community and such, and how that has really benefited me as well. And so, as you mentioned, it's like being part of a broader community has been really helpful. And those are just two little vignettes on how it's been helpful for me and how I try to give back as well.
SPEAKER_00Yeah, they're wonderfully illustrative. So I'd love to know then after grad school, how you transitioned to industry.
SPEAKER_01Yeah, lots of PhDs are doing that nowadays. I did apply for a few postdoc positions and I was turned down for them. Those were the kind of positions which were much more independent. And so... When I was turned down for those positions, the choice for me was pretty clear. Just go out into the industry. And I guess there were a few conversations that were formative for me. I had a friend, Nick Barrow, who went to Janssen Pharmaceuticals. He was a postdoc and he was also at the Harvard School of Public Health and at the Boston Python user group at that time.
SPEAKER_01He was a postdoc at the time. He told me about the postdoc life. and told me about his desire to move out into industry. Then he did the Insight Data Science program. And he was raving about it. And so I was like, well, okay, I want to try it too. He did it in 2015, I think. Went to Janssen and now lives in Pennsylvania. I went to the Insight program in 2017, summer. And also, I went there primarily with the goal of making friends because I knew that if I were to just jump into the industry straight away,
SPEAKER_01I would go in with my network size being zero. Whereas if I went in having done Insight, my network size would be immediately 25. Right.
SPEAKER_00And correct me if I'm wrong, but the Insight Fellowship is essentially a bootcamp designed for graduate level scientists trying to break into industry. So it's actually quite relatively specific compared to a lot of other bootcamps you can do.
SPEAKER_01Yes, yes, that's right. That's right. And it's specific. The program I went through was the Health Data Program. also have a bit of time to hack on a project. And that was one of the things that I wanted a bit of time to hack on a project that I've been having since grad school days, but never had the time to finish it up and polish it up. So Insight was a good piece of chunk of time to let me do that. And then once I finished Insight, I found a role at the Novartis Institute for Biomedical Research. That was my first role.
SPEAKER_01As you mentioned, it was in a pretty special team. Back then, it was called the Scientific Data Analysis Team. And I was hired in as one of four people in the Cambridge site. And we also had like three or four colleagues in Basel as well. And then immediately I started going into what we would call research data science at this point. And that's because I would be working on projects that pertains to how we figure out what molecule to use,
SPEAKER_01to develop, to hit a disease, to modify the course of a disease. That was my first role. Then I think three and a half years in, an opportunity came up at Moderna. by one of my old friends who I met at the Broad Institute as well. And he eventually became my manager, Andrew Giesel. And so we talked a lot about the tech stack at Moderna and how it was really, really modern and how the impact was essentially platform level.
SPEAKER_01So that caught a lot of interest for me. And so I decided to make the switch. What does that mean? So if you think about mRNA, mRNA is a platform. So you can encode any protein you want and deliver it into a cell by putting string together a sequence of letters, a sequence of nucleotides in mRNA. So because of that, you get a platform for producing proteins inside the cell. So you don't have to go through a lot of complicated processes
to make a protein
SPEAKER_01outside of the human body, purify it to make sure that there are no dangerous substances that are left inside there. You can deliver just the mRNA directly and use the human cell as the factory that produces the therapeutic protein of interest. That's only one aspect of how Moderna has a really good platform. The other part of this is from the tech side. So by tech, I really mean like tech industry tech side. The tech stack is extremely modern. We can talk about that later.
The most important part that I've seen about this is that the set of problems that the data science and artificial intelligence team works on are not those one-off, kinds of problems, but they are recurring problems in the research space.
SPEAKER_01They are problems that pertain to... We sort of go in and take a problem and try to abstract it to its platform-like level. Let me give you an example. If we talk about how do we find the protein sequence that we want to become the antigen inside our vaccines, and if you want to use machine learning methods to do this, you can do this without machine learning methods, but if you want to use machine learning methods to do it, to solve this problem, We don't go in and say we're going to solve it for just the COVID-19 vaccine and then invent a completely new method for the flu vaccine and then invent a
SPEAKER_01completely new method for the RSV vaccine. We don't do things that way. If we want to do protein design, we go in and we think about the problem in an abstract sense from how do we generate a protein sequence that does the thing that we want from an experimental standpoint. Then we design the computational method to be abstract enough to take in any kind of experimental data that is relevant for that protein of interest. And we design or incorporate from the open source world a protein generation
SPEAKER_01module, a machine learning module that spits out proteins for us and we hook them up in such a way that we can solve the problem once for COVID. and reuse that exact same tooling for RSV, for influenza, for Zika, for whatever virus we want. And it doesn't even have to just be antigens for producing antibodies as well, for producing missing proteins in rare diseases, like putting that inside a patient. So we go in not solving problems in a one-off way for each of
our colleagues,
SPEAKER_01but we take a step back and we really think hard about it. What's the generic problem? that we can solve over and over and over by using computational methods. And we hammer hard on those methods. And that was refreshing for me. It takes a tech startup mentality to think that way.
SPEAKER_00Absolutely. That's super exciting. I'm looking forward to jumping into all the details there. I think now you lead the research team and I'm excited to talk about what that actually means later on and how that differs to being an IC. But I suppose you've given several examples, but it'd be nice to jump in and hear exactly what research data science in biotech means compared to other forms of data science even.
SPEAKER_01Yeah, definitely. Data science in general, of course, is always about solving business problems. So research data science means that the subset of problems that we're trying to solve are in the biotech and pharma research space. So what exactly is an anchoring framework for the kind of problems that we're looking to solve. So I think we should answer that question first. So when I first joined NIBR, one of my colleagues... Remind us what NIBR is. Novartis, sorry. Novartis Institute for Biomedical Research.
SPEAKER_01When I first joined NIBR, one of my colleagues gave me a very useful framework for thinking about almost every single problem in the drug discovery space, which is you have a patient who's got a disease Their disease, their body exists in a dysregulated state that we want to turn back to normal. For any disease, you want to find a target that you can hit. A target is a biological entity that is dysregulated or dysfunctional. It could be a missing protein, a misfolded protein, a missing RNA.
SPEAKER_01It could be a mutated protein. any one of those things. And that causes the observed diseased state. There's a link there that is the purview of data science methods as well, target indication matching. I don't do much of that because I think that's a problem that does require a lot more domain expert, like really specific domain expertise. However, there is a third axis here, which is molecule discovery.
SPEAKER_01Molecule discovery is asking the question, which molecule should we use that can hit the target of interest and return that target from a dysfunctional or dysregulated state back into a normal state? So let me make this a little bit more concrete then. Let's say we're talking about enzyme replacement therapy for patients who are missing an enzyme in their body. The target then would be that enzyme. The disease state might be something like phenylketouria, PKU.
SPEAKER_01There are patients who can't metabolize a particular amino acid. And the molecule that we want to find is a version of that protein that we can deliver into the human cells, that patient cells, that will restore their ability to metabolize that amino acid. They can't metabolize it, so they're in a disease state. And so now we want to make sure that they're able to metabolize it by replacing the therapy. That is a protein molecule discovery problem.
SPEAKER_01There are many variants of the target enzyme, which is well known. I think it's phenylalanine hydroxylase. So you can have many variants of phenylalanine hydroxylase that can potentially do the thing that you want. But you also want to make sure that it does a few other things. It shouldn't trigger an immune response inside your patient's body, right? Because if you replace the enzyme and now suddenly your immune system attacks those
SPEAKER_01cells, you've got a worse problem than you had before. It shouldn't clump with other proteins inside the cell. It must work at the exact, ideally work at the level that replaces the original gene dosage of that inside a patient. So finding out which variant to engineer and deliver is a huge problem because that is the space of possible variants for phenylalanine hydroxylase or any protein in general is just vast.
The length of the protein already gives you the one set of possible number of
SPEAKER_01mutations you can make. So like n choose 1, then you can do combinations of mutations, n choose 2, n choose 3, n choose 4, n choose 5. It just goes exponentially large. If we were to try to design lab experiments to test all of n choose 1, n choose 2, n choose 3, that experiment would be way too expensive to test for all properties of interest. So we have this hypothesis that machine learning methods can help us shortcut
experimentation by guiding us onto sets of mutations that have a higher probability
SPEAKER_01than random of being efficacious, safe, therapeutic, yada, yada, yada.
SPEAKER_00Great. Yeah. I want to get into methods soon, but before, yeah, are there other examples such as imaging and vaccine antigens and that type of stuff? Yeah, totally.
SPEAKER_01Yeah. I'm glad you mentioned imaging because imaging is another huge data modality, right? Wet lab experimental data is one where you get sequence with number matching, but images are another huge data modality. When I think about imaging, I think back to My undergrad days, this was 2008, when I was doing mouse pathology scoring in mouse experiments. It was semi-quantitative, but still very qualitative. And you needed at least two raters to go in and to look at an
image of a mouse gut
SPEAKER_01and figure out how inflamed is this thing. When we're measuring cellular... Sorry, when we're measuring things One thing that's definitely common practice, at least from the 2010 to 2020 days that I had experienced was to take a crap ton of images, select a bunch that were representative and publish those as part of the main figure and make conclusions based on those qualitatively determined... representative images and that never felt satisfying.
SPEAKER_01So one of the things, value props of the data science world is that we can go in and we can bring a measure of systematization to how we look at images. Let's say you got a bunch of images of cells and inside there, there are subcellular structures for which you want to quantify how big are they, how abundant are they, And with an intervention inside the cell, whether there's an impact on the levels of that subcellular structure.
SPEAKER_01In pre-data science days, you would go in and just pick representative images and say, yeah, I think there was a difference. But nowadays, what we can do is we can go in, take each image, segment out exactly what those subcellular structures are, quantify exactly how many of those structures exist. We can get the full distribution within one cell and the full distribution across multiple cells. We can also quantify things like their spatial clustering. So how close together are they versus how diffuse are they within a cell?
And all of those things are richer quantitative information that comes out of an
SPEAKER_01image than just looking at two or three representatives. And this is reducing a lot of this helps us reduce a ton of human variance and manual work in analyzing imaging data really, really is enabling. Absolutely.
SPEAKER_00And I think we'll get to this in a bit, but I do think reducing manual work and kind of closing the loop in the work really does help accelerate discovery, science discovery to discovery science to the speed of thought or along those lines.
SPEAKER_01Yeah.
SPEAKER_00I do think in terms of topical things, people are interested in how you think about vaccine discovery and that type of stuff. So maybe you could just tell us a bit about those types of questions.
SPEAKER_01Yeah. So when I think about vaccine discovery, I personally don't think about it just in terms of vaccines, but in the more generic problem of how do we figure out what protein we want to deliver and code as mRNA. So I'm sure those who have more experience than I do in the vaccine world will have much more refined questions than what I think about. Because what I'm really thinking about here is mostly the platform-like nature of
SPEAKER_01figure out what protein we want. But in terms of vaccines, we know the basics. They have to trigger the desired immune response. So you actually do want to get a fever or mild fever at least from your body when you inject a vaccine. You do want to be able to make sure that it doesn't cause catastrophic immune response as well. So immune response can't go overboard. That's undesirable. It shouldn't do other things inside your body that are undesirable from a
safety standpoint, and it should look as close as possible to currently circulating viral strains,
SPEAKER_01which highlights, therefore, the importance of keeping funding available for genomic surveillance of pathogens. That's being deprioritized right now. I was in the flu world before and I know how these funding cycles work. You get a pandemic, you get an injection of cash, and then once the pandemic goes away, that cash goes away and all your surveillance infrastructure goes away. So it's not good, but that's a slightly different topic. When it comes to thinking about this from a data science perspective,
SPEAKER_01I really think about figuring out how we can integrate the experimental wet lab data that tells us that the protein does exactly what it wants and reducing the cost of that experimentation, how to integrate also the data that says this is the kind of immune response we don't want, And here's the biggest challenge. Usually the ideal data that we want is not collectible. That's like... Right. Tell me about that. That's the hardest thing. So as an example, if we want to know whether an antibody that we engineered
SPEAKER_01in the lab is going to be therapeutic for a particular cancer. The ultimate test is to stick it inside a human and ask, does this work inside a human? But you can't do that experiment in the preclinical stage. That's not allowed. So by definition, that data that we would ideally like to have is not collectible. Then we go into like next level, second level proxies for that data. We can create a mouse model of that tumor and inject it with
human tumor cells.
SPEAKER_01Poor mouse. I don't like mice experiments, but that's the best we got. And then see whether the antibody also injected into the mouse causes a reduction in tumor size. That logically sounds like it would make sense, but it does not give us any guarantees that the thing will still work inside a human. Then there are other experiments that are more granular at the molecular level that you can design that can help with figuring out, oh, will the antibody bind to the exact protein that we want, etc. We need to figure out how to be able to integrate all of these
experimental sources
SPEAKER_01of data into our work to answer that question like, which protein should we work with? Which antibody sequence should we make? Or in the case of vaccines, it's a different set of questions, but it's still very diverse and scales of granularity and relevance that are very difficult. And so one of the things that I've come to realize is that in the research data science world, it's going to be really hard to convince scientists who are making these decisions about what molecules take forward and stuff.
SPEAKER_01You need domain expertise. You just have to be well-versed in the advanced analytical biochemistry methods that are used, the cellular molecular biology methods that are being used to test these hypotheses. And that's almost a necessity for someone who wants to break into the research data science space. So it's very challenging to find that kind of person.
SPEAKER_00That makes sense. And we'll talk a bit more about that when we get into hiring. We have a great question in the chat from Utkash. Utkash asks, what's the current state of explainable and interpretable ML in the biotech industry, especially with techniques like Bayesian optimization in high dimensions, which can be quite black box?
SPEAKER_01Yeah, that's a good question. So when I think about explainability in the research space from the perspective of a wet lab scientist, it's basically if I increase X, what is the change in Y? So most people will think linearly. They will not think in terms of interactions. And it's very hard to interpret any model for the wet lab scientists unless it's a linear model, right? Or unless it is a well-established model of a biologic phenomena.
SPEAKER_01So if like If you've got a system of differential equations or if you've got a Markovian system, then you can use differential equations or Markov models to model that system, and each parameter has an exact interpretation. What's really cool about the biology space is that there's a rich wealth of well-established models that look like that. They have parameters that correspond exactly to the kind of biological or
biochemical phenomena that we're interested in that comes from decades of quantitative biology,
SPEAKER_01chemistry, research. That is the level of familiarity that I expect from my teammates and myself as well when we're going into solving biological problems. It's not satisfying to go in and take Shapley values. because Shapley values don't give us much actionable insight in the research space. Can you remind us what a Shapley value is? Shapley values come from explainable AI. There's a wealth of literature. I'm blanking on the exact mathematical definition of Shapley values,
but it's a way of saying which features in my data set contribute positively or
SPEAKER_01negatively towards the final observed value. that actually is kind of useless for what we're really going for. Because when you work in the research space, you actually are working side by side with research scientists who are designing experiments. You have to know exactly what their levers are. If their levers are not explicitly modeled in our design of experiments and in the mathematical model that's used,
SPEAKER_01then that's going to be a very difficult thing for them. The only one place that I see an exception there is in doing this using machine learning methods for molecule design. There it's complicated enough, the system is complicated enough to map from sequence to function that you can get away with using a machine learning model and having a model propose new mutations. Even there, sometimes our wet lab colleagues will ask us, well, can you map those proposed mutations onto a structure
SPEAKER_01And C, tell me what you think the effect of that mutation might be. And at that point, we either make a best guess from our own limited knowledge of structural biology, or we actually bring in a computational structure biologist to help work with us on that problem. So explainable AI that may be hot in the world of tech is actually kind of useless in my mind for research. It's not a ding against those methods. It's just they're not useful for what we're working on. For your work.
SPEAKER_01Yeah. Yeah, for our work. And we actually end up using a lot of interpretation methods that have been developed in the bioinformatics world instead, like using what you call those seek logos, right? To show that here's the bias of the designed library versus a random library, for example. Hopefully that answers the question.
SPEAKER_00Definitely. And so we've been talking around machine learning and deep learning in your work. I'd like to reason through how important machine learning and deep learning are actually are to your work. I think there are a couple of ways to think about this. One is, how much lift do you get using ML and DL from non-machine learning? techniques. The other kind of way of thinking about it, I suppose, is a lot of people when they talk about doing machine learning and that type of stuff, maybe just doing a logistic regression or something along those lines. So what do you actually use that may be more sophisticated than
non-ML techniques
SPEAKER_00or baseline techniques?
SPEAKER_01Yeah, definitely. So let's talk about Lyft because I think that's a great entry point because it really talks about what's the value proposition of using machine learning models to design your molecule libraries versus getting a human versus just doing random search. That was exactly the thing that my colleagues and I tested in a paper that we published, I think, 2020 or 2019 in the Journal of the American Chemical Society. Catalysis. Yes, it was a catalysis journal. And one of the things that we actually set out to do was to
engineer an enzyme to
SPEAKER_01catalyze a reaction that we wanted. We actually benchmarked a few methods. One was a very expensive deep mutational scan, which is essentially creating every single possible one mutation variant of the protein. That thing costs $20,000 per experiment, per lab experiment minimum, for just ordering the genes, by the way. We're not talking about like Well, yeah, we're not talking about running the samples on a wet lab robot plus more so that
SPEAKER_01those experiments are really expensive. So we benchmark that. And then we did another thing where we said, well, we have this start. And so we have this starter data. What if we trained a machine learning model to predict function from sequence or enzyme catalysis from sequence and use the machine learning model to filter out non-high performing new mutations that we propose that were combinations of existing mutations? So we did one test where we did that machine learning guided strategy.
SPEAKER_01We call it machine directed evolution, which is to generate just purely random mutants inside there, inside for next round. And we did a third round, third test, where we actually did this thing where we took a look at the enzyme structure and tried to compose mutations based on whether they were close to the enzyme's catalysis site or far away from the catalysis site. And we combined them in different ways. And one of the things we figured out was the following.
You can measure 10 times fewer things and get a better shot on goal of finding high performing enzymes if you use machine directed evolution versus just doing a random
SPEAKER_01search. But then here's where the twist comes in. random sequence search from the perspective of gene synthesis is actually very cheap. You can throw a piece of DNA into a tube, add an enzyme that copies imperfectly, and get a crap ton of poorly performing or high performing variants inside that tube for less than 10 bucks.
But to order 200 variants that are predicted as high performing by machine learning
SPEAKER_01model costs at least $10,000. So there's actually a cost trade-off that we have to consider, right? When do you go in and you use a high-performing machine learning model? And when do you go in and use a not just random search? That is going to be specific for every single protein. It depends on a lot of factors. How expensive is the experiment is the biggest thing. The cost of making the variance is one part. The cost of measuring is another part. The cost of growing the cells and etc. Those all have to be taken into account.
SPEAKER_01So it was a really cool thing. So 10 times less, 10 times fewer things that you can order as long as your experiments are expensive enough to make it worthwhile. So that's the part about the lift. I forgot what the other part was though.
SPEAKER_00And does that generalize across your work as well? Like all the different types of... I think so.
SPEAKER_01Yeah. Amazing. That idea that the cost of the experiment really matters for justifying whether or not to use machine learning methods is pretty generalizable. Amazing. The other part of the question is when we're talking about machine learning,
SPEAKER_00in your case, I presume we're not talking about logistic regression.
SPEAKER_01Right, right, right, right. What are we talking about? So back then when we did that paper, it was a deep learning model to embed the protein sequences, followed by a random forest model on top. And viewed from 2023, there's actually very little justification for doing that kind of thing anymore.
SPEAKER_00But the embeddings, is that like some sequence to VEC type thing? Is that what we're talking about?
SPEAKER_01Yes. Yes, that's right. There was a model that my intern, Arkady, now my colleague as well, Arkady and I had worked on together. It was published from the George Church Lab. We re-implemented it in JAX, sped it up, made it very useful for ourselves, and then open sourced it. And what was cool was we were able to get numerical embeddings from the UNIREP model, specifically trained for protein sequences, the protein language model, as we call it. And we didn't really do much in the way of comparing that Unirep embeddings to OneHot to whatever,
I think those are not the most important question. The most important question was really, is this machine learning thing worth it?
SPEAKER_01Is it worth it or is it not? So we just went ahead, used the Unirep embeddings, threw a random forest model on top, very quickly get to this point where generating sequences and scoring them and prioritizing them using this very simple machine learning workflow. Fast forward to 2023, I've actually more or less abandoned scikit-learn for anything that's molecule design related work, because I think we have a next generation system in my mind. I have a next generation system in my mind that I really want
to build out,
SPEAKER_01which is fully differentiable end to end that lets us taken surrogate models for any experimental data and use it to optimize the sequence that will maximize all of the surrogate models outputs. And if we can build that system, that would be the best. And so the use of random forests, they're non-differentiable in scikit-learn, so we can't use them. So we just use the most powerful overpowered sequence to function predictor module and use the same thing for every single assay. And we use that to optimize,
SPEAKER_01jointly optimize this like sequence, protein sequence or mRNA sequence that we want to generate. So everything has to be differentiable. And so, yeah, and it has to be differentiable and it has to be dumb and simple at the same time, yet it has to be powerful enough at the same time. So it's like, well, we standardize the architecture of that neural net and use it for every single assay. And that gives us dumb and simple and gives us powerful enough every single in exactly the same way.
We use protein language model embeddings and standardize on one or two of them.
SPEAKER_01That again gives us dumb and simple while also being super powerful. So if we're able to get to that point, then we can build this bot, this machine that you can feed it a bunch of assay data and a target protein that you want to optimize, and maybe an hour of optimization with no human intervention later, you get 50 candidates or K number of candidates that you want that you can test in a lab that all have a high chance of maximizing the surrogate model outputs that's what we're trying to go for
that sounds amazing man so i want to move on now to talk briefly this will be a challenge briefly about bayesian inference in your line of work and for listeners out there eric and i talk a lot about bayesian inference together and we're in fact very excited to be writing a book on bayesian inference together and we're not gonna dive deep into into that today or dive deep into bayesian inference i said to eric before we started today that he might need to come back sometime for us to have the
SPEAKER_00conversation about Bayesian inference, the conversation it deserves to have. But in lieu of that conversation, Eric, maybe you could tell us just a bit about the importance of Bayesian inference to your work combined with the ML and the deep learning stuff you do.
SPEAKER_01Yeah, absolutely. I think I alluded to this point just now that biological experiments, they cost a lot of money. One experiment can be anywhere from like $1,000 to $20,000 to $30,000 to even maybe $100,000. There is one that actually cost us $200,000 in just gene synthesis recently. So Bayesian inference is really important for us. Bayesian, specifically Bayesian estimation. Bayesian estimation, we use it primarily in the structuring of wet lab experiment
data.
SPEAKER_01When we collect experiment data, sometimes we get, if we're in a good day, we get triplicate measurements, which gives us n equals three for each sample. If we're in a setting where the experiment costs way too much, sometimes we only get like duplicate measurements. And when you have that low of an n, you need to do all sorts of statistical It's not trickery, but you need robust statistical methods that help you deal with these low end situations, low replicate number situations. And so hierarchical models for estimation really help here
because hierarchical
SPEAKER_01models allow us to naturally impose regularization, which helps us avoid being fooled by randomness and injecting priors into our statistical estimation that are biologically plausible. for the system that we're modeling is also really, really important here. Canned statistical methods with p-values and such, I've been fooled by them before. And for that reason, I don't trust them anymore. So any project that our team works on, I insist that if there is wet lab experimental data for which
we need to estimate a
SPEAKER_01property of interest for a molecule from that data, we have to use Bayesian hierarchical methods in the analysis of that data. It gives us full transparency, also makes the analysis much more robust.
SPEAKER_00Absolutely. And I, at the risk of, I don't want to dive too deep, but I do think it's worth saying a few words about hand hypothesis testing, frequentist hypothesis testing. One thing to state is that In these tests that can be used correctly, there are often a lot of assumptions built into them which are opaque. When you do Bayesian inference and Bayesian hypothesis testing, you're actually forced to make your assumptions explicit. So you can check them even down to, you know, you do a t-test and you're assuming something about normality and all of these types of things, right?
SPEAKER_00Whereas you're forced to make your assumptions explicit. I think it's probably also worth saying a word about the choice of priors. You said something which I think is like one of the common and occasionally naive, for lack of a better term, objections to Bayesian inference comes down to the choice of the prior. You didn't only say using a prior, you said using a biologically plausible and credible prior, right? So maybe, see that is so key to the conversation we're having. So maybe you could give a brief
SPEAKER_00example. Maybe I'll give one which is, you know, one example that I use that we've used together is the beak length of Galapagos finches, right? Yeah. And so that, the first thing we know is that that's going to be strictly positive, right? So whatever, if we're estimating that, the prior has to be greater than zero. We know that'll be under a certain length. So there are certain things we can say about that to inform our prior. But there are examples where you know the prior would fit a certain distribution or this type of stuff, right? So maybe you can say a few words about that choice.
SPEAKER_01Yeah, definitely. Definitely. Let's say we're estimating the size of our cell. As another example, most cells that we have seen are on the orders of microns in size. So if you put a prior that is strictly centered on picometer sizes, that's implausible. If you put a prior that's sized on light year sizes, that's also implausible. So biologically relevant priors are very important. And I forgot what the book is,
but there's a quantitative bio book that talks about the scale of everything
SPEAKER_01biological in nature. And getting familiar with those numbers was super helpful for me, knowing that cells are micron-sized, proteins are nano-sized, that tissues go from anywhere from millimeter to meter-sized. Knowing the scale of stuff is really important. Also, temperature scales, enzyme kinetics, activity scales, those were really, really, really helpful for me as I go about my conversations with my colleagues in the wet lab.
SPEAKER_00Yeah, I don't know if this is the book you're talking about, but a former colleague and friend of mine, Rob Phillips, with a colleague of his, wrote a book. He's at Caltech, Cell Biology by the Numbers. Yes, yes. Beautiful book. That's the one. Beautiful book. Yes, that's the one. And all of Rob's work. Cell Bio by the Numbers. Yeah. So I'll include a link to that in the show notes and I'll include it in the chat now. So that's super cool. Rob's a legend as well. So let's, I mean, I'm going to have to get you back to talk more about Bayes, my friend. But what we're going to jump into now is it'll be interesting to just,
SPEAKER_00we know you work in Python and a few of the tools you use, but maybe you could tell us a bit about what your software stack looks like. And in particular, how this plays into the fact that you actually treat your data science projects as software.
SPEAKER_01Right. Yeah, definitely. So one of the lessons, of course, that I've learned from my years in grad school and at NIBR is that to operationalize something over and over and over in a reliable fashion means we need to use we need to treat means we need to develop software. That's what software engineering and development is. concerned with primarily how do you make a system that's reliable that does a thing over and over and over and over reliably so for that so earlier on i mentioned that
we work exclusively in python and that we use pytorch uh well i didn't mention that but we use different we need differentiability in all of our models so we use pytorch exclusively i wanted to bring in jacks but then you know they're not their
SPEAKER_01autodiff systems are not compatible so we we And we had a bunch of stuff already in PyTorch. So we use PyTorch for everything. If people want to learn more about Jax, do you still have some tutorials online?
SPEAKER_00I do. For Jax? I do.
SPEAKER_01Yeah. I'll include them in the show notes as well. Some written ones. I haven't made video recordings of them or taught them anywhere except for one, I think, Magical NumPy with Jax. But yeah, but JAX is pretty cool. I actually prefer JAX over PyTorch because of the way that it's shaped my way of thinking about models. But back to our tech stack, we also use Typer. All of our work gets operationalized as command line interface tools. But just to be sure,
we don't ship command line interface tools to our colleagues.
SPEAKER_01We actually have infrastructure at Moderna. interface tools using a configuration file, they will wrap our CLIs to be web ready. So we will automatically get a web skin in front of our CLIs. That's super cool. And those things can be run on the cloud at scale. You can submit millions of jobs at one shot and that thing is robust. It's really, really cool. It's got also API, it's API ready, which means our software engineering colleagues can call on those
what we call compute tasks and make them consume the outputs of those models directly.
SPEAKER_01So for that, we also use Docker. When I first joined, one of the first things that I helped out with was to standardize the tech stack. Nipping this problem early in the bud allowed us to move fast downstream so everyone made a few sacrifices we standardized on using vs code because that allowed for live coding collaboration we standardized on pytorch so i gave up jacks my manager andrew gave up emacs or vim or whatever one of the two because that was his preferred ide we standardized on typer for
its modern interface we standardized on docker conda all that stuff so there's almost like to
SPEAKER_01go from project development of code to deployment, you can prototype yourself in a notebook, show it to your colleagues, and when you're ready, make a CLI out of it. And then bang, you can deploy it on our internal infrastructure. And now suddenly, non-technically inclined people can go in and click a button, fill out a form, click a button, and let compute jobs run in the background and get back what they're looking for. It's pretty cool.
SPEAKER_01It's really, really cool. Amazing.
SPEAKER_00I just wanted to... You may have mentioned this earlier where you've said several times that you require your models to be differentiable. Could you remind me why that's the case?
SPEAKER_01Yeah, you're jointly differentiable. So let's say, for example, one of those things that we want to build is the ability to design a protein to satisfy multiple properties of interest. So if you want to jointly optimize that protein to maximize all of those outputs. Ideally, you would like to find the gradient of your protein with respect to your output. or maybe more precisely, the gradient of your protein embedding with respect to all of
the outputs. So now you can set up a bunch of partial derivatives and do hill climbing on your
SPEAKER_01embedding space to optimize that protein sequence. So all of the models have to be differentiable in order for that reality to become true. That's, by the way, not the only way to design proteins. You can do things like Monte Carlo sampling like methods that also use gradients. They don't vanish like your podcast. Very good. Hopefully they don't explode. That's right. That would be mind blowing. Sorry. Yeah, exactly. There are multiple ways to use models to design proteins and
like hill climbing is
SPEAKER_01just but one of them, including injecting noise with Monte Carlo methods is another. You can ignore the gradients if you want to. I think that's not desirable though, just computationally wasteful.
SPEAKER_00Yep. Great. I'd love to wrap... We're going to talk about some institutional and cultural questions. Yeah. You used to be an individual contributor and now you're a hiring manager and team lead. Maybe you can tell us a bit about this transition because I know this is top of mind for a lot of people and what the trade-offs are between these roles.
SPEAKER_01Yeah. My running joke is I accepted the Moderna role knowing that becoming a hiring manager, becoming a team lead would be the price to pay for that. My natural inclinations are actually to just do coding work. I think over the year and a half that I've been in this position, it's been a learning journey to adjust to being a team lead. Being an individual contributor, at least for myself, I care very much about the quality of code, the level of documentation, testing, that sort of thing,
SPEAKER_01how well organized and refactored that code base is. And I can maintain very tight control on those aspects on any project that I work on. I also get a lot more freedom as an individual contributor to go and experiment with new tech, things that are of interest and such. I think moving in or rather that was more cultural as part of the time at NIBR where the tech stack was not very well defined. Now that we've come in and really
SPEAKER_01standardize the tech stack at Moderna for the data science team, there are some things that we just don't ask questions about. We don't ask questions about which CLI tool because it's not central to the way that we work. We just need a very good CLI tool that works and run with it for a few years. So that's one. As a team lead, I can't tightly control the quality of every single project that the whole team works on. So it's now instead my responsibility to go in and coach my
teammates to be able to
SPEAKER_01produce code that is of that level of quality. When it comes to choosing modeling methods, it's a similar thing, right? Some people will say, we want to use a bespoke model for every single new problem that comes up. That's not sustainable in the long run, even though it's like the most principled. Then at the same time, there are other people who will just say random forest everything. And that's dumb and simple and scalable, but sometimes it's not appropriate.
And so finding the balance between dumb and simple and powerful and appropriate to solve the problem is a thing that I could have very tight control over as an
SPEAKER_01individual contributor. But now as a team lead, I have to do a lot more work to coach my teammates to make these modeling decisions. And sometimes the modeling decisions that I would make would be different from the modeling decisions that they would make, partly because of familiarity, but also partly because of a broader vision or goal that we're trying to achieve, which is like fully differentiable everything. I noticed that if my teammates don't understand this idea of fully differentiable
SPEAKER_01everything, I have to go in and show the fundamentals of what it means for why it's so important for differentiability. And I've done these things where I did these three hour long at work, three hour, two hour, three hour long workshops in the afternoon on Friday, walking through how deep learning works, how how gradients flow from output to input, etc., etc., through your parameters, etc. And it's a different type of challenge. What I will say is that the change has been quite satisfying
when I see the fruit of labor.
SPEAKER_01Seeing others get this idea of Bayesian methods and why it's better, and then being able to build a model without my oversight or intervention, such that they only have to come to me and go, hey, I built this model. I think this is the right model. What do you think? I don't have to go and say, direct like this is the prior, this is the prior, this is the prior, this is the equation, etc. They can do that on their own now. And that's actually very satisfying because now they're much more independent and now collectively our team can do much more together
SPEAKER_01than if I were doing it alone. I can't slice my brain 12 ways to handle 12 projects, but the team together can do that. And as long as we're all constantly leveling up our skills, then that is something very, very satisfying. So that has been my biggest takeaway thus far. Helping my teammates to grow to produce their best technical work possible has been really, really rewarding.
SPEAKER_00Yeah. Great. So as a final question, one thing I noticed when you were talking about the types of skills needed in your line of work, there seems like a heavy amount of domain expertise, even down to biochemistry and these types of things that in other career paths in data science, we may not actually... We know that domain expertise is important, but you don't necessarily need an advanced degree in the domain to do that. So maybe using that as a launching pad, you could tell us about how you think about hiring Moderna.
SPEAKER_01Yeah, definitely. I wrote an essay, actually, that if you would like to, Hugo, you can include those in the show notes. I will.
SPEAKER_00And I'll actually include in the YouTube chat currently as well. That's the hiring and interviewing data scientists essay.
SPEAKER_01That's right. I wrote it because my teammates were going to do hiring in my absence, three months of paternity leave. And so I wrote this essay primarily for them, but also to for the future as well and to help others who figure out how we're thinking about hiring. So there are five axes. Domain expertise matters a ton for the research team. It actually may not matter much for someone who's working on legal projects or someone who's working on commercial area projects.
SPEAKER_01The vocabulary, the depth of concepts that we need to master, very different between different fields. So as a team, I actually require prior scientific training at the minimum bachelor's level, if not even then master's level. In most cases, what I actually really, really want to see is someone who has done wet lab work before and made a successful switch into doing computation and can produce pretty good code.
SPEAKER_01and knows one or two very well differentiated modeling methods. So the scientific knowledge is like a must have and having at least a bachelor's degree is like the bare minimum. If you come work with us with that level, my goal has always been to help you get the Moderna PhD or the whatever company PhD. So after a few years of training under me, my goal is that you should be operating just like someone who graduated with a PhD.
SPEAKER_01So that's especially from a scientific knowledge perspective. The other four axes are as follows. People skills, communication skills, coding skills, and modeling skills. When it comes to people skills, really what this is all about is your ability to handle challenging situations. Those, I think, are very revealing and telling about how a person handles themselves. Work is not easy. There are going to be tense situations always. I try to make sure that we don't have tense situations within the team,
SPEAKER_01but externally, who knows what will happen. So that's a very important thing. Their communication skills, especially with wet lab scientists, really matters. And this is why I think someone who's come in having done wet lab work before will really understand all of the levers that a wet lab scientist have, will understand intuitively, oh, yeah, I shouldn't go in a particular direction because that's going to be useless for the wet lab scientists. Those are the things that are really important. When they communicate with them, they also understand what a wet lab scientist will intuitively
get versus not get. So being able to communicate at multiple levels as well is also important. But I think primarily being able to communicate with lab scientists is important.
SPEAKER_01All of our work is produced as code. And so therefore, we need to ensure good code quality because no one will stay at a company forever in this economic climate. So your work will eventually have a high probability of being transitioned into someone else's hands. If we want to ensure that that second person is able to ramp up on a project, there has to be great documentation. If we want to ensure that the next person knows exactly where
to modify a code to
SPEAKER_01satisfy evolving business requests, they need to have good code organization. And if they want to make sure that their code doesn't break existing, their code changes break existing functionality, you need to have tests. So all three things are required. I recognize that not everybody comes in knowing how to test, knowing how to document, knowing how to refactor code. But I have figured out a way of interviewing that will elicit these properties out of a person while also giving the candidate home side advantage.
SPEAKER_01You should check out the essay. That's a lot of detail inside there. Fantastic. And then the final thing, Final thing that we look for is special sauce modeling skills. There are too many candidates who know how to use scikit-learn. So at this point scikit-learn is not differentiating. It's not special sauce. There are not very many candidates who know how to wrangle a graph neural net and put data into a graph neural net and know how to train it effectively. So graph neural nets, as an example, are a special sauce modeling skills.
There was a candidate who I interviewed who was very well versed in Gaussian
SPEAKER_01process models and, in fact, was able to modify a vanilla GP in such a way that it satisfied the domain requirements of her PhD thesis. And that I considered special sauce probabilistic modeling skills. This is not your vanilla grab GPiTorch and run with it. This is grab GPiTorch and modify it in such a way that actually works for your domain and i love hearing stories of how people are able to do that right so that's the fifth aspect
you're having something special sauce that is differentiating from the rest of the crowd i love it yeah so those are the five main axes and then there are other considerations that are not amongst these five but i think anyone who's interested can go check out the essay
SPEAKER_01yep
SPEAKER_00Fantastic. And there's so much within that. But I do think testing software is something which data scientists in general, as a discipline, we need to become far, far better at. Also, testing data. This is something that data test is something which, you know, I've taught with you, I've TA'd for you, like on several years ago. But these are the types of several tools such as Great Expectations, which are kind of up and coming, which are great for this type of thing, but it's still not something we've really... I mean, a lot of big tech companies do it in-house with their own
proprietary tools and
SPEAKER_00that type of stuff, but data testing isn't something I think we've really reckoned with as an industry and we need to sooner rather than later.
SPEAKER_01Yeah, I absolutely agree. And the fact that there are lots of There's Great Expectations and Pandera, which are the two that immediately come to mind. The fact that these two tools exist for testing data is amazing because they're open source and they're freely available. I think probably the main challenge here is that we don't appreciate data as a first class asset like we do code, maybe. And that Data also feels a little bit more nebulous to test compared to code.
SPEAKER_01It can break in much more subtle ways.
SPEAKER_00It's the real world. Yeah. It's the real world coming into software, right?
SPEAKER_01Yeah.
SPEAKER_00Yeah, exactly.
SPEAKER_01Exactly.
SPEAKER_00It's entropic.
SPEAKER_01It is. Absolutely. So I think that's probably one of the biggest, bigger challenges right there. But yeah, I don't have a good solution for this. I just know that it's a big problem. And definitely Pandera is on the list of tools that we use for validating our data. Awesome. also beg a lot with our colleagues, please standardize your Excel spreadsheets, right? Because that's how science is done, by the way, in Excel spreadsheets right now. Data is collected and stored in Excel spreadsheets, unless it's like those large scale systems and they're not
formatted exactly the
SPEAKER_01same way and processed with code from the raw form. It's very challenging to set up reliable systems that run over and over and over.
SPEAKER_00Totally. So look, I have one more question, and this is kind of a teaser for something we may chat about downstream at some point. You mentioned that when people on your team start realizing the power of Bayesian techniques, that you find that really, really exciting. And I feel like Bayesian inference... It's so nascent in the adoption curve as to what it will be in several years. So I wonder if you can maybe give just a hint or a teaser of how you think, where you think Bayesian inference is now in terms of adoption
and what you'd like
SPEAKER_00to see in the future.
SPEAKER_01Oh, I haven't thought about that question. Let me see if I can like blabber something. Yeah. That is not from GPT-3.
SPEAKER_00If anyone can do it, it's you. And sorry to put you on the spot. So Bayesian methods make sense because you can write explicit models and you can't be lazy. I think overcoming the human laziness factor is the first part, and that's a non-tech problem.
SPEAKER_01That is an education problem.
SPEAKER_00And an incentive problem as well, right? So collaborative interruption here, whatever they call it. But when I work in biology, my biologist colleagues didn't even have... They were at the bench the whole time. They barely had time to do analysis or experimental design and barely had time to learn the right things to do so that there wasn't time to take an entire course on Bayesian inference or this type of stuff. They had to learn it on weekends and that type of stuff. So I think there's actually... And then on top of that,
being able to put... those types of statistical skills into a curriculum or into a course is actually challenging because the courses are already too full and there are advocates at a
SPEAKER_00faculty level for each part of the curriculum. So, you need to convince someone there to take it out. So, there's a whole set of mixed incentives, which means that it's actually very difficult to learn unless you're doing it at 11pm. End rant.
SPEAKER_01Yeah, that's right. Which is actually how I learned Bayesian methods as well. Me too. At 11pm every night in three hours SciPy tutorials. The second thing that I think we need to overcome is the ease of that objection that you can make overcoming that ease of you can make your data say anything with the right priors. So one of the things that one of my ex-colleagues had mentioned before was he was
SPEAKER_01doing the sensitivity analysis, which required him to change prior distributions and their parameterizations and see how those changes affected the final output, the statistical inference result, the inferences that he was trying to go for. And I find that incredibly tedious to write over and over that code, which is at its core essentially the same. Mutate your model in a certain way and run MCMC.
SPEAKER_01I find it really tedious to write that code. And we don't have good tooling for doing sensitivity analysis of arbitrary Bayesian models. If you think about us writing this in PyMC, I would have to go in and tweak my Gaussian 01 to be Gaussian 02, Gaussian 0.11, Gaussian 0.21, Gaussian 0.31. That just doesn't sound right. How do we figure out and automatically elicit what the right
bounds are for our sensitivity analysis and build out the machinery such that you fit your desired
SPEAKER_01model along with all the other possible models automagically without needing to rewrite more code. And then when it comes to that sensitivity analysis problem, I mean, I've done this before in grad school where it's like, yeah, I tweak my parameters and I get a whole bunch of curves and I can see how the system changes with different parameterizations. But then tying that back to, well, is it reasonable? Are these parameter ranges reasonable?
SPEAKER_01That doesn't seem to me to be a problem of technical tooling missingness. Is a thing reasonable is fundamentally philosophical and domain specific. And again, just comes back to, well, how do I answer that question? I need to know something about the problem that I'm dealing with. Is my prior for bacterial cell size reasonable? I need to know something about that. Are the bounds that I've chosen reasonable?
SPEAKER_01What's the variation in the output? I can report the variation in the output based on the variation on the inputs, but is it all reasonable still needs domain expertise to evaluate. That third problem is automating, figuring out ways to speed up, not automate, but speed up the determination of whether our priors were reasonable and our sensitivity analysis made sense. I think it's another huge thing that needs to be done. There's probably more that I'm missing on the horizon,
SPEAKER_01but those are the big problems that I've seen in building models and being deeply dissatisfied with them and not being able to muster the will to go and further test them as extensively as I would like to.
SPEAKER_00Absolutely. I love it, Eric. And let's consider that a little teaser for hopefully getting you back sometime to talk in depth, maybe when our book's coming out, to talk really about the ins and outs of Bayesian inference and the utility we see in a past, present and future.
SPEAKER_01Yeah, totally. I'd like to thank everyone for joining today and thanks for the really cool questions.
SPEAKER_00And I'd like to thank you, Eric, for your time. It's always a pleasure to chat, but thank you for coming and chatting on the podcast. It was so much fun and I learned so much as always. My pleasure, man. Thanks for tuning in, everybody. And thanks for sticking around to the end of the episode. I would honestly love to hear from you about what resonates with you in the show, what doesn't, and anybody you'd like to hear me speak with, along with topics you'd like to hear more about. The best way to let me know currently is on Twitter, at Vanishing Data is the podcast handle, and I'm at Hugo Bowne.
Hilary Mason, CEO of Hidden Door, works with agents across software development and creative projects. Drawing on Richard Hamming’s distinction between science and engineering, she describes agents as “bringing the...
Agents can write the code, run the analysis, and produce a convincing explanation. How do you check that they’ve answered the right question, used the data appropriately, and reached a conclusion you can act on? I...
“It’s an LLM, a loop, and enough tokens.” - Nicolay Gerold, Amp Code So why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?...
“If you feel that a product is hard to eval, or you feel like, ‘I don’t even know how to eval this,’ it’s a strong smell that your product isn’t good.” - Hamel Husain, on AI product design An AI data agent tells you...
“It would be sad if local models were not an option and there were only proprietary models. It’s good to have alternatives. Competition is good for business.” - Sebastian Raschka, on open-weight AI Kimi K3’s weights...