Elamur Research

Multiple Underlying Systems: Translating User Requests into Programs to Produce Answers

Paper · 1990 · Robert J. Bobrow, Philip Resnik and Ralph M. Weischedel

Summary

A request can be simple to state even when fulfilling it takes several applications. A display may know which objects the user is looking at, a database may hold their attributes, and a separate program may perform the calculation the user needs. Bobrow, Resnik, and Weischedel examine what happens between understanding such a request and carrying it out. They describe the Multiple Underlying Systems component of Janus, a natural language interface that builds a program from available application functions. The user can ask for a result in terms of the task, leaving the interface to decide which applications to call and how to connect them. The paper treats this as a problem of both action and question answering.

The component starts with a logical expression of the request. It reorganizes that expression so it can recognize groups of conditions that an application can handle together. Each available service has a description of the conditions it covers, the information it needs, the values it returns, and an estimated cost. Janus searches these descriptions for a combination that can fulfill the request. It then works out which outputs must reach which inputs and arranges the calls in an acyclic data flow graph, a network in which values move from earlier operations to later ones without looping back. A service can still apply an operation to every member of a finite list. The graph can end with an action such as changing a display.

The paper illustrates this division of work with a request to display destroyers within 500 miles of Vinson. A database supplies the destroyers and the locations needed for the calculation. A separate service computes distances using routes that avoid land, a utility compares the resulting measures with the requested limit, and a display operation presents the selected vessels. The authors report an application with more than 800 service descriptions and describe an earlier application involving stored knowledge, hypothetical states, and functions for manipulating their data. These accounts establish implementation experience and show what an assembled plan can look like. The paper gives no benchmark scores for answer accuracy or execution speed.

The approach relies on application specialists to supply mappings from logical descriptions to callable operations. Janus can combine those operations in ways a request calls for, while computing a previously unknown operation from its definition lies beyond the design. The paper makes this boundary concrete through examples of quantification, database fields that encode several facts at once, and relationships that are implicit in a database. Its contribution is an account of how a natural language interface can share one request across applications with different capabilities and data conventions.

Deep dive: Multiple Underlying Systems: Translating User Requests into Programs to Produce Answers

Janus turns a natural language request into a program that chooses among existing applications, passes data between them, and delivers an answer. · about 35 minutes to read

The problem and its context

Understanding a request and fulfilling it

The authors start from an expectation that users will work in environments with networked applications running on different kinds of machines. The particular environment they describe includes a relational database, expert systems, decision support software, and display facilities. Some computations belong on workstations or conventional time-sharing computers, while the opening example includes a numerical task suited to parallel execution. From the user's point of view, these resources are parts of the same working environment. From the interface's point of view, they offer different services, accept different inputs, and return different forms of information.

The distinction becomes clear when the user refers to objects already on a display and asks for a result that depends on a calculation. The display can contribute the referents of the user's expression. Those referents alone leave the substantive question open. A calculation may require additional attributes, which have to be obtained from the resource that holds them. The result then needs a way to reach the user. Even when the intended meaning of the sentence is clear, the interface still needs to work out a sequence of compatible operations and the dependencies among them.

The part of Janus described in the paper starts after the request has been expressed in a logical language. Spoken or typed input may need substantial processing before that point. A user may also interact with information through a display or a table. The authors separate the work of determining what a request means from the work of organizing applications to satisfy it. This separation gives the latter problem a definition that applies across input modalities. In Janus, the logical expression serves as the interface between this planning component and natural language understanding.

There are practical consequences to leaving application selection to the user. Separate natural language interfaces to a database, a planner, and a simulator still require the user to know how the work is divided. The user has to turn an ordinary task into requests for particular systems, carry the relevant values from one to another, and reconcile the results. Each interface may make its own application easier to use. The coordination still falls outside it. Janus aims to perform that coordination from a single description of what the user wants.

The authors organize the work around representation, formulation, and execution. Representation gives requests and capabilities forms that can be compared. Formulation chooses services and works out how their inputs and outputs fit together. Execution calls the underlying programs, conveys their results to consuming operations, and delivers the response. The distinction matters because each stage can succeed on its own terms while leaving work for the next. A service can match part of a meaning without having the inputs it needs. A set of services can cover all the relevant conditions without yet specifying the order in which values become available. An executable program still has to produce a useful response or carry out the requested action.

The scope of earlier interfaces

As the paper describes the field, most natural language interfaces were built around a single kind of underlying system. A relational database is the authors' main example. A database interface can translate a question into operations that select records, project selected attributes, and join records from related sources. Selection retains records meeting conditions. Projection retains the fields needed in a result. A join combines records that agree on shared fields. These operations are a natural fit when the requested information can be obtained from stored relations and the work consists of combining or filtering them.

