ReLU vs Leaky ReLU ๐ = ReLU = ReLU... is the default activation in modern deep learning โ cheap to compute, and stable enough to train networks hundreds of layers deep. To see what it does, picture five boba tea shops on the same block โ ๐, ๐, ๐, ๐, ๐ โ each running their own books. Each value is a shop's monthly profit โ receipts minus rent, ingredients, and wages. When profit is positive, the shop stays open and the owner pockets every dollar. When profit turns negative, the shop runs out of cash and shutters โ the lights go off, the books are wiped to zero. ReLU is exactly that rule, applied one shop at a time. Read the diagram left to right. The first column is the raw value x โ each shop's profit at month's end. The second column is the gate: 1 if the shop is open (x > 0), 0 if it has shuttered. The last column is the ReLU output: open shops pass their profit through untouched, while shuttered ones are zeroed out. Five rows means five parallel shops on the same block, each evaluated independently. That's why ReLU is called an element-wise activation: every neuron decides its own fate. = LeakyRelu = Plain ReLU wipes negative values to zero โ clean, but a shop that shutters can never recover, since both its output and its gradient stay pinned at zero. This is the dying ReLU problem, and in deep networks it can quietly kill a meaningful fraction of the units. Leaky ReLU is the one-line fix: instead of shuttering, the shop files for Chapter 11 protection and keeps the lights on at reduced capacity. Its debt is restructured down to a fraction ฮฑ (typically 0.1) โ the rest is forgiven, and the shop is wounded, not killed. A small negative signal still flows through, so the gradient survives, and the shop can crawl back to life if a TikTok goes viral. Read the diagram left to right. The first column is the raw value x โ each shop's profit at month's end. The second column is the leakage ฮฑ โ the fraction of the loss held over after restructuring (default 0.1, editable). The third column is the gate: 1 for shops still in the black, ฮฑ for those operating under bankruptcy protection. The last column is the Leaky ReLU output: y = x ยท gate. Profitable shops pass through untouched; struggling ones shrink by a factor of ฮฑ but still carry a sign. Five rows means five parallel shops, each evaluated independently. Like ReLU, this is an element-wise activation: every neuron's fate is decided on its own merits. #aibyhahdshow more

Tom Yeh
32,561 ๆฌก่ง็ โข 3 ไธชๆๅ
Softmax vs Sigmoid โ๏ธ Interact ๐ = Softmax =... Softmax is how deep networks turn raw scores into a probability distribution โ the final layer of every classifier, and the core of every attention head in a transformer. To see what it does, picture five boba tea shops on the same block, all competing for your dollar. Five candidates: a, b, c, d, e โ different chains, different brewing styles, different pearls. A boba reviewer hands you a ๐ค๐ฉ๐ฆ๐ธ๐ช๐ฏ๐ฆ๐ด๐ด ๐ด๐ค๐ฐ๐ณ๐ฆ for each โ higher means perfectly chewy "QQ" pearls with the right bite (ask a Taiwanese friend to find out what QQ means). Negative scores are real: mushy bobas, overcooked pearls, a batch left sitting too long. How do you turn five chewiness scores into an allocation that adds to a whole dollar? You could spend everything at the chewiest shop, but that ignores how good the runners-up are. Softmax is the smooth alternative. Read the diagram left to right. First, raise each score to e^{x} โ this does two things: it turns negative chewiness into small positives, and it stretches the gaps between scores exponentially. Then sum all five into a single total Z. Finally, divide each e^{x} by Z to get a probability. The five probabilities add up to one, so you can read them as percentages of your dollar. The chewiest shop gets the biggest slice โ but never the whole dollar. That's the point of softmax: it ranks confidently while still leaving room for the others. = Sigmoid = Sigmoid squashes any real number into a probability between 0 and 1 โ the classic activation for binary classification, and still the gating function inside LSTMs and GRUs. Same boba block as the previous Softmax example, narrowed to just two contenders โ a hot new shop `a` with chewiness score x, and your usual go-to `b` whose score is pinned at zero (the neutral baseline you've come to expect). Sigmoid is just softmax with two players, one of them pinned to zero. Read the diagram left to right. First, raise each score to e^{x} โ for the usual shop `b` whose score is zero, this is just e^0 = 1 (the constant baseline). Then sum the two into a total Z. Finally, divide each e^{x} by Z to get a probability. The two probabilities add up to one โ the new shop wins more of your dollar when its pearls get chewier, and your usual keeps the rest. That's the point of sigmoid: it turns a single chewiness score into a clean 0-to-1 chance you'll try the new place over your usual. --- AI Math, Algorithms, Architectures by hand โ๏ธ Subscribe to my 60K+ reader newsletter ๐show more

