In this paper, we consider the important problem of safe exploration in reinforcement learning. While reinforcement learning is well-suited to domains with complex transition dynamics and high-dimensional state-action spaces, an additional challenge is posed by the need for safe and efficient exploration. Traditional exploration techniques are not particularly useful for solving dangerous tasks, where the trial and error process may lead to the selection of actions whose execution in some states may result in damage to the learning system (or any other system). Consequently, when an agent begins an interaction with a dangerous and high-dimensional state-action space, an important question arises; namely, that of how to avoid (or at least minimize) damage caused by the exploration of the state-action space. We introduce the PI-SRL algorithm which safely improves suboptimal albeit robust behaviors for continuous state and action control tasks and which efficiently learns from the experience gained from the environment. We evaluate the proposed method in four complex tasks: automatic car parking, pole-balancing, helicopter hovering, and business management.
Rapid progress in machine learning and artificial intelligence (AI) has brought increasing attention to the potential impacts of AI technologies on society. In this paper we discuss one such potential impact: the problem of accidents in machine learning systems, defined as unintended and harmful behavior that may emerge from poor design of real-world AI systems. We present a list of five practical research problems related to accident risk, categorized according to whether the problem originates from having the wrong objective function ("avoiding side effects" and "avoiding reward hacking"), an objective function that is too expensive to evaluate frequently ("scalable supervision"), or undesirable behavior during the learning process ("safe exploration" and "distributional shift"). We review previous work in these areas as well as suggesting research directions with a focus on relevance to cutting-edge AI systems. Finally, we consider the high-level question of how to think most productively about the safety of forward-looking applications of AI.
In classical reinforcement learning, when exploring an environment, agents accept arbitrary short term loss for long term gain. This is infeasible for safety critical applications, such as robotics, where even a single unsafe action may cause system failure. In this paper, we address the problem of safely exploring finite Markov decision processes (MDP). We define safety in terms of an, a priori unknown, safety constraint that depends on states and actions. We aim to explore the MDP under this constraint, assuming that the unknown function satisfies regularity conditions expressed via a Gaussian process prior. We develop a novel algorithm for this task and prove that it is able to completely explore the safely reachable part of the MDP without violating the safety constraint. To achieve this, it cautiously explores safe states and actions in order to gain statistical confidence about the safety of unvisited state-action pairs from noisy observations collected while navigating the environment. Moreover, the algorithm explicitly considers reachability when exploring the MDP, ensuring that it does not get stuck in any state with no safe way out. We demonstrate our method on digital terrain models for the task of exploring an unknown map with a rover.
Reinforcement learning is a proven technique for an agent to learn a task. However, when learning a task using reinforcement learning, the agent cannot distinguish the characteristics of the environment from those of the task. This makes it harder to transfer skills between tasks in the same environment. Furthermore, this does not reduce risk when training for a new task. In this paper, we introduce an approach to decouple the environment characteristics from the task-specific ones, allowing an agent to develop a sense of survival. We evaluate our approach in an environment where an agent must learn a sequence of collection tasks, and show that decoupled learning allows for a safer utilization of prior knowledge.
We present a suite of reinforcement learning environments illustrating various safety properties of intelligent agents. These problems include safe interruptibility, avoiding side effects, absent supervisor, reward gaming, safe exploration, as well as robustness to self-modification, distributional shift, and adversaries. To measure compliance with the intended safe behavior, we equip each environment with a performance function that is hidden from the agent. This allows us to categorize AI safety problems into robustness and specification problems, depending on whether the performance function corresponds to the observed reward function. We evaluate A2C and Rainbow, two recent deep reinforcement learning agents, on our environments and show that they are not able to solve them satisfactorily.
Safely exploring an unknown dynamical system is critical to the deployment of reinforcement learning (RL) in physical systems where failures may have catastrophic consequences. In scenarios where one knows little about the dynamics, diverse transition data covering relevant regions of state-action space is needed to apply either model-based or model-free RL. Motivated by the cooling of Google's data centers, we study how one can safely identify the parameters of a system model with a desired accuracy and confidence level. In particular, we focus on learning an unknown linear system with Gaussian noise assuming only that, initially, a nominal safe action is known. Define safety as satisfying specific linear constraints on the state space (e.g., requirements on process variable) that must hold over the span of an entire trajectory, and given a Probably Approximately Correct (PAC) style bound on the estimation error of model parameters, we show how to compute safe regions of action space by gradually growing a ball around the nominal safe action. One can apply any exploration strategy where actions are chosen from such safe regions. Experiments on a stylized model of data center cooling dynamics show how computing proper safe regions can increase the sample efficiency of safe exploration.
We address the problem of deploying a reinforcement learning (RL) agent on a physical system such as a datacenter cooling unit or robot, where critical constraints must never be violated. We show how to exploit the typically smooth dynamics of these systems and enable RL algorithms to never violate constraints during learning. Our technique is to directly add to the policy a safety layer that analytically solves an action correction formulation per each state. The novelty of obtaining an elegant closed-form solution is attained due to a linearized model, learned on past trajectories consisting of arbitrary actions. This is to mimic the real-world circumstances where data logs were generated with a behavior policy that is implausible to describe mathematically; such cases render the known safety-aware off-policy methods inapplicable. We demonstrate the efficacy of our approach on new representative physics-based environments, and prevail where reward shaping fails by maintaining zero constraint violations.
Learning-based methods have been successful in solving complex control tasks without significant prior knowledge about the system. However, these methods typically do not provide any safety guarantees, which prevents their use in safety-critical, real-world applications. In this paper, we present a learning-based model predictive control scheme that can provide provable high-probability safety guarantees. To this end, we exploit regularity assumptions on the dynamics in terms of a Gaussian process prior to construct provably accurate confidence intervals on predicted trajectories. Unlike previous approaches, we do not assume that model uncertainties are independent. Based on these predictions, we guarantee that trajectories satisfy safety constraints. Moreover, we use a terminal set constraint to recursively guarantee the existence of safe control actions at every iteration. In our experiments, we show that the resulting algorithm can be used to safely and efficiently explore and learn about dynamic systems.
We show that when a third party, the adversary, steps into the two-party setting (agent and operator) of safely interruptible reinforcement learning, a trade-off has to be made between the probability of following the optimal policy in the limit, and the probability of escaping a dangerous situation created by the adversary. So far, the work on safely interruptible agents has assumed a perfect perception of the agent about its environment (no adversary), and therefore implicitly set the second probability to zero, by explicitly seeking a value of one for the first probability. We show that (1) agents can be made both interruptible and adversary-resilient, and (2) the interruptibility can be made safe in the sense that the agent itself will not seek to avoid it. We also solve the problem that arises when the agent does not go completely greedy, i.e. issues with safe exploration in the limit. Resilience to perturbed perception, safe exploration in the limit, and safe interruptibility are the three pillars of what we call \emph{virtuously safe reinforcement learning}.
In this paper, we study the problem of safe online learning to re-rank, where user feedback is used to improve the quality of displayed lists. Learning to rank has traditionally been studied in two settings. In the offline setting, rankers are typically learned from relevance labels created by judges. This approach has generally become standard in industrial applications of ranking, such as search. However, this approach lacks exploration and thus is limited by the information content of the offline training data. In the online setting, an algorithm can experiment with lists and learn from feedback on them in a sequential fashion. Bandit algorithms are well-suited for this setting but they tend to learn user preferences from scratch, which results in a high initial cost of exploration. This poses an additional challenge of safe exploration in ranked lists. We propose BubbleRank, a bandit algorithm for safe re-ranking that combines the strengths of both the offline and online settings. The algorithm starts with an initial base list and improves it online by gradually exchanging higher-ranked less attractive items for lower-ranked more attractive items. We prove an upper bound on the n-step regret of BubbleRank that degrades gracefully with the quality of the initial base list. Our theoretical findings are supported by extensive experiments on a large-scale real-world click dataset.
안전한 참조 정책의 데이터를 활용한 컨포멀 보정(conformal calibration)으로 최적화된 미검증 정책의 가능-행동 범위를 확률적으로 조절하는 Conformal Policy Control(CPC)을 제안하며, 비단조 유계 손실 함수에 대한 유한 샘플 보장을 이론적으로 증명한다. 의료 질의응답, 능동 학습, 생체분자 서열 최적화 실험에서 배포 첫 순간부터 안전한 탐험(safe exploration)이 가능할 뿐 아니라 성능 향상에도 기여함을 실증한다.
유능한 가정용 및 산업용 로봇을 구축하려면 이동 조작기(mobile manipulator)와 같은 다목적 고자유도(DoF) 시스템의 제어를 숙달해야 한다. 강화학습(RL)은 로봇 제어 정책을 자율적으로 습득하는 데 유망하지만, 고자유도 형태(embodiment)로 확장하는 것은 여전히 어렵다. 실세계에서의 직접 강화학습은 안전한 탐험과 높은 샘플 효율성을 모두 요구하며, 이는 실무에서 달성하기 어렵다. 반면 sim-to-real 강화학습은 현실 격차(reality gap)로 인해 종종 취약하다. 본 논문은 SLAC을 제안한다. 이 방법은 저충실도 시뮬레이터를 활용해 과제 무관(task-agnostic) 잠재 행동 공간(latent action space)을 사전학습하여 복잡한 형태에 대해 실세계 강화학습을 실현 가능하게 한다. SLAC은 시간적 추상화(temporal abstraction), 분리(disentanglement), 안전성(safety)을 촉진하도록 설계된 맞춤형 비지도 기술 발견(skill discovery) 방법을 통해 이 잠재 행동 공간을 학습하며, 이를 통해 효율적인 하위 과제 학습(downstream learning)을 용이하게 한다. 잠재 행동 공간이 학습되면, SLAC은 이를 새로운 오프-정책(off-policy) 강화학습 알고리즘의 행동 인터페이스로 사용하여 실세계 상호작용을 통해 하위 과제를 자율적으로 학습한다. 우리는 양손 이동 조작 과제 모음에서 SLAC을 기존 방법들과 비교 평가했으며, 최첨단(state-of-the-art) 성능을 달성했다. 특히 SLAC은 시연(demonstration)이나 수작업으로 설계된 행동 사전지식(behavior prior) 없이도 1시간 미만의 실세계 상호작용만으로 접촉이 풍부한 전신(whole-body) 과제를 학습한다. 추가 정보 및 로봇 영상: robo-rl.github.io
오늘날 대규모 언어 모델(LLM) 에이전트는 곤란한 딜레마에 처해 있다. 정적 안전 지침으로 제한하면 명백한 범위를 거의 벗어나지 못하고, 도구와 다중 에이전트 토론에서 자유를 부여하면 안전 위반이 빠르게 뒤따른다. 단일 모델이 창의성과 신중함을 동시에 처리하도록 강요하는 대신, 우리는 특화된 역할별로 관심사를 분리한다. Disrupter는 비관습적인 제안을 생성하고, Validator는 도구 게이트웨이에서 엄격한 런타임 검사를 수행하며, Broker는 멀지만 관련성 있는 유추를 끌어온다. 실패는 폐기되지 않고, MCTS를 통해 Scars라 부르는 소형의 서명된 제약 패치로 컴파일된다. 이 패치는 로컬에 캐시되어 미래 코호트에 상속되며, 반복된 실패를 재사용 가능한 저비용 런타임 제약으로 전환한다. 공간-의미 샌드박스(N=20회 실행, p<0.01)에서, 우리의 코호트는 토론이 실패하는 원격 목표에 도달하고, Validator는 실행된 모든 위반을 방지하며, Scars는 중복된 검증기 검사를 피함으로써 토큰 소비를 15.1% 줄인다. 또한 신용 기반 통신 할당 점수(CAS)는 아웃바운드 대역폭을 제한하여, 자원 제약 하에서 전체 토큰 비용을 55.9% 절감한다.
본 연구는 강화학습에서 에이전트가 누적 성능을 최대화하는 동시에 안전 제약을 만족해야 하는 안전 탐험 문제를 조사한다. 이 과제는 장기(horizon) 작업에서 더욱 두드러지며, 기존 안전 방법들은 누적 추정 오류와 제한적인 탐험 능력으로 인해 근본적인 한계에 직면한다. 이 문제를 해결하기 위해, 본 논문은 학습 가능한 세계 모델(world model)과 두 개의 상호 보완적 정책—고수준 정책과 저수준 정책—을 결합하여 계층적 수준 모두에서 안전성을 높이는 방법을 제안한다. 고수준 정책은 탐험을 안전한 영역으로 바이어스하기 위한 중간 부분 목표(subgoal)를 생성하고, 저수준 정책은 학습된 세계 모델에서 상상된 롤아웃(imagined rollout)을 사용하여 이러한 부분 목표에 도달할 때 불안전한 행동을 줄인다. 제안 방법은 고차원 행동 공간을 가진 도전적인 장기 내비게이션 및 조작 작업에서 평가되었으며, 성공률과 강한 경험적 제약 만족 모두에서 기존 안전 강화학습(Safe RL) 베이스라인을 크게 뛰어넘었다. 시드 전반에서 지정된 안전 예산을 일관되게 충족한 반면, 기존 접근법은 이러한 복잡한 장기 시나리오를 효과적으로 해결하지 못했다.