Leadership Capacity Building · Fall 2026

Addison Thurston

Tech lead of Mithridatium, an open-source tool for detecting backdoors in machine learning models, at Open Source with SLU. Below are two publicly visible leadership activities that go beyond my team's core work. Each one includes the evidence and the Open Source with SLU blog post I wrote about it.

Open Source · Community Management

Running Hacktoberfest 2026 for Mithridatium

In October 2026 I ran Mithridatium's participation in Hacktoberfest as the project's maintainer. I reviewed and gave feedback on pull requests from developers outside SLU and merged the ones that were ready. I accepted 9 pull requests from 7 outside contributors, covering tests, documentation, CI, and features.

Reviewing those PRs showed me a gap in our onboarding. Adding a new defense or method touches a long list of files that are kept in sync by hand, and a missed one fails silently. So during the event I wrote an Add a Capability checklist and added it to our PR template, so the next contributor doesn't have to learn that list the hard way.

PRContributorWhat it added
#131HarshRajSinghaniaCLI/docs sync test for defense flags, plus missing FreeEagle docs
#132AtharvRGDocstrings and type hints for utils.py
#140tunirwabhitkarMissing glossary terms
#141tunirwabhitkarReport helper unit tests
#142shauryamalhotra957-wqAEVA report summary
#143vanshitaaaaUnit tests for the evaluator
#145adityamukeshSpell-check step in CI
#146adityamukeshCLI/docs sync test for detect and repair
#164shauryamalhotra957-wqProgress display for AEVA scans

Why it goes beyond my team role: my team's job is building the detection and repair tooling. This was about bringing in and supporting people outside the team: reviewing work from people I'd never met, making the contribution process easier to follow, and doing outreach through a LinkedIn post and the Open Source with SLU blog.

Open Source with SLU blog post Mithridatium Welcomes Outside Contributors During Hacktoberfest 2026 Read the post ↓Collapse ↑

In October 2026, Mithridatium took part in Hacktoberfest, the month-long open source event that invites developers around the world to contribute to public projects. Over the course of the event, the project accepted nine pull requests from seven contributors outside Saint Louis University, covering tests, documentation, continuous integration, and new reporting features.

What: Mithridatium's participation in Hacktoberfest 2026
Who: Coordinated by Mithridatium tech lead Addison Thurston, with contributions from seven outside developers
When: October to early November 2026
Where: oss-slu/mithridatium on GitHub

About Mithridatium

Mithridatium is an open-source tool, developed through Open Source with SLU, for detecting hidden backdoors in pretrained image classification models. A backdoored model behaves normally on ordinary inputs but changes its prediction when a hidden trigger appears. Mithridatium packages several published detection and repair methods behind one command-line interface and produces structured reports that describe whether a model appears clean or compromised.

Opening the Project to Outside Contributors

Hacktoberfest gives projects a structured way to reach developers who have never seen their codebase. For Mithridatium, it was an opportunity to grow the project beyond its core student team and to test how approachable the codebase is for newcomers.

During the event, the project's tech lead reviewed each incoming pull request, gave feedback, and merged the contributions that were ready. Accepted contributions were labeled hacktoberfest-accepted so they counted toward each contributor's Hacktoberfest progress.

Accepted Contributions

Pull requestContributorContribution
#131HarshRajSinghaniaA test that checks CLI flags against the defense documentation, plus missing FreeEagle flags in the docs
#132AtharvRGDocstrings and type hints for utils.py
#140tunirwabhitkarMissing glossary terms in the documentation
#141tunirwabhitkarUnit tests for report helpers
#142shauryamalhotra957-wqA summary section for AEVA reports
#143vanshitaaaaUnit tests for the evaluator
#145adityamukeshA spell-check step in continuous integration
#146adityamukeshA test that keeps the CLI and its documentation in sync
#164shauryamalhotra957-wqProgress output for long-running AEVA scans

Much of this work strengthened the project's foundations rather than adding headline features. New tests, a spell-check step, and a documentation sync check make future changes safer for everyone, including the next group of newcomers. Contributors also began building on one another's work. One contributor reviewed another's pull request before it was merged, and another extended a documentation sync test that a different contributor had added earlier in the month.

The full list is available under the hacktoberfest-accepted label.

Making the Next Contribution Easier

Reviewing outside contributions highlighted a gap in the project's onboarding. Adding a new detection defense, detection method, or repair method to Mithridatium touches many files, including the CLI, the report schema, several registries, the tests, and the documentation. Most of those lists are maintained by hand, so a missed file rarely fails loudly. It simply leaves the CLI, the user interface, and the documentation out of sync.

In response, the project added an Add a Capability checklist during the event. It lists every file a new capability needs to touch, and the pull request template now asks contributors to confirm each step. The checklist turns knowledge that previously lived with the core team into documentation any contributor can follow.

Get Involved

Mithridatium continues to welcome contributors. Developers interested in machine learning security can browse the open issues, read the contributor documentation, or try the tool on their own models. Open Source with SLU thanks every Hacktoberfest contributor for their time and care.

Submitted to the Open Source with SLU blog: pull request.

Software · Software Engineering

Finding and fixing a bug in TorchMetrics, an upstream dependency of Mithridatium

PR passed automated review, awaiting maintainer review

Mithridatium depends on TorchMetrics, Lightning AI's PyTorch metrics library, which is used across the ML ecosystem. A metric that returns the wrong number doesn't crash anything. It just quietly ends up in someone's report or training log.

My fix: issue #3713 and PR #3714

I checked TorchMetrics' regression metrics against SciPy and scikit-learn on edge-case inputs and found that ConcordanceCorrCoef returns nan whenever either input is constant. The correct value is 0: the covariance is 0 and the denominator is positive. That's exactly the case people pick concordance to catch, a model whose predictions collapse to a constant, and instead of scoring it 0 the library logged nan. The cause was that concordance was computed through the Pearson correlation, which is undefined for constant inputs. I changed it to use the covariance directly.

