cs.CLAug 29, 2026

All You Need Is Non-Commutative Words

Authors: Carla M. Quispe Flores, Stanley Salvatierra, Renan Cabrera

Organizations: Department of Physics, Colorado School of Mines, Golden, Colorado 80401, USA · Lookia MX, OR 0401, BO · Yardley, PA 19067, USA

Abstract

We represent lexical tokens as unitary matrices and encode each sentence as their ordered product. The noncommutativity of matrix product captures word order without positional encodings (PEs). The same algebra yields several capabilities, including antisymmetric self-attention with no query, key, or value projections, and parallel composition of variable-length text chunks at a reduced attention cost. Furthermore, it provides a canonical-coset readout layer that encodes all true unitary degrees of freedom compactly, while supporting continual learning through nested group extensions that enlarge the operator space with each new task preserving prior representations exactly. Across standard text-classification benchmarks, the method matches or exceeds bag-of-words baselines. Achieving higher accuracy on IMDB and comparable performance on AG News. Notably, this is accomplished by replacing the conventional ∼\sim30,000-dimensional vocabulary space with a dense, 64-parameter real-valued encoding, highlighting the expressive efficiency of our parameterization.

Figures & tables

Explore similar work

CardsList
  1. Change the Product, Keep the Parameters: Associative Algebra Layers for Transformers

    Sep 26, 2026Ilya Koziev, Ivan OseledetsTransformerLLM Inference Acceleration

  2. Why Attend to Everything? Focus is the Key

    Mar 12, 2026Hengshuai Yao, Xing Chen, Ahmed Murtadha +8Attention MechanismsEfficient Attention