CrossMPT
A transformer decoder for error correcting codes that uses masked cross-attention between magnitude and syndrome.
374 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 1.2M
- Operations
- 374
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2025
- Cited by
- 1 (as of 29 October 2026)
- Authors
- Seong-Joon Park, Hee-Youl Kwak, Sang-Hyo Kim and others
- Source
- GitHub: iil-postech/crossmpt
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15476
- Graph hash
- e5b6d68e60c0f1617dadb85800e2e87604eaebe6f5be71459cbb679ab05a5687
- Skeleton hash
- fd1e5c2533ad9ded6896b74ad8c51f1ca09672224da0994e7124ab339a2325fc
- Architecture hash
- a53cea39264852b06a966b8792fb4546f305e403c9b433691925556babe5e1fe
- Diagram SHA-256
- 802103e98560fddf194509fc6c73067e450a575b1365daeb2d83a2c4722a941c
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
CrossMPT (Cross-attention Message-Passing Transformer) is a transformer decoder for error correcting codes, which communication systems use for reliable transmission. Its inputs are a real-valued magnitude vector holding the reliability of each bit position and a binary syndrome vector carrying information about erroneous bit positions. Earlier transformer decoders, beginning with the Error Correction Code Transformer (ECCT), concatenate the two embeddings for self-attention.
CrossMPT keeps the two embeddings separate and updates them in turn with two masked cross-attention blocks in each decoding layer. The first block updates the magnitude embedding, using it as the query with the syndrome embedding as key and value. The second updates the syndrome embedding, using it as the query with the updated magnitude embedding as key and value. The masks for both blocks are determined by the code's parity-check matrix. The paper compares this exchange to the sum-product message-passing algorithm.
Together the two attention maps are at most half the size of the conventional transformer decoder's attention map, which reduces memory usage. The paper reports that CrossMPT outperforms the original ECCT across various code classes, particularly on low-density parity-check (LDPC) codes, with the same number of parameters. The model on this page decodes a (121, 60) LDPC code with 6 decoder layers and an embedding dimension of 128, a configuration given in the official repository.
Key idea. CrossMPT replaces self-attention over concatenated inputs with two masked cross-attention blocks that update magnitude and syndrome embeddings separately and iteratively, in the manner of a message-passing decoder.
- CrossMPT
- Cross-attention Message-Passing Transformer
- error correcting codes
- neural decoder
- channel decoding
- LDPC codes
- BCH codes
- masked cross-attention
- parity-check matrix
- syndrome
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{park2024crossmptcrossattentionmessagepassingtransformer,
title={CrossMPT: Cross-attention Message-Passing Transformer for Error Correcting Codes},
author={Seong-Joon Park and Hee-Youl Kwak and Sang-Hyo Kim and Yongjune Kim and Jong-Seon No},
year={2024},
eprint={2405.01033},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2405.01033},
}