Janus retains those operations and also needs to call procedures that perform calculations or interact with a display. That difference affects the meaning of a plan. A database operation can supply the inputs to a calculation, which can then supply a value used in a filter. The composition still depends on relations among values, but some of those values come into existence through an application call. In the paper's examples, the interface may have to obtain an object's location and ask a specialized procedure to work with it before the desired result can be determined.

The authors compare Janus with earlier efforts at Honeywell and USC's Information Sciences Institute. Both addressed access to multiple systems. The comparison concerns the forms of request those efforts accepted and the mechanisms they used to find appropriate services. The paper characterizes their inputs as conjunctions of simple relations, with expressiveness corresponding to selection, projection, and joining. In a conjunction, each constituent condition must hold. A request that can be reduced to this form presents a collection of conditions to cover together. An embedded universal statement or an operation that counts the members of a set adds structure that calls for a different treatment.

The earlier systems also searched for combinations of capabilities. In the Honeywell effort, graph matching was central. In the USC/ISI effort, the NIKL classifier played that role. The authors group these approaches with Janus at the level of the general problem. Each needs a representation of what an application can do and a way to find a combination that meets the request. The distinctions concern what the search receives, how it matches that material to available capabilities, and how it handles alternatives.

The paper also situates the work near automatic programming. The broad task of producing an arbitrary program from a description would include discovering algorithms and inventing control structures. The authors narrow that task by restricting the executable programs Janus can produce. The system composes operations whose implementations already exist. It can organize them, choose among alternatives, and arrange restricted kinds of repeated application. This leaves a substantial planning problem and gives it a tractable form for the applications the authors describe.

Why the meaning representation had to carry more structure

The authors initially explored first-order logic as the input to the component. In Janus they adopted an intensional logic called World Model Language, abbreviated WML. An intensional representation can make explicit the circumstances under which something is to be evaluated. This matters to the authors because an application may deal with hypothetical situations as well as stored facts. A request involving a simulated state needs a way to express which situation the request is about. The paper presents the adoption of WML as an investigation of how well such a representation serves that broader range of tasks.

The language described in the paper also supports existential and universal quantification, negation of elementary predicates, cardinality and other aggregates, and a limited form of disjunction. An existential statement requires an instance that meets its conditions. A universal statement applies a condition across a specified class. Cardinality is the size of a set. These structures can occur in commands, questions that ask for a value, and questions that call for a yes or no. The authors include some classes of helpful responses among the interface's capabilities, although the planning component is the subject of the paper.

A richer logical input raises a practical question. The system has to use the structure inside an expression to identify relevant services and preserve enough of the expression to execute it correctly. A universal statement about displayed objects, for example, contains both a description of the objects and a condition to be checked for them. Treating all of those clauses as an undifferentiated set would lose the distinction between membership in the class and the condition imposed on its members. The authors' method preserves that distinction while making the individual parts easier to match. This is the connection between their choice of logic and their approach to semantic parsing.

The method, step by step

From a statement of intent to a program

The input to the component is a WML expression representing the user's request. The output is an execution plan that specifies how to use the available applications. The plan begins with abstract commands. A virtual machine provides a common execution layer through which those commands can call specific programs, combine returned data, and present the result. At this level, the important properties of an operation are what it requires, what it supplies, and how it contributes to the request.

The paper writes the central mapping in this form.

MUS: semantic representation → program

MUS names the Multiple Underlying Systems component. The colon introduces the mapping it performs. semantic representation is the logical expression of what the user wants. The arrow gives the direction of translation. program is the assembled execution plan built from available services and the supported ways of combining them.

For a display request, the plan needs to identify the objects to show and then call the display operation on that selection. An application that stores the objects may have no operation that implements the whole request. It can still provide part of the answer, such as their locations. A second service may calculate a distance from those locations, while a third operation tests the resulting measures. The plan gives each of these contributions a place and specifies how they connect.

How Janus turns a request into application calls

The steps in order.

How Janus turns a request into application callsStep 1: Receive the request as a WML expression1. Receive the request as a WML expressionStep 2: Normalize clauses and preserve embedded contexts2. Normalize clauses and preserve embedded contextsStep 3: Match clause groups to available services3. Match clause groups to available servicesStep 4: Search for a low-cost service cover4. Search for a low-cost service coverStep 5: Derive data dependencies and build the graph5. Derive data dependencies and build the graphStep 6: Execute calls and pass results between services6. Execute calls and pass results between servicesStep 7: Deliver the answer or perform the final action7. Deliver the answer or perform the final action

