Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-brain-like-algorithm-constraintsgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-brain-like-algorithm-constraints/SKILL.md--- name: brain-like-algorithm-constraints description: "Framework understanding how biological constraints shape algorithm selection in neural networks. Nonnegative firing and resource constraints produce brain-like algorithms. Activation: brain-like algorithms, biological constraints, mechanistic interpretability, symmetry breaking" --- # How Much Neuroscience Does a Neuroscientist Need to Know? > A framework arguing that simple biological details (nonnegative firing, energetic/space budgets) constrain algorithm selection such that only 'brain-like' algorithms are learned, enabling algorithm inference from neural responses. ## Metadata - **Source**: arXiv:2601.02063 - **Authors**: [Paper authors] - **Published**: 2026-01 - **Categories**: q-bio.NC ## Core Methodology ### Key Thesis Much of the brain's learned algorithm structure depends on it being a brain, but surprisingly few biological details matter. Simple constraints like nonnegative firing rates and resource budgets, when combined with task requirements, produce models that predict brain responses down to single-neuron tuning. ### Technical Framework #### Symmetry Breaking Each biological detail breaks symmetries in connectionist models: 1. **Nonnegative firing**: Breaks scale/rotation symmetry 2. **Energetic budgets**: Constrains connection patterns 3. **Space constraints**: Limits architecture complexity #### Result: Interpretable Neurons - Single-neuron responses become characteristic of specific algorithms - Eliminates permutation symmetry typical in ANNs - Enables algorithm identification from response patterns ### Bridge to Mechanistic Interpretability This perspective aligns computational neuroscience with AI mechanistic interpretability: - **Unified approach**: Common framework for studying intelligence - **Natural and artificial**: Both constrained by similar principles - **Algorithm inference**: Predict computational strategy from observations ## Implementation Guide ### Applying Constraints in Models #### Nonnegative Activation ```python # Instead of standard linear layer linear = nn.Linear(in_features, out_features) # Use nonnegative constraint activation = nn.ReLU() # or nn.Softplus() output = activation(linear(x)) ``` #### Resource Budgets - Limit total synaptic weight magnitude - Sparse connectivity regularization - Activity cost in loss function #### Space Constraints - Restrict layer widths - Prefer local connectivity - Modular architecture design ### Algorithm Identification 1. **Record single-neuron responses** to task inputs 2. **Characterize tuning curves** and response patterns 3. **Compare to constrained model predictions** 4. **Infer computational algorithm** from best match ## Applications - Designing brain-like neural networks - Interpreting biological neural recordings - Understanding inductive biases - Improving ANN interpretability - Bridging neuroscience and AI research - Constrained model architecture search ## Key Insights ### Why This Matters - **Predictive power**: Simple constraints enable brain-level predictions - **Minimal biology**: Few details needed for effective models - **Algorithm inference**: Can deduce computation from responses - **Unified science**: Common framework for natural and artificial intelligence ### Practical Implications - Add biological constraints to improve interpretability - Use response patterns for reverse-engineering computation - Expect brain-alignment from constrained architectures - Focus on key constraints rather than full biological detail ## Pitfalls - Not all biological details are equally important - Over-constraining may limit task performance - Algorithm inference requires good models - Biological complexity still matters for some phenomena ## Related Skills - computational-neuroscience-in-llm-era - llm-brain-alignment-creative-thinking - neuroscience-of-transformers - brain-inspired-intelligence-paradigm