EEEl-Mehdi El

El-Mehdi El

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

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


El-Mehdi El has a total of 8 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

    • 1 January 2025
    • Published by HAL in HAL
    Open Access

    Mixed precision accumulation for neural network inference guided by componentwise forward error analysis

    by El-Mehdi El, Silviu-Ioan Filip, Theo Mary, Elisa Mixed, Elisa Riccietti

    This work proposes a mathematically founded mixed precision accumulation strategy for the inference of neural networks. Our strategy is based on a new componentwise forward error analysis that explains the propagation of errors in the forward pass of neural networks. Specifically, our analysis shows that the error in each component of the output of a layer is proportional to the condition number of the inner product between the weights and the input, multiplied by the condition number of the activation function. These condition numbers can vary widely from one component to the other, thus creating a significant opportunity to introduce mixed precision: each component should be accumulated in a precision inversely proportional to the product of these condition numbers. We propose a practical algorithm that exploits this observation: it first computes all components in low precision, uses this output to estimate the condition numbers, and recomputes in higher precision only the components associated with large condition numbers. We test our algorithm on various networks and datasets and confirm experimentally that it can significantly improve the cost--accuracy tradeoff compared with uniform precision accumulation baselines.

    • 17 November 2024
    • Published by HAL in HAL
    Open Access

    Error Analysis of Sum-Product Algorithms under Stochastic Rounding

    by Pablo De, Oliveira Castro, El-Mehdi El Arar, Eric Petit, Devan Sohier

    The quality of numerical computations can be measured through their forward error,for which finding good error bounds is challenging in general. For several algorithms and using stochastic rounding (SR), probabilistic analysis has been shown to be an effective alternative for obtaining tight error bounds. This analysis considers the distribution of errors and evaluates the algorithm’s performance on average. Using martingales and the Azuma-Hoeffding inequality, it provides error bounds that are valid with a certain probability and in O(√nu) instead of deterministic worst-case bounds in O(nu), where n is the number of operations and u is the unit roundoff. In thispaper, we present a general method that automatically constructs a martingale for any computation scheme with multi-linear errors based on additions, subtractions, and multiplications. We apply this generalization to algorithms previously studied with SR, such as pairwise summation and the Horner algorithm, and prove equivalent results. We also analyze a previously unstudied algorithm, Karatsuba polynomial multiplication, which illustrates that the method can handle reused intermediatecomputations.