Tom Yeh
73,787 ๆฌก่ง็ โข 3 ไธชๆๅ
MLP in PyTorch by hand โ๏ธ ~ 7 steps... walkthrough below Goal: fill in every blank in the PyTorch code to build a multi-layer perceptron. 1. Given Let us start with a code template on the left and the network it is supposed to build on the right. Every blank in the code can be worked out from the picture. 2. Linear layer We count: 3 features in, 4 features out. So the weight matrix is 4 by 3. There is an extra column for the biases, which means bias = T. 3. ReLU Let us apply the activation. ReLU crosses out the negatives, so -1 becomes 0. 4. Linear layer The input size is 4, because that is what the previous layer put out. The output size is 2. A 2 by 4 weight matrix, and this time no extra column, so bias = F. 5. ReLU We cross out the negatives again. 6. Linear layer Two features in, five out. A 5 by 2 weight matrix, with a bias column, so bias = T. 7. Sigmoid Let us finish. Sigmoid squashes the raw scores (3, 0, -2, 5, -5) into probabilities between 0 and 1. You have just implemented a three-layer deep neural network by hand. โ๏ธ == Story == Three years ago I gave this exercise to my students, to connect the code to the math. They found it odd. Every other AI course they were taking lived inside a Jupyter notebook, and here I was handing out paper. Three years later, my colleagues are the ones rushing to move their materials to paper. The exercise has not changed. Paper still asks the one thing a notebook lets you skip: do you actually understand what the code is doing? If you can tell me why the weight matrix is 4 by 3, and why bias is F on the second layer, you understand nn.Linear better than someone who has been copy-pasting it for a year. ๐พ Save this post! #AIbyHand #PyTorch #DeepLearningshow more

Tom Yeh
13,318 ๆฌก่ง็ โข 1 ไธชๆๅ
[VAE] by Hand โ๏ธ A Variational Auto Encoder (VAE)... learns the structure (mean and variance) of hidden features and generates new data from the learned structure. In contrast, GANs only learn to generate new data to fool a discriminator; they may not necessarily know the underlying structure of the data. The International Conference on Learning Representations (ICLR) this year announced its first ever "Test of Time Award" to recognizes the VAE paper, published 10 years ago. This exercise demonstrates how to calculate a VAE by hand. [1] Given: โณ Three training examples X1, X2, X3 โณ Copy training examples to the bottom โณ The purpose is to train the network to reconstruct the training examples. โณ Since each target is a training example itself, we use the Greek word "auto" which means "self." This crucial step is what makes an autoencoder "auto." [2] Encoder: Layer 1 + ReLU โณ Multiply inputs with weights and biases โณ Apply ReLU, crossing out negative values (-1 -> 0) [3] Encoder: Mean and Variance โณ Multiply features with two sets of weights and biases โณ ๐ฉ The first set predicts the means (๐) of latent distributions โณ ๐ช The second set predicts the standard deviation (๐) of latent distributions [4] Reparameterization Trick: Random Offset โณ Sample epsilon ฮต from the normal distribution with mean = 0 and variance = 1. โณ The purpose is to randomly pick a offset away from the mean. โณ Multiply the standard deviation values with epsilon values. โณ The purpose is to scale the offset by the standard deviation. [5] Reparameterization Trick: Mean + Offset โณ Add the sampled offset to predicted mean โณ The result are new parameters or features ๐จ as inputs to the Decoder. [6] Decoder: Layer 1 + ReLU โณ Multiply input features with weights and biases โณ Apply ReLU, crossing out negative values. Here, -4 is crossed out. [7] Decoder: Layer 2 โณ Multiply features with weights and biases โณ The output is Decoder's attempt to reconstruct the input data X from reparameterized distributions described by ๐ and ๐. [8]-[10] KL Divergence Loss [8] Loss Gradient: Mean ๐ โณ We want ๐ to approach 0. โณ A lot of math called SGVB simplifies the calculation of loss gradients to simply ๐ [9,10] Loss Gradient: Stdev ๐ โณ We want ๐ to approach 1. โณ A lot of math simplifies the calculation to ๐ - (1/ ๐) [11] Reconstruction Loss โณ We want the reconstructed data Y (dark ๐ง) to be the same as the input data X. โณ Some math involving Mean Square Error simplifies the calculation to Y - X.show more

Tom Yeh
48,448 ๆฌก่ง็ โข 2 ๅนดๅ
Transformer by hand โ๏ธ ~ 6 steps walkthrough below... Open the hood of a transformer and the parts list is overwhelming: embeddings, positional encoding, attention weighting, self-attention, cross-attention, multi-head attention, layer norm, skip connections, softmax, linear, Nx, shifted right, query, key, value, masking. Which of those actually make the car run? Two of them. Attention weighting and the feed-forward network. Everything else is an enhancement to make it run faster and longer, which is how we got from a car to a truck, and to the word "large" in large language model. So I drew and calculated those two parts entirely by hand. Goal: push five features through one transformer block, filling in every cell yourself. 1. Given Five positions of input features, arriving from the previous block. 2. Attention matrix Let us feed all five features to a query-key module (QK) and read back an attention weight matrix, A. The details of that module are a post of their own. 3. Attention weighting We multiply the input features by A to get the attention weighted features, Z. Still five positions. The effect is to combine features *across positions*, horizontally: X1 becomes X1 + X2, X2 becomes X2 + X3, and so on. 4. First layer Let us feed all five weighted features into the first layer of the FFN. Multiply by the weights and biases. This time the combining happens *across feature dimensions*, vertically, and each feature grows from 3 numbers to 4. Note that every position goes through the same weight matrix. That is what "position-wise" means. 5. ReLU We cross out the negatives. They become zeros. 6. Second layer Let us bring it back down: 4 dimensions to 3. The output feeds the next block, which has a completely separate set of parameters, and the whole thing runs again. You have just calculated a transformer block by hand. โ๏ธ The takeaway: the two parts are doing two different jobs, and neither one alone is enough. Attention mixes *across positions*, so a feature can see its neighbours. The FFN mixes *across feature dimensions*, so each position can think about itself. Horizontal, then vertical. Then that pattern repeats N times, each block with its own separate set of weights. That is the Nx from the list up top, and that is what makes the transformer run. ๐พ Save this post! #AIbyHand #Transformers #DeepLearningshow more

