BBBirthe van Den Berg

Birthe van Den Berg

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Birthe van Den Berg has a total of 17 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    A framework for higher-order effects & handlers

    by Birthe van Den Berg, Tom Schrijvers


  • Open Access

    Forward- or reverse-mode automatic differentiation: What's the difference?

    by Birthe van Den Berg, Tom Schrijvers, James McKinna, Alexander Vandenbroucke


  • Open Access

    Forward- or Reverse-Mode Automatic Differentiation: What's the Difference?

    by Birthe van Den Berg, Tom Schrijvers, James McKinna, Alexander Vandenbroucke

    Automatic differentiation (AD) has been a topic of interest for researchers in many disciplines, with increased popularity since its application to machine learning and neural networks. Although many researchers appreciate and know how to apply AD, it remains a challenge to truly understand the underlying processes. From an algebraic point of view, however, AD appears surprisingly natural: it originates from the differentiation laws. In this work we use Algebra of Programming techniques to reason about different AD variants, leveraging Haskell to illustrate our observations. Our findings stem from three fundamental algebraic abstractions: (1) the notion of module over a semiring, (2) Nagata's construction of the 'idealization of a module', and (3) Kronecker's delta function, that together allow us to write a single-line abstract definition of AD. From this single-line definition, and by instantiating our algebraic structures in various ways, we derive different AD variants, that have the same extensional behaviour, but different intensional properties, mainly in terms of (asymptotic) computational complexity. We show the different variants equivalent by means of Kronecker isomorphisms, a further elaboration of our Haskell infrastructure which guarantees correctness by construction. With this framework in place, this paper seeks to make AD variants more comprehensible, taking an algebraic perspective on the matter.


  • Automatic Differentiation in Prolog

    by Tom Schrijvers, Birthe VAN Den Berg, Fabrizio Riguzzi

    Automatic differentiation (AD) is a range of algorithms to compute the numeric value of a function’s (partial) derivative, where the function is typically given as a computer program or abstract syntax tree. AD has become immensely popular as part of many learning algorithms, notably for neural networks. This paper uses Prolog to systematically derive gradient-based forward- and reverse-mode AD variants from a simple executable specification: evaluation of the symbolic derivative. Along the way we demonstrate that several Prolog features (DCGs, co-routines) contribute to the succinct formulation of the algorithm. We also discuss two applications in probabilistic programming that are enabled by our Prolog algorithms. The first is parameter learning for the Sum-Product Loop Language and the second consists of both parameter learning and variational inference for probabilistic logic programming.


  • Open Access

    eTeacher: A Pilot in Flemish Secondary Education

    by Jesse Hoobergs, Birthe van Den Berg, Tom Schrijvers

    The Flemish Government has imposed a new and challenging set of learning objectives for secondary education. An important part comprises Computational Thinking for 3rd and 4th year students, and Computer Science for students in their 5th and 6th year. Yet, most teachers, who have mostly not been trained to teach these subjects, do not feel confident in programming-related topics. With eTeacher, we take away this burden from the teacher and allow students to work independently and at their own pace. In particular, we present a platform with an integrated course text for Computational Thinking. eTeacher is available on every device, gives automatic code-feedback both content-wise and on programming style and provides exercises of different types and levels. Teachers can monitor their students individually and consult statistics. The platform was extensively evaluated in a pilot at 20 schools.


  • Open Access

    Structured Handling of Scoped Effects

    by Zhixuan Yang, Marco Paviotti, Nicolas Wu, Birthe van Den Berg, Tom Schrijvers

    Algebraic effects offer a versatile framework that covers a wide variety of effects. However, the family of operations that delimit scopes are not algebraic and are usually modelled as handlers, thus preventing them from being used freely in conjunction with algebraic operations. Although proposals for scoped operations exist, they are either ad-hoc and unprincipled, or too inconvenient for practical programming. This paper provides the best of both worlds: a theoretically-founded model of scoped effects that is convenient for implementation and reasoning. Our new model is based on an adjunction between a locally finitely presentable category and a category of functorial algebras. Using comparison functors between adjunctions, we show that our new model, an existing indexed model, and a third approach that simulates scoped operations in terms of algebraic ones have equal expressivity for handling scoped operations. We consider our new model to be the sweet spot between ease of implementation and structuredness. Additionally, our approach automatically induces fusion laws of handlers of scoped effects, which are useful for reasoning and optimisation.


  • Latent Effects for Reusable Language Components

    by Birthe van Den Berg, Tom Schrijvers, Casper Bach Poulsen, Nicolas Wu


  • Open Access

    A Modular Approach to Active Focus Stabilization for Fluorescence Microscopy

    by Birthe van Den Berg, Robin Van Den Eynde, Baptiste Amouroux, Marcel Mueller, Peter Dedecker, Wim Vandenberg

    Fluorescent time-lapse experiments often suffer from focus drift, regularly rendering long measurements partially unusable. Frequently, this instability can be traced back to the specific mechanical components of the setup, but even in highly robust implementations z-drift occurs due to small temperature fluctuations which are hard to avoid. To resolve this issue, microscope manufacturers often offer their own interpretation of out-of-focus correction modules for their flagship instruments. However, self-assembled or older systems typically have to fend for their own or adapt their measurements to circumvent drift effects. In this manuscript, we propose a cost-efficient z-drift detection- and correction system that, due to its modular design, can be attached to any fluorescence microscope with an actuated stage or objective, be it in a custom or commercial setup. The reason for this wide applicability is specific to the design, which has a straightforward alignment procedure and allows sharing optics with the fluorescent emission path. Our system employs an infrared (IR) laser that is passed through a double-hole mask to achieve two parallel beams which are made to reflect on the coverslip and subsequently detected on an industrial sCMOS camera. The relative position of these beams is then uniquely linked to the z-position of a microscope-mounted sample. The system was benchmarked by introducing temperature perturbations, where it was shown to achieve a stable focus, and by scanning different positions while simulating a perturbation in the z-position of the stage, where we show that a lost focus can be recovered within seconds.