Making neural networks true language recognizers instead of proxy task solvers
https://arxiv.org/abs/2411.07107
π― Original Problem:
Current methods test neural networks' computational power using proxy tasks like language modeling, creating a mismatch with formal language theory which deals with recognizers (machines that classify strings as belonging to a language or not).
-----
π οΈ Solution in this Paper:
β Introduces FLaRe (Formal Language Recognition) benchmark for training neural networks directly as binary classifiers of formal languages
β Develops an efficient algorithm for length-controlled sampling from regular languages using counting semirings
β Implements balanced positive and negative sampling with two types of negative examples: uniform random strings and perturbed positive examples
β Uses binary cross-entropy as primary objective with optional auxiliary tasks like language modeling
-----
π‘ Key Insights:
β RNN and LSTM often outperform transformers in formal language recognition tasks
β Auxiliary objectives like language modeling help specific architectures but show no consistent improvement
β The proposed sampling algorithm improves time complexity by O(n_max^2)
β Transformers show preference for low-sensitivity Boolean functions
-----
π Results:
β Achieved scalable sampling up to string length n_max=500
β RNN and LSTM consistently outperformed transformer architecture across multiple formal languages
β Binary cross-entropy objective proved highly effective without requiring complex auxiliary tasks










