Elamur Research

Queries and Concept Learning

Paper · 1988 · Dana Angluin

Summary

Suppose a learner is trying to discover a rule and can ask someone who already knows it for help. It could select an example and ask whether the rule accepts it. It could propose a complete rule and ask whether it is correct. It could also ask whether every example covered by its proposal is accepted, even if the proposal is incomplete. These questions give the learner different ways to make progress. In Queries and Concept Learning, Dana Angluin studies when those differences make an unknown rule practical to identify.

The paper treats a concept as a set. For a grammar, the set contains the strings it generates. For a logical formula, it contains the assignments that make the formula true. A learner knows the family of possible sets and can submit certain kinds of questions to an oracle, an idealized source of correct answers. Membership queries classify individual examples. The other queries compare a proposed set with the target and can return a specific example that explains a negative answer. Angluin studies both versions of these queries, with and without such examples, and asks how many queries and how much computation a learner needs before it can return a correct description.

The answer depends on how the queries interact with the structure of the target family. To learn a monotone disjunction of conjunctions, the learner can use an equivalence query to find an accepted assignment that its current rule misses. Membership queries then let it strip away unnecessary conditions and turn the assignment into a reusable term. A learner identifying a pattern language can instead use yes-or-no questions about whether a proposed language contains the target. Carefully chosen proposals expose the pattern’s length, fixed symbols, and repeated variables. Other constructions go in the opposite direction. In the paper’s double sunflower family, even access to every query type can leave the learner eliminating candidates one at a time.

Angluin also relates exact identification to learning from randomly drawn, labeled examples. A learner can test a proposal against fresh samples, use disagreements as counterexamples, and bound the probability of accepting a proposal with substantial error under the sampling distribution. The reverse substitution can lose efficiency. For concepts that each contain just one string, sampling can support an approximate answer with a sample count that grows linearly in string length for fixed accuracy and confidence, while exact identification with equivalence queries can take exponentially many queries. Together, the results show how the available questions, the permitted proposals, and the standard for a successful answer determine what the learner can achieve.

Deep dive: Queries and Concept Learning

Dana Angluin’s Queries and Concept Learning explains how the questions a learner can ask determine whether it can identify an unknown rule efficiently. · about 38 minutes to read

The problem and its context

What the learner has to identify

A rule that classifies examples divides a universe into those it accepts and those it rejects. Angluin represents the rule by the set of accepted examples. The universe can contain binary strings, truth assignments, or objects with more internal structure. The learner starts with a finite or countable family of possible sets and knows that the target is among them. Its task is to identify the target through a description in the family. If different descriptions define the same set, matching the target’s classifications is sufficient.

The distinction between a description and the set it defines matters from the beginning. A learner might write two formulas that look different and agree on every assignment. An equivalence question about either formula has the same correct answer. Yet the language used to write formulas determines which questions the learner can express. A short description of an individual case, an entire class of cases, or the pointwise majority of surviving candidates may be easy to imagine and difficult to represent in the chosen family.

The paper illustrates the setup with poker. An example is an ordered pair of hands that have no cards in common. The target accepts exactly those pairs in which the first hand wins. Asking who wins for one specified pair is a membership query. A learner can also propose a rule based on repeated card ranks in the first hand. A pair of hands can refute the rule by satisfying its stated condition while the second hand wins. Another pair can refute it in the opposite direction by giving the first hand a win without the stated condition. The oracle is free to return either kind of disagreement.

This example puts the choice of question at the center of the task. In the usual setting described by Angluin, a learner receives examples generated arbitrarily or by a random process, together with their labels. Here the learner can act on what it already knows. It can select a concrete case to resolve an uncertainty or put an entire description before the oracle. Previous answers can determine which cases and descriptions it asks about next. The question for machine learning is how much that ability changes the difficulty of finding the target.

Why earlier systems asked questions

Angluin begins from learning and debugging systems that already obtained information through interaction. Sammut and Banerji’s learning system asks about examples of its own choosing. Shapiro’s work on Prolog starts with a running program and a user who knows its intended behavior. A discrepancy gives the system somewhere to investigate. If a program derives a result it should reject, the system can inspect a derivation and ask the user to classify ground atoms, which are procedure calls with their arguments fully specified. The answers help locate an erroneous axiom.

A missed result poses a different diagnostic problem. The program may terminate without proving a statement the user regards as true. The system then seeks a procedure that needs additional axioms. One kind of question presents a procedure call with an argument left open and asks whether any filling makes it true. If there is a filling, the user supplies one. Angluin relates this to a disjointness query. The possible fillings describe a set of concrete calls, and the question asks whether that set has a common member with the intended behavior. The direction of the error determines which source of information the debugging procedure needs.

Valiant’s work supplies another starting point. Its probabilistic criterion concerns a learner that receives labeled draws from a distribution and seeks a rule that is accurate on that distribution with high confidence. The earlier work also makes use of questions about propositional formulas. A necessity question asks whether a proposed conjunction of literals implies the target formula. A possibility question asks whether any assignment can satisfy both the proposed conjunction and the target. In Angluin’s set language, these questions ask about inclusion and overlap. Their specialized wording reflects the domain, while the underlying relations can be applied across several domains.

Angluin also points to earlier work by Knobe and Knobe on identifying grammars, where stochastic testing is already part of the procedure. That connection matters when the information source is a person. Someone may be able to judge a particular example without being able to certify that a proposed grammar agrees with the target on every string. The paper studies the formal consequences of replacing a global test with repeated checks on sampled cases.

