Youssef Elhagrasy

BASc Engineering Physics (ECE) @ University of British Columbia

I am a final-year Engineering Physics student at UBC. I work where machine learning meets the hardware it runs on: making neural-network inference cheaper, designing accelerators from the math down to RTL, and building tools that tell you whether silicon will keep working.

My research spans energy-efficient DNN inference with Prof. Brad Quinton, semiconductor reliability and test with Prof. André Ivanov, and, starting this fall, server energy attribution and Vision Transformer representations. Outside the lab I have interned on silicon teams at Microsoft and Tesla, and did device research at KAUST and simulation work at TRIUMF.

Portrait of Youssef Elhagrasy

Research interests

Selected projects

Attention Accelerator: Python → CUDA → RTL

Single-head attention rebuilt at six levels of abstraction and diffed against the level above. The CUDA path reaches 3.86 TFLOP/s on tensor cores; online-softmax RTL cuts latency from 659 to 240 cycles.

CUDASystemVerilogFPGA2026

RLGera: Bayesian MCTS Reliability Agent

A progressive-widening MCTS agent with EKF belief updates that picks voltage, current-density, temperature and dwell-time stresses in a wear-out simulator. It raised characterization yield from 20.4% to 54.2% across BTI, EM and TDDB, with seeded, fully replayable experiments.

PythonMCTSEKF2025–26

Optimized Serial Adder

A Moore-machine serial adder designed transistor by transistor in Cadence Virtuoso (45 nm). Logic minimization, a transmission-gate XOR and careful sizing reach 1 GHz at 9.87 µW.

Cadence VirtuosoVLSI45 nm2024

FPGA Neural-Network Acceleration

A pretrained network mapped onto a Zynq UltraScale+ ZUBoard with an AXI CPU–FPGA link and pipelined MAC arrays: 0.5 ms per image, 3× faster than the ARM baseline.

VerilogVivadoAXI2024

Amazon Robotics: Super-Resolution Barcode Scanning

Capstone sponsored by Amazon Robotics. A four-frame beam-shifting imaging rig with calibrated subpixel shifts and SAA/IBP reconstruction that decodes 2 mil finer barcodes on a Bayer sensor, and a clear answer on why it isn't deployable yet.

PythonOpenCVOptics2026

Autonomous Driving & Sign Reading

A ROS/Gazebo robot that drives a four-zone course with 120 FPS vision and PID, and reads clue boards with a lightweight CNN. Full points in about 40 seconds.

ROSGazeboOpenCVCNN

All projects →

News

Publications

Current research

Energy-efficient DNN inference

UBC · with Prof. Brad Quinton · Jan 2026–present

Learned activation thresholds combined with weight masks to skip multiply-accumulates, and a study of where those skips actually pay off: in a Sky130 processing element taken through signoff, an RTL-checked CNN accelerator, and LLM decoding on an A100. First-author work, under review at MLSys.

Reliability qualification and test

UBC SoC Lab · with Prof. André Ivanov · Feb 2023–present

Treating qualification across BTI, electromigration and TDDB as a sequential decision problem. A Bayesian MCTS planner raised qualification yield from 20.4% to 54.2%, and BayeShield extends it to risk-constrained diagnosis over roughly 250k belief states. Earlier work produced an IEEE 1500 DFT wrapper for the lab's wear-out sensor IP.

Server energy attribution

UBC · with Prof. Mohammad Shahrad · Sep 2026–present

Connecting application activity in cloud and serverless workloads to OS scheduling, resource allocation and hardware energy counters, and studying how fractional-CPU limits and concurrency distort energy accounting in multi-tenant systems.

Vision Transformer representations

UBC · with Prof. Abdelrahman Eldesokey · Sep 2026–present

How patch-token features in self-supervised ViTs encode semantic and spatial structure, and how well they transfer under distribution shift for correspondence and fine-grained tasks.