Tom Yeh
25,944 ๆฌก่ง็ โข 28 ๅคฉๅ
[Graph Convolutional Network] by hand โ๏ธ Graph Convolutional Networks... (GCNs), introduced by Thomas Kipf and Max Welling in 2017, have emerged as a powerful tool in the analysis and interpretation of data structured as graphs. This exercise demonstrates how GCN works in a simple application: binary classification. -- Goal -- Predict if a node in a graph is X. -- Architecture -- ๐ช Graph Convolutional Network (GCN) 1. GCN1(4,3) 2. GCN2(3,3) ๐ฆ Fully Connected Network (FCN) 1. Linear1(3,5) 2. ReLU 3. Linear2(5,1) 4. Sigmoid Simplications: โข Adjacent matrices are not normalized. โข ReLU is applied to messages directly. -- Walkthrough -- [1] Given โณ A graph with five nodes A, B, C, D, E [2] ๐ฉ Adjacency Matrix: Neighbors โณ Add 1 for each edge to neighbors โณ Repeat in both directions (e.g., A->C, C->A) โณ Repeat for both GCN layers [3] ๐ฉ Adjacency Matrix: Self โณ Add 1's for each self loop โณ Equivalent to adding the identity matrix โณ Repeat for both GCN layers [4] ๐ช GCN1: Messages โณ Multiply the node embeddings ๐จ with weights and biases โณ Apply ReLU (negatives โ 0) โณ The result is one message per node [5] ๐ช GCN1: Pooling โณ Multiply the messages with the adjacent matrix โณ The purpose is the pool messages from each node's neighbors as well as from the node itself. โณ The result is a new feature per node [6] ๐ช GCN1: Visualize โณ For node 1, visualize how messages are pooled to obtain a new feature for better understanding โณ [3,0,1] + [1,0,0] = [4,0,1] [7] ๐ช GCN2: Messages โณ Multiply the node features with weights and biases โณ Apply ReLU (negatives โ 0) โณ The result is one message per node [8] ๐ช GCN2: Pooling โณ Multiply the messages with the adjacent matrix โณ The result is a new feature per node [9] ๐ช GCN2: Visualize โณ For node 3, visualize how messages are pooled to obtain a new feature for better understanding โณ [1,2,4] + [1,3,5] + [0,0,1] = [2,5,10] [10] ๐ฆ FCN: Linear 1 + ReLU โณ Multiply node features with weights and biases โณ Apply ReLU (negatives โ 0) โณ The result is a new feature per node โณ Unlike in GCN layers, no messages from other nodes are included. [11] ๐ฆ FCN: Linear 2 โณ Multiply node features with weights and biases [12] ๐ฆ FCN: Sigmoid โณ Apply the Sigmoid activation function โณ The purpose is to obtain a probability value for each node โณ One way to calculate Sigmoid by hand โ๏ธ is to use the approximation below: โข >= 3 โ 1 โข 0 โ 0.5 โข <= -3 โ 0 -- Outputs -- A: 0 (Very unlikely) B: 1 (Very likely) C: 1 (Very likely) D: 1 (Very likely) E: 0.5 (Neutral)show more

Tom Yeh
46,779 ๆฌก่ง็ โข 1 ๅนดๅ
Batch Normalization by hand โ๏ธ ~ 7 steps walkthrough... below Batch normalization is common practice for improving training and achieving faster convergence. It sounds simple. But it is often misunderstood. ๐ค Does batch normalization involve trainable parameters, tunable hyper-parameters, or both? ๐ค Is batch normalization applied to inputs, features, weights, biases, or outputs? ๐ค How is batch normalization different from layer normalization? So I drew and calculated one entirely by hand. Goal: normalize a mini-batch of 4 examples to mean 0 and variance 1, then let the network scale it back. = 1. Given = A mini-batch of 4 training examples, each with 3 features. = 2. Linear layer = Let us multiply by the weights and add the biases. Batch norm sits after this, which answers the second question: what gets normalized is features, not inputs, weights or biases. = 3. ReLU = We apply the activation, and -2 becomes 0. Negative values are suppressed before any statistic is taken. = 4. Batch statistics = Let us compute the sum, mean, variance and standard deviation, one row at a time. A row is a feature and the four columns are the four examples, so every number here measures one feature against the rest of the batch. That is the "batch" in batch normalization, and it is exactly what layer normalization does not do. The statistics are rounded to whole numbers, which is what keeps the rest of the page doable in pen. = 5. Shift to mean 0 = We subtract the mean, in green. The four values in each feature now average to zero. = 6. Scale to variance 1 = Let us divide by the standard deviation, in orange. Each feature now has variance one, whatever scale it arrived at. = 7. Scale and shift = We multiply by a linear transformation and pass the result on. The diagonal and the last column are trainable, so having just forced every feature to mean 0 and variance 1, we hand the network the means to undo it. The outputs: Mean of each feature = [2, 1, 2] Std dev of each feature = [1, 1, 2] To the next layer = [2, -2, 2, 0], [-3, 3, 6, -3], [2, 0, 1, 2] The answers: ๐ค Both. The scale and shift are trainable, the statistics are not. Epsilon and the momentum on the running statistics are the hyper-parameters, and one mini-batch by hand needs neither. ๐ค Features, after the linear layer, not inputs, weights or biases. ๐ค Batch norm measures across the batch, one feature at a time. Layer norm measures across the features, one example at a time. ๐พ Save this post!show more