The diagram begins with the logical expression because the planner takes that representation as input. The endpoint depends on the task. A request may need a value returned, a set displayed, or an update performed. The planner must account for what the final operation consumes as well as for the conditions that identify the answer. For a display command, a list of qualifying objects is an intermediate value on the way to the requested action.

Give application capabilities a common description

The paper distinguishes a server from a service. A server is a functional module, often corresponding to an application or a substantial part of it. A service is a description of a particular capability offered by that server. The distinction lets the planner reason at the granularity of operations. An application may supply many services, and a request may need only a particular subset of them.

A service description specifies the server that owns it, the input and output variables, the clauses it covers, the application call that implements it, and an estimate of relative cost. The example descriptions also have local variables used in their logical patterns. These variables can express intermediate relationships that help characterize an operation. A caller can know which arguments must already be available and which values it will receive without having to treat every variable in the logical description as an argument.

The distance services show how these pieces fit. In the example, the logical pattern describes vessels at the ends of an interval and a length measure associated with that interval. The service requires the vessels as inputs and returns the measure. Variables for the interval and measure let the pattern describe their relationship. The implementation can look up the objects' locations and call an operation that computes a distance. From the planner's perspective, the application's procedure implements the group of logical conditions described by the service.

The paper presents a great-circle service and a land-avoidance service with the same logical pattern, inputs, and output. They have different implementations and cost estimates. The great-circle service computes a distance from the locations. The land-avoidance service uses a route that accounts for land and shipping lanes. An interface can therefore encounter a case where the requested logical clauses admit alternative services. Matching tells the planner which operations could meet the logical description. Selection concerns which of those operations to use in a particular plan.

The service description is also a contract between domain knowledge and program execution. Logical clauses describe what an operation means in the terms used by the interface. An application call describes how to invoke it in its own environment. A person familiar with the application supplies that connection. The component can then reuse the description whenever a relevant clause group appears, including inside a request whose remaining conditions call for other resources.

Normalize the request into clause lists

WML can express a request using nested logical constructions. The authors transform it into an extended form of disjunctive normal form so service matching can work with explicit groups of clauses. In ordinary disjunctive normal form, each alternative is a conjunction. A conjunction groups conditions that have to hold together. A disjunction offers alternative conjunctions under which a request can be satisfied. The paper observes that the simplest case is a conjunction on its own.

The request to display destroyers within 500 miles of Vinson has this simple form after normalization. Part of its logical content describes a display action and the destroyers to be displayed. Other clauses describe an interval with Vinson at one end and an object at the other. They relate the interval to a length measure, construct a comparison measure expressed in miles, and require the first measure to be below the comparison measure. At that point the form makes it possible to see which conditions belong to distance calculation, which belong to a test on measures, and which belong to presentation.

The comparison at the center of the example can be written on its own.

d < m

d is the length measure associated with the interval from Vinson to a candidate vessel. < says that the first measure is less than the second. m is the threshold measure with miles as its unit and 500 as its quantity. This writes the meaning of the paper's less-than clause in compact notation. The other clauses establish what the measures refer to and which objects enter the display request.

In the WML example, bring-about makes explicit that the requested outcome is to be brought about. The embedded expression describes the display and the objects that qualify. The time and world arguments give the intensional expression a context. The paper also uses existential binding to introduce an entity meeting a description and a lambda expression to describe an interval by its properties. Its iota expressions form descriptions of the requested objects or measures. The normalized clause list retains the conditions relevant to planning in a shape that allows a service to account for several of them together.

Suppose an operation covers the production of a length measure for an interval with the relevant endpoints. That operation can match the group of clauses describing the interval and its length. A separate comparison service can work with the returned measure and the limit. The clauses also share variables with other parts of the request. Those shared variables are important because they identify values the plan must preserve across calls. The candidate tested by the comparison has to be the vessel associated with that distance and, if selected, the vessel sent to the display.

For a request with alternatives, the paper's approach treats each disjunct as a conjunction for the purpose of finding services. The results of the alternatives can then be combined by union. Union brings together the results that satisfy any of the alternatives. This organization places the conditions belonging to an alternative in a form that can be planned as a subquery. The paper points to a separate technical account for the details of normalization and notes that a formal interpretation was defined for the resulting representation.

Preserve the scope of embedded operations

Some WML expressions retain an embedded structure even after normalization. Universal quantification, cardinality, and certain operations on sets are examples. The extension to disjunctive normal form keeps these expressions in context objects. An embedded expression is itself normalized as far as the representation allows. The planner can then handle a familiar-looking clause list inside the context while retaining information about the operation that encloses it.

