TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/An Algorithm for Routing Vectors in Sequences

An Algorithm for Routing Vectors in Sequences

Franz A. Heinsen

2022-11-20Text ClassificationImage ClassificationSentiment Analysis
PaperPDFCode(official)

Abstract

We propose a routing algorithm that takes a sequence of vectors and computes a new sequence with specified length and vector size. Each output vector maximizes "bang per bit," the difference between a net benefit to use and net cost to ignore data, by better predicting the input vectors. We describe output vectors as geometric objects, as latent variables that assign credit, as query states in a model of associative memory, and as agents in a model of a Society of Mind. We implement the algorithm with optimizations that reduce parameter count, computation, and memory use by orders of magnitude, enabling us to route sequences of greater length than previously possible. We evaluate our implementation on natural language and visual classification tasks, obtaining competitive or state-of-the-art accuracy and end-to-end credit assignments that are interpretable.

Results

TaskDatasetMetricValueModel
Sentiment AnalysisSST-5 Fine-grained classificationAccuracy59.8Heinsen Routing + RoBERTa Large
Sentiment AnalysisSST-2 Binary classificationAccuracy96Heinsen Routing + RoBERTa-large
Sentiment AnalysisIMDbAccuracy96.2Heinsen Routing + RoBERTa Large
Image ClassificationCIFAR-10Percentage correct99.2Heinsen Routing + BEiT-large 16 224
Image ClassificationCIFAR-100Percentage correct93.8Heinsen Routing + BEiT-large 16 224

Related Papers

Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Making Language Model a Hierarchical Classifier and Generator2025-07-17Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17AdaptiSent: Context-Aware Adaptive Attention for Multimodal Aspect-Based Sentiment Analysis2025-07-17Hashed Watermark as a Filter: Defeating Forging and Overwriting Attacks in Weight-based Neural Network Watermarking2025-07-15