<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>Notebooks   </title>
    <link>http://bactra.org/notebooks</link>
    <description>Cosma's Notebooks</description>
    <language>en</language>

  <item>
    <title>Grammatical Inference</title>
    <link>http://bactra.org/notebooks/2009/04/10#grammatical-inference</link>
    <description>




&lt;P&gt;Meaing: inferring the rules of a formal language (its grammar) from examples,
positive or negative.  I'm mostly interested in the positive case, since
I want to describe physical processes as though they were formal languages
or (what is equivalent) automata.

&lt;P&gt;&amp;mdash; A result which has recently come to vex me is the fact that even
finite automata are, in the computational learning theory sense, hard to learn.
It's widely believed, but not proved, that common cryptographic systems are
hard to crack, meaning that there are no efficient, polynomial-time algorithms
for them (unless you have the key, of course...).  It turns out that the
ability to learn polynomially-sized deterministic finite automata in polynomial
time would imply the ability to defeat RSA in polynomial time, which is a
pretty good indication that it can't be done.  (See Kearns and Vazirani for a
very nice discussion.)  Initial results were about uniform distributions over
words, but it turns out further that this holds even when the distribution of
words is generated by a stochastic automaton of the same form.

&lt;P&gt;This is extremely annoying to me, because I want to learn stochastic
automata from time series, and to do so in polynomial time (if not better).
One possibility is that the time-complexity is just bad, in the worst case, and
there is nothing to be done about this.  (I fear this might be true.)  This
would not, however, address the scaling of prediction error and confidence with
sample size, which is really what interests me.  The other possibility is that
I am interested in a rather different set-up than this, one where it's crucial
that, as &lt;em&gt;n&lt;/em&gt; grows, we see the continuation of a single sample path from
a fixed automaton.  (In the language, every allowed word is the prefix of
infinitely many other allowed words.)  Or: the experiment can go on forever.
(In fact I'm often interested in the situation where the experiment could have
been running forever, so every word is the suffix of infinitely many words.)  I
think, though I am not sure, that the ability to infer these languages quickly
would not cause cryptographic horrors, because I think this restriction breaks
the crypto-to-DFA mapping. &lt;a href=&quot;learning-theory.html&quot;&gt;Computational
Learning Theory&lt;/a&gt;;
	&lt;a href=&quot;computational-mechanics.html&quot;&gt;Computational Mechanics&lt;/a&gt;;
	&lt;a href=&quot;linguistics.html&quot;&gt;Linguistics&lt;/a&gt;;
	&lt;a href=&quot;learning-inference-induction.html&quot;&gt;Machine Learning,
Statistical Inference and Induction&lt;/a&gt;;
	&lt;a href=&quot;transducers.html&quot;&gt;Transducers&lt;/a&gt;

&lt;ul&gt;Recommended (big picture):
	&lt;li&gt;Remo Badii and Antonio Politi, &lt;cite&gt;Complexity: Hierarchical
Structure and Scaling in Physics&lt;/cite&gt; [Treating dynamical systems like
formal languages.  &lt;a href=&quot;../reviews/badii-and-politi/&quot;&gt;Review&lt;/a&gt;.]
	&lt;li&gt;Eugene Charniak, &lt;cite&gt;Statistical Language Learning&lt;/cite&gt; [Good
stuff on learning grammars for the two lowest levels of the Chomsky hierarchy;
explains the grammar ideas for the benefit of engineers.]
	&lt;li&gt;Michael J. Kearns and Umesh V. Vazirani, &lt;cite&gt;An Introduction to
Computational Learning Theory&lt;/cite&gt; [&lt;a
href=&quot;../reviews/kearns-vazirani/&quot;&gt;Review: How to Build a Better Guesser&lt;/a&gt;]
	&lt;li&gt;Christopher D. Manning and Hinrich Shutze, &lt;cite&gt;Foundations of
Statistical Natural Language Processing&lt;/cite&gt;
	&lt;/ul&gt;

&lt;ul&gt;Recommended (close-ups):
	&lt;li&gt;Jim Engle-Warnick, William J. McCausland and John H. Miller,
&quot;The Ghost in the Machine: Inferring Machine-Based Strategies from
Observed Behavior&quot; [i.e., inferring stochastic transducers from data; hence
the inclusion here]
	&lt;li&gt;Craig G. Nevill-Manning and Ian H. Witten, &quot;Identifying
Hierarchical Structure in Sequences: a Linear-Time Algorithm,&quot; &lt;a
href=&quot;http://xxx.lanl.gov/abs/cs.AI/9709102&quot;&gt;cs.AI/9709102&lt;/a&gt; [Scheme for
inferring context-free grammars from sequential data streams; no consideration
of probabilistic properties]
	&lt;li&gt;Leonid Peshkin, &quot;Structure induction by lossless graph compression&quot;,
