Pith. sign in

REVIEW 2 cited by

Trainable Transformer in Transformer

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2307.01189 v2 pith:OCBM3VPQ submitted 2023-07-03 cs.CL cs.LG

classification cs.CLcs.LG
keywords transformermodelstintlanguagemodelinternallargepre-trained
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

Recent works attribute the capability of in-context learning (ICL) in large pre-trained language models to implicitly simulating and fine-tuning an internal model (e.g., linear or 2-layer MLP) during inference. However, such constructions require large memory overhead, which makes simulation of more sophisticated internal models intractable. In this work, we propose an efficient construction, Transformer in Transformer (in short, TinT), that allows a transformer to simulate and fine-tune complex models internally during inference (e.g., pre-trained language models). In particular, we introduce innovative approximation techniques that allow a TinT model with less than 2 billion parameters to simulate and fine-tune a 125 million parameter transformer model within a single forward pass. TinT accommodates many common transformer variants and its design ideas also improve the efficiency of past instantiations of simple models inside transformers. We conduct end-to-end experiments to validate the internal fine-tuning procedure of TinT on various language modeling and downstream tasks. For example, even with a limited one-step budget, we observe TinT for a OPT-125M model improves performance by 4-16% absolute on average compared to OPT-125M. These findings suggest that large pre-trained language models are capable of performing intricate subroutines. To facilitate further work, a modular and extensible codebase for TinT is included.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Transformer-Squared: Self-adaptive LLMs

    cs.LG 2025-01 conditional novelty 6.0 of 10

    Transformer-Squared selectively rescales singular values of an LLM's weights with RL-trained expert vectors, then mixes these experts at inference to adapt to unseen tasks.

  2. In-Context Deep Learning via Transformer Models

    cs.LG 2024-11 conditional novelty 5.0 of 10

    An explicit construction shows a transformer-like network with an element-wise multiplication layer can simulate L gradient descent steps of an N-layer ReLU network via in-context learning.

Pith tools