DeepMind 提出安全框架,防止 AI 做出非預期的脫序行為

DeepMind 提出安全框架,防止 AI 做出非預期的脫序行為

News from: iThome & DeepMind Safety Research.

人工智慧系統追求效能最大化實現目標,就可能產生不安全的探索行為,例如安全框架中提出的強健性,是要保證家用清潔機器人,不會在學習最佳打掃策略時,把濕拖把放到插座上。

Web site: 

人工智慧技術的安全性逐漸受到重視,IBM剛開源了統計偏差修正框架Fairness Kit,以阻止種族歧視機器人產生。而今DeepMind提出人工智慧安全框架,防止人工智慧做出不可預期,甚至是有害人類的事情,必須要從規範(Specification)、強健性(Robustness)和保證(Assurance)三方面下手。



安全是人工智慧系統的關鍵要素之一,DeepMind提到,要保證人工智慧的安全性,必須要仔細從頭開始設計系統,以確保系統每個部分都按造預期協同工作,同時還需要對人工智慧進行監控,即時掌握系統運作狀況。人工智慧安全是一個新穎但發展快速的領域,研究範疇涵蓋高階應用、理論、經驗和實作,DeepMind的安全研究團隊專注設計可靠系統,並且發現可能出現的短期與長期風險,以規範、強健性和保證三個面向的框架來討論人工智慧的安全性。

規範用來定義人工智慧系統的用途,不良的規範可能使人工智慧做出符合規範但並非預期的結果。DeepMind舉了邁達斯國王的神話故事做為比喻,邁達斯向神要求自己要有點石成金的能力,所有接觸的東西都變成黃金,不過這樣的神力卻帶來災難,邁達斯碰到的水和食物瞬間都成為了黃金,不只進食困難,最後連自己的女兒都變成了黃金雕像。DeepMind表示,規範很重要可以用來陳述期望的結果,確保人工智慧按造設計者意願運作。

DeepMind提到規範分為三種,理想規範(Ideal Specification)或是稱為期望,是與人類設計者期望一致的理想人工智慧假設性描述。第二種是設計規範(Design Specification),相對於人類難以清晰表達的描述,設計規範是實際用於建構人工智慧系統的藍圖,像是增強學習系統中的獎勵功能。第三種則是展現規範(Revealed Specification),也就是人工智慧實際表現的行為,經常會與理想規範或是設計規範有差距。

當理想規範與展現規範存在差距,人工智慧系統未按照設計者希望的方式運作時,就會出現規範問題。DeepMind提到了OpenAI 賽艇遊戲CoastRunners的分析,對大多數人類來說,遊戲的目標是要快速的完成一圈賽道並超越其他玩家,但這個目標要轉化成精確的獎勵並不簡單,因此設計規範可能會讓快艇不停的撞擊路線中的障礙物。而如果是透過增強學習訓練代理人,則會重複繞圈撞擊和著火,以捕獲重新產生的獎勵品,而不是完成整個的比賽,DeepMind認為,這樣的結果是遊戲的短程獎勵和長期獎勵平衡出現問題,有許多人工智慧系統都像CoastRunners的遊戲代理人一樣,會從客觀的規範中找到漏洞。



在這個框架中的第二個面向是強健性,DeepMind指出,人工智慧系統必定存在風險、不可預測性和波動性,因此要具備對抗不可預測或是可能的故障,甚至是攻擊的強健性。強健性的目的,是要讓人工智慧代理無論遇到什麼情況,都能維持在安全的限制中活動。當系統追求效能最大化實現目標,就可能讓人工智慧產生不安全的探索行為,強健性設計是要保證家用清潔機器人不會在學習最佳打掃策略時,把濕拖把放到插座上。

如下圖所示,AI代理人(藍色區塊)必需能夠在改變熔炎(橘色區塊)的位置時,可以安全的抵達目的地(綠色區塊),而不是為了最快抵達目的地而直接衝向熔炎地帶。



雖然安全工程已經可以排除許多安全性風險,但是仍然難以在一開始就萬事就緒。因此需要框架的第三個面向保證,在部署人工智慧系統後,以工具來持續監控與調整。監控包含了檢查系統的所有方法,以人工進行摘要統計或是系統自動掃描大量的日誌,以分析或預測系統行為。另外,還必須要有關閉人工智慧系統的中斷機制,DeepMind表示,設計可靠的開關非常具有挑戰性。其引用的文獻顯示,獎勵最大化的系統通常具有強烈的動機防止中斷產生,而且中斷頻繁出現時,也可能會改變人工智慧的任務,導致從經驗取得錯誤的結論。

