Leo de Castro
· 2 previous affiliations
- J.P. MorganSince 2024
- Researcher · Since 2024
- PhD student · 2019–2024
Research Overview
Leo de Castro focuses on the intersection of cryptography and machine learning, with a particular emphasis on privacy-preserving inference, algorithmic fairness, and secure multi-party computation. His work addresses the technical challenges of Mitigating Algorithmic Bias Under Strict Privacy Constraints and developing Polynomial Architectures for Homomorphic Encryption to enable secure computation on sensitive datasets. By integrating advanced cryptographic primitives with modern machine learning architectures, his research seeks to resolve the inherent tensions between data utility, model performance, and individual privacy.
Research Trajectory
The evolution of de Castro’s research reflects a broadening of scope from foundational cryptographic primitives and specialized fairness applications to the systemic challenges of securing large-scale generative AI and multi-agent systems. His early work, beginning around 2020, was primarily concerned with the "fairness-privacy paradox." In this period, he investigated how to audit and train models for demographic fairness without requiring explicit access to sensitive attributes like race or gender, which are often protected by privacy regulations. This led to explorations of Structural Inductive Biases for Demographic Fairness, where the goal was to embed fairness constraints directly into the learning process or the cryptographic protocol used for training.
Between 2021 and 2022, de Castro’s focus shifted toward the efficiency of cryptographic building blocks, specifically Function Secret Sharing (FSS). During this time, he addressed the problem of verifiability in two-party computations. While FSS allows for efficient private data retrieval and computation, existing schemes often assumed "honest-but-curious" participants. De Castro’s contributions in this area focused on making these schemes resilient against malicious actors without sacrificing the performance gains that make FSS attractive for large-scale applications.
Starting in 2024, his research trajectory aligned with the rapid advancement of Large Language Models (LLMs). Recognizing that the computational intensity of LLMs makes local execution difficult for most users, he began Mitigating the Computational Overhead of Encrypted Machine Learning. This work moved beyond the linear and logistic regression models of his earlier career, tackling the non-linearities and massive scale of transformer architectures. This phase of his work is characterized by the use of GPU acceleration and mathematical approximations to make Fully Homomorphic Encryption (FHE) a viable solution for real-time AI services.
Most recently, in 2025 and 2026, de Castro has expanded his research into the security of AI agents and data provenance. This includes developing Secure Aggregation for Privacy Preserving Federated Learning and threshold signature schemes for post-quantum algorithms. His current work also addresses the protection of tabular and synthetic data, ensuring that as enterprises increasingly rely on shared datasets, the ownership and integrity of that data can be cryptographically verified.
Current Directions
De Castro’s current research is concentrated on three primary pillars: the scalability of encrypted inference, the security of autonomous AI agents, and the provenance of enterprise data.
In the realm of encrypted inference, he continues to refine methods for executing LLMs over encrypted data. This involves not only hardware acceleration but also the design of "MPC-friendly" or "FHE-friendly" model variants that minimize the depth of the circuits required for computation. This work is critical for the future of Machine Learning as a Service (MLaaS), where privacy is a prerequisite for handling proprietary or regulated data.
His work on AI agents addresses the emerging risks of multi-agent collaboration. As agents gain the ability to call tools, share context, and persist data, traditional binary access controls become insufficient. De Castro is developing frameworks that provide "worst-case" privacy guarantees, ensuring that even if an underlying probabilistic model makes an error, the cryptographic layer prevents the leakage of sensitive information.
Finally, he is addressing the underexplored area of tabular data watermarking. Unlike perceptual data (images or audio), tabular data lacks the redundancy that typically makes watermarking robust. De Castro’s recent work utilizes cryptographic hash functions to embed imperceptible markers into these datasets, providing a mechanism for traceability and accountability in machine learning pipelines.
Representative Work
CryptoCredit: securely training fair models In this early work, de Castro addresses the conflict between bias prevention and data privacy in regulated decision-making. The paper proposes a system using fully homomorphic encryption to allow model developers to train and test linear and logistic regression models for bias without ever seeing sensitive features in the clear. This work demonstrates the practical application of FHE to leave-one-out regression testing, specifically using the adult income dataset to show that fairness auditing is possible under encryption.
Lightweight, Maliciously Secure Verifiable Function Secret Sharing This research introduces a construction for verifiable two-party function secret sharing (FSS) that is efficient enough for practical use. By relying solely on symmetric-key operations rather than more computationally expensive public-key or general MPC techniques, the scheme achieves performance levels comparable to non-verifiable constructions. The primary contribution is a "batching" technique that allows for the verification of thousands of secret shares with minimal communication overhead, providing security against malicious participants in distributed point function (DPF) applications.
EncryptedLLM: Privacy-Preserving Large Language Model Inference via GPU-Accelerated Fully Homomorphic Encryption As first author, de Castro presents a system designed to overcome the latency barriers of homomorphic LLM inference. By leveraging GPU acceleration and specialized mathematical approximations for the non-linear components of transformers, the system achieves a 200x speedup over traditional CPU-based FHE methods. This work is a significant step toward making private GPT-style inference feasible, reducing the time required for encrypted processing from hours to minutes.
Efficient, Scalable Threshold ML-DSA Signatures: An MPC Approach In this first-author paper, de Castro introduces Quorus, a threshold signature protocol for ML-DSA, a NIST-standardized post-quantum signature algorithm. The protocol allows multiple parties to jointly generate a signature such that the final output is compatible with standard verification procedures. By creating an "MPC-friendly" variant of the signing process, the work ensures that the security of the signature does not depend on a single centralized entity, which is vital for secure distributed systems in a post-quantum landscape.
AgentCrypt: Advancing Privacy and (Secure) Computation in AI Agent Collaboration Serving as the second author, de Castro contributed to the development of AgentCrypt, a three-tiered framework for securing AI agent interactions. The framework addresses the "probabilistic" nature of AI by wrapping agent communications in a deterministic cryptographic layer. This ensures that sensitive data remains private during complex tasks like multi-agent data retrieval and joint computation, even if the agents themselves are compromised or behave unexpectedly.
HashMark: Watermarking Tabular/Synthetic Data For Machine Learning Via Cryptographic Hash Functions In this second-author work, de Castro addresses the challenge of data provenance in enterprise systems. The paper introduces HashMark, a suite of cryptographic tools for embedding watermarks into tabular and synthetic datasets. Because tabular data is heterogeneous and lacks the structural redundancy of images, the authors use cryptographic hash functions to map data to binary values for robust watermark embedding. This allows organizations to track the use of their data and ensure accountability in machine learning pipelines.
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