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

Performs native structural reasoning for proteins, small molecules and inorganic crystals by tokenizing coordinates, topologies and periodic connectivities into a unified structure-aware vocabulary. Treats structural tokens as addressable evidence to produce interpretable prediction traces and improves accuracy across biology, chemistry and materials benchmarks.

A 2019 essay arguing that over 70 years of AI, general methods that scale with computation — search and learning — consistently beat hand-coded human knowledge. The short text that crystallized the scaling-vs-priors debate.

Proposes a router redesign for Mixture-of-Experts (MoE) that aligns each router row with its expert's principal singular direction using Manifold Power Iteration (MPI), improving token–expert affinity. MPI applies a 'power‑then‑retract' step to push router rows toward principal singular vectors while enforcing norm constraints; the paper gives convergence theory and pretraining results on 1B–11B MoE models.