UWSpace

UWSpace is the University of Waterloo’s institutional repository for the free, secure, and long-term home of research produced by faculty, students, and staff.

Depositing Theses/Dissertations or Research to UWSpace

Are you a Graduate Student depositing your thesis to UWSpace? See our Thesis Deposit Help and UWSpace Thesis FAQ pages to learn more.

Are you a Faculty or Staff member depositing research to UWSpace? See our Waterloo Research Deposit Help and Self-Archiving pages to learn more.

Photo by Waterloo staff

Recent Submissions

  • Item type: Item ,
    Controllable Image and Video Generation with Foundation Models
    (University of Waterloo, 2026-11-23) Wei, Cong
    Diffusion and flow-based generative models have made substantial progress in synthesizing images and videos from text descriptions. However, traditional text-to-image and text-to-video models lack the controllability required for practical applications. In visual creation, users may wish to edit existing images or videos, provide visual references, and specify which details should remain unchanged. For video creation, users may additionally want characters' performances to synchronize with speech or long videos to remain coherent over extended durations. These demands call for generation methods that offer control beyond traditional text conditioning. Yet accepting additional conditions does not guarantee that a model follows them, motivating feedback that can guide improvement. This thesis advances controllable image and video generation with foundation models through four connected challenges: flexible instruction-guided generation and editing, temporal control through speech and history, reward feedback for instruction adherence, and benchmarks that reveal limits beyond visual appearance. Across image and video generation and editing, users need flexible interfaces to express their intent through multimodal instructions comprising text, images, and videos. Supporting these requests requires models to identify the intended task and interpret the roles of the supplied inputs. We develop generalist systems that support diverse tasks through these flexible interfaces. OmniEdit uses specialist supervision to bring multiple image-editing operations into a generalist model. AnyV2V composes an image editor with an image-to-video generator to extend image-editing capabilities to video without task-specific tuning. To connect instruction understanding with visual synthesis, we introduce UniVideo, which brings multimodal understanding, generation, and editing into a shared model. The shared model can interpret multimodal instructions and distinguish the intended task, supporting nine image and video tasks within a unified framework and demonstrating strong generalization to unseen tasks. Compared with image generation, video generation introduces an additional temporal dimension of control. Beyond specifying content and edits, we study how speech and historical context can guide the unfolding video. We introduce MoCha for speech-conditioned video generation that aligns performance with audio and coordinates multi-character dialogue, enabling movie-grade storytelling. For long-video generation, maintaining consistency with earlier context becomes increasingly difficult as the video grows longer. We address this with Context Forcing, which combines a long-context teacher that guides the use of historical context with Slow-Fast Memory that balances recent detail with longer-term context. This supports real-time long-video generation while mitigating forgetting and drift. Enabling models to accept additional control inputs does not ensure that their outputs follow the intended requirements. We study this gap in image generation and editing, using reward feedback to evaluate the requested transformation together with source preservation and visual quality. RationalRewards learns structured critiques from preference data and uses them to guide both reinforcement learning and inference-time refinement. With RewardHarness, we further show that adapting a reward system need not require updating its model weights: evaluation guidelines and tools can instead be learned from a small set of preference demonstrations. Across these approaches, downstream image-generation and editing experiments show that feedback can guide improvement rather than merely judge completed outputs. When generation requests depend on world knowledge or visual reasoning, visual quality alone cannot establish correctness. We therefore design benchmarks that make these demands explicit and expose model limitations. SearchGen-Bench tests long-tailed and evolving knowledge requirements, revealing failures to depict requested entities and facts accurately. These failures motivate selective retrieval and co-training of a search agent and generator, so that external information can help satisfy requests beyond the generator's existing knowledge. VGI-Bench evaluates visual reasoning in video generation, examining whether models can solve visually grounded problems given an initial image, a goal, and task constraints. The results reveal emerging visual reasoning abilities, but reliable performance under these constraints remains challenging. These benchmarks make knowledge accuracy and visual reasoning explicit criteria for evaluating whether generated content satisfies the request. Together, these studies advance visual generation from synthesizing visually plausible outputs toward understanding and fulfilling users' creative intent by broadening how that intent can be expressed, improving how models respond to it, and evaluating success beyond visual appearance.
  • Item type: Item ,
    Close counterfactuals and almost doing the impossible
    (Springer Nature, 2024) Doan, Tiffany; Friedman, Ori; Denison, Stephanie
    Can we feel that an unrealized outcome nearly happened if it was never possible in the first place? People often consider counterfactual events that did not happen, and some counterfactuals seem so close to reality that people say they “almost” or “easily could have” happened. Across four preregistered experiments (total N = 1,228), we investigated how judgments of counterfactual closeness depend on possibility, and whether this varies across two kinds of close counterfactuals. In judging whether outcomes almost happened, participants were more strongly impacted by possibility than by incremental manipulations of probability. In contrast, when judging whether outcomes easily could have happened, participants treated the distinction between impossible and possible like any other variation in probability. Both kinds of judgments were also impacted by propensity, though these effects were comparatively small. Together, these findings reveal novel differences between the two kinds of close counterfactuals and suggest that while possibility is privileged when judging what almost happened, probability is the focus when judging what easily could have happened.
  • Item type: Item ,
    Distilling Legal Language Models with Limited Data through Synthesis and Attribution
    (University of Waterloo, 2026-11-20) Arbabi, Alireza
    Large language models are increasingly capable on specialized legal NLP tasks, but their direct use incurs recurring inference costs and may require proprietary or confidential data to be shared with external providers, creating practical barriers for sensitive legal applications. In this setting, knowledge distillation provides a natural approach for building small and specialized language models. However, conventional distillation methods are limited when only a sparse set of real task examples is available, a common challenge in the legal domain. To address this challenge, this thesis presents LegalSynth, a framework that uses synthetic data generation followed by attribution-based data selection as an alternative channel for transferring knowledge from the teacher to the student. Given a task description and a small set of real examples, LegalSynth first prompts a teacher model to infer the task structure from the available task information and then leverages this understanding to generate a large and diverse pool of synthetic training examples beyond the initial seed set. Because synthetic examples vary in quality and utility, LegalSynth then applies data attribution to filter the synthetic pool and retain the examples that are most useful for training, improving the performance of the student model. Experiments across four low-resource, multi-way legal classification tasks from LegalBench demonstrate the effectiveness of this framework, enabling Qwen3.5 models with up to 4B parameters to compete with, and in several settings outperform, frontier language models including GPT-5.6-Terra, Gemini-3.7-Flash, and Qwen3.5-397B.
  • Item type: Item ,
    Examining the takeover process for senior drivers in conditionally automated vehicles
    (TS International Journal, 2024) Ding, Wen; Murzello, Yovela; Samuel, Siby; Cao, Shi
    While the consensus suggests that autonomous control is particularly advantageous for older drivers due to reduced driving workload, the challenges brought on by the takeover process may impose additional burdens on this cohort. This study aims to explore the takeover time and takeover quality of older drivers, examining how different driving conditions affect their performance compared to young and middle-aged drivers. By doing so, it seeks to pinpoint potential risks specific to this demographic segment. Seventy-two participants from three age groups - younger, middle-aged, and older drivers - were recruited, each compelting eight takeover scenarios. This study addresses a gap in age-related takeover studies, which predominantly target young-old age drivers (65-74 years old), by focusing specifically on the old-old age group (75+ years old) characterized by heightened cognitive impairments. The result revealed that older drivers have significanrly higher takeover time and lower takeover quality compared to younger and middle-aged groups. Older drivers exhibited greater use of acceleration and brake more frequently after takeover, and they had significantly higher lateral drifting. Furthermore, the non-driving related tasks distract older drivers more copared to drivers from other age groups. Highway and local roads, as well as curved and straight roads, affect drivers across all age groups similarly. The findings suggest that older drivers encounter enhanced challenges during the takeover process, particularly when non-driving-related tasks were presented during the automation control. Although automation provides convenience to older people, attention should be directed directed towards mitigating the additional risks associated with takeovers. This conclusion contributes valuable insights for the future customized design of takeover requests tailored to older drivers.
  • Item type: Item ,
    Psychophysiological response, user experience and performance in routine and emergency flight simulation training scenarios using multimodal wearable sensing
    (Springer, 2026) Shafi, Anika Fairooz; Munoz, John Edison; Cao, Shi
    Wearing sensors are continually extending the possibilities for physiological monitoring and physio-adaptive (biocybernetic) systems, with particularly relevant applications in pilot training. This study exporing psychophysiological responses, performance and user experience of pilot trainees (n = 16) as they interacted with routing and high-stress flight simulation scenarios. Outcome measures include electrodermal activity (EDA), heart rate (HR) and heart rate variability (HRV) parameters, competency-based performance metrics and perceived user experience and stress. Sympathetic activation was observed, characterized by elevated HR and reduced HRV time-domain measures (Mean NN, RMSSD, and pNN50) alongside decreases in non-linear measures (SD1 and the SD1/SD2 ratio) across progressively more stressful conditions. Self-reported stress significantly differed across conditions, while EDA data showed notable individual variability. Performance, measured by mean application of procedure scores, was significantly affected. Results indicate initial evidence that the multimodal wearable physiological sensors employed in the study sensitively and consistently gauge changes in stress inducements. These findings have important implications for stress inoculation training, personalized instructor feedback and development of future biocybernetic training systems.