techlist.io

Representation Learning

4 posts

OpenAI2018-06-161 min readCurated summary

Learning policy representations in multiagent systems

Modeling agent behavior is central to understanding complex phenomena in multiagent systems, but prior work has mostly been task-specific and reliant on hand-engineered, domain-specific knowledge. The authors propose a general framework that models agent behavior from only a handful of interaction data by treating the problem as representation learning. They show that it works across a high-dimensional competitive continuous-control environment and a cooperative communication environment. ## A General Framework for Agent Modeling - The approach applies to any multiagent system rather than a single task or domain. - It needs only a small amount of interaction data. - Agent modeling is cast as a representation learning problem, in which each agent's policy is encoded as a learned representation. ## A Novel Objective and Unsupervised Learning Algorithm - The objective combines ideas from imitation learning and agent identification. - An algorithm learns representations of agent policies without labeled supervision. ## Empirical Evaluation - **Competitive environment:** a high-dimensional continuous-control setting. - **Cooperative environment:** a setting where agents communicate. - **Tasks:** the learned representations are tested on supervised predictive tasks, unsupervised clustering, and policy optimization with deep reinforcement learning.

OpenAI2017-04-053 min readCurated summary

Unsupervised sentiment neuron

# Unsupervised Sentiment Neuron: Learning Sentiment by Predicting the Next Character OpenAI researchers trained a multiplicative LSTM with 4,096 units to predict the next character in 82 million Amazon reviews, without any sentiment labels. The resulting representation contains a single unit that tracks sentiment with high precision. A linear model built on these features reaches state-of-the-art accuracy on the Stanford Sentiment Treebank while using 30 to 100 times fewer labeled examples than prior supervised systems. The authors argue that large next-step prediction models can learn useful, interpretable representations as a side effect of this simple objective. ## Training Setup - A multiplicative LSTM with 4,096 units was trained on 82 million Amazon reviews to predict the next character. - Training took one month on four NVIDIA Pascal GPUs and processed about 12,500 characters per second. - The 4,096-unit state vector serves as a feature representation of the input text. - A sentiment classifier was built by learning a linear combination of these units from labeled data. ## Discovery of the Sentiment Neuron - While fitting an L1-regularized linear model, the researchers noticed it relied on very few units. - Further analysis revealed a single unit, dubbed the "sentiment neuron," that is highly predictive of sentiment. - Because this neuron can be directly overwritten, the model offers a simple control over the sentiment of generated text. - Visualizing the neuron character by character shows large shifts on strongly polar words such as "best" and "horrendous," and also after sentence endings, where the neuron summarizes the sentiment of the completed clause. ## Results - On the Stanford Sentiment Treebank, the approach reaches 91.8% accuracy, up from the previous best of 90.2%. - The L1-regularized model matches a multichannel CNN with only 11 labeled examples, and matches CT-LSTM ensembles with 232 examples. Each comparison baseline was trained on 6,920 examples. ## Implications for Unsupervised Learning - Labeled data is expensive to collect at scale, so tasks without strong economic incentives often lack good models. - Learning good general representations without labels has long been a goal, and this work suggests next-step prediction on large data is a promising route. - The authors believe the effect is a general property of large networks trained to predict their next input, not specific to this architecture. ## Limitations and Future Directions - Performance drops on long documents, which the authors attribute to the character-level model struggling to retain information over hundreds to thousands of timesteps. Hierarchical models that adapt their timescales are suggested as a remedy. - The representation weakens as input text diverges from the review domain, so broader training corpora need to be tested. - The authors propose extending the idea to video, training models to predict future frames in order to learn representations for object, scene, and action classification.

OpenAI2016-11-072 min readCurated summary

Variational lossy autoencoder

Variational Lossy Autoencoder proposes a way to learn global representations that capture overall structure while discarding irrelevant detail such as texture. The method combines a Variational Autoencoder (VAE) with neural autoregressive models. The architecture is designed so the latent code cannot encode fine-grained information, which makes the VAE a lossy autoencoder. The approach also improves generative performance, reaching state-of-the-art density estimation results on MNIST, OMNIGLOT, and Caltech-101 Silhouettes. ### Learning Global Representations - Representation learning aims to expose useful aspects of data in a form that supports downstream tasks like classification. - For 2D images, a good representation describes global structure and ignores detailed texture. ### Controlling the Latent Code with Architecture - The VAE architecture is designed to control what the global latent code can learn. - By restricting the latent code, the model is forced to discard irrelevant information such as texture, so the VAE only "autoencodes" the data in a lossy way. ### Autoregressive Priors and Decoders - Autoregressive models such as RNN, MADE, and PixelRNN/CNN serve as both the prior distribution p(z) and the decoding distribution p(x|z). - This substantially improves the generative modeling performance of VAEs. ### Benchmark Results - The model achieves new state-of-the-art results on density estimation for MNIST, OMNIGLOT, and Caltech-101 Silhouettes.