Mostafa Elhoushi
· 11 previous affiliations
- Cerebras Systems (United States)Since 2025
- Researcher · Since 2025
- Meta (United States)2021–2025
- Research Engineer, FAIR · 2023–2025
- Researcher · 2022–2025
- Software Engineer, AI Infra · 2021–2022
- Huawei Technologies (China)2018–2021
- Senior Software R&D Engineer · 2018–2021
- TDK InvenSense2015–2018
- Staff Algorithm Engineer - R&D Navigation · 2017–2018
- Senior Software Algorithm Designer - R&D Navigation · 2015–2017
- TDK (Japan)2017–2018
- Algorithms Engineer · 2017–2018
- InvenSense Inc.2014–2017
- Algorithms Designer · 2014–2017
- Trusted Positioning (Canada)2012–2015
- Algorithm Designer · 2012–2015
- Algorithms Designer · 2013–2014
- Queens University2011–2015
- PhD student · 2011–2015
- Queen's University2011–2015
- PhD, Electrical and Computer Engineering · 2011–2015
- Mentor Graphics2009–2011
- Software Engineer · 2009–2011
- Ain Shams University2002–2011
- MS student · 2008–2011
- Undergrad student · 2002–2007
Research Overview
Mostafa Elhoushi focuses on machine learning systems optimization, model compression, and the efficient training of large language models. His early work explored hardware-aware neural network quantization and dynamic pruning for edge devices. More recently, his research investigates structural pretraining for code generation, multimodal dataset pruning, and layer sparsity techniques to accelerate LLM inference.
Research Trajectory
Elhoushi's early research spanned hardware architecture and sensor-based systems. He developed a Model of a hybrid processor executing C++ with additional quantum functions (2014) and subsequently published A Survey on Approaches of Motion Mode Recognition Using Sensors (2017).
Transitioning to deep learning efficiency, he began addressing the computational bottlenecks of neural network training and inference. He introduced a method for Accelerating Training using Tensor Decomposition, which applies decomposition during the training process rather than as a post-processing step. This approach achieved significant training speedups with minimal accuracy loss, contributing to the broader area of Automated Rank Selection for Low-Rank Neural Network Adaptation. He further advanced multiplication-free architectures with DeepShift: Towards Multiplication-Less Neural Networks. By replacing power-intensive multiplications in convolutional networks with bitwise shifts and sign flips through power-of-two quantization, this work demonstrated substantial latency reductions and model compression down to 5 bits per weight. Guiding research on mixed-precision quantization, he also developed Layer Importance Estimation With Imprinting for Neural Network Quantization to systematically balance model size and performance across different network layers.
Continuing his focus on edge deployment and execution speed, Elhoushi explored dynamic network architectures. He proposed Fire Together Wire Together: A Dynamic Pruning Approach with Self-Supervised Mask Prediction, moving beyond static pruning by allowing networks to determine active neurons on the fly based on specific input data. Bridging machine learning and systems software, he also led the development of MLGOPerf: An ML Guided Inliner to Optimize Performance. This end-to-end framework integrates reinforcement learning into the LLVM compiler to optimize function inlining, utilizing a proxy model to predict performance rewards and overcome the bottleneck of real-world execution measurements.
A major theme in his trajectory involves mitigating the memory constraints of training large models. He introduced OLLA: Decreasing the Memory Usage of Neural Networks by Optimizing the Lifetime and Location of Arrays, an algorithm that reduces memory footprints by treating allocation as a joint scheduling and placement problem. This work eliminated fragmentation and allowed larger models to fit on existing hardware, advancing several research directions, including Static Memory Planning for Deep Learning, Deterministic Tensor Allocation to Prevent GPU Memory Fragmentation, and Joint Optimization for Neural Network Memory Management. He expanded on these concepts with collaborators in MODeL: Memory Optimizations for Deep Learning, formulating tensor scheduling as an Integer Linear Program to efficiently pack data in hardware memory, further contributing to the area of Overcoming the Memory Wall in High-Performance Computing.
As foundation models scaled, Elhoushi's research adapted to address data quality and structural priors. He developed Sieve: Multimodal Dataset Pruning Using Image Captioning Models, utilizing synthetic captions to filter noisy web data for vision-language models and outperforming standard metrics on downstream tasks. Concurrently, he investigated structural awareness in code-focused language models. With collaborators, he introduced AST-T5: Structure-Aware Pretraining for Code Generation and Understanding, which leverages Abstract Syntax Trees (ASTs) for segmentation and masking. This was followed by Structure-Aware Fill-in-the-Middle Pretraining for Code, which masks complete syntactic units to improve real-world code editing while preserving the ability to write code from scratch. Both papers are central to the research direction of Structural Masking for Source Code Models.
Returning to systems-level efficiency, Elhoushi proposed LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding, a training recipe utilizing layer dropout to accelerate LLM inference without auxiliary modules. He also contributed to ecological AI design with CATransformers: Carbon Aware Transformers Through Joint Model-Hardware Optimization, a framework that jointly optimizes architectures and hardware accelerators to minimize total carbon emissions, including embodied manufacturing costs.
Current Directions
The most recent papers in the evidence address the fundamental scaling and efficiency bottlenecks of large language models. Recent work investigates how data curation strategies interact with model scaling. Specifically, Elhoushi and collaborators have conducted large-scale empirical studies demonstrating that data quality interventions—such as deduplication and rewriting—fundamentally alter the mathematical scaling laws of LLMs, shifting both coefficients and exponents (How Text Quality Interventions Reshape Neural Scaling Laws for LLMs: Empirical Study).
Alongside data-centric optimizations, his current research also revisits architectural sparsity to reduce computational overhead. By optimizing layer dropout with specific temporal schedules and depth-wise distributions, his recent work demonstrates significant reductions in training compute and improvements in inference speed for modern LLMs (Don't Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference).
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake