Moustafa Alzantot

Moustafa Alzantot

Auto-generated profile, based on publicly available information

Moustafa Alzantot

Department of Computer Science University of California Los Angeles

Research Focus & Metrics

Academic Career Length

10Years (2017-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
23 June 2017
Verified
Conference Paper
Open access
MAMoustafa Alzantot
Moustafa Alzantot
YWYingnan Wang
Yingnan Wang
ZRZhengshuang Ren
Zhengshuang Ren
MSMani B. Srivastava
Mani B. Srivastava
Mobile devices have become an essential part of our daily lives. By virtue of both their increasing computing power and the recent progress made in AI, mobile devices evolved to act as intelligent assistants in many tasks rather than a mere way of making phone calls. However, popular and commonly used tools and frameworks for machine intelligence are still lacking the ability to make proper use of the available heterogeneous computing resources on mobile devices. In this paper, we study the benefits of utilizing the heterogeneous (CPU and GPU) computing resources available on commodity android devices while running deep learning models. We leveraged the heterogeneous computing framework RenderScript to accelerate the execution of deep learning models on commodity Android devices. Our system is implemented as an extension to the popular open source framework TensorFlow. By integrating our acceleration framework tightly into TensorFlow, machine learning engineers can now easily make benefit of the heterogeneous computing resources on mobile devices without the need of any extra tools. We evaluate our system on different android phones models to study the trade-offs of running different neural network operations on the GPU. We also compare the performance of running different models architectures such as convolutional and recurrent neural networks on CPU only vs using heterogeneous computing resources. Our result shows that although GPUs on the phones are capable of offering substantial performance gain in matrix multiplication on mobile devices. Therefore, models that involve multiplication of large matrices can run much faster (approx. 3 times faster in our experiments) due to GPU support.

8 October 2024
Verified
Conference Paper
Open access
YLYaoyiran Li
Yaoyiran Li
XZXiang Zhai
Xiang Zhai
MAMoustafa Alzantot
Moustafa Alzantot
KYKeyi Yu
Keyi Yu
IVIvan Vulić
Ivan Vulić
MHMohamed Hammad
Mohamed Hammad
Traditional recommender systems such as matrix factorization methods have primarily focused on learning a shared dense embedding space to represent both items and user preferences. Subsequently, sequence models such as RNN, GRUs, and, recently, Transformers have emerged and excelled in the task of sequential recommendation. This task requires understanding the sequential structure present in users’ historical interactions to predict the next item they may like. Building upon the success of Large Language Models (LLMs) in a variety of tasks, researchers have recently explored using LLMs that are pretrained on vast corpora of text for sequential recommendation. To use LLMs for sequential recommendation, both the history of user interactions and the model’s prediction of the next item are expressed in text form. We propose CALRec, a two-stage LLM finetuning framework that finetunes a pretrained LLM in a two-tower fashion using a mixture of two contrastive losses and a language modeling loss: the LLM is first finetuned on a data mixture from multiple domains followed by another round of target domain finetuning. Our model significantly outperforms many state-of-the-art baselines (+37% in Recall@1 and +24% in NDCG@10) and our systematic ablation studies reveal that (i) both stages of finetuning are crucial, and, when combined, we achieve improved performance, and (ii) contrastive alignment is effective among the target domains explored in our experiments.

18 April 2017
Verified
Conference Paper
Open access
AAAmr Alanwar
Amr Alanwar
MAMoustafa Alzantot
Moustafa Alzantot
BHBo-Jhang Ho
Bo-Jhang Ho
PMPaul Martin
Paul Martin
MSMani Srivastava
Mani Srivastava
Although different interaction modalities have been proposed in the field of human-computer interface (HCI), only a few of these techniques could reach the end users because of scalability and usability issues. Given the popularity and the growing number of IoT devices, selecting one out of many devices becomes a hurdle in a typical smarthome environment. Therefore, an easy-to-learn, scalable, and non-intrusive interaction modality has to be explored. In this paper, we propose a pointing approach to interact with devices, as pointing is arguably a natural way for device selection. We introduce SeleCon for device selection and control which uses an ultra-wideband (UWB) equipped smartwatch. To interact with a device in our system, people can point to the device to select it then draw a hand gesture in the air to specify a control action. To this end, SeleCon employs inertial sensors for pointing gesture detection and a UWB transceiver for identifying the selected device from ranging measurements. Furthermore, SeleCon supports an alphabet of gestures that can be used for controlling the selected devices. We performed our experiment in a 9m-by-10m lab space with eight deployed devices. The results demonstrate that SeleCon can achieve 84.5% accuracy for device selection and 97% accuracy for hand gesture recognition. We also show that SeleCon is power efficient to sustain daily use by turning off the UWB transceiver, when a user's wrist is stationary.

5 October 2018 in IEEE Transactions on Mobile Computing
Verified
Journal Article
Closed access
MEMoustafa Mahmoud Elhamshary
Moustafa Mahmoud Elhamshary
MAMoustafa Farid Alzantot
Moustafa Farid Alzantot
MYMoustafa Youssef
Moustafa Youssef
Navigation applications are now considered popular services for mobile phones users. However, despite the fact that people spend most of time indoors, these applications are still limited in indoor spaces due to the lack of large-scale indoor floorplan databases. We present JustWalk: a crowd intelligence-based system for the automatic construction of buildings floorplans. JustWalk employs a participatory sensing approach using smartphones that are ubiquitously available with users who visit a building to automatically construct accurate motion traces. These traces are then processed by means of different mathematical and image processing techniques to detect the overall floorplan shape and higher level semantics such as detecting rooms and corridors shapes along with a variety of points of interest in the environment. Compared to other approaches, JustWalk depends only on the users walking patterns and motion traces without requiring any obtrusive user actions. Experimental evaluation of JustWalk using android phones in three testbeds shows that it achieves high accuracy for the estimation of the detailed floorplan with a relatively small number of traces; highlighting its promise as a ubiquitous indoor mapping service.

24 September 2018 in arXiv
Verified
Preprint
Open access
PDF file
MAMoustafa Alzantot
Moustafa Alzantot
YSYash Sharma
Yash Sharma
AEAhmed Elgohary
Ahmed Elgohary
BHBo-Jhang Ho
Bo-Jhang Ho
MSMani Srivastava
Mani Srivastava
KCKai-Wei Chang
Kai-Wei Chang
Deep neural networks (DNNs) are vulnerable to adversarial examples, perturbations to correctly classified examples which can cause the model to misclassify. In the image domain, these perturbations are often virtually indistinguishable to human perception, causing humans and state-of-the-art models to disagree. However, in the natural language domain, small perturbations are clearly perceptible, and the replacement of a single word can drastically alter the semantics of the document. Given these challenges, we use a black-box population-based optimization algorithm to generate semantically and syntactically similar adversarial examples that fool well-trained sentiment analysis and textual entailment models with success rates of 97% and 70%, respectively. We additionally demonstrate that 92.3% of the successful sentiment analysis adversarial examples are classified to their original label by 20 human annotators, and that the examples are perceptibly quite similar. Finally, we discuss an attempt to use adversarial training as a defense, but fail to yield improvement, demonstrating the strength and diversity of our adversarial examples. We hope our findings encourage researchers to pursue improving the robustness of DNNs in the natural language domain.

1 July 2019 in arXiv
Verified
Preprint
Open access
PDF file
MAMoustafa Alzantot
Moustafa Alzantot
YSYash Sharma
Yash Sharma
SCSupriyo Chakraborty
Supriyo Chakraborty
HZHuan Zhang
Huan Zhang
CHCho-Jui Hsieh
Cho-Jui Hsieh
MSMani Srivastava
Mani Srivastava
Deep neural networks are vulnerable to adversarial examples, even in the black-box setting, where the attacker is restricted solely to query access. Existing black-box approaches to generating adversarial examples typically require a significant number of queries, either for training a substitute network or performing gradient estimation. We introduce GenAttack, a gradient-free optimization technique that uses genetic algorithms for synthesizing adversarial examples in the black-box setting. Our experiments on different datasets (MNIST, CIFAR-10, and ImageNet) show that GenAttack can successfully generate visually imperceptible adversarial examples against state-of-the-art image recognition models with orders of magnitude fewer queries than previous approaches. Against MNIST and CIFAR-10 models, GenAttack required roughly 2,126 and 2,568 times fewer queries respectively, than ZOO, the prior state-of-the-art black-box attack. In order to scale up the attack to large-scale high-dimensional ImageNet models, we perform a series of optimizations that further improve the query efficiency of our attack leading to 237 times fewer queries against the Inception-v3 model than ZOO. Furthermore, we show that GenAttack can successfully attack some state-of-the-art ImageNet defenses, including ensemble adversarial training and non-differentiable or randomized input transformations. Our results suggest that evolutionary algorithms open up a promising area of research into effective black-box attacks.