What counts as success

The paper sets out different requirements for exact and probabilistic identification. An exact learner must halt and return a description whose set equals the target. Its answer must be correct even when the oracle chooses the least helpful counterexamples permitted by the queries. A learner that keeps revising indefinitely fails that criterion even if its current guesses eventually settle on the target. The stopping decision is part of the task.

For probabilistic identification, the sampling distribution gives some disagreements more weight than others. An error on a frequently sampled case matters more than a disagreement on a case with very little probability. The accuracy parameter sets the tolerated probability of disagreement. The confidence parameter controls the chance that the learner returns a hypothesis outside that tolerance. The paper calls this probably approximately correct identification. It uses this criterion when a labeled sampling oracle is available and exact identification for the query settings without it.

The paper generally requires any set submitted to a query to belong to the original hypothesis family. Its majority-vote argument makes an explicit exception, allowing both proposed and returned sets from outside that family. This distinction is independent of whether an oracle supplies counterexamples. An equivalence query can return a full counterexample while still requiring a proposal in the original family. Several lower bounds depend on keeping that requirement in force.

The method, step by step

What a query gives the learner

Let the universe be U, let the target set be L∗, and let L be a proposed set. The learner can use a membership query to ask whether one chosen element belongs to L∗. The remaining questions concern relations between L and L∗. With each one, the form of a valid counterexample follows from the relation being tested.

  • An equivalence query asks whether the sets agree everywhere. If they differ, the oracle can return an element accepted by either set and rejected by the other.
  • A subset query asks whether every element of the proposal belongs to the target. A counterexample belongs to the proposal and is rejected by the target.
  • A superset query asks whether the proposal covers every member of the target. A counterexample is a target member the proposal misses.
  • A disjointness query asks whether the sets have an empty intersection. A counterexample belongs to both.
  • An exhaustiveness query asks whether the sets together cover the universe. A counterexample belongs to neither.

For a query about two sets, a restricted reply gives only yes or no. In the version with a counterexample, a negative answer identifies a concrete element. The learner can often infer the target label from the question and the element. If a subset query fails, for example, the returned element has a negative target label. After a failed equivalence query, the learner checks its own proposal on the returned element and infers the opposite label for the target.

An oracle can choose any valid witness. A learning method can rely on the fact that a failed equivalence query exposes disagreement. It cannot assume the oracle will provide the shortest disagreement, one that eliminates the most hypotheses, or one that isolates a particular part of the learner’s description. In the proofs, this freedom lets Angluin compare algorithms that benefit from every valid reply with adversaries that consistently choose uninformative ones.

The paper commonly treats hypotheses as indexed sets. In that setup, an answer can be the index of a set. The efficient algorithms use more specific descriptions, such as clauses, terms, or patterns, whose structure allows the learner to do more than enumerate indices. This distinction also separates query complexity, which counts calls to the oracle, from the computation required to form the questions and process the answers.

Equivalence queries and the surviving hypotheses

The simplest exact learner enumerates the hypotheses and submits them for equivalence testing. It halts at the first yes. A successful reply is guaranteed eventually because the target appears in the enumeration. Even a rejected proposal with a counterexample can do little better than rule itself out. If every hypothesis contains a different single string, the oracle can refute a wrong singleton by returning the very string it contains. That string is absent from every other hypothesis.

The paper then considers a finite family with freedom to propose arbitrary subsets of U. The learner maintains a set S of indices still compatible with the evidence. A query proposes the set of all elements that a strict majority of those surviving hypotheses would accept.

Mₛ = {x ∈ U : |{i ∈ S : x ∈ Lᵢ}| > |S|/2}

Here Mₛ is the proposed majority set, x is a possible example, and U is the universe. S contains the indices currently under consideration, i is an index in S, and Lᵢ is its associated set. The bar pairs denote cardinality. The comparison accepts x when its count among the survivors is greater than half of their total, so ties assign it a negative label. The braces describe sets, ∈ denotes membership, and the colons introduce the conditions for inclusion.

The learner submits Mₛ to the equivalence oracle. If it receives yes, Mₛ is the target as a set. If it receives a counterexample, it discards every surviving hypothesis with the majority set’s classification of that example. When the majority admitted the example, every remaining hypothesis admitting it is wrong. When the majority rejected it, the rejection side is at least as large as the acceptance side. Either way, at least half of the surviving candidates are eliminated on a failed query. Once only one remains, the learner can return it without asking for confirmation.

The paper gives the bound as the base-2 logarithm of the number of candidates, rounded down. Counting queries and implementing the strategy are separate issues. A finite class can contain too many descriptions for a learner to maintain a list or vote directly. The majority set can also be unavailable in the original description language. The algorithm for bounded-width conjunctions shows how a specific representation can make the majority operation inexpensive and expressible.

Learning a conjunction by removing clauses

A propositional assignment makes each variable true or false. A literal is a variable or its negation. In conjunctive normal form, abbreviated CNF, a clause is a disjunction of literals, so it is true when any of its literals is true. The formula is a conjunction of clauses and requires every clause to be true. In the paper’s k-CNF family, each clause has at most k literals. The bound concerns the width of a clause. The learner can start with every clause of the permitted width over the known variables.

Taking the conjunction of all those clauses produces a hypothesis at least as restrictive as the target. Every clause the target uses is among the possibilities initially included. As a result, any assignment that satisfies the initial hypothesis must satisfy the target. The invariant remains true if the learner removes only clauses that some target-positive assignment falsifies. No clause required by the target can fail on an assignment the target accepts.