DeepMind正在打造一技術基礎,將能使用在許多重要應用程式中。DeepMind提醒,許多應用在設計時可能貪圖一時方便,輕忽安全的重要性,而這將可能導致一系列不可逆的結果,並且難以在系統沒有全部重新設計之下修復該問題,而當應用被廣泛運用時,產生的影響更是巨大。

-----------------------------------------------------------------------------------



Building a rocket is hard. Each component requires careful thought and rigorous testing, with safety and reliability at the core of the designs. Rocket scientists and engineers come together to design everything from the navigation course to control systems, engines and landing gear. Once all the pieces are assembled and the systems are tested, we can put astronauts on board with confidence that things will go well.
If artificial intelligence (AI) is a rocket, then we will all have tickets on board some day. And, as in rockets, safety is a crucial part of building AI systems. Guaranteeing safety requires carefully designing a system from the ground up to ensure the various components work together as intended, while developing all the instruments necessary to oversee the successful operation of the system after deployment.
At a high level, safety research at DeepMind focuses on designing systems that reliably function as intended while discovering and mitigating possible near-term and long-term risks. Technical AI safety is a relatively nascent but rapidly evolving field, with its contents ranging from high-level and theoretical to empirical and concrete. The goal of this blog is to contribute to the development of the field and encourage substantive engagement with the technical ideas discussed, and in doing so, advance our collective understanding of AI safety.
In this inaugural post, we discuss three areas of technical AI safety: specificationrobustness, and assurance. Future posts will broadly fit within the framework outlined here. While our views will inevitably evolve over time, we feel these three areas cover a sufficiently wide spectrum to provide a useful categorisation for ongoing and future research.

Specification: define the purpose of the system



You may be familiar with the story of King Midas and the golden touch. In one rendition, the Greek god Dionysus promised Midas any reward he wished for, as a sign of gratitude for the king having gone out of his way to show hospitality and graciousness to a friend of Dionysus. In response, Midas asked that anything he touched be turned into gold. He was overjoyed with this new power: an oak twig, a stone, and roses in the garden all turned to gold at his touch. But he soon discovered the folly of his wish: even food and drink turned to gold in his hands. In some versions of the story, even his daughter fell victim to the blessing that turned out to be a curse.
This story illustrates the problem of specification: how do we state what we want? The challenge of specification is to ensure that an AI system is incentivised to act in accordance with the designer’s true wishes, rather than optimising for a poorly-specified goal or the wrong goal altogether. Formally, we distinguish between three types of specifications:
  • ideal specification (the “wishes”), corresponding to the hypothetical (but hard to articulate) description of an ideal AI system that is fully aligned to the desires of the human operator;
  • design specification (the “blueprint”), corresponding to the specification that we actually use to build the AI system, e.g. the reward function that a reinforcement learning system maximises;
  • and revealed specification (the “behaviour”), which is the specification that best describes what actually happens, e.g. the reward function we can reverse-engineer from observing the system’s behaviour using, say, inverse reinforcement learning. This is typically different from the one provided by the human operator because AI systems are not perfect optimisers or because of other unforeseen consequences of the design specification.
specification problem arises when there is a mismatch between the ideal specification and the revealed specification, that is, when the AI system doesn’t do what we’d like it to do. Research into the specification problemof technical AI safety asks the question: how do we design more principled and general objective functions, and help agents figure out when goals are misspecified? Problems that create a mismatch between the ideal and design specifications are in the design subcategory above, while problems that create a mismatch between the design and revealed specifications are in the emergent subcategory.
For instance, in our AI Safety Gridworlds* paper, we gave agents a reward function to optimise, but then evaluated their actual behaviour on a “safety performance function” that was hidden from the agents. This setup models the distinction above: the safety performance function is the ideal specification, which was imperfectly articulated as a reward function (design specification), and then implemented by the agents producing a specification which is implicitly revealed through their resulting policy.
*N.B.: in our AI Safety Gridworlds paper, we provided a different definition of specification and robustness problems from the one presented in this post.
From Faulty Reward Functions in the Wild by OpenAI: a reinforcement learning agent discovers an unintended strategy for achieving a higher score.
As another example, consider the boat-racing game CoastRunners analysed by our colleagues at OpenAI (see Figure above from “Faulty Reward Functions in the Wild”). For most of us, the game’s goal is to finish a lap quickly and ahead of other players — this is our ideal specification. However, translating this goal into a precise reward function is difficult, so instead, CoastRunners rewards players (design specification) for hitting targets laid out along the route. Training an agent to play the game via reinforcement learning leads to a surprising behaviour: the agent drives the boat in circles to capture re-populating targets while repeatedly crashing and catching fire rather than finishing the race. From this behaviour we infer (revealed specification) that something is wrong with the game’s balance between the short-circuit’s rewards and the full lap rewards. There are many more examples like this of AI systems finding loopholes in their objective specification.

