CogniFNN: A Fuzzy Neural Network Framework for Cognitive Word Embedding Evaluation

Xinping Liu, Zehong Cao, Son N. TranarXiv 2020 · DOI

TL;DR

This paper introduces CogniFNN, a novel fuzzy neural network framework for evaluating word embeddings by comparing them against human cognitive data. CogniFNN outperforms existing methods by better capturing the non-linear and non-stationary nature of brain signals, leading to more accurate predictions and a more comprehensive evaluation of word embeddings.

What Problem Does This Paper Address?

Word embeddings, like GloVe and BERT, are fundamental to modern Natural Language Processing (NLP), aiming to represent word meanings as vectors. However, evaluating their quality has been a persistent challenge. Traditional methods often yield inconsistent results, failing to reliably correlate with how humans actually process language. While recent frameworks like CogniVal have attempted to bridge this gap by using human cognitive data (EEG, fMRI, eye-tracking), they often overlook the complex, non-linear, and non-stationary characteristics inherent in these physiological signals. This limitation can lead to less accurate evaluations of how well word embeddings capture human semantic understanding.

Methods

The core innovation of this paper is the CogniFNN framework, a fuzzy neural network designed to address the limitations of previous approaches. Unlike traditional neural networks, CogniFNN incorporates fuzzy logic to better model the inherent uncertainty and non-linear dynamics of human cognitive data.

The CogniFNN architecture consists of five layers:

  1. Input Layer: Takes word vectors from embedding models (e.g., GloVe, BERT) as input.
  2. Fuzzy Layer: Employs Gaussian fuzzy membership functions to represent the premise of fuzzy rules, capturing non-linear relationships.
  3. Normalized Layer: Normalizes the outputs from the fuzzy layer.
  4. Weighted Layer: Applies weights and biases to the normalized outputs, learning the consequent of the fuzzy rules.
  5. Output Layer: Produces the predicted cognitive features using linear activation for regression.

The framework is trained to predict human cognitive responses (e.g., brain activity patterns) based on word embeddings. The key novelty lies in its ability to extract non-linear and non-stationary characteristics from the cognitive data, which are often missed by standard regression models.

Datasets

The study utilizes a comprehensive set of 15 human cognitive datasets across three modalities:

  • EEG (4 datasets): ZUCO, NATURAL SPEECH, N400, and UCL.
  • fMRI (4 datasets): HARRY POTTER, ALICE, PEREIRA, and NOUNS.
  • Eye-tracking (7 datasets): DUNDEE, UCL, CFILT-SARCASM, CFILT-SCANPATH, PROVO, GECO, and ZUCO.

These datasets were used to evaluate the performance of word embeddings in predicting human responses during natural language processing tasks.

Key Insights and Ideas

  • Fuzzy Logic for Cognitive Data: The paper highlights that fuzzy neural networks are particularly well-suited for modeling the inherent uncertainty and non-linear dynamics present in physiological signals like EEG, fMRI, and eye-tracking data. This is a crucial insight for improving the accuracy of cognitive evaluations.
  • Beyond Linearity: By explicitly modeling non-linear and non-stationary characteristics, CogniFNN offers a more nuanced understanding of how word embeddings align with human cognition, moving beyond simpler linear regression approaches.
  • Comprehensive Evaluation: The framework's ability to achieve higher significant ratios when tested against random word embeddings suggests it provides a more robust and comprehensive evaluation, capable of distinguishing genuinely meaningful embeddings from random noise.

Key Results

The CogniFNN framework demonstrated superior performance compared to the baseline CogniVal framework:

  • Reduced Prediction Errors: CogniFNN achieved smaller Mean Squared Errors (MSEs) across most GloVe and BERT word embeddings when predicting cognitive data. For instance, averaged MSEs for GloVe were 0.028 with CogniFNN versus 0.037 with CogniVal, and for BERT, they were 0.011 with CogniFNN versus 0.013 with CogniVal.
  • Improved Significance Ratios: The framework showed a higher ratio of statistically significant results when comparing word embeddings against random baselines. The total ratio of significant results improved from 431/630 to 498/630. This indicates a more reliable and comprehensive evaluation.

Limitations and Future Work

  • Generalizability: While the study used 15 diverse cognitive datasets, future work could explore an even broader range of datasets and modalities to further validate the generalizability of CogniFNN.
  • Extrinsic Evaluation: The paper suggests that CogniFNN could be beneficial for evaluating word embeddings on extrinsic NLP tasks, which would be a natural next step to assess its practical impact beyond cognitive data.
  • Further Fuzzy Model Exploration: The authors used a specific type of fuzzy model (EBF and TS). Investigating other fuzzy logic approaches might yield further improvements.

Summary updated

Abstract

Word embeddings can reflect the semantic representations, and the embedding qualities can be comprehensively evaluated with human natural reading-related cognitive data sources. In this paper, we proposed the CogniFNN framework, which is the first attempt at using fuzzy neural networks to extract non-linear and non-stationary characteristics for evaluations of English word embeddings against the corresponding cognitive datasets. In our experiment, we used 15 human cognitive datasets across three modalities: EEG, fMRI, and eye-tracking, and selected the mean square error and multiple hypotheses testing as metrics to evaluate our proposed CogniFNN framework. Compared to the recent pioneer framework, our proposed CogniFNN showed smaller prediction errors of both context-independent (GloVe) and context-sensitive (BERT) word embeddings, and achieved higher significant ratios with randomly generated word embeddings. Our findings suggested that the CogniFNN framework could provide a more accurate and comprehensive evaluation of cognitive word embeddings. It will potentially be beneficial to the further word embeddings evaluation on extrinsic natural language processing tasks.
BibTeX
@misc{liu2020cognifnn,
  author = {Xinping Liu and Zehong Cao and Son N. Tran},
  title = {{CogniFNN: A Fuzzy Neural Network Framework for Cognitive Word Embedding Evaluation}},
  year = {2020},
  eprint = {2009.11485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.11485},
}
Figure