A Heuristic Programming Study of Theory Formation in Science
Proceedings of the Second International Joint Conference on Artificial Intelligence. Pages 40-49.
© 1971 International Joint Conferences on Artificial Intelligence
Abstract
The Meta-DENDRAL program is a vehicle for studying problems of theory formation in science. The general strategy of Meta-DENDRAL is to reason from data to plausible generalizations and then to organize the generalizations into a unified theory. Three main subproblems are discussed: {1) explain the experimental data for each individual chemical structure, (2) generalize the results from each structure to all structures, and {3) organize the generalizations into a unified theory. The program is built upon the concepts and programmed routines already available in the Heuristic DENDRAL performance program, but goes beyond the performance program in attempting to formulate the theory which the performance program will use.
- B.G. Buchanan and J . Lederberg, "The Heuristic DENDRAL Program for Explaining Empirical Data". In Proceedings of the IFIP-71 Congress (in press). (Also Stanford Artificial Intelligence Project Memo No. 141, April, 1971.)
- C.W. Churchman and B.G. Buchanan, "On the Design of Inductive Systems: Some Philosophical Problems". British Journal for the Philosophy of Science, 20 (1969), pp. 311-323.
- J . Lederberg, G.L. Sutherland, B.G. Buchanan, and E .A. Feigenbaum , "A He uris tic Program for Solving a Scientific Inference Problem: Summary of Motivation and Implementation". In Theoretical Approaches to Non-Numerical Problem Solving (R. Banerji and M.D. Mesarovic, eds.) Springer-Verlag, New York (1970). (Also Stan- ford Artificial Intelligence Project Memo No. 104, November, 1969.)
- P.B. Medewar, Induction and Intuition in Scientific Thought. American Philosophical Society, Philadelphia (1969).
- A. Newell, ''Limitations of the Current Stock of Ideas about Problem Solving" . In Electroni c Information Handling (A. Kent and O.E. Taulbe e, eds.) Spartan (1965).
- D.A. Waterman, "Generalization Learning •Tech- niques for Automating the Learning of Heuris- tics". Artificial Intelligence, 1:121 (1970).
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
I. Introduction
Theory formation in science embodies many elements of creativity which make it both an in teresting and challenging task for artificial intelligence research. One of the goals of the Heuristic DENDRAL project has long been the study of processes underlying theory formation. This paper presents the first steps we are taking to achieve that goal, in a program called Meta DENDRAL.
Because we believe there is value in repor ting ideas in their formative stages--in terms of feedback to us and, hopefully, stimulation of the thinking of others--we are presenting here a des cription of work on Meta-DENDRAL even though not all of the program has been written. Just like the scientists we attempt to model, we often fail to make explicit the thinking steps we go through. Therefore, the designs of the unfinished pieces of program are described as they will be initially programmed, and several outstanding problems are mentioned. It is hoped that this discussion will provoke comments and criticisms, for that is also part of its purpose.
*This research was supported by the Advanced Research Projects Agency {SD-183).
As always, the proper choice of task environ ment is crucial, but for us the choice was abso lutely clear. Because the Heuristic DENDRAL per formance program uses the theory of a specialized branch of chemistry, formulating statements of that theory is the task most accessible to us. The theory itself will be briefly introduced in Section II, although it is not expected that readers understand it to understand the directions of this paper.
The goal of the Meta-DENDRAL program is to infer the theory that the performance program (Heuristic DENDRAL) uses to analyze experimental chemical data from a mass spectrometer. The following table attempts to sketch some differences between the programs at the performance level and the meta-level.
Input:
Heuristic DENDRAL - The analytic data from a molecule whose structure is not known ·(except of course in our test cases) .
Meta-DENDRAL - A large number of sets of data and the associated (known) molecular struc tures.
Output:
Heuristic DENDRAL - A molecular structure in ferred from the data.
Meta-DENDRAL - A set of cleavage and rearrange ment rules constituting a subset of the theory of mass spectrometry.
Example :
Heuristic DENDRAL - Uses alpha-carbon fragmen tation theory rules in planning and in val idation.
Meta-DENDRAL - Discovers (and validates) alpha carbon fragmentation rules in a space of possible patterns of cleavage. Uses set of primitive concepts but does not invent new primitives.
In our view, the continuity evident in this table reflects a continuity in the processes of inductive explanation in science. Moves toward meta-levels of scientific inference are moves toward encompassing broader data bases and con structing more general rules for describing regu larities in the data.
Beyond this level of Meta-DENDRAL there are still higher levels . Not all theory formation is as simple as the program described here assumes it is. For example, the representation of chemical molecules and the list of basic processes are both fixed for this program, yet these are concepts which a higher level program should be expected to discover. Also , there is no postulation of new theoretical entities in this program. But, again, higher levels of theory formation certainly do in clude this process.
The task of theory formation can be and has been discussed out of the context of any particu lar theory. (4) However, writing a computer pro gram to perform the general task is more difficult than working within the context of one particular scientific discipline. While it is not clear how science proceeds in general, it may be possible to describe in detail how the scientists in one particular discipline perform their work. From there, it is not a large step to designing a com puter program. Thus this paper attacks the general problems of theory formation by discussing the problems of designing a computer program to formu late a theory in a specific branch of science (cf. 2).
The general strategy of Meta-DENDRAL is to reason from data to plausible generalizations and then to integrate the generalizations into a uni fied theory. The input to the Meta-DENDRAL system is a set of structure-data pairs . It receives essentially the same data as a chemist might choose when he attempts to elucidate the processes under· lying the behavior of a class of molecules in a mass spectrometer. When chemists turn their atten tion to a class of chemical compounds whose mass spectrometric processes (MS processes) are not well understood, they must collect mass spectrometry data for a number of the compounds and look for generalizations. The generalizations have to be tested against new data and against the estab lished theory. If new data provide counterexamples, the generalizations are changed . If the general izations are not compatible with the old theory either the old theory or the generalizations are changed.
This paper is organized by the three main subproblems around which the program is also or ganized. The first is to explain the experimental data of each individual molecular structure. That is, determine the processes (or alternative sets of processes) which account for the experimental data. The second subproblem is to generalize the results from each structure to all structures. In other words, find the common processes and sets of processes which can explain several sets of experi mental data. The last is to integrate the gen eralizations into the existing theory in such a way that the theory is consistent and economical. Within each of the three main sections, the sub sections indicate further subproblems which the program must solve.
II. The Problem Domain
Because this paper discusses theory formation in the context of a particular branch of science, mass spectrometry, the theory of this science will be explained briefly for readers wishing an under standing of the Meta-.DENDRAL program at this level.
The mass spectrometer is an analytic instru ment which bombards molecules of a chemical sample with electrons and records the relative numbers of resulting charged fragments by mass. When mole cules are bombarded, they tend to fragment at different locations and fragments tend to rearrange and break apart as determined by the environments around the critical chemical bonds and atoms. The description of these processes is called "mass spectrometry theory". The output of the instrument, the mass spectrum cr fragment-mass table (FMT)*, is commonly represented as a graph of masses of fragments plotted against their relative abundance. By examining the FMT, an analytic chemist often can determine the molecular structure of the sample uniquely.
Mass spectrometry theory (MS theory), as used by the DENDRAL programs and many chemists, is a collection of statements about the fragmentation patterns of various types of molecules upon elec tron impact. It contains, for example, numerous statements about the likelihood that links (bonds) between chemical atoms will break apart or remain stable, in light of the local environment of the bonds within the graph structure of the molecule. The probability of a fragment splitting off the molecule is determined by the configurations of chemical atoms and bonds in the fragment and in its complement. Further splitting of the fragment is determined in like manner. In addition to rules about fragmentations, the theory also contains ru 1 ~s relating graph features of molecules and tragments to the probabilities that an atom or group of atoms will migrate from one part of the graph to another. Fortunately , mass spectrometry results are reproducible, or nearly so, which means that identical samples will produce nearly identical FMT's (under the same operating con ditions of the same type of instrument).
*The term 'fragment-mass table' is used here in place of the slightly misleading term 'mass spec trum'. The latter is well entrenched in the . lit erature, but the former is more suggestive of the form of the data.
As mentioned earlier, there are alternative levels for expressing this, as any other theory . The model in whose terms the theory is stated is a "ball and stick" model of chemistry, in which 'atom' and 'bond' are primary terms, and not, for example, an electron density model . Some of the primitive terms of the program's theory are listed in Appendix A.
Ill. First Subproblem : Explaining Each Spectrum
The so-called "method of hypothesis" in science is sometimes proposed as the essence of scientific work. Restating it, in a deliberately imprecise way , the method is to formulate a hypo thesis to account for some of the observed data and make successively finer adjustments to it as more observations are made . Very little is known about the details of a scientist's intellectual processes as he goes through the method . Thinking of hypotheses, for example, is a mysterious task which must be elucidated before the method can be programmed. That is the task we have designated as the first subproblem.
The program starts with individual structure FMT (fragment-mass table) pairs as separate from one another. It constructs alternative explana tions for each FMT and then considers the FMT's all together . An explanation, for the program, as for the chemist, is a plausible account of the MS processes (or mechanisms) which produced the masses in the FMT . The explanation is something like a story of the molecule's adventures in the mass spectrometer : certain data points appear as a result of cleavage, others appear as a result of more complex processes. At this stage of de velopment of the theory, the chemist's story does not account for every data point because of the complexities of the instrument and the vast amount
of missing information about MS theory.
A. Representation
The well-known problem of choosing a repre sentation for the statements of a scientific theory and the objects mentioned by the theory is common to all sciences. In computer science it is recognized as a crucial problem for the effic ient solution (or for any solution) to each prob lem. Some ways of looking at a problem turn out to be much less helpful than others, as, for example, considering the mutilated checkerboard problem (5) as simply a problem of covering rec tangles (with dominoes) instead of as a parity problem. At this stage there are no computer pro grams which successfully choose the representation of objects in a problem domain. Therefore we, the designers of the Meta-DENDRAL system, have chosen representations with which we have some experience and for which programmed subroutines have already been written in the Heuristic DENDRAL performance system.
It was natural to use these representations since the meta-program itself will not only inter face with the Heuristic DENDRAL performance pro gram, but is built up from many of the LISP func tions of the performance program . Specificall y , for this program, the input data are chemical structures paired with their experimental data:
structure-1 FMT-1
structure-n FMT-n
The representation of chemical structures is just the DENDRAL representation used in the Heur istic DENDRAL system. It has been described in detail elsewhere (see 1): essentially it is a linear string which uniquely encodes the graph structure of the molecule. The FMT's, also, are represented in the same way as for the Heuristic DENDRAL performance system . · Each FMT is a list of x-y pairs, where the x-points are masses of fragments and the y-points are the relative abundances of fragments of those masses.
The Predictor program of the Heuristic DENDRAL system has been extensively revised so that the internal representations of molecular structures and of MS theory statements would be amenable to the kind of analysis and change suggested in this work . As mentioned, Appendix A contains examples of the terms which are used in statements of the theory.
B.~
It is not clear what a scientist does when he "casts about" for a good hypothesis. Intuition , genius, insight, creativity and other faculties have been invoked to explain how a scientist arrives at the hypothesis which he later rejects or comes to believe or modifies in light of new observations. From an information processing point of view it makes sense to view the hypo thesis formation problem as a problem of searching a space of possible hypotheses for the most plaus ible ones. This presupposes a generator of the search space which, admittedly, remains undis covered for most scientific problems.
In the Heuristic DENDRAL performance system the "legal move generator" is the DENDRAL algo rithm for constructing a complete and irredundant set of molecular models from any specified collec tion of chemical atoms. Heuristic search through this space produces the molecular structures which are plausible explanations of the data. The meta problem of finding sets of MS processes to explain each data set is also conceived as a heuristic search problem. Writing a computer program which solves a scientific reasoning problem is facilitated by seeing the problem as one of heuristic search. This is as true of the meta-program which reasons from collections of data to generalizations as for the performance system which reasons from one set of data to an explanation. For this reason we have called the process of induction "a process of efficient selection from the domain of all possible structures." (3)
In broad terms, the program contains (1) a generator of the search space, (2) heuristics for pruning the tree, and (3) evaluation criteria for guiding the search. Except for problems inherent in the task, then, the problems of such a program are reasonably well understood. These three main components of the heuristic search program are considered one at a time in the immediate dis cussion.
1 . Generator
For this part of the Meta-DENDRAL system, the generator is a procedure for systematically breaking apart chemical molecules to represent all possible MS processes . In addition to single cleavages, the generator must be capable of pro ducing all possible pairs of cleavages, all poss ible triples, and so forth. And, for each cleav age or set of cleavages it must be able to repro duce 'the result of atoms or groups of atoms mi grating from one fragment to another . For exam ple , after the single break labeled (a) in Figure 1 below, subsequent cleavage (b) may also occur. The result of (a) + (b) is the simple fragment CH3.