The learner asks whether its current conjunction is equivalent to the target. A no must furnish an assignment that the target accepts and the conjunction rejects. The learner evaluates each current clause on that assignment and deletes every clause that fails. This step removes at least one clause because the conjunction rejected the assignment. The remaining clauses admit that assignment, and the learner continues to test the revised formula. If the oracle confirms equivalence, the surviving conjunction defines the target.

The flow diagram follows this particular algorithm. The paper develops other update procedures for other families.

Learning a bounded-width conjunction by equivalence queries

The steps in order.

Learning a bounded-width conjunction by equivalence queriesStep 1: List the allowed clauses1. List the allowed clausesStep 2: Conjoin all remaining clauses2. Conjoin all remaining clausesStep 3: Query equivalence with the target3. Query equivalence with the targetStep 4: Return the formula if confirmed4. Return the formula if confirmedStep 5: Otherwise inspect the accepted counterexample5. Otherwise inspect the accepted counterexampleStep 6: Delete every clause the counterexample falsifies6. Delete every clause the counterexample falsifiesStep 7: Test the revised conjunction7. Test the revised conjunction

The number of candidate clauses is bounded as follows.

(2n + 1)ᵏ

Here n is the number of propositional variables and k is the maximum number of literals in an allowed clause. The expression is the paper’s bound on the number of such clauses. The term 2n accounts for positive and negative literals of the n variables, and the extra option allows positions in a bounded-length representation to be unused. The exponent k specifies the width used in the bound.

There is a direct connection between clause deletion and majority vote over the surviving descriptions. Since all the counterexamples seen in this procedure are positive, a conjunction from any subset of the remaining clauses is compatible with them. If a fresh assignment satisfies every remaining clause, it satisfies all those candidate conjunctions. If it falsifies some remaining clause, associate every conjunction it satisfies with the conjunction obtained by adding that clause. The modified conjunction is one it falsifies, and distinct original choices give distinct modified choices. So acceptance fails to win a strict majority. The conjunction of all surviving clauses gives precisely the required classification without constructing the collection of candidate conjunctions.

Disjunctive normal form, abbreviated DNF, reverses the roles of conjunction and disjunction. Each term is a conjunction of literals, and the formula accepts when any term holds. The dual result applies to k-DNF, where each term has at most k literals. The paper also describes a different way to learn these bounded-width classes, by testing each possible piece of a formula directly. For k-CNF, a conjunction of at most k literals can itself be used as a disjointness proposal. If it has no satisfying assignment in common with the target, its negation is a clause that every target-positive assignment satisfies. Collecting these clauses recovers the target because every clause actually used by the target passes this test through its negation. The dual route for k-DNF uses restricted exhaustiveness queries.

Learning a disjunction by growing it

A monotone DNF formula allows only positive literals. Turning additional variables true can preserve a true result because it cannot undo a term that is already satisfied. This property gives the learner a way to test a whole conjunction of requirements with a membership query about one assignment.

The algorithm starts with a disjunction that accepts nothing. Its working hypothesis is a collection of terms that each imply the target. It therefore accepts a subset of the target’s assignments. A failed equivalence query gives an assignment that the target accepts and the hypothesis misses. The learner constructs a term from all variables set to true in that assignment. Any assignment satisfying this term has at least those variables true, so monotonicity ensures target acceptance.

The next step is to remove requirements that the term can spare. The learner temporarily drops a literal and queries the assignment that sets exactly the remaining variables in the term to true. If that assignment belongs to the target, every assignment satisfying the shortened term belongs as well. The deletion is safe. If the assignment is negative, the shortened term fails to imply the target. Further weakening cannot make that deletion safe, since the same negative assignment would still satisfy the weaker term.

After these checks the learner has a prime implicant, a satisfiable term that implies the target and has no proper subterm with that property. The original counterexample still satisfies the term. This establishes that the term is new to the working disjunction, since otherwise the original counterexample would already have been accepted. The learner adds the term and returns to equivalence testing.

In this procedure the oracle functions have distinct jobs. The failed equivalence test locates a gap in coverage and supplies a starting assignment. Membership supplies evidence about which variables that assignment can dispense with. The process grows a description using terms supported by the target. Each addition can be charged to a target prime implicant, and for a monotone DNF the number of such implicants is bounded by the target’s number of terms. The paper distinguishes this property from the general DNF case, in which prime implicants may outnumber the terms in the target description by an exponential factor.

Learning a pattern from containment

A pattern is a nonempty string made from constants and variables. A constant stays fixed. A variable stands for a nonempty string of constants, and every occurrence of the same variable takes the same replacement within a substitution. Distinct variables may take different replacements. The pattern language is the set of all strings the pattern can produce. The alphabet contains at least two distinct constants, so distinct variables can be assigned different symbols.

The algorithm uses only restricted superset queries. It proposes a pattern and asks whether the target’s entire language is contained in the proposal’s language. It begins by finding the target pattern’s length. Replace every variable with a single symbol and the resulting string has the same length as the pattern. Every other expansion is at least that long. A candidate pattern consisting of distinct variables accepts every string at least as long as that candidate. The learner tries successively longer candidates until a proposal fails to contain the target. At that point the preceding length is the target length.

