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

Enables multi-head, depth-wise residual retrieval in Transformers by expanding a single residual stream into multiple context-aware streams using causal depthwise convolutions. Improves pretraining convergence and downstream benchmark scores with minimal overhead, yielding notable iso-loss compute speedups in large MoE models.

A concise textbook-style book that explains foundational concepts and techniques for large language models, covering pre-training, generative models, prompting, alignment, inference, and reasoning. Structured as self-contained chapters for readers with some ML/NLP background or those seeking a principled introduction to LLM foundations.

Analyzes why self-evolving reasoning models collapse under repeated self-training and proposes R-Quest: a feedback-driven pipeline that trains solvers to reject invalid questions and uses a frozen base model to detect task-level repetition, filtering training data to sustain multi-round gains.