The example asks whether every carrier on the display has the readiness designation C1. The universal context records the operator, the variable it binds, a description of the class over which it ranges, and the condition imposed on members of that class. Here the class includes the facts that the entity is a carrier and is the object of a display relation. The constraint concerns its readiness. In general notation, the structure is as follows.

∀x ∈ C, P(x)

∀ means that the requirement applies to every member. x is the variable for a candidate carrier. ∈ means membership, and C is the class of displayed carriers. The comma separates the range of the quantifier from the condition. P(x) is the readiness condition for the carrier represented by x, with C1 as the designation in the paper's example. Parentheses indicate that the condition is applied to the value bound to x.

The distinction between range and condition determines what the planner needs from the applications. A subplan has to obtain the carriers that are displayed. Another part has to establish the readiness condition for the members of that class. The readiness clause belongs inside the universal check. Its placement preserves the difference between finding carriers that happen to meet a condition and checking whether the condition holds throughout the relevant class.

Context objects can themselves contain context objects. The planning procedure accordingly calls itself to analyze embedded expressions. Each recursive call can work with the normalized clauses for its own subproblem, and the enclosing context determines how those results are used. This recursion belongs to the construction of the plan. During execution, a known operation can be applied to each member of a finite list, keeping the service graph acyclic.

The finite-list assumption is important to this treatment. If a quantifier ranges over a finite set that has a generator, a program can obtain the members and apply a known operation to them. The authors mention Lisp's MAPCAR as an example of that kind of iteration. Applying a routine to a generated list gives the planner a way to carry out some quantified requests through standard operations available to it. The range and the means of obtaining its members remain part of what must be specified.

Search for a cover of the clauses

For a conjunction, the paper describes the choice of services as a form of set covering. The planner has a group of requirements. A service may cover a particular subset of those requirements. The goal is to choose a collection whose combined capabilities satisfy the conjunction. A service can cover several clauses as a unit, and several available services may cover the same clauses. Those properties give the search room to build alternative plans.

A cover is more substantial than a list of programs that mention the same entities. The variables of a matched pattern have to correspond to those in the request. Consider the distance example. The facts that identify the candidate vessel and Vinson need to agree with the endpoints used by the distance operation. The resulting measure needs to be the measure used in the comparison. A match that loses track of these relationships would fail to implement the request even if it includes a database call, a distance routine, and a comparison.

The authors use beam search to look for a low-cost cover. Beam search retains a limited collection of promising partial alternatives as the search progresses. The service descriptions give the planner estimates it can use when ranking choices. The paper identifies the cost of execution and the amount of data passed among systems as concerns in choosing a plan. Its discussion of formulation gives the search strategy and the role of cost. It leaves the detailed scoring rule, the width of the beam, and the resolution of ties unspecified.

Embedded requests extend this procedure through recursive calls. For a universal context, for example, a service cover has to be worked out for relevant material inside the context as well as for the surrounding request. The normalized structure tells the planner where the subproblem begins and how its result contributes to the enclosing operation. The search can therefore use the same general mechanism for conjunctions that occur at different depths.

A service cover expresses enough of the planned work to determine the data dependencies. Some services can generate a set of candidates, while others need one of those candidates or a value associated with it. Once the system has chosen the services, it analyzes these relationships to extract a graph. This is a separate step from finding coverage. Coverage says which logical requirements the chosen services can fulfill. Data flow specifies which service produces each value needed on the way to fulfillment.

Build and execute the data flow graph

A node in the graph represents an operation. An arc conveys data from an operation that produces it to one that consumes it. When a downstream operation requires the output of an upstream operation, that relationship determines their execution order. The graph is acyclic, so a chain of dependencies cannot lead back to an operation already on that chain. The permitted operations include application functions, routines prepared in advance, and operators such as composition, conditional selection, relational operations, and mapping over lists.

The illustrated display request makes this structure concrete. The Integrated Database, or IDB, supplies the set of destroyers, their locations, and Vinson's location. A distance operation uses the relevant pairs of locations to obtain measures for routes that avoid land. A Lisp utility compares the measures with the specified limit. The graph ends at a display command in an expert system. Across these steps, the references to candidate vessels have to remain associated with the values used to decide which vessels qualify.

At execution time the node's code runs in the designated server. Composition involves passing values between operations, which may run in separate applications. When a node receives several input lists, the paper specifies that the executor computes their natural join. A natural join combines entries that agree on their common fields. This is how incoming information can be put together according to shared values. The execution account also connects aggregate operations to processing lists, with cardinality as its example.

