techlist.io

Autoregressive Models

3 posts

OpenAI2022-07-272 min readCurated summary

Efficient training of language models to fill in the middle

Autoregressive language models can learn to fill in text in the middle of a document with a simple data transformation: a span is moved from the middle of a document to its end. The authors show that training with a large fraction of data transformed this way does not hurt standard left-to-right generation, as measured by perplexity and sampling across a range of model scales. Because the method is useful, simple, and efficient, they argue that future autoregressive models should be trained with fill-in-the-middle (FIM) by default. ## The Transformation - A span of text is cut from the middle of a document and placed at the end. - The model is trained on the rearranged sequences, which lets it learn infilling with no change to the architecture. - Data augmentation of this kind has drawn considerable interest, but the authors focus on whether it costs anything in left-to-right performance. ## Preserving Left-to-Right Capability - Training with a large share of transformed data does not degrade original generative ability. - The authors check this with perplexity and sampling evaluations across a wide range of model scales. ## Recommended Training Practices - The authors run ablations on key hyperparameters: the frequency of the data transformation, the structure of the transformation, and the method for selecting the infill span. - These ablations produce recommended default settings and best practices for training FIM models. ## Released Resources - The authors released their best infilling model, trained with these practices, through their API. - They also released their infilling benchmarks to support future research.

OpenAI2017-10-162 min readCurated summary

Domain randomization and generative models for robotic grasping

Deep learning-based robotic grasping models are often trained on only hundreds or thousands of object instances, which limits how well they generalize. This work addresses that by applying domain randomization to object synthesis: a network trained on millions of unrealistic, procedurally generated objects can grasp real and unseen objects in both simulation and the real world. The authors pair this data pipeline with an autoregressive grasp planner that handles the multimodal distribution of successful grasps. ### Procedurally Generated Training Data - Millions of unique objects are generated procedurally, and they are deliberately unrealistic. - The approach borrows the idea of domain randomization, varying the training data widely so that the model does not overfit to a narrow set of object appearances and shapes. ### Autoregressive Grasp Planning - Successful grasps for a single object can fall into several distinct modes, so a single best-guess grasp is often insufficient. - The model takes sensor inputs of a scene and outputs a probability distribution over possible grasps rather than a single grasp. - Because the output is a distribution, grasps can be sampled efficiently at test time, or sampling can be avoided entirely. ### Results - In simulation, the model achieves over 90% grasp success on previously unseen realistic objects, even though it was trained only on random objects. - On real-world grasp attempts, it achieves about 80% success, again without any training on realistic objects or real-world data. The main takeaway is that training on large volumes of randomized synthetic objects can transfer to realistic objects in simulation and to physical robots, which suggests that object diversity may matter more than object realism for grasping generalization.

OpenAI2017-03-112 min readCurated summary

Prediction and control with temporal segment models

This paper introduces a method for learning the dynamics of complex nonlinear systems using deep generative models over temporal segments of states and actions rather than single timesteps. The approach combines convolutional autoregressive models with variational autoencoders to produce stable, accurate long-horizon predictions for stochastic systems. The learned model and action prior support end-to-end, differentiable trajectory optimization and model-based policy optimization, and the authors evaluate both performance and sample efficiency. ## Segment-level Dynamics Modeling - Traditional dynamics models predict one discrete timestep at a time. - This method instead learns a distribution over future state trajectories. - Predictions are conditioned on past states, past actions, and planned future action trajectories. - A latent prior over action trajectories is learned alongside the dynamics model. ## Architecture - The model is built on convolutional autoregressive models. - Variational autoencoders provide the generative framework. - The design is intended to handle complex, stochastic systems. ## Modeled Phenomena and Prediction Quality - Predictions remain stable and accurate over long horizons. - The model expresses uncertainty explicitly. - It captures collisions, sensory noise, and action delays. ## Applications in Control - The learned dynamics model and action prior can be used for end-to-end, fully differentiable trajectory optimization. - The same components support model-based policy optimization. - The authors use these applications to evaluate both the performance and sample efficiency of the method.