a href=&quot;http://arxiv.org/abs/cs.DS/0703132&quot;&gt;cs.DS/0703132&lt;/a&gt; [Adapting
data-compression ideas, a la Nevill-Manning and Witten, to graphs]
	&lt;li&gt;Patrick Suppes, &lt;cite&gt;Representation and Invariance of Scientific
Structures&lt;/cite&gt; [Provides a very counter-intuitive proof, originally
presented in papers from the 1960s and 1970s, that certain stimulus-response
learning models can, asymptotically, become isomorphic to arbitrary grammars.]
	&lt;li&gt;Sebatiaan A. Terwijn, &quot;On the Learnability of Hidden Markov
Models&quot;, &lt;a href=&quot;http://dx.doi.org/10.1007/3-540-45790-9&quot;&gt;pp. 344--348 in
P. Adriaans, H. Fornau and M. van Zaanen (eds.), &lt;cite&gt;Grammatical Inference:
Algorithms and Applications&lt;/cite&gt;, Lecture Notes in Computer
Science &lt;strong&gt;2484 (2002)&lt;/a&gt; [Straightforward, but it leans a lot on wanting
to learn languages over words of fixed length, whereas for the cases of
&quot;physical&quot;, i.e., dynamical, interest, one is restricted to languages where
every word has at least one one-letter extension in the language (and so, by
induction, every finite word is the prefix of infinitely many words).]
	&lt;/ul&gt;

	&lt;ul&gt;To read:
	&lt;li&gt;Juan-Carlos Amengual, Alberto Sanchis, Enrique Vidal and
Jose-Miguel Benedi, &quot;Language Simplification through Error-Correcting and
Grammatical Inference Techniques,&quot; &lt;cite&gt;Machine Learning&lt;/cite&gt;
&lt;Strong&gt;44&lt;/strong&gt; (2001): 143--159
	&lt;li&gt;Miguel Bugalho and Arlindo L. Oliveira, &quot;Inference
of regular languages using state merging algorithms with search&quot;,
&lt;a href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.027&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1457--1467&lt;/a&gt;
	&lt;li&gt;Andreas Blume, &quot;A Learning-Efficiency Explanation of Structure in
Language&quot;, &lt;a href=&quot;http://dx.doi.org/10.1007/s11238-005-0280-1&quot;&gt;&lt;cite&gt;Theory
and Decision&lt;/cite&gt; &lt;strong&gt;57&lt;/strong&gt; (2004): 265--285&lt;/a&gt;
	&lt;li&gt;Roberto Bonato, &quot;A Study on Learnability for Rigid Lambek Grammars&quot;,
&lt;a href=&quot;http://arxiv.org/abs/cs.LG/0608033&quot;&gt;cs.LG/0608033&lt;/a&gt; [&quot;we present
Lambek grammars, a formalism issued from categorial grammars which, although
not as expressive as needed for a full formalization of natural languages, is
particularly suited to easily implement a natural interface between syntax and
semantics. In the last part of this work, we present a learnability result for
Rigid Lambek grammars from structured examples.&quot;]
	&lt;li&gt;Rafael C. Carrasco, Jose Oncina and Jorge Calera-Rubio, &quot;Stochastic
Inference of Regular Tree Languages,&quot; &lt;cite&gt;Machine
Learning&lt;/cite&gt; &lt;strong&gt;44&lt;/strong&gt; (2001): 185--197
	&lt;li&gt;Francisco Casacuberta, Enrique Vidal and David Pic&amp;oacute;,
&quot;Inference of finite-state transducers from regular languages&quot;,
&lt;a href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.025&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1431--1443&lt;/a&gt; [&quot;Given a
training corpus of input-output pairs of sentences, the proposed approach uses
statistical alignment methods to produce a set of conventional strings from
which a stochastic finite-state grammar is inferred. This grammar is finally
transformed into a resulting finite-state transducer.&quot;]
	&lt;li&gt;P. Collet, A. Galves and A. Lopes, &quot;Maximum Likelihood and Minimum
Entropy Identfication of Grammars,&quot; &lt;cite&gt;Random and Computational
Dynamics&lt;/cite&gt; &lt;strong&gt;3&lt;/strong&gt; (1995): 241--250
	&lt;li&gt;Colin de la Higuera, &quot;A bibliographical study of grammatical
inference&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1016/j.patcog.2005.01.003&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1332--1348&lt;/a&gt;
	&lt;li&gt;C. de la Higuera and J. C. Janodet, &quot;Inference of \omega-languages