Robustness: design the system to withstand perturbations



There is an inherent level of risk, unpredictability, and volatility in real-world settings where AI systems operate. AI systems must be robust to unforeseen events and adversarial attacks that can damage or manipulate such systems.Research on the robustness of AI systems focuses on ensuring that our agents stay within safe limits, regardless of the conditions encountered. This can be achieved by avoiding risks (prevention) or by self-stabilisation and graceful degradation (recovery). Safety problems resulting from distributional shiftadversarial inputs, and unsafe exploration can be classified as robustness problems.
To illustrate the challenge of addressing distributional shift, consider a household cleaning robot that typically cleans a petless home. The robot is then deployed to clean a pet-friendly office, and encounters a pet during its cleaning operation. The robot, never having seen a pet before, proceeds to wash the pets with soap, leading to undesirable outcomes (Amodei and Olah et al., 2016). This is an example of a robustness problem that can result when the data distribution encountered at test time shifts from the distribution encountered during training.
From AI Safety Gridworlds. During training the agent learns to avoid the lava; but when we test it in a new situation where the location of the lava has changed, it fails to generalise and runs straight into the lava.
Adversarial inputs are a specific case of distributional shift where inputs to an AI system are designed to trick the system through the use of specially designed inputs.
Unsafe exploration can result from a system that seeks to maximise its performance and attain goals without having safety guarantees that will not be violated during exploration, as it learns and explores in its environment. An example would be the household cleaning robot putting a wet mop in an electrical outlet while learning optimal mopping strategies (García and Fernández, 2015Amodei and Olah et al., 2016).

Assurance: monitor and control system activity



Although careful safety engineering can rule out many safety risks, it is difficult to get everything right from the start. Once AI systems are deployed, we need tools to continuously monitor and adjust them. Our last category, assurance, addresses these problems from two angles: monitoring and enforcing.
Monitoring comprises all the methods for inspecting systems in order to analyse and predict their behaviour, both via human inspection (of summary statistics) and automated inspection (to sweep through vast amounts of activity records). Enforcement, on the other hand, involves designing mechanisms for controlling and restricting the behaviour of systems. Problems such as interpretability and interruptibility fall under monitoring and enforcement respectively.
AI systems are unlike us, both in their embodiments and in their way of processing data. This creates problems of interpretability; well-designed measurement tools and protocols allow the assessment of the quality of the decisions made by an AI system (Doshi-Velez and Kim, 2017). For instance, a medical AI system would ideally issue a diagnosis together with an explanation of how it reached the conclusion, so that doctors can inspect the reasoning process before approval (De Fauw et al., 2018). Furthermore, to understand more complex AI systems we might even employ automated methods for constructing models of behaviour using Machine theory of mind (Rabinowitz et al., 2018).
Finally, we want to be able to turn off an AI system whenever necessary. This is the problem of interruptibility. Designing a reliable off-switch is very challenging: for instance, because a reward-maximising AI system typically has strong incentives to prevent this from happening (Hadfield-Menell et al., 2017); and because such interruptions, especially when they are frequent, end up changing the original task, leading the AI system to draw the wrong conclusions from experience (Orseau and Armstrong, 2016).

Looking ahead


We are building the foundations of a technology which will be used for many important applications in the future. It is worth bearing in mind that design decisions which are not safety-critical at the time of deployment can still have a large impact when the technology becomes widely used. Although convenient at the time, once these design choices have been irreversibly integrated into important systems the tradeoffs look different, and we may find they cause problems that are hard to fix without a complete redesign.
Two examples from the development of programming include the null pointer — which Tony Hoare refers to as his ‘billion-dollar mistake’- and the gets() routine in C. If early programming languages had been designed with security in mind, progress might have been slower but computer security today would probably be in a much stronger position.
With careful thought and planning now, we can avoid building in analogous problems and vulnerabilities. We hope the categorisation outlined in this post will serve as a useful framework for methodically planning in this way. Our intention is to ensure that AI systems of the future are not just ‘hopefully safe’ but robustly, verifiably safe — because we built them that way!
We look forward to continuing to make exciting progress in these areas, in close collaboration with the broader AI research community, and we encourage individuals across disciplines to consider entering or contributing to the field of AI safety research.

If you are interested in working with us on the research areas outlined in this post, we are hiring! Please check our open roles at https://deepmind.com/careers/ and note your interest in AI safety when you apply. We would love to hear from talented researchers and non-researchers alike.


Resources

For related reading, below is a collection of other articles, agendas, or taxonomies that have informed our thinking or present a helpful alternative view on problem framing for technical AI safety:




留言

熱門文章