The execution layer is what lets the plan use common concepts such as a measure or a list while still invoking particular implementations. An application call performs the computation prescribed for its node, while the graph describes where the result is used. A presentation operation can consume already prepared results. This is the modularity the authors emphasize in their conclusion. Details of the applications that store or calculate data can be handled behind the logical representation and the execution interface.

The authors restrict operations with side effects to the final node. A side effect is a change outside the value an operation returns, such as a change to the display or a database update. Earlier nodes prepare the inputs to the terminal action. This gives the planner a useful form of state change while keeping intermediate data preparation amenable to composition. A request that ends by displaying a selected group fits this execution discipline directly. The display operation runs after the computations that determine what it should show.

Acquire the mappings and handle differences in data

Preparing the system requires application specialists to describe the available operations and specify how primitives in WML can be realized through services. A primitive can have a translation that works together with other logical material. The service descriptions are therefore places to record domain decisions as well as application interfaces. A specialist may be a database administrator, an expert-system builder, or a systems programmer. The authors say some work had been done on automating acquisition. The paper describes configured services and application experience, with no training corpus or data split involved in the method.

A compressed database field illustrates what acquisition can accomplish. In the medical example, a patient's record contains a Boolean value indicating whether the patient's mother had melanoma. A Boolean value has truth alternatives. The field can answer that particular question even when the database has no separate record for the mother. At the level of request meaning, the information can appear as a relation between the patient and the mother combined with a relation saying that the mother had melanoma.

MOTHER(x, y) ∧ HAD-MELANOMA(y)

MOTHER is the relation that identifies y as the mother of x. In the database example, x denotes a patient and y the patient's mother. HAD-MELANOMA is the condition that its argument had melanoma. The parentheses and comma show the arguments of each relation. ∧ is conjunction, so the service pattern covers both conditions together.

A direct yes-or-no question about a named patient's mother can contain this pair of clauses. So can a request to count patients whose mothers had the condition, with the pair inside the counting expression. A question phrased in terms of diagnosis can yield the same pair given the appropriate lexical definition. The database service is attached to the common clause group. The planner can reuse that description across the different request structures, while separate parts of the plan deal with a named patient, a collection of patients, or an aggregate.

With a hidden join, the difficulty runs in the other direction. A short phrase can refer to a relationship that the database represents through several steps. A faculty member's phone number can be reached through an office and can also be reached through a laboratory if there is a relevant association. The phrase alone leaves the intervening relationship implicit. The paper describes earlier approaches that search for a suitable path, often favoring a shorter one. Janus uses the KNACQ acquisition tools to record certain paths in advance as role chains associated with linguistic expressions.

R₁(A, B) ∧ R₂(B, C)

R₁ and R₂ stand for successive role relations. A is the starting entity, B is the intermediate entity, and C is the destination. The shared B means that the endpoint of the first relation is the starting point for the second. Parentheses and commas mark the relation arguments, and ∧ requires both relations. For an office phone, the chain connects a person to an office and that office to a phone number.

In KNACQ, someone familiar with the domain can associate words with concepts and roles, and identify chains that have recognizable linguistic expressions. The tools include ways to express such connections through nominal compounds, possessives, and phrases with prepositions. The knowledge supplied at installation can tell the system how a phrase is meant to connect the endpoints. That reduces the relationship search left for the planner at request time. Acquiring a chain still requires the installer to identify the relevant interpretation in the domain.

The authors propose a related approach for data coercion, where a value has to change representation before another service can accept it. Degrees and radians express angle measures in different units. Different applications might refer to a person using different identifiers. A distance procedure might need coordinates in a particular form. Each of these cases calls for a service that provides the required conversion. The authors suggest using a canonical, or shared, representation to reduce the number of direct conversions that must be supplied.

n² / 2

n is the number of representations in which an entity or value can be identified. The superscript ² means that n is squared, and / 2 divides that quantity by 2. The expression represents the size of the pairwise translation provision that motivates the paper's canonical alternative.

2n

n again counts the available representations. The coefficient 2 corresponds to providing translations in both directions for representations linked to the canonical form. Juxtaposition means multiplication. With conversions to and from the shared representation, a value in one application's form can reach another application's form through the common one.

The proposed graph construction starts from canonical representations and inserts conversions on arcs where the applications' requirements call for them. A conversion on an arc would make the change in representation part of the executable plan. The usefulness of that design depends on having conversions that preserve the relevant value and meet the destination's input requirements. The authors identify data coercion as the challenging case they had yet to implement, so the paper describes the intended placement of conversions and the acquisition assumptions behind it.

Experiments and results

The application and what the authors report