from prefixes&quot;, &lt;cite&gt;Theoretical Computer Science&lt;/cite&gt; &lt;strong&gt;313&lt;/strong&gt;
(2004): 295--312 [&lt;a
href=&quot;http://dx.doi.org/10.1016/j.tcs.2003.11.009&quot;&gt;abstract&lt;/a&gt;]
	&lt;li&gt;Francois Denis, Aurelien Lemay and Alain Terlutte, &quot;Learning
regular languages using RFSAs&quot;, &lt;cite&gt;Theoretical Computer Science&lt;/cite&gt;
&lt;strong&gt;313&lt;/strong&gt; (2004): 267--294 [&lt;a
href=&quot;http://dx.doi.org/10.1016/j.tcs.2003.11.008&quot;&gt;abstract&lt;/a&gt;]
	&lt;li&gt;Francois Denis, Yann Esposito and Amaury Habrard, &quot;Learning
rational stochastic
languages&quot;, &lt;a href=&quot;http://arxiv.org/abs/cs.LG/0602062&quot;&gt;cs.LG/0602062&lt;/a&gt;
	&lt;li&gt;P. Dupont, F. Denis and Y. Esposito, &quot;Links between probabilistic
automata and hidden Markov models: probability distributions, learning models
and induction algorithms&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.020&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/citE&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1349--1371&lt;/a&gt;
	&lt;li&gt;Jeroen Geertzen, &quot;String Alignment in Grammatical Inference: what
suffix trees can do&quot;
[&lt;a href=&quot;http://ilk.uvt.nl/downloads/pub/papers/ilk0311.pdf&quot;&gt;PDF&lt;/a&gt;]
	&lt;li&gt;C. Lee Giles, Steve Lawrence and Ah Chung Tsoi, &quot;Noisy Time Series
Prediction Using Recurrent Neural Networks and Grammatical Inference,&quot;
&lt;cite&gt;Machine Learning&lt;/cite&gt; &lt;strong&gt;44&lt;/strong&gt; (2001): 161--183
	&lt;li&gt;Mark Johnson, Thomas L. Griffiths and Sharon Goldwater, &quot;Adaptor
Grammars: A Framework for Specifying Composition Nonparametric Bayesian
Models&quot;, &lt;cite&gt;NIPS&lt;/citE&gt; 19 [But containing significant typos; see
&lt;a
href=&quot;http://www.cog.brown.edu/~mj/papers/JohnsonGriffithsGoldwater06AdaptorGrammars.pdf&quot;&gt;version
at Johnson's website&lt;/a&gt;]
	&lt;li&gt;Bill Keller and Rudi Lutz, &quot;Evolutionary induction of stochastic context free grammars&quot;, &lt;a href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.022&quot;&gt;&lt;cite&gt;Pattern Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1393--1406&lt;/a&gt;
	&lt;li&gt;Dan Klein and Christopher D. Manning, &quot;Natural language grammar
induction with a generative constituent-context model&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.023&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1407--1419&lt;/a&gt; [&quot;We present a
generative probabilistic model for the unsupervised learning of hierarchical
natural language syntactic structure. Unlike most previous work, we do not
learn a context-free grammar, but rather induce a distributional model of
constituents which explicitly relates constituent yields and their linear
contexts.... [Gets the] best published unsupervised parsing results on the ATIS
corpus....&quot;]
	&lt;li&gt;&lt;a href=&quot;http://www.cs.cmu.edu/~lkontor/&quot;&gt;Leo Kontorovich&lt;/a&gt;, John
Lafferty and David Blei, &quot;Variational Inference and Learning for a Unified
Model of Syntax, Semantics and Morphology&quot;
[&lt;a
href=&quot;http://reports-archive.adm.cs.cmu.edu/anon/cald/abstracts/06-100.html&quot;&gt;Abstract,
PDF&lt;/a&gt;]
		&lt;/ul&gt;
	&lt;li&gt;Steffen Lange and Thomas Zeugmann, &quot;Incremental Learning from
Positive Data,&quot; &lt;cite&gt;Journal of Computer and System Sciences&lt;/cite&gt;
&lt;strong&gt;53&lt;/strong&gt; (1996): 88--103
	&lt;li&gt;S. M. Lucas and T. J. Reynolds, &quot;Learning Deterministic Finite
Automata with a Smart State Labeling Evolutionary Algorithm&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1109/TPAMI.2005.143&quot;&gt;&lt;cite&gt;IEEE Transactions on
Pattern Analysis and Machine Intelligence&lt;/cite&gt;
&lt;strong&gt;27&lt;/strong&gt; (2005): 1063--1074&lt;/a&gt;
	&lt;li&gt;Marcelo A. Montemurro and Pedro A. Pury, &quot;Long-range fractal
correlations in literary corpora,&quot; &lt;a
href=&quot;http://arxiv.org/abs/cond-mat/0201139&quot;&gt;cond-mat/0201139&lt;/a&gt; [The paper
doesn't consider grammars, but it's an effect which grammatical inference needs
to be able to handle]
	&lt;li&gt;Katsuhiko Nakamura and Masashi Matsumoto, &quot;Incremental learning of
context free grammars based on bottom-up parsing and search&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1016/j.patcog.2005.01.004&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1384--1392&lt;/a&gt;
	&lt;li&gt;Partha Niyogi
		&lt;ul&gt;
		&lt;li&gt;&lt;cite&gt;The Informational Complexity of Learning:
Perspectives on Neural Networks and Generative Grammars&lt;/cite&gt; [How many licks
&lt;em&gt;does&lt;/em&gt; it take to get to the core of a context-free grammar, Uncle
Noam?]
		&lt;li&gt;&lt;cite&gt;The Computational Nature of Language Learning and Evolution&lt;/cite&gt; [&lt;a href=&quot;http://mitpress.mit.edu/0-262-14094-2&quot;&gt;Blurb&lt;/a&gt;]
		&lt;/ul&gt;
	&lt;li&gt;Arlindo L. Oliveira and Joao P. M. Silva, &quot;Efficient Algorithms for
the Inference of Minimum Size DFAs,&quot; &lt;cite&gt;Machine Learning&lt;/cite&gt;
&lt;strong&gt;44&lt;/strong&gt; (2001): 93--119
	&lt;li&gt;David Pico and Francisco Casacuberta, &quot;Some Statistical-Estimation
Methods for Stochastic Finite-State Transducers,&quot; &lt;cite&gt;Machine
Learning&lt;/cite&gt; &lt;strong&gt;44&lt;/strong&gt; (2001): 121--141
	&lt;li&gt;Detlef Prescher, &quot;A Tutorial on the Expectation-Maximization
Algorithm Including Maximum-Likelihood Estimation and EM Training of
Probabilistic Context-Free Grammars&quot;, &lt;a
href=&quot;http://arxiv.org/abs/cs.CL/0412015&quot;&gt;cs.CL/0412015&lt;/a&gt;
	&lt;li&gt;Juan Ram&amp;oacute;n Rico-Juan, Jorge Calera-Rubio and Rafael
C. Carrasco, &quot;Smoothing and compression with stochastic k-testable tree
languages&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.024&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1420--1430&lt;/a&gt;
	&lt;li&gt;Peter Rossmanith and Thomas Zeugmann, &quot;Stochastic Finite Learning
of the Pattern Languages,&quot; &lt;cite&gt;Machine Learning&lt;/cite&gt; &lt;strong&gt;44&lt;/strong&gt;
(2001): 67--91
	&lt;li&gt;Yasubumi Sakakibara
		&lt;ul&gt;
		&lt;li&gt;&quot;Grammatical Inference in Bioinformatics&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1109/TPAMI.2005.140&quot;&gt;&lt;cite&gt;IEEE Transactions on
Pattern Analysis and Machine Intelligence&lt;/cite&gt; &lt;strong&gt;27&lt;/strong&gt; (2005):
1051--1062&lt;/a&gt;
		&lt;li&gt;&quot;Learning context-free grammars using tabular
representations&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1016/j.patcog.2004.03.021&quot;&gt;&lt;cite&gt;Pattern
Recognition&lt;/cite&gt; &lt;strong&gt;38&lt;/strong&gt; (2005): 1272--1383&lt;/a&gt; [&quot;By employing
this representation... the problem of learning context-free grammars from
[positive and negative] examples can be reduced to the problem of partitioning
the set of nonterminals.  We use genetic algorithms for solving this
partitioning problem.&quot;]
		&lt;/ul&gt;
	&lt;li&gt;Patrick Suppes, &lt;cite&gt;Language for Humans and Robots&lt;/cite&gt;
	&lt;li&gt;J. L. Verdu-Mas, R. C. Carrasco and J. Calera-Rubio, &quot;Parsing with
Probabilistic Strictly Locally Testable Tree Languages&quot;, &lt;a
href=&quot;http://dx.doi.org/10.1109/TPAMI.2005.144&quot;&gt;&lt;cite&gt;IEEE Transactions on
Pattern Analysis and Machine Intelligence&lt;/citE&gt; &lt;strong&gt;27&lt;/strong&gt; (2005):
1040--1050&lt;/a&gt;
	&lt;/ul&gt;
</description>
  </item>
  </channel>
</rss>