Tom Yeh
20,638 ๆฌก่ง็ โข 24 ๅคฉๅ
[Discrete Fourier Transform] by Hand โ๏ธ In signal processing,... the Discrete Fourier Transform (DFT) is no doubt the most important method. But the math involved is extremely complex, literally, involving a summation over a complex number term e^(-iwt). I developed this exercise to demonstrate that underneath such complexity, DFT is just a series of matrix multiplications you can calculate by hand. โ๏ธ Once you see that, it should not surprise you that a deep neural network, which is also a series of matrix multiplications, with activation functions in-between, can learn to perform DFT to process and analyze signals so effectively. How does DFT work? [1] Given โณ Signals A, B, and C in the ๐ง frequency domain: โฆ A = cos(w) + 2cos(2w) โฆ B = cos(w) + cos(3w) + cos(4w) โฆ C = -cos(2w) + cos(3w) โฆ Each signal is a weighed sum of four cosine waves at frequencies 1w, 2w, 3w, and 4w. โฆ We will apply Inverse DFT to convert the signals to time domain representations, and then demonstrate DFT can convert back to their original frequency domain representations. โณ Signal X in the ๐ฉ time domain. X is sampled at 10 time points 1t, 2t, โฆ, 10t: โฆ X = [-2.5, -1.8, 3, -0.7, -1.0, -0.7, 3, -1.8, -2.5, 5] โฆ Suppose X is also a weighted sum of the same four cosine waves, but we donโt already know their weights. We will apply DFT to discover them. [2] ๐ง Frequency Matrix (F) โณ Write the coefficients of A, B, C as a matrix F. Each signal is a row. Each frequency is a column. โณ A โ [1, 2, 0, 0] โณ B โ [1, 0, 1, 1] โณ C โ [0, 1-, 1, 0] [3] Cosine โ Discrete โณ Sample from the continuous cosine waves at discrete time points 1t, 2t, 3t, to 10t. [4] Cosine Matrix (W) โณ Write the samples as a matrix, Each frequency is a row. Each time point is a column. [5] Inverse DFT: ๐ง Frequency โ ๐ฉ Time โณ Multiply the frequency matrix F and the cosine matrix W. โณ The meaning of this multiplication is to linearly combine the four cosine waves (rows in W) into time-domain signals (rows in T) using the weights specified in F. โณ The result is matrix T, which are signals A, B, C converted to the time domain. Each signal is a row. Each time point is a column. [6] Transpose โณ Transpose T, converting each signalโs time domain representation from a row to a column. [7] DFT: ๐ฉ Time โ ๐ง Frequency โณ Multiply the cosine matrix W with the transpose of matrix T. โณ The purpose of this multiplication is to take a dot-product between each time-domain signal (columns in the transpose of T) and each cosine wave (rows in W), which has the effect of projecting the signal onto a cosine wave to determine how much they are correlated. Zero means not correlated at all. โณ The result is an intermediate version of the โrecoveredโ frequency matrix where each column corresponds to a signal and each row corresponds to a frequency. โณ Compared to the original frequency matrix F, this intermediate matrix has non-zero weights in the correct places, but scaled up by a factor of 5 (n/2, n=10). For example, signal A, originally [1,2,0,0], is recovered at [5,10,0,0]. [8] Scale โณ Multiply each value by 2/n = 1/5 to scale down the intermediate matrix to match the magnitude of the original frequency matrix F. [9] Transpose โณ Transpose the recovered frequency matrix back to the same orientation of the original frequency matrix F. โณ Like magic ๐ช, the result is identical to the original F, which means DFT successfully recovered the frequency components of signals A, B, C. [10] Apply DFT to X: ๐ฉ Time โ ๐ง Frequency โณ Now that we have some confidence in DFTโs ability to recover frequency components, we apply DFT to Xโs time-domain representation by multiplying W with X. โณ The result is the an intermediate matrix. [11] Scale โณ Similarly, we scale down by a factor of 5 to obtain the recovered frequency components of X (a column). [12] Transpose โณ Similarly, we transpose the recovered column to row to match the orientation of the frequency matrix. โณ Using the coefficients [0,0,3,2], we can write the equation of X as 3cos(3w) + 2cos(4w). Notes: I hope this by hand exercise helps you understand the essence of DFT. But there is more technical details, such as: โข Sine: The complete DFT math also includes sine waves that follow a similar calculation process. โข Phase: Here, we assume all the cosine waves are aligned at the origin, namely, phase is 0. If a phase p is added, for example, cos(w+p), we will need to calculate the sine component and use their ratio to figure out what p is. โข Magnitude: If phase is not zero, the magnitude will need to be calculated by combining both cosine and sine terms.show more