The paper presents experience applying the component rather than a benchmark over a collection of labeled requests. Its main application is in the Fleet Command Center Battle Management Program, abbreviated FCCBMP. The authors identify an internal version of the Integrated Database as a relational resource in that application. They also identify Lisp functions used for mathematical calculations in the Navy problem. The reported installation contains more than 800 services. That number describes the size of the service inventory available to the system. Each description can expose a piece of application functionality to the planner.

The paper's opening scenario gives a wider picture of the environment, including decision support, expert systems, and display facilities on different hardware. Its purpose is to explain why a single request might draw on several resources. The account of experience identifies concrete resources used for the component, and the display example gives a worked plan. Keeping those descriptions distinct matters when interpreting the service count. It belongs to the reported installation. The paper gives no per-request measurement of the size of the search or the number of descriptions considered in producing that particular plan.

An earlier version gave natural language access to a KEE knowledge base, to representations of hypothetical states in an object-oriented simulator, and to Lisp functions that operated on the data. The paper also says Janus as a whole had been ported to applications for command and control decision support. The earlier application shows that the described approach had been applied to resources other than a relational database. The account gives neither individual service inventories for those resources nor measurements that separate the effort of adapting the interface from the effort of describing the services.

The working examples provide the clearest results about what the system does. In the graph for the request involving the 500-mile limit, the result of a database operation supplies both the candidate vessels and the locations needed downstream. A specialized route-distance calculation produces measures, a comparison utility determines which vessels meet the limit, and a display operation uses that selection. The graph gives concrete evidence of composition across application boundaries and shows how a request with an action at the end can be realized in the restricted program form.

The paper reports demonstrations involving display output, updates to data, and invocation of an application program with side effects. Those demonstrations concern the range of terminal operations handled by Janus. The authors also describe preliminary work with table input and output. In that work, a prototype generated code from expressions in the same logic and reused translation components in interactions involving tabular data. The report identifies database retrieval, database updates, and a directly manipulable representation of the table as uses explored in that work. These examples have the status of application experience and preliminary demonstrations.

What the service costs compare

The distance example supplies numerical settings for competing services that have the same logical pattern. Great-circle distance has an assigned relative cost of 1, while land-avoidance distance has an assigned relative cost of 5. The numbers are attached to the service descriptions. The paper characterizes the land-avoidance calculation as more accurate near land for estimating distance-related delays and fuel costs, and says it takes longer to compute. It gives no timing observations or measured errors for either calculation.

Assigned relative cost of vessel-distance services in the Janus example

The great-circle service has the lower assigned search cost.

Assigned relative cost of vessel-distance services in the Janus exampleGreat-circle distance (this paper): 1Great-circle distance (this paper)1Land-avoidance distance: 5Land-avoidance distance5
The numbers
System or settingassigned relative cost
Great-circle distance (this paper)1
Land-avoidance distance5

The marked alternative has the lower value on the chart's metric. The graph that the paper illustrates uses land avoidance. These are different properties of the example. The service declaration gives a relative estimate used in choosing among operations, and the worked graph shows a particular assembled plan. The paper gives the reasons a land-aware calculation can be valuable near land, but it does not trace the search decisions for the illustrated request or attribute the chosen route calculation to a particular scoring rule.

The example makes it possible to inspect a kind of alternative relevant to the planner. Both descriptions pose the same basic data requirement and provide the same kind of output. Switching services would change the implementation of distance and the assigned cost. The supplied values allow a comparison of those estimates. They give no basis for converting the cost settings into wall-clock time or into gains in the quality of answers.

How the comparison with earlier systems is reported

The authors compare the scope of their installation with the scope reported for the earlier Honeywell and USC/ISI efforts. They describe the earlier tests as involving relatively few services and identify Janus as having been tried with a potentially large inventory. The paper also compares the inputs and search procedures. The earlier efforts handled conjunctions of simple relations, while Janus used an extended form that could represent embedded operations and other logical constructions. These are comparisons of system design and application scope drawn by the authors.

The other efforts do not serve as baselines in a common experiment. The paper reports no shared request set, held-out split, reference plans, scoring procedure, or common execution environment. It provides no measurements of the proportion of requests answered, the time spent planning, the amount of data moved, or the quality of the final plans against an alternative search procedure. The quantitative evidence concerns the size of an installed service inventory and the configured costs in the example. The qualitative evidence concerns what the approach could compose and demonstrate in the environments described.

What the ablations show

The paper reports no ablations or controlled performance comparisons. It analyzes design choices through examples that isolate different parts of the planning problem. Those examples explain why the authors introduced clause normalization, acquisition of hidden joins, and restrictions on executable graphs. They also show where a proposed extension remained to be implemented. Their evidence comes from the structure of the cases and, where specified, from demonstrated behavior.