Next it goes through the positions of the pattern. It proposes a pattern of the recovered length with a selected constant at the position under investigation and a different unrestricted variable at every other position. If the target contains the constant at that position, every target expansion can be partitioned to fit the proposed pattern. If the target carries a different constant there, a shortest target string witnesses the failure. If the target carries a variable there, a shortest target string can use another symbol at that position and again fail the proposed pattern.

After identifying the constants, the learner examines pairs of variable positions. For each pair it proposes a pattern with the same new variable at those positions and independent variables everywhere else. A yes means the target always enforces the corresponding equality. If the target positions are different variables, there is a shortest target string using different symbols at those positions. In a shortest string, each position in the pattern occupies precisely one symbol, so the learner’s proposed equality cannot be met by repartitioning that string. The equality answers recover the groups of repeated positions. The learner gives each group a variable name and constructs a pattern with the discovered constants.

The paper’s query bound for these stages is as follows.

(k + 1) + k|A| + k(k - 1)/2

Here k is the target pattern length and A is the alphabet of constants. The vertical bars give the number of symbols in A. The first parenthesized term bounds the length tests, including the first proposal that fails. The next term bounds the tests that try each constant at each position. The last term counts the unordered position pairs in a pattern of length k and bounds the equality tests. The plus signs combine the stage budgets, adjacency indicates multiplication, and the slash denotes division. The algorithm only needs equality tests at positions already found to contain variables.

The procedure finishes when the tests determine enough structure to reconstruct a pattern. No final equivalence reply is required. The guarantee rests on the query descriptions being themselves valid patterns and on shortest strings distinguishing fixed positions and repeated variables.

Learning a language from overlap

The paper builds a restricted family of languages from an integer weight for each symbol. Adding up the individual symbol weights gives the weight of the word.

f(w) = f(a₁) + f(a₂) + … + f(aₙ)

Here f assigns an integer to each symbol, w is the word, a₁ through aₙ are its successive symbols, and n is the word length. Applying f to w means adding the symbol weights, as indicated by the plus signs and ellipsis. A word in the language must have total weight zero, with the running sums along its prefixes staying non-negative. That convention fits the paper’s examples with zero-weight symbols and balanced parentheses. Giving an opening parenthesis a positive unit weight and a closing parenthesis a negative unit weight produces the corresponding balanced sequences.

The learning procedure asks whether the unknown language overlaps languages over selected symbols. First it asks about words consisting solely of a given symbol. An overlap means that symbol has weight zero. Then it tests words over pairs of distinct non-zero symbols. Weights of the same sign cannot sum to zero in a nonempty word. With opposite signs the oracle can return a common word, which conveys evidence about orientation and relative magnitude.

r f∗(a₁) = −s f∗(a₂)

Here f∗ is the target weight function, a₁ and a₂ are the chosen symbols, and r and s count their occurrences in the returned word. The first symbol of the witness can be designated a₁. Its target weight is positive because a non-zero first weight must keep the running sum non-negative. The target weight of a₂ is negative, and both occurrence counts are non-zero. Juxtaposition multiplies each count by the corresponding weight. The equality expresses the zero total.

After obtaining the conditions for the pairs, the learner needs a weight function consistent with them. It does not need to recover the precise original integers. The theorem guarantees that a choice meeting the conditions defines the same language. The witness words enter the computation through their symbol counts, so the efficiency statement includes the length of the longest counterexample as well as the alphabet size. This result uses disjointness replies with examples. The preceding bounded-width CNF procedure, by comparison, uses only their yes-or-no information.

Testing proposals with random draws

A sampling oracle returns a randomly drawn example and its target label. The distribution, denoted D, assigns probabilities to the elements of U. Angluin measures the discrepancy between sets by the probability assigned to their disagreement region.

d(L, L′) = ∑ₓ∈L△L′ Pr(x)

Here d is the disagreement probability, L and L′ are two sets of examples, and x ranges over the symmetric difference L △ L′. The symbol △ denotes the set of elements belonging to exactly one of its operands. The summation adds the probability Pr(x) of each such x under D. The value of d is also the chance that a fresh labeled draw discloses a disagreement between those sets.

Pr(d(Lᵢ, L∗) < ε) > 1 − δ

Here Lᵢ is the output hypothesis represented by index i, L∗ is the target, and d is the distribution-weighted disagreement just defined. The positive parameter ε is the accuracy tolerance, and δ is the allowed probability of failure. The outer Pr concerns the random draws influencing the learning procedure. The inner inequality requires error below ε, while the outer inequality requires that event to occur with probability greater than 1 − δ.

To replace an equivalence query, the learner checks a proposal against fresh labeled samples. A mismatch is exactly the kind of witness that a negative equivalence reply could have returned. If the proposal survives all the tests, the modified learner treats it as confirmed and halts with that hypothesis. This substitution uses the assumption that the original procedure stops and returns its proposal on a yes. Its earlier progress continues to follow a possible sequence of genuine counterexamples.

The sample budget increases with the index of the simulated equivalence query. This is necessary because the learner can consider a sequence of proposals, and a small chance of premature acceptance on each test needs to be controlled across the whole sequence.

qᵢ = ⌈(ln(1/δ) + i ln 2)/ε⌉

Here qᵢ is the number of draws budgeted for the i-th simulated equivalence query, and i is its position in the sequence. The accuracy and confidence parameters are ε and δ. The function ln is the natural logarithm, the slash denotes division, and the ceiling brackets round up to an integer. The term involving i allocates a smaller permissible failure probability to later tests.

(1 − ε)ᑫⁱ