Or , for the same molecule, cleavage (c) may be followed by migration of one hydrogen atom from the gamma position (marked with an asterisk) to the oxygen , as shown in Figure 2:

The generator of the search space will pos tulate these processes as possible explanations of the· FMT data points at masses 15 (CH3) and 58 (C3H60) for this particular molecule. But it will also postulate the simple cleavage (b) in Figure 1 as the explanation of the peak at mass 15. And for the peak at mass 58 from the process in Figure 2 it will postulate the alternative migration of a hydrogen atom from the beta posi tion (adjacent to the asterisk). From the gen erator's point of view these processes are at least as good as the more or less accurate pro cesses shown in Figures 1 and 2.
Chemists also appeal to the localization of the positive charge in the charged molecule to explain why one peak appears in a set of data but another does not. Since it is known that only the charged fragments are recorded by the mass spectrom eter, the generator program must also manipulate charges to account for the data.
The primitive mechanisms of the generator are charge localization, cleavage, and group migration (where a group can be a positive charge, a single atom, or a set of connected atoms). The generator is a procedure for producing all possible charged fragments, not just all possible fragments, in other words. Putting these mechanisms together in all possible ways leads to an extremely large space of possible explanations for the peaks in the experimental FMT of a molecule. The pruning heuristics discussed in the next section alleviate that problem. Briefly, let us turn to the actual design of the generator.
At the first level of branching in the tree all possible single cleavages are performed on the original molecular structure resulting in all possible primary fragments. At the next level, the positive charge is assigned to all possible atoms in the fragments. (Switching these two steps gives the same results and is closer to the concep tualization used by the chemist; it results in a less efficient program, however.) Starting with level ~ the procedure for generating successive levels is recursive: for each charged tragment at level n (n > 2) produce the charged fragments resulting from (i) cleavage of each bond in the fragment and (ii) migration of each group from its origin to each other atom in the fragment, where 'group' currently means 'positive charge or hydro gen atom'.
2. Pruning Heuristics
Three simple pruning techniques are currently used by the program. (1) Since the result of breaking a pair of bonds (or n bonds) is inde pendent of the order in which the bonds are broken, allow only one occurrence of each bond set ; (2) Since MS processes tend to follow favorable path ways, prune any branch in the tree which is no longer favorable, as evidenced by failure of a fragment's mass to appear in the experimental FMT; (3) Limit the number of allowable group migrations after each cleavage .
The first pruning technique hardly needs ex plaining : duplications of nodes in the search space are unnecessary in this case and can be avoided by removing a bond from consideration after all possible results of breaking it have been explored. The second technique carries an element of risk, because mass spectrometry theory includes no guarantee that every fragment in a decomposition pathway will produce a peak in the experimental FMT. In fact, the pruning can only be done after a complete cycle of cleavage plus mi gration because these processes occur together in the mass spectrometer--without the appearance of the intermediate fragments. The third technique also is truly heuristic since there are no theo retical reasons why group migrations might not occur in complex and exotic patterns between cleavages. The bias of mass spectroscopists to ward simple mechanisms, however, leads us to be lieve that they would place little faith in exotic mechanisms as explanations of peaks in the data, at least not without other corroborating evidence.
3. Evaluation
Evaluation of alternative paths in the search tree is necessary, either during generation or after it is completed, in order to distinguish the highly attractive explanatory mechanisms from those which are merely possible. However, witho~~ building in· the biases of experts toward their current theory it is difficult to evaluate mecha nisms at all.
The program's evaluation routine presently contains only one a priori principle, a form of Occam's razor. In an attempt to measure the sim plicity of the statements describing mechanisms, the program counts the number of primitive mecha nisms necessary to explain a peak. Thus when there are alternative explanations of the same data point, the program chooses the simplest one, that is, the one with the fewest steps. Simple cleavage is preferred to cleavage plus migration plus cleavage, for example.
The result of the generation process as des cribed so far, with pruning and evaluation, is a set of candidate MS processes for each structure which provides alternative explanations for data points in the associated mass table (FMT). For in stance, the program breaks the molecular structure shown in Figure 3 at individual bonds or pairs of bonds to give the following information (atoms in the structure are numbered from left to right):
| Mass ExElained | Process |
|---|---|
| 103 | Breakbond: C2-Cl or Breakbond: C6-C7 |
| 89 | Breakbond: S3-C2 or Breakbond: C5-C6 |
| 75 | Breakbond: C4-C5 |
| 61 | Breakbond: S3-C4 |
| 60 | Breakbond: C4-C5 & C2-Cl |
| 57 | Breakbond : C4-S3 |
| 46 | Breakbond : S3-C4 & C2-Cl |
| 43 | Breakbond: C5-C4 |
| 42 | Breakbond: C6-C7 & C4-S3 |
| 29 | Break bond: C2-S3 |
| 28 2 CH3 - CH2 - | Breakbond: C5-C6 & C4-S3 56 7 CH2 - CH2 - CH2 - CH3 |
In this example, the program used no migra tions or charge localization information; for pur poses of simplicity . The program explored all simple cleavages and found peaks corresponding to every resulting fragment but two.* For each of the successful fragments, the program broke each of the remaining bonds. From all the secondary breaks considered, the resulting fragments corres ponded to only four additional peaks in the FMT. So these four branches of the search tree were each expanded by one more simple cleavage. None of the tertiary fragments were found in the ·FMT so the program terminated.
The output of this phase of the program is a set of molecule-process pairs. For the one example shown in Figure 3, thirteen such pairs would be included in the output : the molecule shown there paired with each of the thirteen processes.
IV. Second Subproblem: Generalizing To All Structures
The method of hypothesis, mentioned earlier as a vague description of scientific work, suggests that a plausible hypothesis can be successively modified in light of new experience to bring a scientist closer and closer to satisfactory ex planations of data. Apart from the problem of formulating a starting hypothesis discussed above and the problem of terminating the procedure, it is not at all clear how the adjustments are to be made nor how to select the new experiences so as to make the procedure relatively efficient, or at least workable. These are well-known problems in the methodology of science. In other terms, the problem of successive modifications can be viewed as a problem of generalizing a hypothesis from one set of observations to a larger set.
The task for the second main part of the Meta-DENDRAL system is to construct a consistent and simple aet of situation-action (S-A) rules out of the numerous instances of rules generated by the first phase of the system. It is necessary for this program to determine (a) when two in stances (molecule-process pairs) are instances of the same general S-A rule, and (b) the form of the general rule. In other terms, the program is given a set of input/output (I/O) pairs, with re spect to the MS theory in a "black box". The task of the program is to construct a model of what is inside the black box. Thus it needs methods for (a) determining when two outputs (processes) are of the aame class and (b) constructing an input / output tranaformation rule which accounts for the inputs (molecules) as well as the outputs.
For each molecule there will be several assoc iated processes, as seen from the example from Section III (Figure 3). So the same molecule will appear in several I/0 pairs. Moreover, since the molecules are chosen for the test because they are known to exhibit similar MS behavior, there will be a number of instances of each general MS rule. If the program is successful, the resulting set of explanations will be a unified description of the MS behavior of all the molecules in the class. In operational terms, this means , at least, that the final set of explanations will be smaller than the union of instances.
*The CH3 fragment was produced twice but peaks of low masses were not recorded in the FMT.
The program itself has not been completed. It is hoped that this sketch shows enough detail that it will be instructive and provocative. Yet we do not wish to emphasize unfinished pieces of programs.
As in Sec tion III, the issues of represen tati on and search are discussed separately in this s ec tion.
A. Representation
The general form of the rules the program is to infer has been fixed as S-A rules , as mentioned above. But representing the instances from which to infer the rules presents other difficulties. It has been difficult to decide how to represent the instances in such a way that they can be com pared and unified, without building in concepts which would beg the theory-formation question. For example, representing the chemical graphs by feature vectors is attractive because it is easy to give the program just the right information for efficient comparisons . But this is the danger , t oo, for omitting "superfluous" information gives the program much too great a head start on the problem. It might dis cover what we believe are in the data--the old principles--but it would never discove r anything new.
The difficulty with the representation of the instances, i.e., the molecule-process pairs in the input stream, is that the numbering of atoms in the molecules, and the corresponding numberings in the function arguments of the processes, do not allow simple comparisons. However, by comparing rules two at a time it is possible to determine mappings between the atoms , and the function argu ments , so that the program can make comparisons. This is described below , as part of the scheme for generalizing rules.
B. Search
The program has been designed to generalize on situations which exhibit the same processes . If situations Ml and M2 both exhibit process P, for example , the program attempts to construct a rule (S __, P) where S captures the common features of Ml and M2. This procedure requires that the prog ram knows enough about the syntax of the pro cess language that it can recogni ze the "same" process in different contexts. Also, this pro cedure requires that the program can find common features of situations which satisfy some criteria of non-triviality.
As in any learning problem there will need to be many readjustments of the learned generalizations as new data are considered . In this case, the addition of each new molecule-process pair brings the potential for revising any S-A rule in the emerging MS theory. Since each molecule initially considered may be associated with a dozen or more processes, and the emerging theory may contain many dozens of S-A rules, the generalization pro cess will be lengthy.
All of the molecule-process pairs, which are instances of the rules the program is supposed to find; are compared among themselve·s. The result of this comparison is a set of generalized des criptions which account for the input data. This resulting set is then organized hierarchically to form the program's MS theory by the process des
cribed in Section V.
The comparison of the instances is conducted pairwise . The first molecule-process pair is postulated as a situation-act i on rule, R. A new molecule-process rule, N, (the next one) is then compared with R in the following way. (l) The MS processes, or actions, of Nand Rare compared at a gross level. (2) If this comparison holds, the graph structures (situations) of N and R are compared to find common subgraphs. If there are no common subgraphs, N is compared with the next rule, or , if no more rules, N is postulated as a new rule. (3) Otherwise, the common subgraph, S, is expanded to S' to capture alternative allowable atoms beyond the common subgraph as indicated by the situations of Nand R. (4) Finall y , the graph of R is replaced by S' . . These four steps will be illustrated and briefly described below.
- Compare the processes of R and N (the right-hand sides of R and N) , disregarding the arguments of functions . Comparison of just the names of the processes shows that both R and N follow the same syntactic rules, and thus deserve closer comparison. This is made possible by the generator of processes described in Section III, which names processes and sets of processes uni quely. Had the form of the processes been differ ent, N would be compared with the next rule (if any) .
- Compare the graph structures in N and R, ignoring hydrogen atoms (H) for the moment . Using the clue that the atoms involved in the
processes of both N and R are important, the pro gram looks for a way of matching these atoms. Then the "interesting" subgraphs in both N and R are expanded, starting with the important atoms and building the greatest subgraph, S, which is common to both N and R. The criteria of "interesting" aubgraphs and for "greatest" common subgraph are heuristic and are specific to chemistry.
Since the nitrogen atom, N, and the adjacent right-hand carbon atom, C, are both involved in the Breakbond process for both rules (N) and (R), these are recognized as important atoms. Thus the subgraph common to (R) and (N) must contain these nodes. Using the numbering of the graph of (R), nodes 2-6 are found to be common to both graphs. This is an "interesting" subgraph because, for example, it contains at least one non-carbon atom and contains more than two nodes . Moreover, it is the greatest subgraph common to the two. Without H's, this subgraph, S, is :
2 3 4 5 6 (S): C- N- C-C-C
(3) Expand the subgraph (S). Now, recon sider the hydrogen atoms ignored in step (2). Nodes 2 and 6 in S fail to match exactly on the number of hydrogens, but the rest do match. Both 2 and 6 are connected to at least two hydrogens, but in each case, the last connection may be to either an H or a C. This is reflected in the ex panded subgraph:
The parentheses indicate alternative choices for the atom linked by the adjacent bond.
The program now extends subgraphs only one atom beyond the greatest common subgraph (in each direction), but this clearly should be a parameter which the system can set .
- Replace the graph of R with S'. The result of comparing N with R, then, has been to change the conditions under which the process of R has been observed to apply . The old rule R is replaced by a revised rule, R', in which the situation is modified, but the action remains the same.
The result of this whole process is a set of S-A rules which can account for the observed data. This part of the program cautiously tries not to generalize beyond the observed situations. So it may miss some sweeping generalizations ("brilliant insights") which explain several of these cautious rules. But its result will not, at least, contain n "rules" to explain n observations, unless the input data are wildly discrepant.
V. Third Subproblem: Organizing New Rules and Integrating Them Into The Existing Theory
The scientist's problem does not necessarily end with the satisfactory formulation of general statements explaining all the observed data. If he is working in a discipline for which there is no existing theory, he will still want to organize the statements. But it is rare to be out of any theoretical context. Typically, the hypotheses are formulated as extensions of some existing theory. Thus, the Meta-DENDRAL program must be prepared to merge new MS rules into the theory previously constructed by the program (or by a chemist). However, as a test exercise we want to see whether the meta-program builds approximately the same MS theory as the performance program now contains.
One of the reasons we have rewritten the DENDRAL system's mass table predictor was to separate the MS theory from the LISP functions it drives. Making changes ·to the theory, then, does not require reprogramming, in the usual sense. Consequently, writing a program which updates the theory no longer seems to be an in surmountable task.
The problems of organlzlng a set of new rules or integrating new rules into the old theory are independent of the source of those rules. In order to study these problems we have written a program which (a) accepts new rules from human chemists and (b) updates the theory table of the program. The program for doing (a), called the dialog program, is not central to this paper, thus this section will focus on the work to accom plish (b), organizing and updating the theory.
In short, the program organizes the new rules either into a fresh theory or into an old theory (depending on the test) in the same way. The rule table is organized hierarchically according to the situations in the rules. Because the situ ations are graph structures, determining situation levels is just determining whether one graph is contained within another. For example, the graph -NH2 is contained in the graph -CH2-NH2 , so the former is a higher-level situation in the rule table. If neither situation is a subgraph ·of the other and they are not identical, they are put at the same level in the rule table.
A. Representation
The performance program's MS theory is rep resented as a table of situation-action rules (S-A rules), patterned after Waterman's table of heuristics for good poker play. (6) Situations are predicate functions which evaluate to 'true' or 'false' in a apecific context. For simplicity, only two predicate functions are allowed as situ ations at this time (in addition to 'T')--altho~gh a wide range of arguments may be supplied. Also, only one simple predicate function at a time can serve as a situation; Boolean expressions of predi cates are not allowed. The first simplifying re striction will be easy to loosen as new predicate functions are discovered which will be useful. Limiting a situation to a single predicate, how ever, is an important way of limiting the diffi culties encountered in revising the program's MS theory or analyzing it. Actions are sequences of primitive MS processes constituting, in fact, re write rules for transforming one structural frag ment into another. In this system, an action place can also be filled by another S-A rule, allowing nesting of rules in a manner quite natural to the current textbook descriptions of MS theory.
The structure of the rule table in the program, which constitutes the program's MS theory, can be expressed in a Backus normal form :
<rule table>
<default>
<S -A rule>
<s ituation>*
<action>**
::= ((T <default> <S-A rule> ... <S -A rule>)
:: = <action>
(<situation> <action> I (<situation> <defaul t>
<S -A rule> ... <S-A rule>)
::= (ISIT <subgraph name>) I
(CHECKFOR <variable name>
<value>) 1
T
· ·= (<funct:on na~e> <arguments>) (FROG () <action> <action>)
The performance program is driven by the MS theory in the rule table by the following proce dure . The program picks up the S-A rule immediately following the default action and checks to see if the current context satisfies the situation by ex ecuting the named predicate function (with approp riate arguments) . If it does, the program performs the associated action by executing the named (or described) function (with appropriate arguments) .
*The function ISIT determines whether the subgraph named in its argument place is contained in the chemical graph under consideration. The function CHECKFOR checks to see whether the current value of the named variable is equal to the value speci fied . This predicate allows checking global con text before determining answers to specific ques t i ons about subgraph matching.
**The basic actions (function names) known to the system are listed in Appendix A. Any action which is built out of several basic functions can be given its own name. In fact, the MS theory in the present version of the perfonnance program contains many named complex actions.
The very first situation, 'T', is certain to be satisfied (since 'T' evaluates to 'true'), so the default action will be executed if none of the other situations are satisfied.
A simple illustration will make the structure of the rule table clear. Suppose it contains rules for two distinct situations : ethers and alcohols, plus a subrule for a special class of ethers, named etherl. The table would look like :
(T default (alcohol-situation alcohol-action) (ether-situation ether-action (etherl-situation etherl-action)))
If a compound satisfies the etherl situation, neither the default action nor the ether action will be executed. All the processes for each situation are collected in the corresponding action . This may cause duplication if some of the processes in a rule also apply to the subrules. But modifi cation of the rule table is made easier because of this unification.
B. Organization and Integration
The output from the generalization program discussed in Section IV is a set of S-A rules (with accompanying definitions of the situations and actions). The set of new S-A rules is organized without reference to any existing theory or inte grated into an existing theory by exactly the same process. Each S-A rule is considered in turn. It is postulated as a new S-A rule at the top level of the rule table if its situation does not appear elsewhere in the rule table. If a new situation, Sl, subsumes a situation , 52, already in the rule table (i.e., Sl is more general than 52, or Sl is contained in 52), then the new rule is inserted in the rule table so that the old rule, with 52, is below the new one. Or, the reverse may be the case, namely, that the new situation (Sl) is sub sumed by a situation (52) already defined . Then the new rule must be inserted below the old on~ in the hierarchy. These three cases all depend only upon the program's ability to determine when one graph is contained within another. They are briefly illustrated below.
- If the situation does not appear else where in the rule table, the new S-A rule is merely added to the top level of the rule table . For example, adding an amine rule to the sample rule table above would result in
(T default
(alcohol-situation alcohol-action) (ether-situation ether-action (etherl-situation etherl-action)) (amine-situation amine-action))
(2 & 3) If the situation of the new S-A rule subsumes a previously defined situation, the old S-A rule becomes a sub-rule of the new rule. If the situation of the new rule can be subsumed under an existing one, the new rule becomes a sub-rule of the old one. These two cases are both illustrated by the following example. Suppose the program adds a rule (ether2-situation ether2-action) to the rule table above, where ether2-aituation is an instance of ether but more general than etherl-situation. This would result in
(T default
(alcohol-situation alcohol-action) (ether-situation ether-action (ether2-situation ether2-action (etherl-situation etherl-action))) (amine-situation amine-action))
After deciding where the rule must be inserted, the program adds the definitions of the new situ ation names and action names to the system.
As this part of the program becomes more soph isticated it will have to (a) check the rules to be sure there are instances which actually dis tinguish them, (b) look for less cautious ways of generalizing, and (c) associate a measure of con fidence with each rule so that it can resolve con flicts between rules.
VI. Conclusion
The Meta-DENDRAL program described here is a vehicle for studying problems of theory formation in science. It is built upon the concepts and pro grammed routines already available in the Heuristic DENDRAL performance program, which uses a scientific theory to explain analytical data in organic chem istry. The Meta-DENDRAL system goes beyond the performance program, however , in attempting to formulate the theory which the performance program
will use.
The Meta-DENDRAL program works much like a chemist who is extending his theory of mass spec trometry by looking at collections of experimental results . The data, for both the chemist and pro gram, are the results of mass spectrometry experi ments (called FMT's here) and the associated molec ular structures. By selecting some "typical" ex amples, first-order general hypotheses about the whole collection of data can be proposed. Then, by subsequent adjustments, the generalizations are modified to explain all the data. The new rules are then integrated into the existing corpus of theoretical statements in ways dictated by consid eration· of simplicity and personal preference .
The version of the meta-program which is des cribed here suggests that the design is workable. But it accentuates the arbitrariness of our design decisions and raises the questions of what alter native designs would look like and how good they would be. It also raises a number of issues im portant to understanding scientific methodology in general. The design question is certainly one such issue. Others are questions concerning the cri teria of acceptable generalizations, criteria of good scientific theories, and criteria for deciding on a set of primitive concepts for a theory. None of these general issues will be resolved satis factorily in the context of this program. Yet none can be resolved for this program without saying something about the general solutions.
@inproceedings{ijcai1971p4,
title = {A Heuristic Programming Study of Theory Formation in Science},
author = {Buchanan, Bruce G. and Feigenbaum, Edward A. and Lederberg, Joshua},
booktitle = {Proceedings of the Second International Joint Conference on
Artificial Intelligence, {IJCAI-71}},
publisher = {International Joint Conferences on Artificial Intelligence},
editor = {D.C. Cooper},
pages = {40--49},
year = {1971},
url = {https://ijcai.org/proceedings/1971/4},
}
TY - CPAPER TI - A Heuristic Programming Study of Theory Formation in Science AU - Buchanan, Bruce G. AU - Feigenbaum, Edward A. AU - Lederberg, Joshua T2 - Proceedings of the Second International Joint Conference on Artificial Intelligence, IJCAI-71 PB - International Joint Conferences on Artificial Intelligence PY - 1971 SP - 40 EP - 49 UR - https://ijcai.org/proceedings/1971/4 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: