Michele Pagani

dblp:60/4141 · DBLP profile ↗
← Back
29ranked-venue papers
10as first author
4since 2021 · last 2026
—ORCID · conflict

Domains — the database's venue-derived domains; a paper can count in several

Theory of computation · 20 · 8 first-author · 1 since 2021Software engineering, systems software and programming languages · 12 · 4 first-author · 3 since 2021Artificial intelligence and machine learning · 1Applied, interdisciplinary, general and emerging computing · 1
YearPublicationVenuePosition
2026 JAX Autodiff from a Linear Logic Perspective
abstract
JAX Autodiff refers to the core of the automatic differentiation (AD) systems developed in projects like JAX and Dex. JAX Autodiff has recently been formalised in a linear typed calculus by Radul et al in POPL 2023. Although this formalisation suffices to express the main program transformations of AD, the calculus is very specific to this task, and it is not clear whether the type system yields a substructural logic that has interest on its own. We propose an encoding of JAX Autodiff into a linear λ- calculus that enjoys a Curry-Howard correspondence with Girard’s linear logic. We prove that the encoding is sound both qualitatively (the encoded terms are extensionally equivalent to the original ones) and quantitatively (the encoding preserves the original work cost as described by Radul et al. As a byproduct, we show that unzipping, one of the transformations used to implement backpropagation in JAX Autodiff, is, in fact, optional.
Giulia Giusti, Michele Pagani
Proc. ACM Program. Lang.2
2025 Variable Elimination as Rewriting in a Linear Lambda Calculus
abstract
Abstract Variable Elimination ( $$\textsf{VE}$$ VE ) is a classical exact inference algorithm for probabilistic graphical models such as Bayesian Networks, computing the marginal distribution of a subset of the random variables in the model. Our goal is to understand Variable Elimination as an algorithm acting on programs in an idealized probabilistic functional language—a linear simply-typed $$\lambda $$ λ -calculus suffices for our purpose. Precisely, we express $$\textsf{VE}$$ VE as a term rewriting process, which transforms a global definition of a variable into a local definition, by swapping and nesting let-in expressions. We exploit in an essential way linear types.
Thomas Ehrhard, Claudia Faggian, Michele Pagani
ESOP (1)3
2023 The Sum-Product Algorithm For Quantitative Multiplicative Linear Logic
abstract
We consider an extension of multiplicative linear logic which encompasses bayesian networks and expresses samples sharing and marginalisation with the polarised rules of contraction and weakening. We introduce the necessary formalism to import exact inference algorithms from bayesian networks, giving the sum-product algorithm as an example of calculating the weighted relational semantics of a multiplicative proof-net improving runtime performance by storing intermediate results.
Thomas Ehrhard, Claudia Faggian, Michele Pagani
FSCD3
2021 Automatic differentiation in PCF
abstract
We study the correctness of automatic differentiation (AD) in the context of a higher-order, Turing-complete language (PCF with real numbers), both in forward and reverse mode. Our main result is that, under mild hypotheses on the primitive functions included in the language, AD is almost everywhere correct, that is, it computes the derivative or gradient of the program under consideration except for a set of Lebesgue measure zero. Stated otherwise, there are inputs on which AD is incorrect, but the probability of randomly choosing one such input is zero. Our result is in fact more precise, in that the set of failure points admits a more explicit description: for example, in case the primitive functions are just constants, addition and multiplication, the set of points where AD fails is contained in a countable union of zero sets of polynomials.
Damiano Mazza, Michele Pagani
Proc. ACM Program. Lang.2
2020 The Benefit of Being Non-Lazy in Probabilistic λ-calculus: Applicative Bisimulation is Fully Abstract for Non-Lazy Probabilistic Call-by-Name
abstract
We consider the probabilistic applicative bisimilarity (PAB) --- a coinductive relation comparing the applicative behaviour of probabilistic untyped λ-terms according to a specific operational semantics. This notion has been studied by Dal Lago et al. with respect to the two standard parameter passing policies, call-by-value (cbv) and call-by-name (cbn), using a lazy reduction strategy not reducing within the body of a function. In particular, PAB has been proven to be fully abstract with respect to the contextual equivalence in cbv [6] but not in lazy cbn [16].
Gianluca Curzi, Michele Pagani
LICS2
2020 Revisiting Call-by-value Böhm trees in light of their Taylor expansion
Axel Kerinec, Giulio Manzonetto, Michele Pagani
Log. Methods Comput. Sci.3
2020 Backpropagation in the simply typed lambda-calculus with linear negation
abstract
Backpropagation is a classic automatic differentiation algorithm computing the gradient of functions specified by a certain class of simple, first-order programs, called computational graphs. It is a fundamental tool in several fields, most notably machine learning, where it is the key for efficiently training (deep) neural networks. Recent years have witnessed the quick growth of a research field called differentiable programming, the aim of which is to express computational graphs more synthetically and modularly by resorting to actual programming languages endowed with control flow operators and higher-order combinators, such as map and fold. In this paper, we extend the backpropagation algorithm to a paradigmatic example of such a programming language: we define a compositional program transformation from the simply-typed lambda-calculus to itself augmented with a notion of linear negation, and prove that this computes the gradient of the source program with the same efficiency as first-order backpropagation. The transformation is completely effect-free and thus provides a purely logical understanding of the dynamics of backpropagation.
Aloïs Brunel, Damiano Mazza, Michele Pagani
Proc. ACM Program. Lang.3
2019 Strong Adequacy and Untyped Full-Abstraction for Probabilistic Coherence Spaces
abstract
Abstract We consider the probabilistic untyped lambda-calculus and prove a stronger form of the adequacy property for probabilistic coherence spaces (PCoh), showing how the denotation of a term statistically distributes over the denotations of its head-normal forms. We use this result to state a precise correspondence between PCoh and a notion of probabilistic Nakajima trees, recently introduced by Leventis in order to prove a separation theorem. As a consequence, we get full abstraction for PCoh. This latter result has already been mentioned as a corollary of Clairambault and Paquet’s full abstraction theorem for probabilistic concurrent games. Our approach allows to prove the property directly, without the need of a third model.
Thomas Leventis, Michele Pagani
FoSSaCS2
2019 New Semantical Insights Into Call-by-Value λ-Calculus
abstract
Despite the fact that call-by-value λ-calculus was defined by Plotkin in 1977, we believe that its theory of program approximation is still at the beginning. A problem that is often encountered when studying its operational semantics is that, during the reduction of a λ-term, some redexes remain st uck (waiting for a value). Recently, Carraro and Guerrieri proposed to endow this calculus with permutation rules, naturally arising in the context of linear logic proof-nets, that succeed in unblocking a certain number of such redexes. In the present paper we introduce a new class of models of call-by-value λ-calculus, arising from non-idempotent intersection type systems. Beside satisfying the usual properties as soundness and adequacy, these models validate the permutation rules mentioned above as well as some reductions obtained by contracting suitable λI-redexes. Thanks to these (perhaps unexpected) features, we are able to demonstrate that every model living in this class satisfies an Approximation Theorem with respect to a refined notion of syntactic approximant. While this kind of results often require impredicative techniques like reducibility candidates, the quantitative information carried by type derivations in our system allows us to provide a combinatorial proof.
Giulio Manzonetto, Michele Pagani, Simona Ronchi Della Rocca
Fundam. Informaticae2
2018 Full Abstraction for Probabilistic PCF
abstract
We present a probabilistic version of PCF, a well-known simply typed universal functional language. The type hierarchy is based on a single ground type of natural numbers. Even if the language is globally call-by-name, we allow a call-by-value evaluation for ground-type arguments to provide the language with a suitable algorithmic expressiveness. We describe a denotational semantics based on probabilistic coherence spaces, a model of classical Linear Logic developed in previous works. We prove an adequacy and an equational full abstraction theorem showing that equality in the model coincides with a natural notion of observational equivalence.
Thomas Ehrhard, Michele Pagani, Christine Tasson
J. ACM2
2018 Measurable cones and stable, measurable functions: a model for probabilistic higher-order programming
abstract
We define a notion of stable and measurable map between cones endowed with measurability tests and show that it forms a cpo-enriched cartesian closed category. This category gives a denotational model of an extension of PCF supporting the main primitives of probabilistic functional programming, like continuous and discrete probabilistic distributions, sampling, conditioning and full recursion. We prove the soundness and adequacy of this model with respect to a call-by-name operational semantics and give some examples of its denotations.
Thomas Ehrhard, Michele Pagani, Christine Tasson
Proc. ACM Program. Lang.2
2017 The Free Exponential Modality of Probabilistic Coherence Spaces
Raphaëlle Crubillé, Thomas Ehrhard, Michele Pagani, Christine Tasson
FoSSaCS3
2017 The conservation theorem for differential nets
abstract
We prove the conservation theorem for differential nets – the graph-theoretical syntax of the differential extension of Linear Logic (Ehrhard and Regnier's DiLL). The conservation theorem states that the property of having infinite reductions (here infinite chains of cut elimination steps) is preserved by non-erasing steps. This turns the quest for strong normalisation (SN) into one for non-erasing weak normalisation (WN), and indeed we use this result to prove SN of simply typed DiLL (with promotion). Along the way to the theorem we achieve a number of additional results having their own interest, such as a standardisation theorem and a slightly modified system of nets, DiLL∂ϱ.
Michele Pagani, Paolo Tranquilli
Math. Struct. Comput. Sci.1
2016 Strong Normalizability as a Finiteness Structure via the Taylor Expansion of \lambda λ -terms
Michele Pagani, Christine Tasson, Lionel Vaux Auclair
FoSSaCS1
2015 Modelling Coeffects in the Relational Semantics of Linear Logic
abstract
Various typing system have been recently introduced giving a parametric version of the exponential modality of linear logic. The parameters are taken from a semi-ring, and allow to express coeffects - i.e. specific requirements of a program with respect to the environment (availability of a resource, some prerequisite of the input, etc.). We show that all these systems can be interpreted in the relational category (Rel) of sets and relations. This is possible because of the notion of multiplicity semi-ring and allowing a great variety of exponential comonads in Rel. The interpretation of a particular typing system corresponds then to give a suitable notion of stratification of the exponential comonad associated with the semi-ring parametrising the exponential modality.
Flavien Breuvart, Michele Pagani
CSL2
2014 Probabilistic coherence spaces are fully abstract for probabilistic PCF
abstract
Probabilistic coherence spaces (PCoh) yield a semantics of higher-order probabilistic computation, interpreting types as convex sets and programs as power series. We prove that the equality of interpretations in Pcoh characterizes the operational indistinguishability of programs in PCF with a random primitive.
Thomas Ehrhard, Christine Tasson, Michele Pagani
POPL3
2014 Applying quantitative semantics to higher-order quantum computing
abstract
Finding a denotational semantics for higher order quantum computation is a long-standing problem in the semantics of quantum programming languages. Most past approaches to this problem fell short in one way or another, either limiting the language to an unusably small finitary fragment, or giving up important features of quantum physics such as entanglement. In this paper, we propose a denotational semantics for a quantum lambda calculus with recursion and an infinite data type, using constructions from quantitative semantics of linear logic.
Michele Pagani, Peter Selinger, Benoît Valiron
POPL1
2013 A characterization of the Taylor expansion of lambda-terms
abstract
The Taylor expansion of lambda-terms, as introduced by Ehrhard and Regnier, expresses a lambda-term as a series of multi-linear terms, called simple terms, which capture bounded computations. Normal forms of Taylor expansions give a notion of infinitary normal forms, refining the notion of Böhm trees in a quantitative setting. We give the algebraic conditions over a set of normal simple terms which characterize the property of being the normal form of the Taylor expansion of a lambda-term. From this full completeness result, we give further conditions which semantically describe normalizable and total lambda-terms.
Pierre Boudes, Fanny He, Michele Pagani
CSL3
2013 Weighted Relational Models of Typed Lambda-Calculi
abstract
The category Rel of sets and relations yields one of the simplest denotational semantics of Linear Logic (LL). It is known that Rel is the biproduct completion of the Boolean ring. We consider the generalization of this construction to an arbitrary continuous semiring R, producing a cpo-enriched category which is a semantics of LL, and its (co)Kleisli category is an adequate model of an extension of PCF, parametrized by R. Specific instances of R allow us to compare programs not only with respect to “what they can do”, but also “in how many steps” or “in how many different ways” (for non-deterministic PCF) or even “with what probability” (for probabilistic PCF).
James Laird, Giulio Manzonetto, Guy McCusker, Michele Pagani
LICS4
2012 Visible acyclic differential nets, Part I: Semantics
Michele Pagani
Ann. Pure Appl. Log.1
2011 The Computational Meaning of Probabilistic Coherence Spaces
abstract
We study the probabilistic coherent spaces - a denotational semantics interpreting programs by power series with non negative real coefficients. We prove that this semantics is adequate for a probabilistic extension of the untyped λ-calculus: the probability that a term reduces to ahead normal form is equal to its denotation computed on a suitable set of values. The result gives, in a probabilistic setting, a quantitative refinement to the adequacy of Scott's model for untyped λ-calculus.
Thomas Ehrhard, Michele Pagani, Christine Tasson
LICS2
2011 A semantic measure of the execution time in linear logic
Daniel de Carvalho, Michele Pagani, Lorenzo Tortora de Falco
Theor. Comput. Sci.2
2010 Solvability in Resource Lambda-Calculus
Michele Pagani, Simona Ronchi Della Rocca
FoSSaCS1
2010 Linearity, Non-determinism and Solvability
abstract
We study the notion of solvability in the resource calculus, an extension of the λ-calculus modelling resource consumption. Since this calculus is non-deterministic, two different notions of solvability arise, one optimistic (angelical, may) and one
Michele Pagani, Simona Ronchi Della Rocca
Fundam. Informaticae1
2010 Strong normalization property for second order linear logic
Michele Pagani, Lorenzo Tortora de Falco
Theor. Comput. Sci.1
2009 Parallel Reduction in Resource Lambda-Calculus
Michele Pagani, Paolo Tranquilli
APLAS1
2009 The Inverse Taylor Expansion Problem in Linear Logic
abstract
Linear Logic is based on the analogy between algebraic linearity (i.e. commutation with sums and with products with scalars) and the computer science linearity (i.e. calling inputs only once). Keeping on this analogy, Ehrhard and Regnier introduced Differential Linear Logic(DiLL) - an extension of Multiplicative Exponential Linear Logic with differential constructions. In this setting, promotion (the logical exponentiation) can be approximated by a sum of promotion-free proofs f DiLL via Taylor expansion. We present a constructive way to revert Taylor expansion. Precisely, we define merging reduction - a rewriting system which merges a finite sum of DiLL proofs into a proof with promotion whenever the sum is an approximation of the Taylor expansion of this proof. We prove that this algorithm is sound, complete and can be run in non-deterministic polynomial time.
Michele Pagani, Christine Tasson
LICS1
2007 The Separation Theorem for Differential Interaction Nets
Damiano Mazza, Michele Pagani
LPAR2
2007 Proofs, denotational semantics and observational equivalences in Multiplicative Linear Logic
abstract
We study full completeness and syntactical separability of MLL proof nets with the mix rule. The general method we use consists of first addressing these two questions in the less restrictive framework of proof structures, and then adapting the results to proof nets. At the level of proof structures, we find a semantical characterisation of their interpretations in relational semantics, and define an observational equivalence that is proved to be the equivalence induced by cut elimination. Hence, we obtain a semantical characterisation (in coherent spaces) and an observational equivalence for the proof nets with the mix rule.
Michele Pagani
Math. Struct. Comput. Sci.1