How service matching handles compressed information

The medical Boolean field gives a particularly direct analysis of clause matching. In the database, a single value captures the relevant information. In a logical request, the information can occupy a group of clauses involving a patient, that patient's mother, and the medical condition. Matching a service to the group lets the plan use the database field without requiring a database record for each of the entities mentioned in the request. The grouping corresponds to the information the field actually supplies.

Different wordings can put that same group inside different requests. A question about a named patient's mother asks for a truth value. A question about how many patients meet the condition requires a collection and a count. A question about whether the condition occurred among any of the patients has an existential structure. The authors' argument is that normalization, together with lexical definitions where necessary, exposes the same group in each case. The surrounding operators still matter to the plan. They determine how the service's contribution is used.

The case isolates what this design buys. A mapping for the group can serve whenever the group is present in the normalized request. The analysis gives a reason to write service specifications at the level of a reusable conjunction rather than writing a mapping tied to each whole question. It supplies no measured estimate of the number of linguistic formulations covered or of the amount of acquisition work saved.

What alternative services and implicit relationships reveal

The distance descriptions isolate a choice among implementations. The endpoints and the type of result have the same logical description in both services. What changes is the application procedure and the supplied estimate of cost. The paper also distinguishes their suitability near land. The example explains how competing application capabilities can be presented to the planner through the same pattern. It leaves open how much information about the intended use of a distance estimate is available to the choice mechanism in a given request.

The phone-number example analyzes a different source of alternatives. There the challenge is the interpretation of the relationship itself. Both an office and a laboratory could connect a faculty member to a phone number. A shortest-path heuristic can suggest a candidate when the database uses chains of relations. The example has a plausible path through either facility. The authors favor recording linguistically relevant chains during installation to settle relationships that can be anticipated. This gives the search fewer implicit relationships to discover and places the responsibility for identifying them in acquisition.

The distance and phone examples put different demands on representation. Distance services can have the same logical pattern while carrying out different calculations. Phone-number paths can reflect different relationships behind a single expression. Giving the planner many interchangeable implementations helps only in the former kind of choice. In the latter, the interface needs information about the intended relationship. The paper uses the distinction in practice through service descriptions for implementations and lexical acquisition for hidden joins.

What the program restrictions make possible

The square-root example distinguishes a descriptive definition from an executable procedure. A user can characterize a square root through the relation between a value and its square. That supplies a condition for a correct result. It leaves open how to produce a result by computation. Janus assumes that the relevant operation, or a supplied composition that realizes it, is already available. The example is a scope argument about the planning problem the authors chose to solve. It is not a performance test of mathematical requests.

The restriction on side effects gives another structural analysis. Before the final node, services can provide values that are used in subsequent computations. The graph can then perform a terminal action such as an update. Demonstrating output, updates, and application invocation establishes that useful tasks fit that structure. The paper does not evaluate a planner with broader authority to change state, or a planner with a different ordering discipline for such changes.

The discussion of data coercion considers inserting conversions where independently developed applications disagree about input and output forms. Its canonical representation reduces the kinds of conversion descriptions the authors envisage supplying. Since conversion insertion was presented as unfinished, the case establishes an architectural intention. The paper offers no observed change in execution success attributable to coercion. Across these analyses, the evidence supports explanations of how the parts fit together, with quantitative evaluation of individual design choices left open.

Limitations

Limits stated by the authors

The principal restriction concerns the programs the component can generate. They are acyclic data flow graphs assembled from available services and a restricted set of operators. The planner can compose functions, use supported conditional and relational operations, and apply a procedure across a finite list. It relies on a generator for the range when quantification is implemented by iteration. An arbitrary algorithm for an unfamiliar term is outside this class. The square-root example makes the dependency on available operations explicit.

A related assumption is that the primitives which reach the planner already have programmer-specified translations. A translation can use a composition of services and may apply jointly with other logical material. The assumption is substantial because it connects the expressive range of the interface to what has been acquired for a particular domain. Learning the wording or descriptive meaning of a term gives the system part of what it needs. Executable support still depends on associating that meaning with appropriate operations.

The authors allow nested expressions in the input and restrict the form of generated control flow. Recursive analysis of a context is a way to build the plan. Applying a service to a finite list is a supported way to carry such a plan out. These mechanisms cover the quantified and aggregate situations the authors describe. A task that requires an algorithm with unrestricted iteration or recursion would need that algorithm to be available as part of an underlying application or routine.

