AIAny

Order Matters Sequence to sequence for sets

Demonstrates that the order you feed inputs and outputs into a seq2seq model changes what it learns — even for sets that have no inherent order — and adds an attention-based set encoder plus a training loss that searches over output orderings.

Introduction

RNNs made everything look like a sequence, so it became easy to forget that many problems — sorting numbers, modeling a set of variables, encoding an unordered collection — have no natural order at all. This paper's quietly subversive claim is that the moment you force such data into a seq2seq model, you smuggle in an ordering, and that arbitrary choice measurably changes what the model can learn. Order was never neutral; it was a hidden hyperparameter nobody was tuning.

Key Findings
  • Order is a learnable variable, not a given. The same set fed in different orders yields different model quality, on real tasks like language modeling and parsing as well as toy ones like sorting — so "the data is unordered" does not let you off the hook.
  • Read-Process-Write handles sets directly. Instead of pretending a set is a sequence, an attention-based encoder reads all elements, processes them with a permutation-invariant step, then writes the output — an early, principled answer to "how do you input a set?"
  • Train by searching over output orders. When outputs are a set, the proposed loss searches over possible orderings during training rather than committing to one, addressing the structural mismatch at its source.
  • A lineage, not a one-off. The framing seeded later permutation-invariant work (Deep Sets, Set Transformer) and connects to Pointer Networks and the attention mechanisms that the same group pushed forward.
Great Fit / When to Skip

Great fit if you want the origin of treating ordering as a first-class modeling decision, or to understand why set-structured inputs and outputs need more than a vanilla seq2seq. Look elsewhere if you need a ready-made permutation-invariant layer to drop into code — that engineering matured in the follow-up architectures; this is the conceptual groundwork, with experiments that are illustrative rather than large-scale.

Information

  • Websitear5iv.labs.arxiv.org
  • OrganizationsGoogle Brain
  • AuthorsOriol Vinyals, Samy Bengio, Manjunath Kudlur
  • Published date2015/11/19

More Items

Systematically studies how language and vision interact during unified multimodal pretraining, identifies mechanisms that enable modality synergy versus competition, demonstrates the benefit of early joint training, and derives efficient pretraining recipes validated at scale.

Presents Metis, a prototype memory foundation model that embeds a persistent native memory state into the backbone so historical experience is compressed and accessed via memory attention. Key features: forward-only, gradient-free online memory updates; memory-specific mid-training objectives; and a dual text/code memory design.

Empirically studies how transformer-based native multimodal pre-training scales under fixed compute, deriving compute- and data-allocation power laws and an efficiency frontier for model size, token count, and data mixture; evaluates cross-modal transfer and multimodal in-context learning.