{"id":{"repo_id":"texas","oai_identifier":"oai:repositories.lib.utexas.edu:2152/137007"},"canonical_url":"https://search.ndltd.org/etd/texas/oai:repositories.lib.utexas.edu:2152/137007","repository":{"repo_id":"texas","name":"University of Texas","base_url":"https://repositories.lib.utexas.edu/server/oai/request"},"display":{"title":"Generative modeling and scalable test-time optimization using diffusion and flow models","abstract":"This thesis develops a principled framework for generative modeling and scalable test-time optimization, grounded in posterior sampling, stochastic optimal control, and structured anchoring. Modern diffusion-based generative models achieve remarkable quality, yet their use in inverse problems, personalization, editing, and structured generation remains limited by inefficient inference, heuristic guidance, and poor utilization of informative structure. This dissertation addresses these challenges by reinterpreting generative models as stochastic dynamical systems and designing theoretically grounded, training-free algorithms that enable controllable and efficient inference at test time. We first introduce Posterior Sampling with Latent Diffusion (PSLD), the first framework to solve linear inverse problems using pretrained latent diffusion models. We provide theoretical recovery guarantees in linear settings and demonstrate strong empirical performance across a broad class of inverse problems, including inpainting, deblurring, destriping, and super-resolution. Building on this foundation, we identify fundamental limitations of first-order Tweedie-based samplers and propose the \\emph{Second-order Tweedie from Surrogate Loss} (STSL), which enables tractable second-order posterior sampling using only $\\mathcal{O}(1)$ additional computation. STSL substantially reduces neural function evaluations while improving reconstruction quality, and further enables text-guided image editing under corruptions, outperforming widely used commercial systems. We then broaden the scope beyond inverse problems to controllable and personalized generation. We propose Reference-Based Modulation (RB-Modulation), a training-free personalization method based on stochastic optimal control, which enables precise extraction and composition of content and style from reference images without relying on the commonly used IP-Adapters or ControlNets. Next, we unify diffusion models and rectified flows in Rectified Flow Inversion (RF-Inversion) by deriving a dynamic optimal control formulation for flow inversion. This results in the first stochastic rectified flow sampler using the widely used pre-trained deterministic rectified flow models (e.g., Flux or Stable Diffusion 3.5). Furthermore, RF-Inversion demonstrates the state-of-the-art performance in zero-shot inversion and semantic image editing, supported by both theory and large-scale human evaluations. To address structural limitations in diffusion language models, we introduce the concept of anchoring. In Anchored Diffusion Language Models (ADLM), we show that resolving syntactically and semantically important tokens early drastically improves likelihood modeling, sample efficiency, and generation quality. Anchoring yields state-of-the-art perplexity, zero-shot generalization, and human-like text quality, and further enhances reasoning in both diffusion and autoregressive (GPT2) models. We extend anchoring to discrete diffusion with Anchored Posterior Sampling (APS), which introduces quantized expectation and anchored remasking to enable effective posterior sampling in discrete embedding spaces. Using our theoretical bounds, we train a multi-modal discrete diffusion foundation model with 8B parameters on 5 trillion tokens. APS achieves state-of-the-art results on inverse problems, stylization, and editing among discrete posterior samplers. Beyond vision tasks, APS generalizes to language domain by guiding inference in large-scale diffusion language models. Finally, we introduce AnCoder, an anchored diffusion language model for code generation. By developing a novel anchoring strategy, AnchorTree, which leverages abstract syntax trees to prioritize syntactically and semantically salient tokens, AnCoder enables diffusion-based models to respect the rigid structure of programming languages. This approach significantly improves functional correctness in diffusion language models, demonstrating that structured anchoring can unlock syntactically accurate and reliable code generation. Overall, this thesis establishes posterior sampling, optimal control and anchoring as foundational principles for better inference in generative models. Rather than treating generation as a purely synthesis process, the methods developed here enable generative models to perform structured, controllable, and reliable inference at test time. By unifying theoretical guarantees with practical, training-free algorithms across images, language, and code, this work advances generative modeling toward a paradigm in which generative systems can be efficiently trained via hierarchal anchoring and also adapted at test time for better inference in real-world deployment.","abstract_html":"This thesis develops a principled framework for generative modeling and scalable test-time optimization, grounded in posterior sampling, stochastic optimal control, and structured anchoring. Modern diffusion-based generative models achieve remarkable quality, yet their use in inverse problems, personalization, editing, and structured generation remains limited by inefficient inference, heuristic guidance, and poor utilization of informative structure. This dissertation addresses these challenges by reinterpreting generative models as stochastic dynamical systems and designing theoretically grounded, training-free algorithms that enable controllable and efficient inference at test time. We first introduce Posterior Sampling with Latent Diffusion (PSLD), the first framework to solve linear inverse problems using pretrained latent diffusion models. We provide theoretical recovery guarantees in linear settings and demonstrate strong empirical performance across a broad class of inverse problems, including inpainting, deblurring, destriping, and super-resolution. Building on this foundation, we identify fundamental limitations of first-order Tweedie-based samplers and propose the \\emph{Second-order Tweedie from Surrogate Loss} (STSL), which enables tractable second-order posterior sampling using only $\\mathcal{O}(1)$ additional computation. STSL substantially reduces neural function evaluations while improving reconstruction quality, and further enables text-guided image editing under corruptions, outperforming widely used commercial systems. We then broaden the scope beyond inverse problems to controllable and personalized generation. We propose Reference-Based Modulation (RB-Modulation), a training-free personalization method based on stochastic optimal control, which enables precise extraction and composition of content and style from reference images without relying on the commonly used IP-Adapters or ControlNets. Next, we unify diffusion models and rectified flows in Rectified Flow Inversion (RF-Inversion) by deriving a dynamic optimal control formulation for flow inversion. This results in the first stochastic rectified flow sampler using the widely used pre-trained deterministic rectified flow models (e.g., Flux or Stable Diffusion 3.5). Furthermore, RF-Inversion demonstrates the state-of-the-art performance in zero-shot inversion and semantic image editing, supported by both theory and large-scale human evaluations. To address structural limitations in diffusion language models, we introduce the concept of anchoring. In Anchored Diffusion Language Models (ADLM), we show that resolving syntactically and semantically important tokens early drastically improves likelihood modeling, sample efficiency, and generation quality. Anchoring yields state-of-the-art perplexity, zero-shot generalization, and human-like text quality, and further enhances reasoning in both diffusion and autoregressive (GPT2) models. We extend anchoring to discrete diffusion with Anchored Posterior Sampling (APS), which introduces quantized expectation and anchored remasking to enable effective posterior sampling in discrete embedding spaces. Using our theoretical bounds, we train a multi-modal discrete diffusion foundation model with 8B parameters on 5 trillion tokens. APS achieves state-of-the-art results on inverse problems, stylization, and editing among discrete posterior samplers. Beyond vision tasks, APS generalizes to language domain by guiding inference in large-scale diffusion language models. Finally, we introduce AnCoder, an anchored diffusion language model for code generation. By developing a novel anchoring strategy, AnchorTree, which leverages abstract syntax trees to prioritize syntactically and semantically salient tokens, AnCoder enables diffusion-based models to respect the rigid structure of programming languages. This approach significantly improves functional correctness in diffusion language models, demonstrating that structured anchoring can unlock syntactically accurate and reliable code generation. Overall, this thesis establishes posterior sampling, optimal control and anchoring as foundational principles for better inference in generative models. Rather than treating generation as a purely synthesis process, the methods developed here enable generative models to perform structured, controllable, and reliable inference at test time. By unifying theoretical guarantees with practical, training-free algorithms across images, language, and code, this work advances generative modeling toward a paradigm in which generative systems can be efficiently trained via hierarchal anchoring and also adapted at test time for better inference in real-world deployment.","abstract_has_math":true,"creators":["Rout, Litu"],"institution":"The University of Texas at Austin","degree_name":"Doctor of Philosophy","degree_level":"DOCTORAL","degree_discipline":"Electrical and Computer Engineering","degree_department":"Electrical and Computer Engineering","school":null,"contributors":[],"advisors":["Caramanis, Constantine","Shakkottai, Sanjay"],"committee_chairs":[],"committee_members":["Mokhtari, Aryan","Dimakis, Alexandros","Doucet, Arnaud"],"year":2026,"date_issued":"2026-05","date_published":"2026-05","updated_at":"2026-11-20T21:52:16Z","subjects":["Reward guidance","Auto-regressive models","Optimal control","Inverse problems","Diffusion language models","Discrete diffusion","Rectified flows","Diffusion models","Posterior Sampling","Code generation","Multi-modal generation and editing","Large language models","Generative modeling"],"languages":["English"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2152/137007"],"render_values":[{"text":"https://hdl.handle.net/2152/137007","href":"https://hdl.handle.net/2152/137007","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.26153/tsw/64309","outbound_label":"DOI","outbound_source":"dc:identifier.uri","record_url":"https://doi.org/10.26153/tsw/64309","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Atexas%3Aoai%3Arepositories.lib.utexas.edu%3A2152%2F137007","prefix":"oai_dc"},"source_record":{"url":"https://repositories.lib.utexas.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepositories.lib.utexas.edu%3A2152%2F137007","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Caramanis, Constantine","Shakkottai, Sanjay"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Mokhtari, Aryan","Dimakis, Alexandros","Doucet, Arnaud"]},{"key":"dc:contributor.department","label":"Department","values":["Electrical and Computer Engineering"]},{"key":"dc:creator","label":"Author","values":["Rout, Litu"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-07-27T18:57:36Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2026-05"]},{"key":"dc:date.issued","label":"Date","values":["2026-05"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["May 2026"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2026-07-27T18:57:37Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","text"]},{"key":"thesis:degree_college","label":"Thesis Degree College","values":["Cockrell School of Engineering"]},{"key":"thesis:degree_department","label":"Department","values":["Electrical and Computer Engineering"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Electrical and Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["DOCTORAL"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:degree_program","label":"Thesis Degree Program","values":["Doctor of Philosophy in Electrical and Computer Engineering"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["The University of Texas at Austin"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Reward guidance","Auto-regressive models","Optimal control","Inverse problems","Diffusion language models","Discrete diffusion","Rectified flows","Diffusion models","Posterior Sampling","Code generation","Multi-modal generation and editing","Large language models","Generative modeling"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["English"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2152/137007","https://doi.org/10.26153/tsw/64309"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["This thesis develops a principled framework for generative modeling and scalable test-time optimization, grounded in posterior sampling, stochastic optimal control, and structured anchoring. Modern diffusion-based generative models achieve remarkable quality, yet their use in inverse problems, personalization, editing, and structured generation remains limited by inefficient inference, heuristic guidance, and poor utilization of informative structure. This dissertation addresses these challenges by reinterpreting generative models as stochastic dynamical systems and designing theoretically grounded, training-free algorithms that enable controllable and efficient inference at test time. We first introduce Posterior Sampling with Latent Diffusion (PSLD), the first framework to solve linear inverse problems using pretrained latent diffusion models. We provide theoretical recovery guarantees in linear settings and demonstrate strong empirical performance across a broad class of inverse problems, including inpainting, deblurring, destriping, and super-resolution. Building on this foundation, we identify fundamental limitations of first-order Tweedie-based samplers and propose the \\emph{Second-order Tweedie from Surrogate Loss} (STSL), which enables tractable second-order posterior sampling using only $\\mathcal{O}(1)$ additional computation. STSL substantially reduces neural function evaluations while improving reconstruction quality, and further enables text-guided image editing under corruptions, outperforming widely used commercial systems. We then broaden the scope beyond inverse problems to controllable and personalized generation. We propose Reference-Based Modulation (RB-Modulation), a training-free personalization method based on stochastic optimal control, which enables precise extraction and composition of content and style from reference images without relying on the commonly used IP-Adapters or ControlNets. Next, we unify diffusion models and rectified flows in Rectified Flow Inversion (RF-Inversion) by deriving a dynamic optimal control formulation for flow inversion. This results in the first stochastic rectified flow sampler using the widely used pre-trained deterministic rectified flow models (e.g., Flux or Stable Diffusion 3.5). Furthermore, RF-Inversion demonstrates the state-of-the-art performance in zero-shot inversion and semantic image editing, supported by both theory and large-scale human evaluations. To address structural limitations in diffusion language models, we introduce the concept of anchoring. In Anchored Diffusion Language Models (ADLM), we show that resolving syntactically and semantically important tokens early drastically improves likelihood modeling, sample efficiency, and generation quality. Anchoring yields state-of-the-art perplexity, zero-shot generalization, and human-like text quality, and further enhances reasoning in both diffusion and autoregressive (GPT2) models. We extend anchoring to discrete diffusion with Anchored Posterior Sampling (APS), which introduces quantized expectation and anchored remasking to enable effective posterior sampling in discrete embedding spaces. Using our theoretical bounds, we train a multi-modal discrete diffusion foundation model with 8B parameters on 5 trillion tokens. APS achieves state-of-the-art results on inverse problems, stylization, and editing among discrete posterior samplers. Beyond vision tasks, APS generalizes to language domain by guiding inference in large-scale diffusion language models. Finally, we introduce AnCoder, an anchored diffusion language model for code generation. By developing a novel anchoring strategy, AnchorTree, which leverages abstract syntax trees to prioritize syntactically and semantically salient tokens, AnCoder enables diffusion-based models to respect the rigid structure of programming languages. This approach significantly improves functional correctness in diffusion language models, demonstrating that structured anchoring can unlock syntactically accurate and reliable code generation. Overall, this thesis establishes posterior sampling, optimal control and anchoring as foundational principles for better inference in generative models. Rather than treating generation as a purely synthesis process, the methods developed here enable generative models to perform structured, controllable, and reliable inference at test time. By unifying theoretical guarantees with practical, training-free algorithms across images, language, and code, this work advances generative modeling toward a paradigm in which generative systems can be efficiently trained via hierarchal anchoring and also adapted at test time for better inference in real-world deployment."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Generative modeling and scalable test-time optimization using diffusion and flow models"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Caramanis, Constantine","Shakkottai, Sanjay"],"dc:contributor.committeemember":["Mokhtari, Aryan","Dimakis, Alexandros","Doucet, Arnaud"],"dc:contributor.department":["Electrical and Computer Engineering"],"dc:creator":["Rout, Litu"],"dc:date.accessioned":["2026-07-27T18:57:36Z"],"dc:date.created":["2026-05"],"dc:date.issued":["2026-05"],"dc:date.submitted":["May 2026"],"dc:date.updated":["2026-07-27T18:57:37Z"],"dc:description.abstract":["This thesis develops a principled framework for generative modeling and scalable test-time optimization, grounded in posterior sampling, stochastic optimal control, and structured anchoring. Modern diffusion-based generative models achieve remarkable quality, yet their use in inverse problems, personalization, editing, and structured generation remains limited by inefficient inference, heuristic guidance, and poor utilization of informative structure. This dissertation addresses these challenges by reinterpreting generative models as stochastic dynamical systems and designing theoretically grounded, training-free algorithms that enable controllable and efficient inference at test time. We first introduce Posterior Sampling with Latent Diffusion (PSLD), the first framework to solve linear inverse problems using pretrained latent diffusion models. We provide theoretical recovery guarantees in linear settings and demonstrate strong empirical performance across a broad class of inverse problems, including inpainting, deblurring, destriping, and super-resolution. Building on this foundation, we identify fundamental limitations of first-order Tweedie-based samplers and propose the \\emph{Second-order Tweedie from Surrogate Loss} (STSL), which enables tractable second-order posterior sampling using only $\\mathcal{O}(1)$ additional computation. STSL substantially reduces neural function evaluations while improving reconstruction quality, and further enables text-guided image editing under corruptions, outperforming widely used commercial systems. We then broaden the scope beyond inverse problems to controllable and personalized generation. We propose Reference-Based Modulation (RB-Modulation), a training-free personalization method based on stochastic optimal control, which enables precise extraction and composition of content and style from reference images without relying on the commonly used IP-Adapters or ControlNets. Next, we unify diffusion models and rectified flows in Rectified Flow Inversion (RF-Inversion) by deriving a dynamic optimal control formulation for flow inversion. This results in the first stochastic rectified flow sampler using the widely used pre-trained deterministic rectified flow models (e.g., Flux or Stable Diffusion 3.5). Furthermore, RF-Inversion demonstrates the state-of-the-art performance in zero-shot inversion and semantic image editing, supported by both theory and large-scale human evaluations. To address structural limitations in diffusion language models, we introduce the concept of anchoring. In Anchored Diffusion Language Models (ADLM), we show that resolving syntactically and semantically important tokens early drastically improves likelihood modeling, sample efficiency, and generation quality. Anchoring yields state-of-the-art perplexity, zero-shot generalization, and human-like text quality, and further enhances reasoning in both diffusion and autoregressive (GPT2) models. We extend anchoring to discrete diffusion with Anchored Posterior Sampling (APS), which introduces quantized expectation and anchored remasking to enable effective posterior sampling in discrete embedding spaces. Using our theoretical bounds, we train a multi-modal discrete diffusion foundation model with 8B parameters on 5 trillion tokens. APS achieves state-of-the-art results on inverse problems, stylization, and editing among discrete posterior samplers. Beyond vision tasks, APS generalizes to language domain by guiding inference in large-scale diffusion language models. Finally, we introduce AnCoder, an anchored diffusion language model for code generation. By developing a novel anchoring strategy, AnchorTree, which leverages abstract syntax trees to prioritize syntactically and semantically salient tokens, AnCoder enables diffusion-based models to respect the rigid structure of programming languages. This approach significantly improves functional correctness in diffusion language models, demonstrating that structured anchoring can unlock syntactically accurate and reliable code generation. Overall, this thesis establishes posterior sampling, optimal control and anchoring as foundational principles for better inference in generative models. Rather than treating generation as a purely synthesis process, the methods developed here enable generative models to perform structured, controllable, and reliable inference at test time. By unifying theoretical guarantees with practical, training-free algorithms across images, language, and code, this work advances generative modeling toward a paradigm in which generative systems can be efficiently trained via hierarchal anchoring and also adapted at test time for better inference in real-world deployment."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/2152/137007","https://doi.org/10.26153/tsw/64309"],"dc:language.iso":["English"],"dc:subject":["Reward guidance","Auto-regressive models","Optimal control","Inverse problems","Diffusion language models","Discrete diffusion","Rectified flows","Diffusion models","Posterior Sampling","Code generation","Multi-modal generation and editing","Large language models","Generative modeling"],"dc:title":["Generative modeling and scalable test-time optimization using diffusion and flow models"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"thesis:degree_college":["Cockrell School of Engineering"],"thesis:degree_department":["Electrical and Computer Engineering"],"thesis:degree_discipline":["Electrical and Computer Engineering"],"thesis:degree_level":["DOCTORAL"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:degree_program":["Doctor of Philosophy in Electrical and Computer Engineering"],"thesis:institution_name":["The University of Texas at Austin"]},"updated_at":"2026-11-20T21:52:16Z"}