techlist.io

Relational Networks

1 posts

OpenAI2018-11-063 min readCurated summary

Learning concepts with energy functions

# Learning Concepts with Energy Functions OpenAI researchers developed an energy-based model that learns to identify and generate abstract concepts, such as "near," "between," or "furthest," from just five demonstrations. The concepts are expressed as sets of 2D points, and the model can transfer them across domains: concepts learned in a 2D particle environment are used to solve tasks on a 3D physics-based robot without retraining. The authors argue that forming reusable concepts is a basic building block of generalization, abstract reasoning, and planning. ## Why Concepts Matter - Human intelligence relies on consolidating experience into concepts, such as visual ("red," "square"), spatial ("inside," "on top of"), temporal ("slow," "after"), and social ("helpful") ones. - Concepts give agents basic building blocks for understanding and reasoning, enabling them to generalize from limited experience. ## How Energy Functions Represent Concepts - Energy models are inspired by physics: observed states correspond to low-energy configurations. - Each concept is defined by an energy function E(x, a, w) with three inputs: - **x**: the state of the world, composed of entities and their properties and positions - **a**: an attention mask over entities, used for identification - **w**: a continuous conditioning vector specifying which concept is being evaluated - The model outputs a single positive number. Energy is zero when the concept is satisfied and high otherwise. - A concept is satisfied when the attention mask focuses on entities that are in the correct positions (generation) and are the right entities (identification). - The energy function is a relational network, so it can accept an arbitrary number of entities. ## One Network for Generation and Recognition - A single network handles both generating a concept (moving entities in x) and identifying it (changing the attention mask over a fixed x). - Concepts learned through one mode can be applied to the other. ## Training Procedure - Training data consists of trajectories of (attention mask, state) pairs generated for each target concept. - The model sees about five demonstrations of a concept, then receives a new environment (X0) and predicts the next state (X1) and next attention mask (a). - The energy function is optimized so the correct next state and mask receive low energy, similar in spirit to variational autoencoders, which encourages compressed, useful representations. - Training covered visual, spatial, proximal, and temporal relations, plus quantification, in a 2D particle environment. ## Results - The system learned to classify and generate spatial relationships, move entities through scenes in specified ways, and judge quantities (one, two, three, or more than three) and proximity. - Joint training on generation and identification outperformed training on either operation alone. - Transfer also emerged: an energy function trained only on recognition performed well on generation without explicit training for it. ## Future Directions - Learning concepts in richer, three-dimensional environments - Integrating concepts with agent decision-making policies, since the work so far used only passive experience - Connecting concepts to language understanding