Linear Algebra in a Tiny Neural Network
Trace every shape, bias, activation, and rank change through a two-layer network with a worked NumPy example and an interactive explorer.
Category
30articlesin this category.
Trace every shape, bias, activation, and rank change through a two-layer network with a worked NumPy example and an interactive explorer.
See how a translation moves a line without changing its direction, and why a neural layer bias can move a classifier boundary away from the origin.
Use a matrix’s kernel and image to identify discarded input directions, reachable outputs, and rank limits in a learned projection.
See why transformed basis vectors become matrix columns, reconstruct a mapping from basis responses, and avoid row-versus-column mistakes in model weights.
Test whether a transformation preserves sums and scaling, name its input and output spaces, and separate a neural layer from its activation.
Calculate matrix rank from pivots or features, connect row and column views, and use singular values to spot redundant data features.
Separate the number of embedding coordinates from the number of samples, and learn why a matrix shape alone cannot tell you how many independent directions its vectors span.
Test whether vectors form a basis, calculate coordinates in a new frame, and see how a linear model keeps the same score after a coordinated change.
Use vector span to identify every prediction a linear model can produce from its feature columns, then detect a target the feature set cannot express.
Use a coefficient equation to spot duplicated feature directions, test linear independence by hand, and check a feature matrix with NumPy.
Learn the subspace test, prove that a plane is closed under vector operations, and use NumPy to inspect lower-dimensional representation directions.
Test zero, addition, and scalar closure, then use normalized embeddings as a counterexample that separates a useful representation set from a vector space.
See how closure, inverses, and distributivity decide which tensor operations are legal, then test the ideas with NumPy.
Solve AI parameter-recovery systems with NumPy, then use residuals, condition numbers, and singularity checks to judge whether the answer is trustworthy.
Use pivots, free variables, and row-echelon form to diagnose redundant features and non-unique model parameters in a small design matrix.
Recover model parameters from a zero-pivot system, then implement safe row operations and residual checks in NumPy.
Use identity matrices and a small inverse to reverse a 2D feature transform, detect unsafe cases, and understand why solve beats explicit inversion.
Transpose a matrix, predict its shape, and switch safely between token-by-feature and feature-by-token views in AI data.
Check matrix shapes, compute a small matrix product, and read the same contraction as a composed map or a batched dense-layer calculation.
Compute a matrix times a vector by rows and by columns, implement both views in NumPy, and debug dense-layer shape and operator mistakes.
Learn to read matrix dimensions and entries, map rows and columns to dense-layer roles, and catch shape or indexing mistakes in NumPy.
Scale and combine vectors, inspect every coordinate in NumPy, and see why attention outputs are a special kind of weighted representation.
Scale vectors coordinate by coordinate, predict direction and magnitude, and connect the same operation to embeddings, learning rates, and NumPy.
Learn vector addition component by component, explore its parallelogram geometry, and catch shape, broadcasting, and feature-alignment mistakes in NumPy.
Learn to read row and column vectors, build a document feature vector by hand and in NumPy, and catch shape or feature-order mistakes.
Learn to classify two-variable linear systems, connect each solution count to parameter identifiability, and handle contradictory or repeated data.
See a system as simultaneous constraints, classify two-line intersections, and recover an affine model’s weight and bias from two observations.
Learn how one two-variable linear equation becomes a line, test its points, handle vertical cases, and read a linear classifier score contour.
AlphaEvolve helped lower the best matrix multiplication exponent bound. Learn what changed, how it was certified, and why it will not speed up today’s GPUs.
Build an intuitive understanding of vectors, dot products, cosine similarity, and why embeddings turn meaning into geometry.