nowfound

AI · May 26, 2024

Boldly go where Gradient Descent has never gone before with DiscoGrad

Trying to do gradient descent using automatic differentiation over branchy programs? Or to combine them with neural networks for end-to-end training? Then this might be interesting to you. We develped DiscoGrad, a tool for automatic differentiation through C++ programs involving input-dependent control flow (e.g., "if (f(x) < c) { ... }", differentiating wrt. x) and randomness. Our initial motivation was to enable the use of gradient descent with simulations, which often rely heavily on such discrete branching. The latter makes plain autodiff mostly useless, since it can only account for the…

Boldly go where Gradient Descent has never gone before with DiscoGrad launched on May 26, 2024 with 232 votes, #210 of 4,539 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.

Visit github.com ↗Alternativestop 5% of May 2024

In plain words

DiscoGrad is an automatic differentiation tool for C++ programs that contain input-dependent branching and randomness. It enables gradient descent optimization through simulations and complex programs where traditional autodiff fails, by accounting for multiple execution paths rather than just the single path taken. The tool is designed for researchers combining discrete control flow with neural networks for end-to-end training and for optimizing simulations that rely heavily on conditional logic.

written from the facts on this page · September 2026

From the sources

DiscoGrad - automatically differentiate across conditional branches in C++ programs - DiscoGrad/DiscoGrad

In the maker’s words, at launch

Trying to do gradient descent using automatic differentiation over branchy programs? Or to combine them with neural networks for end-to-end training? Then this might be interesting to you. We develped DiscoGrad, a tool for automatic differentiation through C++ programs involving input-dependent control flow (e.g.…

Does a similar job

all alternatives →

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 17d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 16d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 18d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 20d ago · stillwet.art

  • Onepin▲384

    AI voiceover with every name, price and date said right

    AI · 30d ago · onepin.ai

  • A real-time world model you can explore and change

    AI · 28d ago · world.pixverse.video

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, May 2024

the whole month →
  • Voicenotes▲1,485

    AI note-taker that's truly intelligent

    AI · 2024 · voicenotes.com

  • Wegic▲1,179

    The first AI web designer & developer by your side

    Dev tools · 2024 · wegic.ai

  • Insighto▲1,108

    Ship features users want

    Growth · 2024 · insigh.to

  • Ivee▲1,087

    The B2B influencer marketing platform

    Growth · 2024

  • Waxwing▲1,035

    AI copilot for every marketing task

    AI · 2024

  • AI powered zero-waste meal planner

    AI · 2024 · ohapotato.app