
Apple Foundation Image Models
I work on Apple Intelligence foundation image generation models, spanning text-to-image (T2I) and text-and-image-to-image (TI2I) generation.
Senior Research Engineer | Visual Generation & Foundation Models
Taking ML research from prototype to shipped product across visual generation, language modeling and reinforcement learning.
I am a Senior Research Engineer at Apple with 7+ years of experience taking ML research from prototype to shipped product across visual generation, language modeling and reinforcement learning. I am the DRI for grounded prompt following in Apple Intelligence foundation image generation and editing models (text-to-image, image-to-image and multi-image). Previously, I led pre-training of user-embedding language models at Microsoft Xbox and was a core contributor to Unity's open-source ML-Agents toolkit, used by 19K+ researchers across academia and industry.
Featured
Highlights from shipped products, open-source tooling and published research.

I work on Apple Intelligence foundation image generation models, spanning text-to-image (T2I) and text-and-image-to-image (TI2I) generation.

I lead evaluation and on-device distillation of the foundational face recognition model shipped in the new Apple HomeView device.

I led pre-training of language models that learn player embeddings from game event sequences, published at an EMNLP 2024 workshop.

I was a core contributor to Unity's open-source PyTorch toolkit for training agents in game and robotics simulation, used by 19K+ researchers.

I implemented state-of-the-art RL algorithms at Unity, including cooperative multi-agent RL, and presented the work at the Grace Hopper Celebration 2021.

My first-author PLOS ONE paper uses MEG decoding to track how adjective and noun representations evolve as they combine into phrases during speech planning.
Research

Understanding Players as if They Are Talking to the Game in a Customized Language: A Pilot Study
EMNLP 2024 CustomNLP4U Workshop, 2024
Workshop paper

Neural representation of words within phrases: Temporal evolution of color-adjectives and object-nouns during simple composition
PLOS ONE 16(3): e0242754, 2021
First author; * equal contribution
In language, stored semantic representations of lexical items combine into an infinitude of complex expressions. While the neuroscience of composition has begun to mature, we do not yet understand how the stored representations evolve and morph during composition. New decoding techniques allow us to crack open this very hard question: we can train a model to recognize a representation in one context or time-point and assess its accuracy in another. We combined the decoding approach with magnetoencephalography recorded during a picture naming task to investigate the temporal evolution of noun and adjective representations during speech planning. We tracked semantic representations as they combined into simple two-word phrases, using single words and two-word lists as non-combinatory controls. We found that nouns were generally more decodable than adjectives, suggesting that noun representations were stronger and/or more consistent across trials than those of adjectives. When training and testing across contexts and times, the representations of isolated nouns were recoverable when those nouns were embedded in phrases, but not so if they were embedded in lists. Adjective representations did not show a similar consistency across isolated and phrasal contexts. Noun representations in phrases also sustained over time in a way that was not observed for any other pairing of word class and context. These findings offer a new window into the temporal evolution and context sensitivity of word representations during composition, revealing a clear asymmetry between adjectives and nouns. The impact of phrasal contexts on the decodability of nouns may be due to the nouns’ status as head of phrase—an intriguing hypothesis for future research.

Decoding semantic representations during production of minimal adjective-noun phrases
M.Sc. Thesis, University of Victoria, 2019
Advisor: Dr. Alona Fyshe
Through linguistic abilities, our brain can comprehend and produce an infinite number of new sentences constructed from a finite set of words. Although recent research has uncovered the neural representation of semantics during comprehension of isolated words or adjective-noun phrases, the neural representation of the words during utterance planning is less understood. We apply existing machine learning methods to Magnetoencephalography (MEG) data recorded during a picture naming experiment, and predict the semantic properties of uttered words before they are said. We explore the representation of concepts over time, under controlled tasks, with varying compositional requirements. Our results imply that there is enough information in brain activity recorded by MEG to decode the semantic properties of the words during utterance planning. Also, we observe a gradual improvement in the semantic decoding of the first uttered word, as the participant is about to say it. Finally, we show that, compared to non-compositional tasks, planning to compose an adjective-noun phrase is associated with an enhanced and sustained representation of the noun. Our results on the neural mechanisms of basic compositional structures are a small step towards the theory of language in the brain.

Ensemble Methods for Native Language Identification
12th Workshop on Innovative Use of NLP for Building Educational Applications (BEA), EMNLP 2017, 2017
Co-first author (* equal contribution); 2nd place, NLI Shared Task 2017
Our team—Uvic-NLP—explored and evaluated a variety of lexical features for Native Language Identification (NLI) within the framework of ensemble methods. Using a subset of the highest-performing features, we train Support Vector Machines (SVM) and Fully Connected Neural Networks (FCNN) as base classifiers, and test different methods for combining their outputs. Restricting our scope to the closed essay track in the NLI Shared Task 2017, we find that our best SVM ensemble achieves an F1 score of 0.8730 on the test set.
Career
Apple Intelligence – Foundation Vision Models
Background
2016 – 2019
University of Victoria Victoria, BC
ML & NLP, Representations Lab; advisor Dr. Alona Fyshe. Fellowship + RA. GPA 4.22 / 4.33.
2012 – 2016
Shiraz University Shiraz, Iran
GPA 18.06 / 20. Ranked 3rd of ~100 students.
Recognition