{"id":{"repo_id":"calgary","oai_identifier":"oai:ucalgary.scholaris.ca:1880/124377"},"canonical_url":"https://search.ndltd.org/etd/calgary/oai:ucalgary.scholaris.ca:1880/124377","repository":{"repo_id":"calgary","name":"University of Calgary","base_url":"https://ucalgary.scholaris.ca/server/oai/request"},"display":{"title":"Behavior Discovery and Attribution for Explainable Reinforcement Learning","abstract":"Building trust in reinforcement learning (RL) agents requires understanding why they make certain decisions, especially in high-stakes applications like robotics, healthcare, and finance. As RL systems are increasingly deployed in real-world settings, the needfor interpretable explanations of agent behavior becomes critical for debugging, verification, and human oversight. Existing explainability methods often focus on single states or entire trajectories, either providing only local, step-wise insights or attributing decisions to coarse, episode-level summaries. Both approaches miss the recurring strategies and temporally extended patterns that actually drive agent behavior across multiple decisions. State-level explanations fail to capture the broader context of why an agent follows a particular strategy, while trajectory-level explanations cannot pinpoint which specific behavioral pattern is responsible for a given action. This thesis addresses this gap by proposing a fully offline, reward-free framework for behavior discovery and segmentation, enabling the attribution of actions to meaningful and interpretable behavior segments that capture recurring patterns appearing across multiple trajectories. The approach consists of three stages: (1) a transformer-based Vector Quantized Variational Autoencoder (VQ-VAE) that discretizes state-action sequences into a learned codebook of latent representations, (2) a graph-based spectral clustering algorithm that segments these discrete codes into coherent behavior clusters based on both transition frequency and latent similarity, and (3) behavior cloning models trained on each cluster that enable fine-grained attribution of individual actions to discovered behaviors. I evaluate the framework on four diverse offline RL environments spanning continuous control (HalfCheetah, Pen manipulation), discrete navigation (MiniGrid), and visual domains (Seaquest). Quantitative evaluations demonstrate that the approach discovers semantically meaningful behaviors and outperforms trajectory-level baselines in Average Fidelity Score, measuring how well attributed behaviors predict agent actions. A human study with 15 participants shows that users prefer behavior-based explanations over trajectory retrieval methods and can consistently interpret the discovered clusters. Ablation studies validate the importance of the hybrid graph weighting scheme and the choice of codebook size. The code is publicly available.","abstract_html":"Building trust in reinforcement learning (RL) agents requires understanding why they make certain decisions, especially in high-stakes applications like robotics, healthcare, and finance. As RL systems are increasingly deployed in real-world settings, the needfor interpretable explanations of agent behavior becomes critical for debugging, verification, and human oversight. Existing explainability methods often focus on single states or entire trajectories, either providing only local, step-wise insights or attributing decisions to coarse, episode-level summaries. Both approaches miss the recurring strategies and temporally extended patterns that actually drive agent behavior across multiple decisions. State-level explanations fail to capture the broader context of why an agent follows a particular strategy, while trajectory-level explanations cannot pinpoint which specific behavioral pattern is responsible for a given action. This thesis addresses this gap by proposing a fully offline, reward-free framework for behavior discovery and segmentation, enabling the attribution of actions to meaningful and interpretable behavior segments that capture recurring patterns appearing across multiple trajectories. The approach consists of three stages: (1) a transformer-based Vector Quantized Variational Autoencoder (VQ-VAE) that discretizes state-action sequences into a learned codebook of latent representations, (2) a graph-based spectral clustering algorithm that segments these discrete codes into coherent behavior clusters based on both transition frequency and latent similarity, and (3) behavior cloning models trained on each cluster that enable fine-grained attribution of individual actions to discovered behaviors. I evaluate the framework on four diverse offline RL environments spanning continuous control (HalfCheetah, Pen manipulation), discrete navigation (MiniGrid), and visual domains (Seaquest). Quantitative evaluations demonstrate that the approach discovers semantically meaningful behaviors and outperforms trajectory-level baselines in Average Fidelity Score, measuring how well attributed behaviors predict agent actions. A human study with 15 participants shows that users prefer behavior-based explanations over trajectory retrieval methods and can consistently interpret the discovered clusters. Ablation studies validate the importance of the hybrid graph weighting scheme and the choice of codebook size. The code is publicly available.","abstract_has_math":false,"creators":["Rishav, Rishav"],"institution":"Graduate Studies","degree_name":"Master of Science (MSc)","degree_level":null,"degree_discipline":"Engineering – Electrical & Computer","degree_department":null,"school":null,"contributors":[],"advisors":["Ioannou, Yani","Ebrahimi Kahou, Samira"],"committee_chairs":[],"committee_members":["Ramirez-Serrano, Alejandro","Abou-Zeid, Hatem"],"year":2026,"date_issued":"2026-03-20","date_published":"2026-03-20","updated_at":"2026-11-19T07:37:01Z","subjects":["Explainability","Reinforcement Learning"],"languages":["en"],"rights":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/124377"],"render_values":[{"text":"https://hdl.handle.net/1880/124377","href":"https://hdl.handle.net/1880/124377","code":true}]},{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Rishav, R. (2026). Behavior discovery and attribution for explainable reinforcement learning (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://ucalgary.scholaris.ca."],"render_values":[{"text":"Rishav, R. (2026). Behavior discovery and attribution for explainable reinforcement learning (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://ucalgary.scholaris.ca.","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.11575/PRISM/51195","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.11575/PRISM/51195","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","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%3Acalgary%3Aoai%3Aucalgary.scholaris.ca%3A1880%2F124377","prefix":"oai_dc"},"source_record":{"url":"https://ucalgary.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aucalgary.scholaris.ca%3A1880%2F124377","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Ioannou, Yani","Ebrahimi Kahou, Samira"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Ramirez-Serrano, Alejandro","Abou-Zeid, Hatem"]},{"key":"dc:creator","label":"Author","values":["Rishav, Rishav"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-06"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-03-24T21:18:48Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-03-20"]},{"key":"dc:publisher.faculty","label":"Dc Publisher Faculty","values":["Graduate Studies"]},{"key":"dc:publisher.institution","label":"Dc Publisher Institution","values":["University of Calgary"]},{"key":"dc:type","label":"Dc Type","values":["master thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering – Electrical & Computer"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (MSc)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Calgary"]},{"key":"thesis:release_request","label":"Thesis Release Request","values":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Explainability","Reinforcement Learning"]},{"key":"dc:subject.classification","label":"Dc Subject Classification","values":["Artificial Intelligence"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Rishav, R. (2026). Behavior discovery and attribution for explainable reinforcement learning (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://ucalgary.scholaris.ca."]},{"key":"dc:identifier.doi","label":"DOI","values":["https://dx.doi.org/10.11575/PRISM/51195"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/124377"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Building trust in reinforcement learning (RL) agents requires understanding why they make certain decisions, especially in high-stakes applications like robotics, healthcare, and finance. As RL systems are increasingly deployed in real-world settings, the needfor interpretable explanations of agent behavior becomes critical for debugging, verification, and human oversight. Existing explainability methods often focus on single states or entire trajectories, either providing only local, step-wise insights or attributing decisions to coarse, episode-level summaries. Both approaches miss the recurring strategies and temporally extended patterns that actually drive agent behavior across multiple decisions. State-level explanations fail to capture the broader context of why an agent follows a particular strategy, while trajectory-level explanations cannot pinpoint which specific behavioral pattern is responsible for a given action. This thesis addresses this gap by proposing a fully offline, reward-free framework for behavior discovery and segmentation, enabling the attribution of actions to meaningful and interpretable behavior segments that capture recurring patterns appearing across multiple trajectories. The approach consists of three stages: (1) a transformer-based Vector Quantized Variational Autoencoder (VQ-VAE) that discretizes state-action sequences into a learned codebook of latent representations, (2) a graph-based spectral clustering algorithm that segments these discrete codes into coherent behavior clusters based on both transition frequency and latent similarity, and (3) behavior cloning models trained on each cluster that enable fine-grained attribution of individual actions to discovered behaviors. I evaluate the framework on four diverse offline RL environments spanning continuous control (HalfCheetah, Pen manipulation), discrete navigation (MiniGrid), and visual domains (Seaquest). Quantitative evaluations demonstrate that the approach discovers semantically meaningful behaviors and outperforms trajectory-level baselines in Average Fidelity Score, measuring how well attributed behaviors predict agent actions. A human study with 15 participants shows that users prefer behavior-based explanations over trajectory retrieval methods and can consistently interpret the discovered clusters. Ablation studies validate the importance of the hybrid graph weighting scheme and the choice of codebook size. The code is publicly available."]},{"key":"dc:title","label":"Title","values":["Behavior Discovery and Attribution for Explainable Reinforcement Learning"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Ioannou, Yani","Ebrahimi Kahou, Samira"],"dc:contributor.committeemember":["Ramirez-Serrano, Alejandro","Abou-Zeid, Hatem"],"dc:creator":["Rishav, Rishav"],"dc:date":["2026-06"],"dc:date.accessioned":["2026-03-24T21:18:48Z"],"dc:date.issued":["2026-03-20"],"dc:description.abstract":["Building trust in reinforcement learning (RL) agents requires understanding why they make certain decisions, especially in high-stakes applications like robotics, healthcare, and finance. As RL systems are increasingly deployed in real-world settings, the needfor interpretable explanations of agent behavior becomes critical for debugging, verification, and human oversight. Existing explainability methods often focus on single states or entire trajectories, either providing only local, step-wise insights or attributing decisions to coarse, episode-level summaries. Both approaches miss the recurring strategies and temporally extended patterns that actually drive agent behavior across multiple decisions. State-level explanations fail to capture the broader context of why an agent follows a particular strategy, while trajectory-level explanations cannot pinpoint which specific behavioral pattern is responsible for a given action. This thesis addresses this gap by proposing a fully offline, reward-free framework for behavior discovery and segmentation, enabling the attribution of actions to meaningful and interpretable behavior segments that capture recurring patterns appearing across multiple trajectories. The approach consists of three stages: (1) a transformer-based Vector Quantized Variational Autoencoder (VQ-VAE) that discretizes state-action sequences into a learned codebook of latent representations, (2) a graph-based spectral clustering algorithm that segments these discrete codes into coherent behavior clusters based on both transition frequency and latent similarity, and (3) behavior cloning models trained on each cluster that enable fine-grained attribution of individual actions to discovered behaviors. I evaluate the framework on four diverse offline RL environments spanning continuous control (HalfCheetah, Pen manipulation), discrete navigation (MiniGrid), and visual domains (Seaquest). Quantitative evaluations demonstrate that the approach discovers semantically meaningful behaviors and outperforms trajectory-level baselines in Average Fidelity Score, measuring how well attributed behaviors predict agent actions. A human study with 15 participants shows that users prefer behavior-based explanations over trajectory retrieval methods and can consistently interpret the discovered clusters. Ablation studies validate the importance of the hybrid graph weighting scheme and the choice of codebook size. The code is publicly available."],"dc:identifier.citation":["Rishav, R. (2026). Behavior discovery and attribution for explainable reinforcement learning (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://ucalgary.scholaris.ca."],"dc:identifier.doi":["https://dx.doi.org/10.11575/PRISM/51195"],"dc:identifier.uri":["https://hdl.handle.net/1880/124377"],"dc:language.iso":["en"],"dc:publisher.faculty":["Graduate Studies"],"dc:publisher.institution":["University of Calgary"],"dc:rights":["University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission."],"dc:subject":["Explainability","Reinforcement Learning"],"dc:subject.classification":["Artificial Intelligence"],"dc:title":["Behavior Discovery and Attribution for Explainable Reinforcement Learning"],"dc:type":["master thesis"],"dspace:entity.type":["Publication"],"others:access_status":["open.access"],"thesis:degree_discipline":["Engineering – Electrical & Computer"],"thesis:degree_name":["Master of Science (MSc)"],"thesis:institution_name":["University of Calgary"],"thesis:release_request":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]},"updated_at":"2026-11-19T07:37:01Z"}