In this expression the exponent is qᵢ, the draw count for the current test. A hypothesis with disagreement probability at least ε passes any one draw with probability at most 1 − ε. With fresh draws at the test, the power bounds the chance that it passes them all. The bound can be applied after conditioning on the proposal reached by the learner, since its test uses fresh data. Adding the resulting failure bounds across the sequence keeps the probability of returning a hypothesis with too much disagreement within the confidence budget.

Experiments and results

What the paper measures

The paper reports mathematical results for constructed families, so the comparisons use worst-case query counts and bounds on computation. The examples and assignments play the role of inputs to the oracle. There is no fixed corpus, train-test split, or observed accuracy to attach to the results. In the exact setting, the metric is whether the learner always returns a set equal to the target and what resources it needs to do so. In the sampling setting, success is measured by the probability of returning a hypothesis within the specified distribution-weighted error tolerance.

The comparisons use several reference strategies. Exhaustive equivalence testing gives a general way to search an indexed family. Majority voting offers a comparison when proposals can range over arbitrary subsets. Domain-specific algorithms then show what can be achieved with narrower descriptions or different query types. The lower bounds apply to every exact learner operating under the specified restrictions. They are proved by preserving many possible targets after each reply, rather than by timing a particular implementation.

When exhaustive search is hard to beat

Consider the family of concepts that contain exactly one binary string of length n. There are 2ⁿ possible target singletons. With equivalence queries restricted to that family, an oracle can answer every attempted singleton negatively with the proposed string as the witness. This excludes only the singleton the learner named. As long as more than one candidate survives, all the others are compatible with the answers. The worst-case bound is 2ⁿ − 1 queries.

The paper extends that result to a learner that also has membership, subset, and disjointness queries. A membership query about a string can be answered no, a subset query proposing its singleton can be refuted with that string, and a disjointness query proposing its singleton can be answered yes. In each case at most the singleton containing that string is lost. A superset query behaves differently. If the proposed singleton fails to cover the target, the witness must be the sole member of the target. One such query therefore suffices, including the case in which a yes confirms the proposed singleton.

For a general finite family of N candidates, the comparison between exhaustive identification and the unrestricted majority strategy changes from N − 1 queries in the exhaustive worst case described by the paper to the base-2 logarithm of N rounded down for majority voting. The latter bound counts only the equivalence calls. The cost of representing or computing the vote may be substantial. The singleton example supplies a reason for that difference in query counts. A proposal in the singleton family singles out one case, while a majority set can test a classification shared across many candidates at once.

Efficient algorithms for structured targets

For k-CNF, the paper bounds the number of equivalence queries by (2n + 1)ᵏ, where n is the number of variables and k is the maximum clause width. Each unsuccessful test removes an allowed clause, and the resulting algorithm runs in time polynomial in nᵏ. The paper gives the same count bound for the direct disjointness procedure, which tests conjunctions that negate possible clauses. The corresponding k-DNF algorithms use equivalence or restricted exhaustiveness queries. These are bounds for the respective formula families, with an exact output requirement.

For monotone DNF, let m be the number of terms in the target formula and n the number of variables. The construction using counterexamples and membership queries gives a bound of m + 1 equivalence queries and mn membership queries. The equivalence budget includes the confirmation after the last addition. The membership budget comes from reducing the positive witness to a prime implicant by trying deletions. Both quantities refer to worst-case use by the algorithm, and the running time is polynomial in m and n.

For the pattern languages, the restricted superset algorithm has the three-part query bound given in the method section. Its input size is expressed through pattern length and the alphabet in the query count. For the same domain, equivalence, membership, and subset queries together require at least 2ⁿ − 1 calls in the worst case for target patterns of length n. The lower-bound family can consist of constant-only binary patterns. Each defines a singleton language, and every allowed pattern denotes a nonempty language. The empty common intersection of the singletons therefore cannot be submitted as a pattern hypothesis.

For the restricted integer-weight language family, the disjointness method uses at most the square of the alphabet size in queries. Its processing time is polynomial in that size and the longest counterexample. The result gives a case in which a query other than equivalence delivers a witness with enough internal structure to support reconstruction. The witness reveals the relation between the weights of the symbols in it, whereas a yes-or-no disjointness answer on the same pair only distinguishes the same-sign and opposite-sign cases.

The double sunflower comparison

The double sunflower gives an exact-learning lower bound even when the learner can use every query type. The elements are divided into indexed x points, indexed y points, and special points z₁ and z₂. Each concept has a distinctive x point that it alone includes and a distinctive y point that it alone excludes. Every concept contains z₁ and omits z₂.

Cⱼ = {z₁, xⱼ} ∪ (Y ∖ {yⱼ})

Here Cⱼ is the concept with index j, xⱼ is its distinguished inclusion, and yⱼ is its distinguished omission from the set Y of all y points. The braces denote sets, ∪ joins the sets, and ∖ removes the indicated element. The point z₁ is the common inclusion. The omitted point z₂ belongs to the universe but appears on neither side of the union defining Cⱼ.

The following chart counts the most candidates that a reply of each kind can eliminate under the paper’s adversary while multiple candidates survive. It describes individual steps of the proof. Queries marked as reaching the highest count can do so when the point or hypothesis queried still singles out a surviving candidate. A query about an already eliminated candidate can provide no further reduction.

Maximum hypotheses eliminated per reply in the double sunflower lower-bound construction

The adversary can answer overlap and coverage questions without removing any candidate, and the other queries can eliminate only an individually distinguished candidate.