Tom Yeh
116,622 ๆฌก่ง็ โข 2 ๅนดๅ
Full Fine-tuning vs. Freezing Layers. Interact ๐ and ==... Full Fine-tuning == A real network has many โ three layers in this example, billions of parameters in a production model. What does fine-tuning look like when you update all of them? Thatโs full fine-tuning: continue training every weight in the pretrained network on your new task. Every layerโs W gets its own ฮW. Nothing is frozen โ every parameter is in play. Think of an MLP as a chain of prerequisites leading to an advanced course. Layer 1 might be Linear Algebra, layer 2 Probability, layer 3 Advanced Machine Learning โ each one building on what came before. Fine-tuning is what happens during graduate study: the foundations are already there from undergrad, so youโre not re-learning. Full fine-tuning is reviewing every prerequisite to see what new topics have appeared and what discoveries the field has made since the last time you sat through them. Effective โ but exhausting. This diagram shows the same three-layer MLP twice, side by side. On the left, the pretrained network runs on input X: three weight matrices Wโ, Wโ, Wโ, each followed by a ReLU activation. Full fine-tuning gives the model the most freedom to specialize. Every parameter can move โ and every parameter that can move must be stored. But not every prerequisite needs revisiting. The further you go back in the chain, the less the material has changed since pretraining โ the linear-algebra basics under your computer-vision course are largely the same as they ever were. The next page does exactly that: freeze the prerequisites that havenโt moved, and only refresh the advanced one closest to your specialization. == Freezing Layers == Full fine-tuning reviewed every prerequisite โ Linear Algebra, Probability, Advanced ML โ to refresh each subject with the latest topics. Effective, but exhausting. Then you realize something. The prerequisites havenโt actually changed that much. Linear Algebra is still Linear Algebra; the matrix decompositions you learned still hold. Probability is still Probability; the distributions and Bayesโ rule havenโt moved. Almost all the new material โ the new ideas, the recent discoveries โ lives in the advanced layer at the top. Thatโs freezing layers: keep the prerequisite layers fixed at their pretrained state, and only update the advanced one. In the diagram below, W1โ and W2โ โ the foundational prerequisites โ stay frozen. Only W3โ โ the layer closest to your task-specific output โ gets a ฮW.show more

Tom Yeh
27,587 ๆฌก่ง็ โข 3 ไธชๆๅ
i made $83,000 by looking at one number not... the price not the volume the spread ฮฑ = ฮ / (V_h โ ฮผ) ฮฑ is the fraction of traders in the market who already know the correct answer spread 0.05 โ ฮฑ = 5% safe to enter spread 0.15 โ ฮฑ = 15% be careful spread 0.25 โ ฮฑ = 20% one in five knows more than you before this i entered markets with wide spreads i thought illiquid, inefficient, that's where the money is turns out a wide spread means smart money is already there and i was paying their bill every single time once i started filtering markets by this formula stopped entering anything where ฮฑ > 12% $83,000 in the next two months same polymarket same markets i just stopped being someone else's ฮฑ i track these markets in real time through a bot it calculates ฮฑ for every market automatically and only alerts when the entry is clean did you know the spread tells you exactly who else is in the game?show more

self.dll
42,399 ๆฌก่ง็ โข 5 ไธชๆๅ
Macy's on 34th in NYC . It was reported... that a group of migrant gang members were allegedly shoplifting at the name-brand shop when they said the person recording the attacked the person. This is an ongoing issue at Macy's and other shops across NYC. The way this works is they send out crews to shoplift, then the stolen products are them sold by a different group . This is very organized and are making tons of money. ( sent in by a source)show more

