Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями

Care-giving and assistive robotics, driven by advancements in AI, offer promising solutions to meet the growing demand for care, particularly in the context of increasing numbers of individuals requiring assistance. It creates a pressing need for efficient and safe assistive devices, particularly in...

Full description

Saved in:
Bibliographic Details
Date:2024
Main Author: Tytarenko, Andrii
Format: Article
Language:English
Published: The National Technical University of Ukraine "Igor Sikorsky Kyiv Polytechnic Institute" 2024
Subjects:
Online Access:https://journal.iasa.kpi.ua/article/view/315284
Tags: Add Tag
No Tags, Be the first to tag this record!
Journal Title:System research and information technologies
Download file: Pdf

Institution

System research and information technologies
_version_ 1867334447432466432
author Tytarenko, Andrii
author_facet Tytarenko, Andrii
author_institution_txt_mv [ { "author": "Andrii Tytarenko", "institution": "Educational and Research Institute for Applied System Analysis of the National Technical University of Ukraine \"Igor Sikorsky Kyiv Polytechnic Institute\", Kyiv" } ]
author_sort Tytarenko, Andrii
baseUrl_str http://journal.iasa.kpi.ua/oai
collection OJS
datestamp_date 2024-11-16T18:06:34Z
description Care-giving and assistive robotics, driven by advancements in AI, offer promising solutions to meet the growing demand for care, particularly in the context of increasing numbers of individuals requiring assistance. It creates a pressing need for efficient and safe assistive devices, particularly in light of heightened demand due to war-related injuries. While cost has been a barrier to accessibility, technological progress can democratize these solutions. Safety remains a paramount concern, especially given the intricate interactions between assistive robots and humans. This study explores the application of reinforcement learning (RL) and imitation learning in improving policy design for assistive robots. The proposed approach makes the risky policies safer without additional environmental interactions. The enhancement of the conventional RL approaches in tasks related to assistive robotics is demonstrated through experimentation using simulated environments.
doi_str_mv 10.20535/SRIT.2308-8893.2024.3.09
first_indexed 2025-07-17T10:28:37Z
format Article
fulltext  Publisher IASA at the Igor Sikorsky Kyiv Polytechnic Institute, 2024 148 ISSN 1681–6048 System Research & Information Technologies, 2024, № 3 UDC 004.852 DOI: 10.20535/SRIT.2308-8893.2024.3.09 REDUCING RISK FOR ASSISTIVE REINFORCEMENT LEARNING POLICIES WITH DIFFUSION MODELS A. TYTARENKO Abstract. Care-giving and assistive robotics, driven by advancements in AI, offer promising solutions to meet the growing demand for care, particularly in the context of increasing numbers of individuals requiring assistance. It creates a pressing need for efficient and safe assistive devices, particularly in light of heightened demand due to war-related injuries. While cost has been a barrier to accessibility, techno- logical progress can democratize these solutions. Safety remains a paramount con- cern, especially given the intricate interactions between assistive robots and humans. This study explores the application of reinforcement learning (RL) and imitation learning in improving policy design for assistive robots. The proposed approach makes the risky policies safer without additional environmental interactions. The enhancement of the conventional RL approaches in tasks related to assistive robotics is demonstrated through experimentation using simulated environments. Keywords: assistive robotics, reinforcement learning, diffusion models, imitation learning. INTRODUCTION Care-giving and assistive robotics are some of the most promising potential appli- cations for AI systems. For decades already, it has been an active research field. This is certainly unsurprising, given the growing number of people who need care, which at some point may not be difficult to sattisfy in some countries [1; 2]. Moreover, given the circumstances of war actions in Ukraine, the demand will constantly grow. Tens of thousands of people will require rehabilitation, and some of them will require physical assistance for very long periods. To satisfy that demand, some amount of automation is certainly necessary. Although given the high costs of assistive devices, not everybody can afford them, the technologi- cal progress and drastic simplification of development and hardware requirements will help to democratize them and make them affordable. One of the biggest concerns of that progress is safety [3]. At the moment, most devices employ sophisticated manually-designed policies and mechanisms to ensure robustness and safety. Since assistive robots interact with humans, it is desirable to reduce the risk, or in other words, improve the success rate. One way of automating the policy design process is machine learning. For instance, reinforcement learning (RL) allows for policy learning from data of in- teraction with humans, which are difficult to rigorously model and predict [3; 4]. Manually designed policies have difficulties with such cases, as it’s difficult to make them robust to the modeling errors. This problem is amplified when humans can demonstrate only limited coop- eration, such as in the case of people with disabilities. Cheap robotic arms (which Reducing risk for assistive reinforcement learning policies with diffusion models Системні дослідження та інформаційні технології, 2024, № 3 149 are more affordable) are also difficult to rigorously model, which makes vendors choose expensive hardware instead. RL already has been applied to tasks that involve difficult-to-model physical tasks, such as ziplock bag manipulation [5] or cable manipulation [6] However, RL policies often require millions of time steps for full conver- gence, and while the explored good trajectories are produced much earlier, it takes a while for the policies to stop breaking them for the sake of exploration. In this paper, a way of not taking the burden of training an algorithm until full convergence, but rather collecting those first successful trajectories and using them to fit a robust policy is considered. This allows for reducing the risk of fairly non-robust policies without any additional interactions with the environment. It is demonstrated that this approach outperforms the bare model-free RL method in the tasks of assistive robotics, simulated using Assistive Gym [7]. PRELIMINARIES Markov Decision Process (MDP) M is a tuple ),,,( TrAS , where S — state space; A — action space; RASr : — reward function, ),|( 1 ttt assPT  — probability that an environment will transition to the state 1ts given that the current state is ts and the action taken ta . Reinforcement Learning algorithm takes MDP M and searches for a pol- icy  , that maximizes the discounted return objective:      0 )(~ * ),(maxarg t ttp asr . Here  is a trajectory ),...,,,( 1100 Txaxax usually sampled by applying a pol- icy  . Model-free reinforcement learning algorithms are considered, namely Ac- tor–Critic, which learns a value function )(sv and a policy function )|( sa . The latter is often minimized using the former for the advantage estimation. There are multiple instances of the Actor–Critic algorithm. For instance, Proximal Policy Optimization [8] or A3C [9]. Also diffusion models for policy fitting are considered. Namely, Denoising Diffusion Probabilistic Models (DDPM), which are generative models based on Stochastic Langevin Dynamics [10]. The idea is to fit a noise-predicting network  , that predicts a gradient )(xE . This gradient is computed and applied repeatedly )(xExx  to recover an input 0x from its noised version Kx . These models are trained on a set of inputs and then are used to generate novel inputs from pure noise. This ap- proach to imitation learning is a focus of [11] For assistive robotics, Assistive Gym [7] is used. It is modified it to be more suitable for using it with diffusion policies. See the Experimental Validation sec- tion for details. A. Tytarenko ISSN 1681–6048 System Research & Information Technologies, 2024, № 3 150 METHOD First, a model-free reinforcement learning algorithm is employed to discover suc- cessful trajectories. Proximal Policy Optimization (PPO) algorithm is chosed in this paper, as it is widely used and is very easy to apply. That algorithm collects the trajectories by interacting with an environment and fits its policy function by minimizing the following loss: ))1,1,(,min()( )(~ ttttttpPPO ArclipArL    . Specifically, a fully connected network with ReLU activation functions is used to approximate the policy/value functions. This decision was made because a low dimensional state is being observed instead of images (Fig.1). Fig. 1. A diagram schematic of a proposed algorithm. First, a baseline online RL policy is pretrained, then successful trajectories are sampled, and a diffusion poli- cies algorithm is fine-tuned on those in an offline manner A PPO is trained as a baseline. The problem with PPO is that it requires a lot of samples, which is often too expensive (in computing) or dangerous (when ap- plied in the real-world setting). Therefore, it is trained for a fixed number of time steps, stopping it often way before the full convergence. When applied to assistive robotics tasks, PPO produces high-risk policies, as evidenced by experiments (see EXPERIMENTAL VALIDATION section). To reduce the risk, successful trajectories produced by high-risk PPO-based policies are selected and imitation learning techniques based on diffusion models are applied. )( is sr is defined as a new reward function, which may be different from the original and is binary, meaning it is either 1 or 0. For instance, in the Assistive Feeding task, success is defined like a predicate “The food on a spoon is safely placed in the mouth of a human within 10 seconds”. This sparse reward is given right before the episode’s termination. For brevity, denote    is iss srr )()( . Also, define ),|( successsa as a policy conditioned on ),( sa being a part of the successful trajectory. This approach is inspired by control as inference problem statement [12]. Suppose a PPO policy  is trained. If one takes Reducing risk for assistive reinforcement learning policies with diffusion models Системні дослідження та інформаційні технології, 2024, № 3 151     T i iiiii asspsuccesssaspsuccessp 1 110 ),|(),|()()|( and fits the Diffusion Policy on )|(~),( successpas  , they’d arrive to a much more robust policy, given the assumption that the set of successful trajectories is enough to cover the stochasticity and uncertainty of the environment. For the ro- botics tasks considered, this assumption tends to be true in practice. The diffusion policy is approximated using a diffusion transformer architec- ture, proposed in [11]. It is simplified a bit for the environments with shorter tra- jectories. Also, it has been found that U-Net-based architectures give almost the same results, so it is not include them in this study. Algorithm. Let’s summarize an algorithm described earlier. 1. Train a PPO policy for PPOT time steps. 2. Sample a dataset of trajectories using a pre-trained PPO policy )}(~|,...,1,{  PPOii pNiD . 3. Sample a dataset of successful trajectories }1)(,|{  ssucc rDD . 4. Initialize the weights of a neural net  . 5. Repeat for M epochs: retrieve a batch of trajectories B from the dataset },...,1,),,...,,{( BiTkTkkk NiasasB   ; following [11] set ),...,( Tkk aaA  and ),...,( Tkk ssO  , and minimize the DDPM training loss: )),,(,()( kAOMSEBL k tt k DDPM   ; )(' BLDDPM ; update neural networks’ parameters: ;'  Here: PPOT — num timesteps for the PPO to be trained on; N — number of all samples from the PPO policy; BN — batch size for the diffusion model;  — learning rate; T — Diffusion Policy horizon. Can also be different for actions and obser- vations. Actions of this horizon are predicted conditioned on observations. For a neural network architecture, the Diffusion Transformer [11] architec- ture is used (Fig. 2). Fig. 2. A trajectory produced by the policy trained using the proposed method. The task — Assistive Feeding A. Tytarenko ISSN 1681–6048 System Research & Information Technologies, 2024, № 3 152 EXPERIMENTAL VALIDATION For experimental validation, Assistive Gym [7] simulation benchmark is used. The observation space usually contains a low dimensional arm state, human head state, and some other task- or tool-related statistics. All the tasks are done using the simulated Jaco robot arm. The proposed method is evaluated on the following tasks: 1. Assistive Feeding. A task where a robotic arm uses a spoon full of food to feed a person. The task is considered successful if 75% of food is in the per- son’s mouth. The resulting trajectory is depicted in Fig. 2. 2. Assistive Drinking. A task where a robotic arm uses a cup full of water to assist a person with drinking. The task is considered successful if 75% of water is in the person’s mouth. 3. Assistive Bed Bathing. A task where a robotic arm uses a sponge to wash a person. The task is considered successful if the necessary spots of a person’s surface are touched with a sponge. 4. Assistive Arm Manipulation. A task where a robotic arm is used to re- position a person’s arm. The task is considered successful, if the arm is success- fully repositioned. First, a PPO baseline is trained until it is sufficient for a policy to produce successful trajectories. In the study, 1000 successful trajectories have been col- lected for each task. It has been found, that for many tasks, the number of trajec- tories less than 300 degrades the performance of the method. After that, sample successful trajectories are sampled from the PPO policy, as described in Algorithm 1, and a diffusion policy is fit on those. The results are given in Table. Results of fine-tuning the PPO policies with the proposed method Success (%) Task PPO risky, % Fine-tuned (proposed), % Arm Manipulation 19 71 Bed Bathing 2 12 Drinking 10 56 Feeding 33 86 Arm Manipulation and Drinking PPO is trained for 1 million steps. Bed Bathing PPO is trained for 2 million steps (to get any reasonable policies). Feed- ing PPO is trained for 400k steps. Please note, in order to improve baseline and diffusion performance, episodes are terminated if success is achieved. Originally, termination only occurred when the number of steps exceeded a limit. It’s been found that this affects the method’s performance As one may observe, the resulting policy outperforms the underfit ones, but also performs as good or better than the long-trained PPO policy. Remarkably, this is achieved without any additional environment steps, just using the offline data. One may also sample those trajectories during the training of a baseline, thus removing the need to sample them afterward. The results that good could be explained by the properties of the modern imitation learning techniques, such as diffusion policy, used in this paper. It has Reducing risk for assistive reinforcement learning policies with diffusion models Системні дослідження та інформаційні технології, 2024, № 3 153 been observed, that these methods demonstrate interesting out-of-distribution generalizations [5]. It is also apparent, that the Bed Bathing benchmark though is improved, but still is not beaten. It is hypothesized, that this is due to a low diversity of the col- lected trajectories, insufficient to cover the entire distribution. In addition to generalization, it is hypothesized, that since the PPO itself bal- ances exploration and exploitation, this may prevent it from fast convergence on successful trajectories, continuously trying to look for other modalities. Another interesting observation is that when the PPO baseline is trained until full convergence using up to several million steps, it usually gets on-par perform- ance with the fine-tuned version. Although, on the Feeding benchmark fully con- verged PPO got an 87% success rate, while its fine-tuned version achieved 98%. But even without that, it’s still a much worse result than the fine-tuned approach, since it requires additional millions of time steps. CONCLUSION In this paper, a novel approach to reduce risk in assistive reinforcement learning policies using diffusion models is proposed. The proposed method leverages the strengths of both model-free reinforcement learning and imitation learning tech- niques based on diffusion models to improve policy robustness without additional interactions with the environment. The effectiveness of the proposed approach is demonstrated through experi- mental validation on various assistive robotics tasks simulated using Assistive Gym. By fine-tuning policies obtained from a baseline PPO algorithm with off- line data, significant improvements in success rates are achieved across different tasks. Importantly, the method outperformed risky policies generated directly by PPO. The results indicate the potential of diffusion-based imitation learning tech- niques in enhancing the safety and reliability of assistive robotics systems. Future work could explore additional refinements to the diffusion-based pol- icy fitting process and include re-exploration iteration for diffusion policies, to make the process iteratively switch between fine-tuning and exploration. REFERENCES 1. D.M. Taylor, “Americans with disabilities: 2014,” US Census Bureau, pp. 1–32, 2018. 2. J. Broekens et al., “Assistive social robots in elderly care: A review,” Gerontechnol- ogy, vol. 8, no. 2, pp. 94–103, 2009. 3. R. Ye et al., “Rcare world: A human-centric simulation world for care-giving ro- bots,” in 2022 IEEE/RSJ International Conference on Intel-ligent Robots and Sys- tems (IROS), IEEE, 2022, pp. 33–40. 4. J.Z.-Y. He, Z. Erickson, D.S. Brown, A. Raghunathan, and A. Dragan, “Learning representations that enable generalization in assistive tasks,” in Conference on Robot Learning, PMLR, 2023, pp. 2105–2114. 5. Z. Fu, T.Z. Zhao, and C. Finn, “Mobile aloha: Learning bimanual mobile manipula- tion with low-cost whole-body teleoperation,” arXiv preprint, 2024. doi: https://doi.org/10.48550/arXiv.2401.02117 6. J. Luo et al., “Serl: A software suite for sample-efficient robotic rein-forcement learning,” arXiv preprint, 2024. doi: https://doi.org/10.48550/arXiv.2401.16013 A. Tytarenko ISSN 1681–6048 System Research & Information Technologies, 2024, № 3 154 7. Z. Erickson, V. Gangaram, A. Kapusta, C.K. Liu, and C.C. Kemp, “Assistive gym: A physics simulation framework for assistive robotics,” in 2020 IEEE International Conference on Robotics and Automation (ICRA), IEEE, 2020, pp. 10 169–10 176. 8. J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint, 2017. doi: https://doi.org/10.48550/ arXiv.1707.06347 9. V. Mnih et al., “Asynchronous methods for deep reinforcement learn-ing,” in Inter- national Conference on Machine Learning, PMLR, 2016, pp. 1928–1937. 10. M. Welling and Y.W. Teh, “Bayesian learning via stochastic gradient langevin dy- namics,” in Proceedings of the 28th International Conference on Machine Learning (ICML-11), Citeseer, 2011, pp. 681–688. 11. S. Levine, “Reinforcement learning and control as probabilistic infer-ence: Tutorial and review,” arXiv preprint, 2018. doi: https://doi.org/10.48550/arXiv.1805.00909 12. C. Chi et al., “Diffusion policy: Visuomotor policy learning via action diffusion,” arXiv preprint, 2023. doi: https://doi.org/10.48550/arXiv.2303.04137 Received 05.02.2024 INFORMATION ON THE ARTICLE Andrii M. Tytarenko, ORCID: 0000-0002-8265-642X, Educational and Research Institute for Applied System Analysis of the National Technical University of Ukraine “Igor Sikorsky Kyiv Polytechnic Institute”, Ukraine, e-mail: titarenkoan@gmail.com ЗНИЖЕННЯ РИЗИКІВ СТРАТЕГІЙ НАВЧАННЯ З ПІДКРІПЛЕННЯМ ДЛЯ ДОГЛЯДУ ІЗ ДИФУЗІЙНИМИ МОДЕЛЯМИ / А.М. Титаренко Анотація. Допоміжна робототехніка для догляду, що розвивається завдяки до- сягненням штучного інтелекту, являє собою перспективу для вирішення зрос- таючого попиту на догляд, особливо в контексті збільшення кількості осіб, які його потребують. Ефективні та безпечні допоміжні пристрої могли б стати ко- рисними, особливо в контексті підвищеного попиту через травми, пов'язані з війною. Хоча вартість є бар'єром для доступності, технологічний прогрес може зробити їх більш доступними. Безпека є найважливішою проблемою, особливо з огляду на модельну складність взаємодії між роботами та людьми. Дослі- джено застосування навчання з підкріпленням та навчання імітацією для по- ліпшення процесу проєктування стратегій для асистентних роботів. Запропо- нований підхід допомагає зробити неробастні стратегії підвищеного ризику більш безпечними без додаткових взаємодій із середовищем. Шляхом експе- риментів у симульованих середовищах продемонстровано перевагу, яку цей підхід дає в поєднанні з традиційними методами навчання з підкріплленням у завданнях, пов'язаних з допоміжною робототехнікою. Ключові слова: допоміжна робототехніка, навчання з підкріпленням, дифу- зійні моделі, навчання імітацією.
id journaliasakpiua-article-315284
institution System research and information technologies
keywords_txt_mv keywords
language English
last_indexed 2025-07-17T10:28:37Z
publishDate 2024
publisher The National Technical University of Ukraine "Igor Sikorsky Kyiv Polytechnic Institute"
record_format ojs
resource_txt_mv journaliasakpiua/0c/54c4537f2c519da2e923b1fa858fc80c.pdf
spelling journaliasakpiua-article-3152842024-11-16T18:06:34Z Reducing risk for assistive reinforcement learning policies with diffusion models Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями Tytarenko, Andrii допоміжна робототехніка навчання з підкріпленням дифузійні моделі навчання імітацією assistive robotics reinforcement learning diffusion models imitation learning Care-giving and assistive robotics, driven by advancements in AI, offer promising solutions to meet the growing demand for care, particularly in the context of increasing numbers of individuals requiring assistance. It creates a pressing need for efficient and safe assistive devices, particularly in light of heightened demand due to war-related injuries. While cost has been a barrier to accessibility, technological progress can democratize these solutions. Safety remains a paramount concern, especially given the intricate interactions between assistive robots and humans. This study explores the application of reinforcement learning (RL) and imitation learning in improving policy design for assistive robots. The proposed approach makes the risky policies safer without additional environmental interactions. The enhancement of the conventional RL approaches in tasks related to assistive robotics is demonstrated through experimentation using simulated environments. Допоміжна робототехніка для догляду, що розвивається завдяки досягненням штучного інтелекту, являє собою перспективу для вирішення зростаючого попиту на догляд, особливо в контексті збільшення кількості осіб, які його потребують. Ефективні та безпечні допоміжні пристрої могли б стати корисними, особливо в контексті підвищеного попиту через травми, пов'язані з війною. Хоча вартість є бар'єром для доступності, технологічний прогрес може зробити їх більш доступними. Безпека є найважливішою проблемою, особливо з огляду на модельну складність взаємодії між роботами та людьми. Досліджено застосування навчання з підкріпленням та навчання імітацією для поліпшення процесу проєктування стратегій для асистентних роботів. Запропонований підхід допомагає зробити неробастні стратегії підвищеного ризику більш безпечними без додаткових взаємодій із середовищем. Шляхом експериментів у симульованих середовищах продемонстровано перевагу, яку цей підхід дає в поєднанні з традиційними методами навчання з підкріплленням у завданнях, пов'язаних з допоміжною робототехнікою. The National Technical University of Ukraine "Igor Sikorsky Kyiv Polytechnic Institute" 2024-09-28 Article Article Peer-reviewed Article application/pdf https://journal.iasa.kpi.ua/article/view/315284 10.20535/SRIT.2308-8893.2024.3.09 System research and information technologies; No. 3 (2024); 148-154 Системные исследования и информационные технологии; № 3 (2024); 148-154 Системні дослідження та інформаційні технології; № 3 (2024); 148-154 2308-8893 1681-6048 en https://journal.iasa.kpi.ua/article/view/315284/306098
spellingShingle допоміжна робототехніка
навчання з підкріпленням
дифузійні моделі
навчання імітацією
Tytarenko, Andrii
Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
title Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
title_alt Reducing risk for assistive reinforcement learning policies with diffusion models
title_full Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
title_fullStr Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
title_full_unstemmed Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
title_short Зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
title_sort зниження ризиків стратегій навчання з підкріпленням для догляду із дифузійними моделями
topic допоміжна робототехніка
навчання з підкріпленням
дифузійні моделі
навчання імітацією
topic_facet допоміжна робототехніка
навчання з підкріпленням
дифузійні моделі
навчання імітацією
assistive robotics
reinforcement learning
diffusion models
imitation learning
url https://journal.iasa.kpi.ua/article/view/315284
work_keys_str_mv AT tytarenkoandrii reducingriskforassistivereinforcementlearningpolicieswithdiffusionmodels
AT tytarenkoandrii znižennârizikívstrategíjnavčannâzpídkríplennâmdlâdoglâduízdifuzíjnimimodelâmi