Skip to main content
QUICK REVIEW

[Paper Review] Reproducing and learning new algebraic operations on word embeddings using genetic programming

Roberto Santana|arXiv (Cornell University)|Feb 18, 2017
Evolutionary Algorithms and ApplicationsComputer Science21 references3 citations
TL;DR

This paper proposes using genetic programming (GP) to automatically discover and evolve algebraic operations on word embeddings that outperform handcrafted linear operations. By treating vector composition as executable programs, GP learns complex, nonlinear transformations that achieve higher accuracy than standard methods on word analogy tasks, demonstrating transferability across vector spaces and corpora.

ABSTRACT

Word-vector representations associate a high dimensional real-vector to every word from a corpus. Recently, neural-network based methods have been proposed for learning this representation from large corpora. This type of word-to-vector embedding is able to keep, in the learned vector space, some of the syntactic and semantic relationships present in the original word corpus. This, in turn, serves to address different types of language classification tasks by doing algebraic operations defined on the vectors. The general practice is to assume that the semantic relationships between the words can be inferred by the application of a-priori specified algebraic operations. Our general goal in this paper is to show that it is possible to learn methods for word composition in semantic spaces. Instead of expressing the compositional method as an algebraic operation, we will encode it as a program, which can be linear, nonlinear, or involve more intricate expressions. More remarkably, this program will be evolved from a set of initial random programs by means of genetic programming (GP). We show that our method is able to reproduce the same behavior as human-designed algebraic operators. Using a word analogy task as benchmark, we also show that GP-generated programs are able to obtain accuracy values above those produced by the commonly used human-designed rule for algebraic manipulation of word vectors. Finally, we show the robustness of our approach by executing the evolved programs on the word2vec GoogleNews vectors, learned over 3 billion running words, and assessing their accuracy in the same word analogy task.

Motivation & Objective

  • To investigate whether genetic programming can automatically learn effective compositional operations for word embeddings.
  • To determine if GP-generated programs can surpass traditional linear algebraic operations in capturing semantic relationships.
  • To evaluate the transferability of evolved programs across different word vector spaces and corpora.
  • To explore the feasibility of evolving complex, nonlinear transformations for semantic composition in vector spaces.
  • To assess whether programs trained on smaller vector spaces can generalize to larger, more complex ones.

Proposed method

  • Represent word vector operations as executable programs using tree-based genetic programming (GP).
  • Encode operations as symbolic expressions with arithmetic operators (e.g., +, −, ×, ÷), constants, and word vector inputs.
  • Evolve programs using fitness evaluation based on word analogy accuracy: minimizing the distance between the output vector and the correct target word.
  • Use standard GP operators—selection, crossover, and mutation—to iteratively improve program quality over generations.
  • Train and validate on word analogy benchmarks, using cosine similarity to find the nearest neighbor in the vector space.
  • Test evolved programs on both small and large-scale word2vec vectors (e.g., GoogleNews, 3B words) to assess generalization and transferability.

Experimental results

Research questions

  • RQ1Can meaningful vector algebraic operations be learned from training examples using genetic programming?
  • RQ2Is genetic programming a feasible approach for discovering compositional operations in semantic vector spaces?
  • RQ3How does GP performance compare to standard human-designed linear operations in word analogy tasks?
  • RQ4Are GP-evolved programs transferable across different linguistic tasks, vector representations, and corpus sizes?
  • RQ5Can programs trained on small vector spaces be effectively applied to larger, more complex vector spaces?

Key findings

  • GP-generated programs achieved higher accuracy on word analogy tasks than the standard human-designed rule (e.g., king − man + woman → queen).
  • The evolved programs were able to reproduce known linguistic regularities, such as gender and inflectional relationships, with improved precision.
  • Evolved programs demonstrated strong transferability, performing well on the GoogleNews word2vec model trained on 3 billion words despite being trained on smaller datasets.
  • The approach successfully learned nonlinear and complex compositional operations that outperformed simple linear combinations.
  • Programs trained on small to moderate vector spaces were effective when tested on larger, more computationally expensive vector spaces, indicating scalability and efficiency gains.
  • The results suggest that GP can uncover hidden or subtle semantic relationships not captured by standard linear operations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.