Limits of learning equal-length string patterns over binary alphabets
Learning Erasing Equal-Length Relational Pattern Languages in the Limit from Positive Data over Binary Alphabets
Logic in Computer ScienceFormal Languages and Automata TheoryMachine Learning
Summary
The paper explores how computers can learn patterns in strings where parts must be replaced by other strings of the same length, but not necessarily identical. The researchers found that when using only two letters in the alphabet, it’s impossible for a computer to learn certain complex patterns just by looking at positive examples. However, simpler patterns with fewer variable parts can still be learned. They also identify situations where the learning can be done step-by-step as new examples arrive.
What this means in practice
- •For language processing engineers: Design pattern matching algorithms that recognize equal-length substitutions when working with alphabets of three or more letters, avoiding binary cases that are not learnable.
- •For automated software testers: Develop testing approaches using learnable pattern classes with limited variable complexity to improve pattern detection in input strings over small alphabets.
A theory result. No direct application yet.
Authors
S. Mahmoud Mousawi, Sandra Zilles
Abstract
Relational pattern languages generalize Angluin's pattern languages by requiring the strings substituted for repeated occurrences of a variable to stand in a given relation, rather than to be identical. We study erasing pattern languages under the equal-length relation, where all occurrences of a variable must be replaced by strings of the same length. Over alphabets with at least three letters, this class is known to be learnable in the limit from positive data. We show that over a binary alphabet it is not, which resolves an open question from earlier work. Our proof reveals that non-learnability already holds for the restricted subclass of languages generated by patterns that have exactly three maximal substrings of variables. We then show that patterns with at most two maximal substrings of variables are learnable in the limit from positive data for every alphabet of size at least two. If the target pattern is known to have at most one maximal substring of variables, this can even be achieved by an iterative learner, which updates its hypothesis using only the current example and its previous hypothesis.