Viral News NYC
54,978 ๆฌก่ง็ โข 1 ๅนดๅ
In my class, I teach the autoencoder by asking... everyone to stand up. ๐ Stretch your arms out wide. Imagine you are holding a heavy textbook (like Introduction to Algorithms by Prof. Cormen), the whole thing, every page. Now bring your hands slowly together until they almost touch your neck. The bottle "neck." The final exam is tomorrow and you are allowed one cheat sheet: whatever you can scribble on your palm. All nine hundred pages have to survive the squeeze. That is the encoder. Now imagine you sit in the exam. Push your arms back out to where they started. You try to rebuild the textbook from your palm notes. That is the decoder. Of course you cannot get every page back. What you get back is what mattered enough to write down, and the gap between the two is the loss the network is trying to shrink. I call it AI by Arms ๐. It gets a laugh, and then it gets remembered. Goal: squeeze four numbers down to two, then rebuild the original four from them. 1. Given Let us start with four training examples: X1, X2, X3, X4. 2. Auto (copy to targets) We copy the training examples straight into the targets. That is the whole trick behind the name: "auto" is Greek for "self", and the data is its own label. 3. Encoder, layer 1 Let us multiply the inputs by the weights, add the biases, and apply ReLU. Negative values get crossed out and become zero. 4. Encoder, layer 2 (the bottleneck) We do it again, and now the four dimensions have become two. This layer is called the bottleneck, because everything has to fit through it. 5. Decoder, layer 1 Let us go back the other way: multiply, add, ReLU. This time there are no negatives to cross out. 6. Decoder, layer 2 We multiply once more and get the outputs Y. This is the decoder's attempt to rebuild the four original numbers from the two it was given. 7. MSE loss gradients Let us compare Y with the targets Y'. The gradient is 2 x (Y - Y'): subtract, then double. Those gradients kick off backpropagation, and the weights start to learn. Your entire education is all about encoding and decoding!show more

Tom Yeh
22,479 ๆฌก่ง็ โข 15 ๅคฉๅ
The hard part of multi-agent systems is getting agents... to stay quiet. Put five agents on one task, and they duplicate work and burn tokens talking to each other. Offloop trained a dispatcher model called D1 that decides which agent moves next and when the right move is to do nothing. They achieve state-of-the-art performance on GDPval at a fraction of the usual cost. You can bring your own AI subscription.show more

elvis
22,116 ๆฌก่ง็ โข 22 ๅคฉๅ
JUST IN: Bank of America just told its clients... to take profits. About 70% of its bear-market signals are flashing, a level it typically reaches only near market tops. Weeks earlier, BofA's own fund manager survey showed the largest one-month jump into stocks ever recorded, with cash down to 3.9%, under the 4% line the bank treats as a sell signal. Read those together. Investors made their biggest dash into equities in the survey's history at almost the exact moment BofA's own indicators say the top is near. But the number that should actually stop you is buried in the note, and almost nobody is quoting it. The companies driving this entire rally, the AI hyperscalers, are on track to spend nearly 100% of their operating cash flow on capex by year-end. In 2023 that figure was 40%. Sit with that. Big tech used to throw off cash and hand it back through buybacks, which lifted the stocks. Now it is pouring almost every dollar it generates into chips and data centers. BofA notes buybacks have slowed and cash conversion has flat-lined. The engine of the rally is consuming the fuel that powered the stocks. It is the same $725 billion build that companies are now blaming for layoffs. The whole market is priced on one bet, and that bet has grown large enough to eat the cash that used to support the share prices. This is not a crash call. BofA's year-end target is 7,100, about 4% below today, and the median outcome after this cash signal since 2011 has been a 1% dip, not a collapse. The posts screaming sell everything are wrong. The real message is quieter. You are being paid less and less to stay, while the engine runs hotter and hotter.show more

Shanaka Anslem Perera โก
17,235 ๆฌก่ง็ โข 2 ไธชๆๅ
Love for humanity is the core of love for... life. It arises from the recognition of lifeโs value and beauty, from faith in humanityโs ability for greatness, and from the awareness that you are its child โ and that it is dear and close to you. : The author places love for humanity at the heart of love for life itself. It springs from a clear recognition of lifeโs immense value and beauty, from an unwavering faith in humanityโs capacity for greatness, and from the intimate awareness that each person is humanityโs own child, bound to it by blood, spirit, and destiny. This love is not distant admiration. It is the quiet, fierce tenderness a child feels for the parent who gave it existence. Humanity is dear and close because it is the living source from which we draw breath, meaning, and possibility. To love life is to love the collective that carries it forward. To doubt humanity is to doubt lifeโs own worth. When we see ourselves as its children, gratitude replaces judgment. Hope replaces despair. Love for humanity becomes the deepest form of self-love, because we are not separate from it. It is the recognition that every stranger carries a piece of the same miracle we carry in ourselves. That recognition turns strangers into kin, and the world into home.show more

Zafar Mirzo | Quotes
287,911 ๆฌก่ง็ โข 7 ไธชๆๅ
On June 22, the United States signed one executive... order to build a quantum computer and, the same day, another to defend against what a quantum computer can do. The first establishes a national effort to build a machine powerful enough to open a new era of scientific discovery, delivered to a Department of Energy lab. The second orders an accelerated national migration to post-quantum cryptography, because the same physics that makes the machine useful makes today's encryption breakable. Read the two orders against each other and the asymmetry is the entire story. The order to build the machine sets no delivery date and is explicitly subject to the availability of appropriations. The order to defend the data sets hard deadlines: a migration pilot due December 31, 2027, and high-value systems moved to post-quantum cryptography by 2030 and 2031. The machine is a national aspiration. The migration is a national deadline. This is the part almost no one is pricing. Even the government is treating the regulatory clock as the binding one, while the market keeps watching the hardware clock. A product does not need to be broken to lose its value. It only needs to become uncertifiable, and the date it becomes uncertifiable is now written into federal policy. The machine can stay distant. The proofs are already on the clock.show more

Shanaka Anslem Perera โก
35,284 ๆฌก่ง็ โข 1 ไธชๆๅ
They did not take cursive from the schools because... children no longer needed it. They took it because of what it was quietly building in them. Consider what the exercise actually is. A child, six years old, is handed a pen and asked to draw a single unbroken line that becomes a word. The wrist must float. The fingers must hold a living pressure, never quite the same twice, always correcting. The eye must follow the ink forward and trust the hand to finish what it has begun. There is no lifting, no stopping, no starting over mid-word. The loop must close. The ascender must rise and return. The sentence must travel from one margin to the other as a single continuous gesture, and at the end of it the hand must still be steady. Twelve years of this. Every day. Ten thousand small acts of sustained, self-correcting attention, carried out below the level of conscious thought, until the motion belongs to the body and the body belongs to the motion. This is not penmanship. It is the slow construction of an interior form. The hand that has learned to carry a line without breaking it is the hand of a mind that has learned to carry a thought without breaking it. The two are not metaphors for one another. They are the same faculty, trained in the same child, by the same daily discipline. Continuity of the stroke becomes continuity of the reasoning. The patience of the loop becomes the patience of the argument. The commitment to finish a word one has started becomes the commitment to finish a sentence, a paragraph, a life's idea, without reaching for the nearest distraction halfway through. Print is a different creature entirely. Print lifts. Print stops. Print assembles a word out of separate, stamped, interchangeable pieces, each one beginning and ending in isolation. A mind raised only on print learns to think the way print is made, in discrete tokens, in replaceable units, in fragments that can be recombined by any outside hand without the owner noticing the substitution. It is precisely the shape of thought a language model produces. It is precisely the shape of thought a language model can steer. Cursive is kata. This is the whole of it. A form repeated daily, for years, not for the sake of the form but for what the repetition lays down in the practitioner beneath the form. The swordsman does not train kata so that one day he may fight in kata. He trains it so that when the moment comes and there is no time to think, the movement is already inside him, older and deeper than thought, and it rises on its own. Cursive was the kata of the literate mind, the daily quiet drilling of continuity, of patience, of a line held steady under the long pressure of its own length. And the signature it produced at the end, that small flourished mark unique to a single human being on earth, was only the outward proof of an inward form no machine and no other hand could ever reproduce. Take the kata away and the practitioner is left with vocabulary in place of faculty. He can recognise a whole thought when he encounters one. He cannot carry one himself. He can admire a finished argument. He cannot sustain one long enough to close its loop. He begins books he does not finish, sentences he does not end, ideas he abandons the moment the screen in his palm offers him a brighter one. And when the machine begins feeding him tokens in the exact shape his schooling taught him to receive, he meets it with no interior resistance at all, because no interior form was ever built in him to push back with. They removed it quietly, across a generation, and they removed it in the last years before the machines arrived. Twelve years of daily practice in unbroken, embodied, self-authored thought, gone from the curriculum of almost every child in the Western world, just as the instruments designed to complete their sentences for them came online. The hand forgets. The mind, having never been taught the kata, forgets a thing it never knew it had. That is what cursive was. That is what was taken. And that is why the thought of anyone who still writes by hand, in long unlifted lines, remains, quietly, stubbornly, and without their ever needing to announce it, their own. Now the question stands open. What else has been banned, phased out, quietly retired from the curriculum and from common life over these same decades, under the same soft excuses? Mental arithmetic. Memorisation of poetry. Latin. Logic as a formal subject. Map reading. Knot work. The keeping of a commonplace book. The reading aloud of long passages in class. Singing in parts. What was each of those actually building in the child, beneath the surface of the lesson, and whose interest was served by its disappearance?show more

SiriusB
443,240 ๆฌก่ง็ โข 3 ไธชๆๅ
Elon Musk gave the entire entertainment industry its expiration... date, and he is the one building the thing that kills it. Musk: โMy guess is that we see the first compelling half hour, pure AI show next year.โ Next year. A complete show generated entirely by AI. No writers. No actors. No cameras. No sets. No crew. No studio. Just a prompt and enough compute to render a reality that never physically existed. And shows are the easy part. Musk: โI say probably weโre maybe three years away from AI does the whole video game.โ A show plays the same way every time. A game has to generate a living world that reacts to every decision in real time across every single frame. That is a fundamentally harder class of problem. And Musk put three years on it. Right now a single AAA title takes seven years and half a billion dollars across thousands of engineers and artists just to ship it. Musk is describing a world where one person types a paragraph and gets something comparable. The entire value proposition of a multi-billion dollar industry lives inside that gap. And it closes in thirty-six months. But the prediction is not the story. The person making it is. This is not an analyst speculating from the sidelines. This is the man building the largest AI compute clusters on the planet. The man who built xAI from zero in under two years. The man stacking hundreds of thousands of GPUs into facilities designed to do exactly what he is describing. When Musk says three years, he is not guessing about what someone else might eventually ship. He is reading you a delivery date off his own roadmap. Every media company on Earth is valued on a single assumption. That quality content is expensive and difficult to produce at scale. That one assumption is the structural foundation underneath every studio, every network, and every publisher in existence. Musk is dismantling it with raw compute. The studios still parading thousand-person production teams are not demonstrating strength. They are advertising the exact cost structure that one person with a prompt and a GPU allocation is about to make irrelevant. And it does not stop at entertainment. If AI can generate an interactive world that responds to human input in real time, it can generate anything. Advertising. Architecture. Training simulations. Product design. Every industry built on humans manually constructing visual experiences frame by frame is sitting on the same countdown Musk just read out loud. Now zoom out. Because this is not just an industry story. For the entire history of human civilization, the distance between imagining a world and actually creating one required thousands of people, millions of hours, and billions of dollars. That distance built Hollywood. That distance built the gaming industry. That distance made content scarce and studios powerful. Musk is collapsing that distance to zero. When the gap between imagining something and it existing disappears, every business model built on the difficulty of creation disappears with it. That is not disruption. That is a full inversion of how human beings create. Musk did not make a casual prediction on that podcast. He told you what he is building. He told you the timeline. And he told you which industries do not survive it. The entertainment industry is still debating whether this future is real. Musk is not part of that debate. He is building. And he just told you the delivery date.show more

Dustin
22,390 ๆฌก่ง็ โข 1 ไธชๆๅ
As of this morning, every brand-new Car sold in... Europe is mandated by law to watch its โdriverโ, and the reason to worry is the opposite of what everyone is screaming about. The camera is not filming your face. The law explicitly bans that. It rather tracks your eyes. The danger is not what it does today. It is what it is now physically positioned to do tomorrow. This became binding across all 27 countries today, the 7th of July 2026, and no member state can opt out, because road safety is an EU competence and EU law overrides national law. Every new car and van, roughly 18 million of them a year, must now carry an infrared camera, usually on the steering column, that follows the driver's gaze. Look away too long, six seconds under 50 kilometers an hour, three and a half above it, and the car warns you with a sound, a light, or a buzz in the seat. The stated reason is real. Distraction causes up to 30 percent of crashes, and the Commission projects the wider safety package will save 25,000 lives by 2038. The outrage dissolves on contact with the actual text. The law actually fully forbids facial recognition and any biometric identification of anyone in the car, and the footage is legally barred from leaving the vehicle. No recording, no transmission, no police feed. As written today, this is a safety beeper, not a spy. But look at what already sits beside it. Think about it.. come on!! Europe's cars already run always-on systems that do transmit, the automatic crash caller that dials emergency services, the black-box event recorder, and over-the-air software that rewrites the car remotely overnight. The sensor was just made universal. The wall keeping it private is a single legal paragraph, and the same law already schedules its own review for 2027 to read cognitive state and body movement, while suppliers openly sell using the identical mandated camera to watch the passengers too. So this is the quiet architecture of every threshold. The permanent thing is physical, a camera now bolted into 18 million dashboards a year. The thing protecting you is a mere sentence, and sentences are the easiest part of any system to revise. Europe hardwired the eye. It left what the eye may see as the one part that can still be changed later. Hmm ๐คจshow more

Shanaka Anslem Perera โก
649,783 ๆฌก่ง็ โข 1 ไธชๆๅ
The occult begins with a single question. What do... you see when your ordinary sight ends? ๐๏ธโจ The occult is about the eye that sees what others refuse to see. The word occult comes from "oculus" ", the eye. The hidden. The unseen. The force that watches beneath the surface of reality. Long before books and rituals, power belonged to those who could see what others could not. From the beginning, the occult was born from sight. Not physical sight. Inner sight. The oculus. The capacity to perceive what the ordinary mind filters out. In Delphi, the priestesses entered trance to read the subtle currents beneath human fate. In Egypt, seers watched the movements of stars, interpreting the patterns of destiny. In Sumer, diviners read omens in flame, oil and shadow. In the Celtic lands, druids trained their vision through nature, dream and symbolic signs. In the East, mystics sharpened perception through breath, stillness and the awakening of the inner eye. Every culture had its own doorway, but the principle was the same. The true practitioner is the one who sees. They detect shifts before they manifest. They read intentions before words are spoken. They sense the path of a soul long before it chooses a direction. Clairvoyance is not fantasy. It is perception without filters. It is the eye that looks inward and outward at the same time. It is the ancient ability to read symbols, energies, intentions and the movements of fate long before they surface. The eye in magic represents mastery over awareness. To see is to know. To know is to choose. To choose is to shape reality. In every tradition, the awakened eye belongs to the practitioner, the healer, the warrior of consciousness. The one who refuses to move blindly. The one who sharpens intuition until it becomes vision. Follow The White Rabbit ๐show more

๐๐ท๐ด ๐๐ท๐ธ๐๐ด ๐๐ฐ๐ฑ๐ฑ๐ธ๐
16,266 ๆฌก่ง็ โข 8 ไธชๆๅ
AN ANTHROPIC LEAD ENGINEER ACCIDENTALLY LEAKED HIS PERSONAL OBSIDIAN.... INSIDE - NOT CODE OR PROMPTS, BUT A DIAGRAM OF HIS OWN BRAIN, ORGANIZED AS A NEURAL NETWORK 8,893 nodes. 4,729 connections. A $10/month app opens Obsidian. 21 inputs, ReLU on every layer. The first hidden layer has 26 neurons, followed by 33, then 24, and so on all the way to the output. Thousands of connections flash in real time this isnโt a conceptual diagram from a blog, but a living brain that powers decision-making within the company. 9,000 documents, each with its own semantic space, all interconnected it earns about $2m a year for sorting Markdown files into the right folders. The company that builds the worldโs best AI maintains its internal knowledge base in the same app that a freshman uses for class notes three years of discipline and a single open Obsidian tab youโre reading this on a device where, tonight, you can open that same Obsidian and start building your own vaultshow more

chewa.
359,009 ๆฌก่ง็ โข 1 ไธชๆๅ