Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-1 The.

Slides:



Advertisements
Similar presentations
Requirements gathering
Advertisements

Introducing Formal Methods, Module 1, Version 1.1, Oct., Formal Specification and Analytical Verification L 5.
Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
Chapter 4 Design Approaches and Methods
Understanding the Research Process
Variance reduction techniques. 2 Introduction Simulation models should be coded such that they are efficient. Efficiency in terms of programming ensures.
Project management Project manager must;
ISBN Chapter 3 Describing Syntax and Semantics.
Formal Methods in Software Engineering Credit Hours: 3+0 By: Qaisar Javaid Assistant Professor Formal Methods in Software Engineering1.
Chapter 19 Confidence Intervals for Proportions.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
NaLIX: A Generic Natural Language Search Environment for XML Data Presented by: Erik Mathisen 02/12/2008.
Chapter 2: Algorithm Discovery and Design
Four Dark Corners of Requirements Engineering
Software Requirements
1 Validation and Verification of Simulation Models.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Overview of Software Requirements
Developing Ideas for Research and Evaluating Theories of Behavior
Describing Syntax and Semantics
School of Computer ScienceG53FSP Formal Specification1 Dr. Rong Qu Introduction to Formal Specification
Beyond the design stance, AgentLink MSEA/ABSS SIG meeting, Barcelona 2003, slide-1 Beyond the Design Stance - losing some control.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
On Roles of Models in Information Systems (Arne Sølvberg) Gustavo Carvalho 26 de Agosto de 2010.
RSBM Business School Research in the real world: the users dilemma Dr Gill Green.
The Linguistic Turn To what extent is knowledge in the use of language rather than what language is about? MRes Philosophy of Knowledge: Day 2 - Session.
Determining Sample Size
Thinking Actively in a Social Context T A S C.
Theory testing Part of what differentiates science from non-science is the process of theory testing. When a theory has been articulated carefully, it.
How to conduct good investigation in social sciences Albu Iulian Alexandru.
CSE 303 – Software Design and Architecture
1 Software testing. 2 Testing Objectives Testing is a process of executing a program with the intent of finding an error. A good test case is in that.
Nursing Research Prof. Nawal A. Fouad (5) March 2007.
Using the Experimental Method to Produce Reliable Self-Organised Systems, B. Edmonds, ESOA 2004, New York, July 2004, slide-1 Using.
MODULE 3 INVESTIGATING HUMAN AND SOCIL DEVELOPMENT IN THE CARIBBEAN.
1 Issues in Assessment in Higher Education: Science Higher Education Forum on Scientific Competencies Medellin-Colombia Nov 2-4, 2005 Dr Hans Wagemaker.
Proof Carrying Code Zhiwei Lin. Outline Proof-Carrying Code The Design and Implementation of a Certifying Compiler A Proof – Carrying Code Architecture.
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
Overview of Formal Methods. Topics Introduction and terminology FM and Software Engineering Applications of FM Propositional and Predicate Logic Program.
Disclosure risk when responding to queries with deterministic guarantees Krish Muralidhar University of Kentucky Rathindra Sarathy Oklahoma State University.
Formal Models in AGI Research Pei Wang Temple University Philadelphia, USA.
Verification and Validation in the Context of Domain-Specific Modelling Janne Merilinna.
Hypotheses tests for means
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Developing and Evaluating Theories of Behavior.
Course Overview and Road Map Computability and Logic.
Requirements Engineering Methods for Requirements Engineering Lecture-30.
METODE PENELITIAN AKUNTANSI. Tugas Tugas Telaah Tugas Riset.
Model to Model Workshop, EHESS, Grequam/CNRS, Marseille 2003, slide-1 Model  Model Workshop - relating simulation models At EHESS,
FDT Foil no 1 On Methodology from Domain to System Descriptions by Rolv Bræk NTNU Workshop on Philosophy and Applicablitiy of Formal Languages Geneve 15.
Uncertainty Management in Rule-based Expert Systems
Question paper 1997.
Scientific Debugging. Errors in Software Errors are unexpected behaviors or outputs in programs As long as software is developed by humans, it will contain.
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Bruce Edmonds, Centre for Policy Modelling 1 of 57 Supporting Social Simulation Physics vs. Biology Paradigms CPM’s approach to Social Simulation How SDML.
Software Engineering1  Verification: The software should conform to its specification  Validation: The software should do what the user really requires.
ABRA Week 3 research design, methods… SS. Research Design and Method.
WHAT IS RESEARCH? According to Redman and Morry,
Projection and the Reality of Routines – reflections of a computational modeller Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University.
The inference and accuracy We learned how to estimate the probability that the percentage of some subjects in the sample would be in a given interval by.
Copyright 1999 G.v. Bochmann ELG 7186C ch.1 1 Course Notes ELG 7186C Formal Methods for the Development of Real-Time System Applications Gregor v. Bochmann.
Verification vs. Validation Verification: "Are we building the product right?" The software should conform to its specification.The software should conform.
CS223: Software Engineering Lecture 25: Software Testing.
Great Theoretical Ideas in Computer Science
Introduction Artificial Intelligent.
Developing and Evaluating Theories of Behavior
Software life cycle models
Pest Risk Analysis (PRA) Stage 2: Pest Risk Assessment
Overview Functional Testing Boundary Value Testing (BVT)
Presentation transcript:

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-1 The Insufficiency of Formal Design Methods - the necessity of an experimental approach for the understanding and control of complex MAS Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University Joanna Bryson Department of Computer Science, University of Bath

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-2 Main Themes The need for a shift of emphasis: –From verification towards validation –From the “10%” towards the “90%” (in the adage) –From engineering (of new systems) to adaptation (of existing systems) This goes against implicit assumptions (in SE): –Design/engineering is “better” than testing/adaptation –Computational systems are deterministic (in reality) –Since (aspects of) software systems can be represented as formal objects that formalist approaches will be able to deliver (increased) reliability Whilst this shift may be resistible with single, closed systems it will be unavoidable with MAS

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-3 Outline of the talk 1.Some formal limitations to formal approaches (why a “Hilbert Programme” for MAS won’t work) 2.Software production strategies (the primary SE goal and strategies to get there) 3.A more “Scientific” approach for SE (utilising the classic experimental method)

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-4 Part 1: Some Formal Limitations of Formal Methods - how simple MAS can be and it still be impossible to bridge the specification  program gap

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-5 Formal Approach Idea is to write specifications in a formal language Often of a logical or set-theoretic nature Two undisputed advantages: 1.Specification is unambiguous and concise 2.Specifications can be syntactically manipulated (as in proofs, checkers etc.) Is thus a sort of lingua franca for software engineers As with any language, there are difficulties that arise when attempting to translate to and from it To it (from the informal) - the “requirements problem” From it (to programs) - the “problems” that follow

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-6 The Programming Problem Posed SxSx A given formal specification PyPy Any program that satisfies S x A translating program? T Is there a general, effective or systematic method of finding a program that satisfies a given specification?

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-7 The Programming Problem Answered No, if the language of specification is expressive enough SxSx A given formal specification PyPy Any program that satisfies S x A translating program? T

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-8 The Checking Problem Posed SxSx A given formal specification PyPy A given program A checking program? T Is there a general, effective or systematic method of checking whether a given program satisfies a given specification?

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-9 The Checking Problem Answered SxSx A given formal specification PyPy A given program A checking program? T No, if the language of specification is expressive enough

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-10 What “expressive enough” means E.g. Those that are able to express basic arithmetic statements about the behaviour of programs That is, able to express statements such as: –Output of program P x is always < 100 –Program P x will not finish before time 1000 –Output of P x is always greater than P y –Output of P x is a approximates that of P y (±10%) (There are other ways such expressiveness can be established: 2-place predicates etc.) Thus in SE terms “expressive enough” is, in fact, the minimum necessary for almost all real systems

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-11 Proof Sketch (programming problem answer) Define the “n th limited halting problem”, LH n (x,y), as: Does P x ever halt with input y where both x,y  n? Each LH n (x,y) is computable as a finite lookup table LH n (x,y) is effectively expressible in a language with arithmetic via the construction in (Gödel 1933) as SH m - that is, m here is computable from n Now if there were a translating program, T, then: given x and y; let z=max(x,y); compute SH z ; use T to find a program to compute LH z (x,y) from SH m ; and use this to find whether P x (y) halts; but this is impossible (Turing 1936).

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-12 An example: how “simple” a MAS can be and still be beyond formal methods Giving Agent System with Plans (GASP) Fixed number of agents: A 1, A 2, …A n Each agent, A x, has –a single store, S x –a fixed number of plans: P x1, P x2, … Each Plan, P xy, is composed of instructions: –A fixed number of “give one to …” –And one final test instruction: If S i is zero then do plan j next, otherwise plan k next Each time click, all do: get 1 unit; use current plan to: [do giving (while they have); do test instruction; note next plan].

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-13 An illustration of a GASP system Plan 1: G 3 G 2 JZ 2,1,3 Plan 2: JZ 1,2,3 Plan 3: G 2 JZ 2,3,3 Agent Agent Agent 3 Etc. Check if zero 4 27 Store:

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-14 Facts about GASP systems They are Turing Complete (see paper for proof outline), hence: …many questions about their behaviour are (in general) undecidable even when given their program In particular, a specification adequate to specifying the behaviour of GASP systems will need basic arithmetic and so… …the previous results about the (difficulties of the) relationship between an adequate specification language and systems hold

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-15 Part 2: Software Production Strategies - Specification and Design Strategies and their problems

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-16 Goals and Strategies for engineering computational (IT) systems To produce IT systems that work well in practice when working in their operational context One particular strategy to achieve this is the “formal design strategy” (FDS), summarised as: 1.Agree the goals for the system; 2.Write a specification that would meet these goals; 3.Implement a system that meets this specification. Works well for relatively simple, closed, static and analysable cases FDS is obviously a “straw man” but consistent with much rhetoric in MAS and true to the extent that there is an over-emphasis on these stages

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-17 Some (well known) causes of problems with the FDS Context of operation is (at least partially) unknown to designers Good in practice operation requires meaningful, complex and abstract goals, Thus, either one has a: High-level specification, in which case you can’t guarantee that the system works according to its specification A Low-level specification in which case you can’t guarantee that the specification achieves the goals Or many staged levels of specification with many chances for errors due to repeated translation

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-18 Some kinds of complexity Syntactic Complexity –When the computational ‘distance’ between initial conditions and outcomes is too great to be analytically bridgeable  There are different views of a system Semantic Complexity –When any formal representation is necessarily incomplete  Models are context-dependent  You probably need many of them

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-19 Inseparable system embedding When the particular system is embedded into a wider system such that… the wider system can not be separated from the particular system to aid analysis… without changing the behaviour of both particular system and the wider system,… so that off-line analysis and design is difficult and ineffective. When “particular system” = agent (i.e. MAS), such embedding can emerge in a wide variety of kinds of systems and environment making off-line and formal design strategies inappropriate

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-20 Engineered Agent Approach  Beliefs, intentions, etc.  Automatic verification  Ontologies, protocols  Agents, groups, teams  Logics  Roles  Deferred decision making  Testing, model checking Adaptive Approach  Actor  Simulation  Agents, groups, societies  Social&biological analogies  Duplication, competition  Social&individual learning  Post hoc exploration/experimentation Some (well known) software production strategies Abstraction Automation Standardisation Modularity Formalisation Transparency Redundancy Adaptivity Testing

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-21 Why such over-emphasis on (the rhetoric of) formal design strategies? Some guesses: Illusion that computational systems are deterministic at macro level in practice because they are in theory at micro level Blame is contained to specification  system production stages, and hence substantially defrayed from designer to user Fixed goals suit management, external consultants and academics Used to dealing with simple, closed systems Engineering is seen as “better” than adaptation

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-22 Part 3: An Experimental Approach - an alternative for messy systems and situations

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-23 What if the properties of most MAS are messy - more like Biology than Logic? Lots of kinds of agents, teams, trust, communication forms, etc. Lots of observation and exploration before any abstraction into theory possible A priori foundationalist studies based on plausibility probably worse than useless Success coming more from: what works in context, reliability, and adaptation to the unexpected And less from: abstraction, modularity and formal analysis

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-24 The Classic Experimental Method Theory developed empirically (not a priori) Applied using well-validated processes and tools How the theory can be applied using what approximations is empirically established The conditions under which a theory can be safely applied (and how) developed over time Useful properties can only be deduced after theory has been validated Has worked in messy systems (in science) where there is little that can be completely generalised

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-25 What this might give us… Explicit, relevant and testable models/hypotheses concerning the properties of certain MAS With sets of conditions under which it has survived trials/testing (and the extent of success) Also a set of situations where the hypotheses failed, to indicate the limits of its applicability Giving confidence and guidance to those who wish to use these systems From which inferences can be made A scientific basis on which to build sound engineering practices (e.g. systematisation)

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-26 E.g. Engineering a bridge Use of well-validated general designs and strategies (e.g. arches, columns, suspension) Multiple approximate calculations (maximum stress, weight, compression) Use of well-validated components or components made using well-validated techniques (e.g. standard girders or cable) Simulations of the set-up (e.g. oscillations) …still the unexpected may occur - no illusion that design proof can be used on whole systems to achieve reliability

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-27 A Comparison of Approaches (at present time) Formal/Inferential Precise criteria for success Well-developed methodology/tools Taken from formal sciences Limited applicability For Small components As a check with simplified models Inductive/Experimental Weak criteria of success Methodology/tools need improving From natural sciences Wide applicability On real systems No certainty An eternal task

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-28 Strengthening the whole chain of inference about MAS Target MAS Formal or Computational Model Adjustable aspect (AA) Observable outcome (OO) Setting or set-up Inference or results It is the strength of the whole chain from AA to OO that matters Strengthening the inference stage is counterproductive if this weakens the whole chain

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-29 Some practical steps… Change the rhetoric and expectations of AOSE Import well-tried testing techniques from other sciences, e.g. [Bryson, Lowe & Stein 2000] Independently replicating simulation experiments [Axtel et. al. 1996, Edmonds & Hales 2003] Extend the open source model to include hypotheses, test results etc. [Edmonds 2004] Develop experimental experience and methodology [MABS, MAMABS, ESOA, JASSS] Tools for analysis of MAS [Barber & Lam 2004] Show how this approach can help achieve robust engineering [Hales & Edmonds 2004]

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-30 Conclusion –for messy MAS and MAS environments we am suggesting… a move away from a foundationalist approach towards a more empiricist approach… with less emphasis on prior verification and more on post hoc validation… where reliability is sought from experimentally tested theories of system behaviour… (formalisation entering once there is such theory) which may entail a loss of theoretical certainty… but offers greater potential for adaptation and hence in practice performance, including some robustness in uncertain and complex situations

Edmonds & Bryson, The Insufficiency of Formal Design Methods - the necessity of an experimental approach, AAMAS 2004, cfpm.org/papers/ifdm slide-31 The End Bruce Edmonds bruce.edmonds.name Joanna Bryson