In traditional machine learning, we treat entities—words, users, or items—as entries in a massive lookup table. Each entry has a fixed numerical vector, or "embedding," that the model retrieves during a task. While efficient, this static approach is brittle: it fails when it encounters something new (the "cold-start" problem), it struggles with entities that change meaning in different contexts (polysemy), and it requires massive amounts of memory to store millions of unique IDs.
A growing body of research proposes a shift from retrieval to synthesis. Instead of looking up a pre-computed vector, these systems generate representations on-the-fly, using the specific context of a query or the internal structure of the entity itself. This "just-in-time" approach trades raw storage for real-time computation, enabling models to handle an "open world" of data.
From Dictionaries to Compositional Logic
The most immediate benefit of dynamic synthesis is the elimination of the "unknown" token. In natural language, Gustavo Aguilar and Bryan McCann demonstrate this with Char2Subword. By replacing static subword tables with a neural module that builds representations from individual characters, they allow models to "understand" misspellings or rare words they have never seen before.
This logic extends to Knowledge Graphs (KGs). Traditional KGE methods assign a unique vector to every entity in Wikidata or Freebase, leading to models that are too large for mobile devices. Mikhail Galkin and William L. Hamilton address this in NodePiece by "tokenizing" nodes into a small, fixed vocabulary of anchors. Similarly, Mingyang Chen 0002 proposes Entity-Agnostic Representation Learning, which synthesizes an entity's embedding from its local neighborhood on-demand. In both cases, the model no longer needs to "remember" every entity; it only needs to know how to reconstruct them.
Contextual and Interactive Evolution
Static embeddings are "flat"—they represent a word or item in isolation. However, the meaning of an entity often depends on what it is interacting with. Matthew E Peters and colleagues pioneered this with ELMo, which generates "contextualized" embeddings by processing the entire sentence through a deep bidirectional LSTM.
This concept of "evolving" representations is particularly powerful in specialized domains:
- Source Code: Nadezhda Chirkova shows that for code completion, a variable's representation should change every time it is used in a program. Her dynamic embedding mechanism allows a model to track the "state" of a variable even if its name is anonymized.
- Recommendation Systems: Fangzhao Wu and Tao Qi introduce KIM, which moves away from independent user and item towers. Instead, it uses a co-encoder to interactively match a user’s history with a candidate article, synthesizing a representation that highlights the specific overlaps in interest.
The Computational Bottleneck
The primary challenge of dynamic synthesis is latency. If every embedding must be calculated by a neural network rather than retrieved from memory, the system's throughput drops. Walid Shalaby notes this trade-off in M2TRec, where generating item representations from raw metadata solves the cold-start problem but adds significant overhead compared to ID lookups.
To bridge this gap, researchers are developing hybrid frameworks. Carrie Wang and Laks V. S. Lakshmanan propose SPRinT, which handles aggregation queries over dynamic embeddings by combining cheap "proxy" embeddings with expensive "oracle" ones. This allows the system to maintain high accuracy while minimizing the number of full neural syntheses required.
Why It Works: The Inductive Leap
The shift to dynamic synthesis is ultimately a shift from transductive to inductive learning. A transductive model (like standard Matrix Factorization) can only reason about the specific entities it saw during training. An inductive model, like the IDCF framework by Qitian Wu, learns the underlying logic of how entities relate.
By learning to synthesize embeddings from metadata, relationships, or characters, these models gain the ability to generalize to entirely new domains. As Florian Grötschla and Roger Wattenhofer demonstrate with NBF-Rec, a model trained on one dataset can perform zero-shot recommendations on a completely different one, simply because it has learned how to build representations from the structure of interactions rather than memorizing specific IDs.