Maximum hypotheses eliminated per reply in the double sunflower lower-bound constructionEquivalence (this paper): 1Equivalence (this paper)1Membership: 1Membership1Subset: 1Subset1Superset: 1Superset1Disjointness: 0Disjointness0Exhaustiveness: 0Exhaustiveness0
The numbers
System or settinghypotheses eliminated per query
Equivalence (this paper)1
Membership1
Subset1
Superset1
Disjointness0
Exhaustiveness0

An equivalence or subset query proposing Cⱼ can be refuted with xⱼ, which is missing from every alternative. A superset query proposing Cⱼ can be refuted with yⱼ, which every alternative includes. A membership query about either distinguished point can receive the label shared by all candidates except the one associated with that point. A question about a special point has the same answer for every candidate. Disjointness can always be refuted by z₁, and exhaustiveness can always be refuted by z₂. The negative replies are genuine witnesses even though they leave the set of candidates untouched.

Starting with N concepts, this strategy forces the learner to make at least N − 1 queries. The construction sets N to 2ⁿ. The count concerns the learner’s inability to rule out consistent targets. Even with immediate replies and unrestricted computation between calls, the learner needs to obtain enough information to distinguish its output from every remaining candidate.

What changes when labeled sampling is available

The paper revisits the binary singleton family for probabilistic identification. If a sample is positive, it identifies the target string immediately. If all draws are negative, the learner returns a singleton whose string has not appeared. In the latter case the result could disagree with the true singleton, but both strings are absent from the sample. The proof uses the fact that sufficient sampling makes it unlikely that a string with probability above ε/2 went unseen.

q = ⌈(2/ε)(ln(1/δ) + n ln 2)⌉

Here q is the sufficient number of labeled draws in the binary singleton family, n is the string length, ε is the accuracy tolerance, and δ is the confidence parameter. The function ln denotes the natural logarithm. The product combines the accuracy factor with the logarithmic terms for confidence and for the number of possible strings. The ceiling rounds up the draw budget. For fixed ε and δ the paper describes the sample count as linear in n.

The distinction between the two success criteria drives the comparison. If the actual target string is rarely sampled, identifying its precise identity can be difficult. Once all sufficiently probable strings have appeared, a guess that replaces one unseen string with another incurs disagreement only on those two strings. The approximate learner can therefore succeed without resolving the distinction required by exact identification. This supplies the paper’s example in which replacing sampling and probabilistic identification with equivalence queries and exact identification fails to preserve efficiency.

Angluin also summarizes results that use equivalence and membership in other domains. A regular language can be represented by a deterministic finite automaton, which reads a string and changes state according to each symbol. For the previously described algorithm, the relevant target size is n, the number of states of the smallest deterministic acceptor, and the other parameter is the longest counterexample. The running time is polynomial in those parameters. The paper also identifies a contrasting class of singleton-string automata. A singleton containing a string of length n can be recognized with n + 2 states, and the paper gives a 2ⁿ − 1 worst-case bound in the setting with restricted equivalence, membership, and subset queries.

For a context-free grammar, a nonterminal is a symbol that can be expanded by production rules. The restricted grammar result assumes the learner knows the terminal alphabet, the nonterminal alphabet, the start symbol, and the bound k on the number of nonterminals on the right side of a production. The productions are unknown. In addition to equivalence queries about the language generated from the start symbol, the learner can ask whether a particular string is generated from a specified nonterminal. The paper reports an exact algorithm with running time polynomial in the target grammar size and the longest counterexample. Membership at a named nonterminal exposes information beyond ordinary classification of strings.

A separate result fixes the number of terms in a DNF formula or the number of clauses in a CNF formula. This is a bound on the number of components, distinct from a bound on how many literals each component contains. With equivalence and membership queries, the paper reports exact identification in time polynomial in nᵏ for k-term DNF and the dual k-clause CNF class, where n is the number of variables. For k greater than 1, it gives a conditional obstruction for equivalence alone when the learner must use the original representation. A polynomial-time algorithm of the specified kind would imply P = NP. The comparison concerns computation under a representation restriction, while the double sunflower comparison concerns the amount of information the queries can disclose.

What the ablations show

The paper has no empirical ablations. It uses controlled comparisons between query interfaces, hypothesis families, and success criteria to show which assumptions drive its upper and lower bounds.

The information lost with a yes-or-no answer

The monotone DNF results illustrate the role of an explicit witness. In the efficient learner, a negative equivalence reply provides a positive assignment outside the current hypothesis. This gives the learner concrete material to simplify through membership checks. A bare no says the formula is wrong without giving the learner a starting point for the next term.

Angluin demonstrates the difference with a constructed class on 2n variables. The variables come in pairs, and every target contains the same n terms that require both variables of one pair to be true. Each target has one additional term, made by selecting one variable from each pair. The targets therefore have n + 1 terms.

Cₙ = (x₁ ∧ y₁) ∨ (x₂ ∧ y₂) ∨ … ∨ (xₙ ∧ yₙ)

Here Cₙ is the formula shared by the targets, and xᵢ and yᵢ are the variables of pair i. The index runs through all n pairs. The connective ∧ requires both variables, and ∨ makes any such pair sufficient. The ellipsis continues the disjunction through the remaining pairs. Each target adds a term to Cₙ by taking one variable from every pair and conjoining those choices.

