Moran Baruch
· 2 previous affiliations
- Researcher · Since 2020
- Bar-Ilan University2018–2023
- PhD student · 2018–2023
Research Overview
Moran Baruch focuses on Neural Network Inference on Homomorphically Encrypted Data. The research addresses the fundamental tension between the deployment of high-performance machine learning models and the preservation of data privacy in cloud-based environments. By developing specialized data structures, optimization frameworks, and polynomial-based architectural adaptations, Baruch’s work aims to make privacy-preserving machine learning (PPML) computationally viable for complex models, including large-scale Convolutional Neural Networks (CNNs), Transformers, and Large Language Models (LLMs). This research trajectory moves from foundational optimizations of cryptographic primitives toward the systematic redesign of deep learning architectures to ensure compatibility with Polynomial Architectures for Homomorphic Encryption.
Research Trajectory
The evolution of Baruch’s research reflects a progressive scaling of privacy-preserving techniques, beginning with low-level data structure optimizations and advancing to the adaptation of state-of-the-art foundation models. In the early stages of this trajectory, around 2020, the focus was primarily on the efficiency of Homomorphic Encryption (HE) schemes. HE naturally supports Single Instruction, Multiple Data (SIMD) operations, but the performance of these operations is highly sensitive to how data is packed into ciphertexts. Baruch contributed to the development of abstractions that automate these packing decisions, reducing the manual effort required to implement HE-friendly algorithms.
By 2022, the research expanded into Mitigating the Computational Overhead of Encrypted Machine Learning through model compression and structural optimization. This period was characterized by the development of frameworks that integrate neural network pruning with HE. Standard pruning techniques often fail to provide speedups in HE contexts because the underlying cryptographic operations do not naturally benefit from sparsity unless the remaining weights are structured in a specific manner. Baruch’s work addressed this by introducing methods to cluster pruned weights into "tiles," thereby aligning the model's sparsity with the SIMD structure of HE ciphertexts.
In 2023 and 2024, the focus shifted toward the challenge of non-polynomial operations in modern deep learning. Standard activation functions like ReLU and normalization layers like Softmax or LayerNorm are incompatible with the arithmetic nature of HE, which primarily supports addition and multiplication. Baruch’s work during this phase involved Polynomial Approximations for Secure Neural Network Inference, where non-linear components are replaced with low-degree polynomials. This required not only mathematical approximation but also new training "recipes" to maintain model stability and accuracy. This line of inquiry led to the development of the first "Polynomial Transformers" and the adaptation of large-scale CNNs for end-to-end secure prediction.
Most recently, from 2024 through 2026, the research has targeted the scalability of LLMs under HE. A significant barrier in this domain is the instability of polynomial-based attention mechanisms when scaled to billions of parameters. Baruch has participated in the development of stable, HE-friendly variants of self-attention, such as Power-Softmax, which allow for Stabilizing Deep Polynomial Neural Networks at the scale of 1.4 billion parameters. This work represents a significant increase in the complexity of models that can be executed securely, moving the field closer to practical, privacy-preserving generative AI.
Current Directions
Current research efforts are concentrated on three primary areas: architectural stability, computational efficiency, and the secure deployment of foundation models.
Stability of Polynomial Architectures A recurring challenge in replacing standard activations with polynomials is the risk of exploding gradients or numerical instability during training. Baruch’s current work explores "range-aware" training and specialized initialization schemes to ensure that the inputs to polynomial layers remain within the bounds where the approximation is accurate. This is critical for maintaining the performance of models like Transformers when they are converted to a purely arithmetic form.
Efficiency through Structural Optimization Building on earlier work with Tile Tensors, current projects focus on further reducing the latency of secure inference. This includes the development of automated optimizers that can determine the most efficient data packing and operation scheduling for a given neural network architecture and HE scheme. The goal is to minimize the "noise" growth in HE ciphertexts, which determines the depth of computation possible before a costly "bootstrapping" operation is required.
Scaling to Foundation Models The research continues to push the boundaries of model size in the encrypted domain. This involves not only adapting the attention mechanisms of LLMs but also exploring Compressing Large Foundation Models via Knowledge Distillation as a means to create smaller, more HE-efficient versions of massive pre-trained models. By distilling the knowledge of a standard foundation model into a polynomial-based "student" model, it becomes possible to perform secure inference on hardware-constrained or privacy-sensitive platforms.
Representative Work
Tile Tensors: A versatile data structure with descriptive shapes for homomorphic encryption This work introduces an abstraction layer designed to simplify the implementation of HE-based computations. By providing a framework that handles the complexities of SIMD data packing and ciphertext shapes, the research enables developers to focus on the algorithmic logic rather than the underlying cryptographic constraints. The "Tile Tensor" data structure serves as a foundation for subsequent high-performance HE libraries.
HE-PEx: Efficient Machine Learning under Homomorphic Encryption using Pruning, Permutation and Expansion As the lead author of this framework, Baruch addressed the inefficiency of standard neural network pruning in the context of HE. The paper proposes a method to reorder and cluster non-zero weights into specific tiles, ensuring that the computational savings from pruning actually translate into reduced execution time and memory usage under encryption. The framework demonstrates that significant speedups can be achieved with minimal loss in model accuracy.
Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryption In this first-author paper, Baruch details the creation of the "Polynomial Transformer." The research identifies the specific components of the Transformer architecture—such as Softmax and LayerNorm—that are incompatible with HE and replaces them with polynomial alternatives. The work also introduces a specialized training recipe that uses range minimization to ensure the stability of these polynomial layers, achieving state-of-the-art results for secure NLP and vision tasks.
Sensitive Tuning of Large Scale CNNs for E2E Secure Prediction using Homomorphic Encryption This research extends polynomial adaptation to large-scale CNNs like ResNet-152 and ConvNeXt. By implementing a training framework that constrains activation ranges, the authors successfully replaced non-linear functions with low-degree polynomials. This allowed for end-to-end secure prediction on ImageNet-scale data, significantly reducing the computational latency that typically hinders secure inference for large vision models.
HeLayers: A Tile Tensors Framework for Large Neural Networks on Encrypted Data As a primary contributor to this open-source framework, Baruch helped develop a system that automates the optimization of neural network inference on encrypted data. By utilizing the Tile Tensor abstraction and an automated packing optimizer, the framework demonstrated the ability to reduce the inference time of models like AlexNet from hours to minutes, providing a practical tool for the broader research community.
Power-Softmax: Towards Secure LLM Inference over Encrypted Data In this collaborative effort, Baruch participated in the development of Power-Softmax, a polynomial-based attention mechanism designed for the scale of LLMs. The work addresses the scalability challenges of previous polynomial approximations, enabling the execution of a 1.4-billion-parameter model under HE. This represents a tenfold increase in the size of securely executable models, maintaining competitive performance in reasoning and in-context learning tasks.
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