Before opening anything, I checked every related open issue and PR (#3512/#3571, #3614/#3618, #3577/#3578) and ran my reproducer against each PR's code to confirm none of them fixed it. Then I opened the issue with a minimal reproduction and the PR with the fix, regression tests, a docs update, and a changelog entry. I confirmed the new tests fail on the unfixed code and pass with the fix. The PR also fixes the concordance half of another open issue (#3614) and explains how it interacts with #3571, which touches the same lines.

Before that: a review of PR #3706

I'd originally found a related bug, #3705 (SpearmanCorrCoef returning 0.0 instead of nan for constant inputs), and built a fix, but the issue's author already had a PR going and asked me to review it. I used my fix as a reference for a public review. I ran the test suites on the branch, confirmed the new tests fail without the fix, tested edge cases by hand, checked for conflicts with another open PR, and suggested an extra test and a docstring fix. That review is what made me check the sibling correlation metrics for the same kind of bug, which is how I found the concordance one.

Why it goes beyond my team role: none of this is Mithridatium code. TorchMetrics is used by a lot of projects besides ours, and fixing the bug upstream instead of working around it in our repo fixes it for all of them.

Open Source with SLU blog post Contributing Upstream: Fixing Correlation Metrics in TorchMetrics Read the post ↓Collapse ↑

Open source projects are built on other open source projects. When a dependency has a bug, a project can work around it locally or fix it at the source so that every user benefits. In late 2026, Mithridatium tech lead Addison Thurston took the second path with TorchMetrics, Lightning AI's PyTorch metrics library and one of Mithridatium's core dependencies.

What: A code review and a bug fix in TorchMetrics
Who: Addison Thurston, tech lead for Mithridatium at Open Source with SLU
When: December 2026
Where: Lightning-AI/torchmetrics on GitHub

Why Upstream Work Matters

TorchMetrics provides ready-made evaluation metrics, such as accuracy, correlation coefficients, and error measures, for PyTorch projects. It is widely used across the machine learning ecosystem. A metric that returns the wrong value does not crash a program. It quietly produces a wrong number in a report, a dashboard, or a training log. Fixing such a bug upstream corrects it for every project that depends on the library, not only for one team.

Starting with a Review

The work began with issue #3705, a report that SpearmanCorrCoef returned 0.0 for constant inputs. Spearman's correlation is undefined in that case, and comparable implementations such as pearson_corrcoef and SciPy's spearmanr return nan. A fixed epsilon in the denominator also prevented a perfect correlation from ever reaching exactly 1.

Thurston built an independent fix, but the issue's author had already begun a pull request and invited a review instead. Thurston used the independent fix as a reference for a detailed public review of pull request #3706. The review went beyond reading the diff:

  • It ran the Spearman and Pearson test suites and the doctests on the pull request branch.
  • It ran the pull request's new tests against the unfixed code to confirm that they actually detect the bug.
  • It tested additional edge cases by hand.
  • It explained why the chosen approach was more numerically robust than the alternatives.
  • It confirmed that the change would not conflict with another open pull request touching the same file.
  • It proposed an additional test case and a documentation fix as ready-to-apply suggestions.

Finding a New Bug

Reviewing one correlation metric raised a natural question: did related metrics share the same class of bug? A systematic check of the TorchMetrics regression metrics against reference implementations in SciPy and scikit-learn found one that did.

ConcordanceCorrCoef computes Lin's concordance correlation coefficient, a measure of how closely predictions agree with targets. It returned nan whenever either input was constant:

import torch
from torchmetrics.functional.regression import concordance_corrcoef

target = torch.tensor([1.0, 2.0, 3.0, 4.0])
preds = torch.full((4,), 0.5)  # a model that predicts a constant

concordance_corrcoef(preds, target)  # tensor([nan]); the correct value is tensor([0.])

The coefficient is well defined in this case. Its numerator, the covariance, is zero, and its denominator is positive, so the correct result is 0. This matters in practice because a model whose predictions collapse to a constant is exactly the failure that concordance is often chosen to catch. Instead of scoring that model 0, the library logged nan.

The cause was that the implementation computed the coefficient through the Pearson correlation, which is undefined for constant inputs, and the nan carried through. Since the term involved is simply the covariance, the fix computes the coefficient directly from the covariance. The result is now nan only when both inputs are the same constant, where the coefficient is genuinely undefined.

The Contribution

Thurston confirmed that none of the related open issues or pull requests addressed this case, then opened issue #3713 with a minimal reproduction and pull request #3714 with the fix. The pull request includes:

  • regression tests for constant predictions, constant targets, multi-output inputs, and the remaining undefined case,
  • confirmation that the new tests fail on the unfixed code and pass with the fix,
  • updated documentation and a changelog entry, and
  • notes on how the change interacts with other open pull requests that touch the same code.

The same change also resolves the concordance half of a separate open report, issue #3614, in which long sparse signals produced nan.

As of publication, the pull request has passed the project's automated review and is awaiting review by a TorchMetrics maintainer.

Lessons for Contributors

This work illustrates a pattern that students and new contributors can apply in any project:

  1. Reviews are contributions. A careful review that runs the tests and checks edge cases adds real value to a project.
  2. Bugs come in families. When one function has a bug, related functions built the same way are worth checking.
  3. Evidence earns trust. Maintainers review many pull requests. A minimal reproduction, tests that fail before the fix, and a clear explanation make a contribution easy to accept.

Open Source with SLU encourages students to look beyond their own repositories and contribute to the tools their projects depend on.

Submitted to the Open Source with SLU blog: pull request.