A target’s extra term contributes just one assignment outside the common region. If an assignment makes that term true and also sets a second member of any pair true, it already satisfies the shared formula. The new assignment is therefore the one that sets exactly the chosen variables true. Different choices give different new assignments.

The lower-bound adversary acts as though the common region were the target whenever it can. Membership queries about assignments in that region receive yes. Outside the region, a no can exclude at most the sole target admitting that assignment. Restricted equivalence can reject a candidate without naming the positive assignment specific to the target. Subset can provide a counterexample outside the common region while excluding at most one candidate. The resulting worst case is at least 2ⁿ − 1 queries despite the small descriptions. As the paper notes, disjointness and exhaustiveness can also be answered with assignments common to the corresponding side of every target. The all-true assignment witnesses overlap, and the all-false assignment witnesses failure to cover the universe.

The comparison establishes what the extra example buys for the particular learning procedure and what a weakened set of queries can fail to supply. It leaves open the separate question of whether exact learning of monotone DNF can be made efficient with equivalence counterexamples alone. The upper bound uses membership to remove variables, while the lower bound changes the equivalence oracle itself.

The common region and the allowed proposals

The paper generalizes the reasoning behind several examples. Suppose a collection of candidate sets has the same intersection for every distinct pair.

Lᵢ ∩ Lⱼ = L∩    for i ≠ j

Here Lᵢ and Lⱼ are distinct candidate sets, i and j are their indices, and ∩ between two sets denotes intersection. L∩ names the shared region. The condition i ≠ j limits the equality to distinct indices. An element outside L∩ can belong to at most one of the candidates, because membership in two would put it in their intersection.

The adversary can answer membership using the shared region as its reference. A subset proposal contained in that region is a subset of every target in the collection. A proposal extending beyond it can be rejected with a point outside the region, and that point can invalidate the reply for at most one target. A restricted equivalence rejection can exclude at most the one target equal to the proposal. These properties force N − 1 queries in the worst case for a collection of N candidates.

For full equivalence queries, the proof has to return a witness. If the shared region is outside the hypothesis space, every allowed proposal differs from it. The oracle can point to a difference. A point in the shared region omitted by the proposal is a disagreement for every possible target. A point included in the proposal but outside the shared region can fail to be a disagreement for at most one target. Thus the same lower bound goes through with counterexamples. This is the mechanism used for the constant-only pattern family, where the shared region is empty and the empty set has no pattern description.

The dual construction uses a common union. A point in that union can be missing from at most one candidate. Membership and superset replies can then be chosen to preserve all but one candidate, with restricted equivalence giving the same per-query limit. If the common union is unavailable as a proposal, a full equivalence reply can once more use a difference from the common set. This supplies the analogous result for superset in place of subset.

These arguments explain why representation restrictions are part of the claims. If the learner could propose the common intersection itself to a full equivalence oracle, a counterexample would have to identify an element peculiar to the target. For the singleton family that element gives away the answer. The lower bound’s choice of witness depends on the learner being unable to ask that particular question.

Switching the direction of a comparison

The pattern domain isolates a different distinction. Subset tests ask whether the proposal includes any element outside the target. On singleton targets and their allowed pattern proposals, an adversary can use those tests to make progress depend on individual points. Superset tests give the learner a way to ask whether a condition is obeyed throughout the target language. A strategically chosen pattern imposes a minimum length, a fixed constant, or an equality between positions. Those conditions separate large collections of possible targets without requiring a counterexample.

A related choice occurs with bounded-width formulas. The equivalence learner for k-CNF seeks a positive witness that can remove several unsupported clauses together. The disjointness learner goes through possible clauses by querying their negations. A yes certifies a clause as true throughout the target. These procedures have different workloads even when their stated query bounds use the same expression. One relies on counterexamples to revise a current conjunction. The other obtains enough direct inclusion information from restricted tests to assemble the result at the end.

The k-term DNF example isolates the choice of description language itself. Angluin observes that a formula with at most k DNF terms has an equivalent k-CNF expression. When the learner can use the larger k-CNF family for its proposals and output, it can take advantage of the equivalence-only algorithm for that family. Requiring a DNF formula with at most k terms restores the condition of the computational lower bound. Representing the same accepted assignments in a different form thus changes which efficient learning result applies.

Changing the success criterion

The stochastic simulation and the singleton comparison address different directions of a possible conversion. In one direction, sample disagreements can stand in for equivalence counterexamples because each is a real disagreement. A sampling test can still accept an incorrect proposal. The probability bound makes that acceptable under the probabilistic criterion. It assigns a limited failure budget to this decision over the entire sequence of proposals.

In the other direction, replacing samples with equivalence and demanding exact identification can turn an efficient approximate task into a costly exact one. The binary singleton proof makes the reason concrete. The distribution can give two unseen strings little weight even though the sets containing them differ. Under exact identification those sets remain different candidates that the learner must distinguish. The comparison alters both the information acquisition procedure and the success criterion, so it establishes a failure of an efficiency-preserving replacement under those joint changes.

Limitations

Limits Angluin states

The treatment takes the representation of hypotheses as a condition of the learning problem. Angluin emphasizes that the choice is important and leaves a general treatment outside the paper’s scope. Most of the analysis works with queries inside the supplied family, while the majority strategy deliberately permits arbitrary subsets. A query-count bound under the latter assumption leaves open how to store and compute the required proposal. Angluin observes that explicitly maintaining all remaining hypotheses is infeasible in many domains and points to the difficulty of sampling fairly from the survivors. The paper also notes that majority vote need not use the fewest possible queries in every domain.

