Observed since 21 Oct, 10:54 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
An objective way to evaluate neural network architectures
⚠️ Early Development: This project is currently in its early development phase and not accepting external architecture submissions yet. Star/watch the repository to be notified when we open for contributions.
📊 View Live Leaderboard & Results
AI-HEXAGON is an objective benchmarking framework designed to evaluate neural network architectures independently of natural language processing tasks. By isolating architectural capabilities from training techniques and datasets, it enables meaningful and efficient comparisons between different neural network designs.
Traditional neural network benchmarking often conflates architectural performance with training techniques and dataset biases. This makes it challenging to:
AI-HEXAGON solves these challenges by:
Each architecture is evaluated on six fundamental capabilities:
| Metric | Description |
|---|---|
| 🧠 Memory Capacity | Store and recall information from training data |
| 🔄 State Management | Maintain and manipulate internal hidden states |
| 🎯 Pattern Recognition | Recognize and extrapolate sequences |
| 📍 Position Processing | Handle positional information within sequences |
| 🔗 Long-Range Dependency | Manage dependencies over long sequences |
| 📏 Length Generalization | Process sequences longer than training examples |
ai-hexagon/
├── ai_hexagon/
│ └── modules/ # Common neural network modules
└── results/ # Model implementations and results
├── suite.json # Default test suite configuration
└── transformer/
├── model.py # Transformer implementation
└── modules/ # Custom modules (if needed)
The default suite enforces a 4MB parameter limit for fair comparisons:
| Precision | Parameter Limit |
|---|---|
| Complex64 | 0.5M params |
| Float32 | 1M params |
| Float16 | 2M params |
| Int8 | 4M params |
We welcome contributions once the project is ready for external input. To contribute:
poetry install (optionally with --with dev,cuda12) to get the ai-hex commandresults/your_model_name/Use ai-hex tests list to see available tests, ai-hex tests show test_name to view test schema, and ai-hex suite run ./path/to/model.py to run your model against the suite.
We chose JAX and Flax for their:
jax.numpyeinopsWe mandate einops for complex tensor operations to enhance readability. Compare:
# Traditional approach - hard to understand the transformation
x = x.reshape(batch, x.shape[1], x.shape[-2]*2, x.shape[-1]//2)
x = x.transpose(0, 2, 1, 3)
# Using einops - crystal clear intent
x = rearrange(x, 'b t (h d) c -> b (h t) (d c)')
import flax.linen as nn
from einops import rearrange
class Transformer(nn.Module):
"""
Transformer Decoder Stack architecture from 'Attention Is All You Need'.
Reference: https://arxiv.org/abs/1706.03762
"""
hidden_dim: int = 256
num_layers: int = 4
num_heads: int = 4
@nn.compact
def __call__(self, x):
# Architecture implementation
return x
Test suites use a JSON configuration format:
{
"name": "General 1M",
"description": "General architecture performance evaluation",
"metrics": [
{
"name": "Memory Capacity",
"description": "Information storage and recall capability",
"tests": [
{
"weight": 1.0,
"test": {
"name": "hash_map",
"seed": 0,
"key_length": 8,
"value_length": 64,
"num_pairs_range": [32, 65536],
"vocab_size": 1024
}
}
]
}
]
}
📈 Results are automatically generated via GitHub Actions to ensure fairness. The leaderboard is updated in real-time at ai-hexagon.dev.
This project is licensed under the MIT License - see the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 8 Nov 2024 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:54 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b21710da9f9282c718306b4f47756264d71d96767c8c32cb80c15ea448a2249f