The terminal-node rule limits when a side effect can occur. It accommodates requests in which the system gathers data, computes a result, and carries out an action at the end. A workflow that changes state midway and then uses the resulting state in later calculations would fall outside the graph discipline as described. The paper's demonstrations provide examples of terminal effects. The authors do not extend their method to the more general problem of planning a sequence of state changes.

The input language has restrictions of its own. The authors describe a limited form of disjunction that they consider sufficient for common cases. Normalization also leaves some embedded operations in contexts instead of reducing everything to ordinary propositional clause lists. The planner has rules for working with those contexts. Its capacity to represent an expression and its ability to execute the corresponding task still depend on available services and on the constraints imposed on generated programs.

Data coercion has a different status from the implemented cases. The authors propose using translation services and inserting them where graph dependencies connect applications with incompatible data assumptions. They state that this case remained unimplemented. Their proposal also assumes that the required translations exist or can be added. A canonical form provides a way to organize translations that a domain can supply. The choice of common form and the feasibility of converting the relevant representations remain application decisions.

Limits visible in the evidence

The size of the service inventory shows that the approach was applied with a substantial collection of described capabilities. It gives little information about how search grows with the difficulty of a request. A request may match a small subset of the available services, or it may admit many combinations. The paper gives no distribution of request sizes, matching alternatives, or search times. As a consequence, the reported inventory size supports a claim about the scale of the installation and leaves search scaling unmeasured.

The choice of beam search also limits the claim one can make about plan quality. The method seeks a low-cost cover while retaining a restricted collection of hypotheses. Its results depend on the partial alternatives it keeps and on the estimates used to rank them. The paper establishes no guarantee that the plan found has the lowest possible cost. The assigned costs of the distance services illustrate which kind of information is available to the search, and their relation to measured runtime or transfer costs is left unspecified.

There is a similar limit on the claims about accuracy. The authors describe why routing around land can matter for distance estimates. The worked graph shows that the service can be included and its output used downstream. The report gives no independent assessment of route quality, final answers, or the frequency with which the planner chooses a service suited to the request. As a result, the example supports the claim that the architecture can express and run the composition. It leaves the reliability of service choice across a wider workload unanswered.

The clinical example assumes lexical definitions that yield the relevant clause pair. It therefore demonstrates a property of matching once the logical forms have the intended contents. It does not establish how often varied expressions would produce those forms in actual use. The same consideration applies to the hidden-join example. Specifying a path at installation can simplify runtime search, but the paper offers no measurement of the paths an installer must anticipate or of the coverage obtained by that work. A careful reading separates what the acquired descriptions allow from how costly they are to produce and maintain.

The use of WML is motivated in part by operations involving hypothetical situations. The earlier application to simulation states supplies evidence that such material was within the range of applications explored. The report gives no controlled comparison with the first-order representation the authors initially considered. It supplies no common set of requests for determining which parts of the intensional representation made a difference to executable coverage. The paper gives the design rationale and describes relevant applications, leaving the comparative contribution of the logic to be measured.

Finally, the architecture is designed to make heterogeneous applications easier for a user to access through a common interface. The paper demonstrates composed calculations and actions and describes preliminary reuse for tables. It gives no user study of the effort required to formulate requests, the handling of failed plans, or the savings compared with operating the applications separately. Its strongest evidence concerns a working way to describe services, assemble a program, and pass values across application boundaries in the cases reported.

What came after

No subsequent studies are identified for this paper. Its account closes with directions that were under way at the time. The authors had begun integrating the component with BBN's HARC spoken-language system. That effort concerned another way of bringing requests into the same planning process. The paper reports the start of integration and gives no completed evaluation for it.

The authors also describe preliminary work using tables as a medium for input and output. Its relationship to the paper's design is direct. An interaction involving a table could be represented in the logic used by the planner, and the existing translation components could then help connect that representation to the applications holding the data. The prototype was explored for retrieving and updating database information and for interaction with a manipulable image of tabular data. The report establishes that the authors had begun exploring this use, with its subsequent development and outcomes left open.

Cite

Cite as Robert J. Bobrow, Philip Resnik and Ralph M. Weischedel. 1990. Multiple Underlying Systems: Translating User Requests into Programs to Produce Answers. 28th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/981823.981852

@inproceedings{bobrow1990multiple,
  title = {{Multiple Underlying Systems: Translating User Requests into Programs to Produce Answers}},
  author = {Robert J. Bobrow, Philip Resnik and Ralph M. Weischedel},
  booktitle = {28th Annual Meeting of the Association for Computational Linguistics},
  year = {1990},
  doi = {10.3115/981823.981852},
  url = {https://doi.org/10.3115/981823.981852}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bobrow-1990-multiple-underlying-systems-translating-user/