Angluin identifies several unresolved comparisons for the families studied. The paper asks whether membership is essential for efficient identification of regular languages or of monotone DNF, and whether disjointness helps with pattern languages. The available sufficient interfaces and lower bounds cover particular combinations of query types. An efficient procedure with one combination leaves scope for another procedure with fewer or weaker queries.

The paper also anticipates that real answers can be erroneous. A person may have persistent gaps or biases, and another source of answers may make random errors. The proofs studied here generally rely on a correct label or a valid witness whenever the oracle answers. Angluin describes work on malicious and random errors as a beginning for studying these conditions. The paper also recognizes practical limits on the requests themselves. An expert might classify a fully specified case reliably, but the learner may struggle to generate a realistic case with precisely the features it wants to examine. A higher-level inclusion or overlap question can be more natural in that situation.

Finally, the paper allows that other sources of information may fit particular domains. It discusses specialized questions in formula learning and program diagnosis and points towards hints for propositional Horn sentences. Its own lower bounds concern the query types specified in their assumptions. They do not place the same restriction on an informant that can give a suitable explanation or another kind of domain-specific evidence.

Limits that follow from the setup

An oracle is an abstraction for answers, and the bounds are primarily about the learner. A proof that a small number of equivalence queries suffices does not supply an inexpensive way to decide equivalence or to find a witness for the target. Likewise, the restricted superset algorithm for patterns assigns its efficiency to a learner with a source of reliable containment answers. The cost of providing those answers can matter in an application independently of the cost of deciding which ones to request.

The target promise also limits what an exact learner can accomplish. The target belongs to the given family, and an equivalent description is an acceptable output. The learner is not asked to determine whether the family itself is appropriate. For grammars, the stronger nonterminal access presumes named components whose behavior can be queried in the target, along with the known grammar information in the theorem. For integer-weight languages, an equivalent set of weights is enough. The result concerns reconstruction of accepted strings, so distinct hidden descriptions that behave identically need not be distinguished.

The counterexample-length parameter matters in the automaton and grammar results and in the disjointness algorithm for integer-weight languages. An arbitrary valid oracle can select a long witness. A bound polynomial in the longest reported witness describes the learner’s cost once that size is included. It leaves open how efficiently an oracle can provide short, convenient witnesses. Query counts can therefore describe different practical costs even for the same number of interactions.

The probabilistic guarantee is tied to the distribution that supplies the labeled examples. A hypothesis with small disagreement probability can be wrong on cases with little or no probability under that distribution. The guarantee also depends on the sampling process providing the draws used in the probability calculation. It establishes neither uniform exact agreement nor the same accuracy under another distribution. The example of unseen strings makes this scope explicit because the conclusion rests on how much probability they carry.

There is a distinction between fitting the theory to a concrete setting and establishing empirical gains there. The poker and program-diagnosis discussions help explain what the questions mean, while the mathematical comparisons establish resource requirements for their stated families. Transfer to a practical learning task depends on an expressible target, a source of suitable answers, and costs that the application can bear. Those conditions would need to be established for the task in question.

What came after

From learner-selected questions to active learning surveys

Burr Settles’s survey takes active learning as its subject. The connection to Angluin is the learner’s role in deciding which information to ask for. In particular, a membership query identifies an example whose label the learner seeks, while the paper’s other queries show how the request can be about an entire proposed set. Angluin supplies a formal way to distinguish the scope of a request from the form of the reply. A survey of active learning places that question-selection perspective in a broader field. Active Learning Literature Survey

Xia and colleagues’ survey puts selection and generation side by side. That distinction connects to an assumption Angluin already makes explicit. A learner can choose a concrete input to query, and a set-valued query can go further by constructing a description that tests a property across many inputs. The titles indicate different settings. Angluin counts the consequences of specified oracle responses in formal concept classes, while the later survey is organized around selection and generation in active learning. The shared question is what the learner gains from having a say in the construction of its next request. From Selection to Generation

Restrictions on descriptions and tests of hidden behavior

Alur and colleagues’ work centers synthesis on a permitted syntax. The point of contact is the role of the descriptions that a procedure may propose and eventually return. In Angluin’s paper, permitting a different syntax can change query complexity or even change which polynomial-time result applies, as the move between bounded numbers of DNF terms and bounded-width CNF shows. The work on synthesis puts the allowed form of a candidate at the center of its own task. This makes explicit a feature of Angluin’s comparisons that can otherwise look like a change of notation. Syntax-Guided Synthesis

Geng and colleagues study the reverse-engineering of black-box systems. The connection is the inference problem that arises when a target can be investigated through its behavior while its description is hidden. Angluin distinguishes the information obtained by checking an input, being shown a disagreement with a proposed rule, and receiving confirmation against the whole target. That distinction gives a way to characterize the evidence available in a reverse-engineering assessment. A test that reveals individual behaviors and a test that verifies an entire proposal support different conclusions about what has been recovered. Assessing Reverse-Engineering of Black-Box Systems

Cite

Cite as Dana Angluin. 1988. Queries and Concept Learning. Machine Learning 2:319–342.

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

@inproceedings{angluin1988queries,
  title = {{Queries and Concept Learning}},
  author = {Dana Angluin},
  booktitle = {Machine Learning 2:319–342},
  year = {1988},
  doi = {10.1007/bf00116828},
  url = {https://doi.org/10.1007/bf00116828}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/angluin-1988-queries-concept-learning/