전은솜 / Eunsom Jeon retweeted
It’s been a very long time since I got a chance to travel to a conference with my students!
@wacv_official
@jeunsom @UtkarshNath @anvekar_tejas @rajeevgl01
전은솜 / Eunsom Jeon retweeted
Effective augmentations for topology-guided deep models for wearables, at IEEE Sensors. Rounding out 2024 now, see you all in 2025!
@jeunsom @Hongjun73574508 @mbuman
ieeexplore.ieee.org/document…
전은솜 / Eunsom Jeon retweeted
Time-series models guided by topology are robust to data gaps, noise, time-shifts, and pairs of these corruptions! Results from Eunsom Jeon's thesis continue to rock! What next?
rdcu.be/d4mxd
@jeunsom @Hongjun73574508 @Ankita1Shukla @ywangtda @mbuman @HyunglaeL
전은솜 / Eunsom Jeon retweeted
We can finally share "Movie Gen" 🥳:
* 30B video model, 73K video context tokens.
* T2V: 16s video generation at 1080p.
* I2V: Video personalizaton.
* V2V: Video text base editing.
📄 Checkout our paper with all the tricks: ai.meta.com/static-resource/…
전은솜 / Eunsom Jeon retweeted
#ECCV2024 We've tamed human motion diffusion models to generate stylized motions. Check out our work SMooDi: Stylized Motion Diffusion Model. One step closer to high-fidelity human motion generation.
Paper: arxiv.org/abs/2407.12783
Code: github.com/neu-vi/SMooDi
전은솜 / Eunsom Jeon retweeted
[Dropout] by hand ✍️
Dropout is a simple yet effective way of reducing overfitting and improving generalization. This by-hand exercise lets students practice calculating dropout, thereby gaining insight into its inner workings.
As an additional bonus, students get to practice calculating the gradients of the Mean Square Error (MSE) loss. After the practice, students are often surprised by how simple it is.
-- 𝗡𝗲𝘁𝘄𝗼𝗿𝗸 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 --
1. Linear(2,4)
2. ReLU
3. Dropout(0.5)
4. Linear(4,3)
5. ReLU
6. Dropout(0.33)
7. Linear(3,2)
-- 𝗪𝗮𝗹𝗸𝘁𝗵𝗿𝗼𝘂𝗴𝗵 --
🏋️ Training
[1] Given
↳ A training set of 2 examples X1, X2
[2] 🟧 Random: p > 0.5
↳ Draw 4 random numbers
↳ For each random number, if it is above 0.5, we keep and denote it as ◯. Otherwise we drop and denote it as ╳.
↳ The result is [◯, ╳, ◯, ╳]
[3] 🟧 Dropout: Matrix
↳ Calculate the scaling factor: 1 / (1-p) = 2
↳ Set the diagonal based on [◯, ╳, ◯, ╳], where ◯ = 2 and ╳ = 0
↳ The purpose is to drop the 2nd and the 4th nodes, and scale the remaining two nodes by 2.
[4] 🟦 Random: p > 0.33
↳ Draw 3 random numbers
↳ For each random number, if it is above 0.33, we keep and denote it as ◯. Otherwise we drop and denote it as ╳.
↳ The result is [◯, ◯, ╳]
[5] 🟦 Dropout: Matrix
↳ Calculate the scaling factor: 1 / (1-p) = 1.5
↳ Set the diagonal based on [◯, ◯, ╳], where ◯ = 1.5 and ╳ = 0
↳ The purpose is to drop the 3rd node, and scale the remaining two nodes by 1.5.
[6] Feed Forward
↳ Now we have all the matrices ready across the layers, perform the feed forward pass by calculating a series of matrix multiplications from the top to the bottom
↳ ReLU activation function is applied along the way to set negative feature values to zeroes, denoted by ╳.
↳ The outputs are Y.
[7] 🟥 Loss Gradients of Mean Square Error (MSE)
↳ The formula is 2 * (Y - Y')
↳ First we calculate Outputs (Y) - Targets (Y')
↳ Second we multiply each element by 2
[8] Update Weights
↳ Use loss gradients to start back propagation
↳ Update some weights (light red)
↳ The values of the new weights are for demonstration purpose only, not based on real calculation.
🔍 Inference
[9] Deactivate Dropout
↳ We set both dropout matrices to identity matrices
↳ The effect is to keep all the features as is.
[10] Feed Forward
↳ Take the forward pass to make predictions about unseen data.
전은솜 / Eunsom Jeon retweeted
Qwen2-VL is super impressive! Here is the model overview based on Hugging Face code:
Image/Video Processing:
• Resizes to the nearest multiple of 28 (14 * 2)
• 3D patches: temporal x height x width
• Multimodal RoPE for positional information
Vision Encoder:
• 3D convolution for temporal & spatial patches
• 32-layer, 1280 hidden size ViT encodes patches
• Supports dynamic input grid shape
Patch Merger:
• Learnable MLP maps (2x2) spatial tokens to one
for context efficiency
Decoder:
• Based on Qwen2 Decoder Layer
Kudos to the team @Alibaba_Qwen @JustinLin610 for sharing this powerful vision-language model with the community!
전은솜 / Eunsom Jeon retweeted
Meta silently dropped Sapiens: a series of vision foundation models specialized on humans 👯
all weights open, they release segmentation, depth and keynote models with various sizes on @huggingface 🤗
also h/t they uploaded torchscript compiled models too! 😍
전은솜 / Eunsom Jeon retweeted
Multi-Layer Perceptron (MLP) by hand ✍️ Spreadsheet 👉 by-hand.ai/s/mlp
A while ago, I created a spreadsheet version of the Transformer exercise and the Vector Database exercise. Turns out they are quite popular!
I decided to make something similar for the MLP, which is the backbone of many deep learning architectures I've illustrated so far, such as Autoencoder, GAN, VAE, U-Net, CLIP...etc.
To make your own custom version, simply follow the link above to create a copy of the spreadsheet. Try changing some weights and biases. See how the calculation changes accordingly.
Enjoy learning!
전은솜 / Eunsom Jeon retweeted
📢Call for Papers: NeurReps 2024!🧠
Submit your research on symmetry, geometry, and topology in artificial neural networks and neural computation.
Two tracks: Proceedings (9 pages) and Extended Abstract (4 pages).
Deadline: Sept 13, 2024. Details: neurreps.org/call-for-papers
전은솜 / Eunsom Jeon retweeted
Classwise line graph analytics using @ultralytics 🔥♥️
🚀 Each line shows the total count of each class in the frame. The max_points argument allows more points to be drawn for better analytics.
Learn more ➡️ docs.ultralytics.com/guides/…
#ai #analytics #classwise
전은솜 / Eunsom Jeon retweeted
Using the new end-frame feature with Runway GEN-3.
This time we are filling up an empty paper bag with fruit and vegetables!
전은솜 / Eunsom Jeon retweeted
Postdoctoral research associate Eunsom Jeon at the School of Arts, Media and Engineering will join Seoul National University of Science and Technology — as tenure track Assist. Prof. — in the Department of Computer Science and Engineering.
Congrats!
jeunsom.github.io/
전은솜 / Eunsom Jeon retweeted
Contrastive text-image pre-training is capable of cross-modal retrieval but falls short in text capability. My colleague @michael_g_u explained how we trained @JinaAI_ CLIP at #ICML2024, improving the CLIP text encoder performance by 165%.
On top of that, JinaCLIP V2 with multilingual support is coming in late August.
Paper & Model on Huggingface: huggingface.co/collections/j…
전은솜 / Eunsom Jeon retweeted
Game development is about to get easy.
This is 3D animation powered by AI. No suits or markers needed.
Liam Bailey used the Move One single-camera motion capture app with Unreal Engine 5 to bring this character to life.
전은솜 / Eunsom Jeon retweeted
[SVM] by Hand ✍️
Support Vector Machines (SVMs) reigned supreme in machine learning before the ascendancy of the deep learning revolution.
This exercise compares Linear vs RBF SVMs---how they classify two test vectors, after SVMs are trained from six training vectors.
[1] Given
xi: Six training vectors (blue rows 🟦)
yi: Labels
Using xi and yi, we learned ai and b (red borders):
↳ai: coefficient for each training vector i.
• Non-zero: A Support Vector that defines the decision boundary
• Zero: Too far from the decision boundary, ignored
↳b: bias (how much the decision boundary should be shifted)
x’j: Two test vectors (yellow columns 🟨)
(To simplify hand calculation, training and test vectors are not normalized.)
~ 𝗟𝗶𝗻𝗲𝗮𝗿 𝗦𝗩𝗠 ~
🟩 Kernel Matrix (K) [2]-[3]
[2] Test Vector 1
↳ Take dot product between the test vector 🟨 and every training vector 🟦
↳ The dot product approximates the “cosine similarity” between two vectors
↳ Output: 1st column of K
[3] Test Vector 2
↳ Similar to [2]
↳ Output: 2nd column of K
🟧 Decision Boundary [4]-[6]
[4] Unsigned Coefficients → Signed Weights
↳ Multiply each coefficient with the corresponding label
↳ The 2nd training vector is NOT a support vector because its coefficient is 0.
[5] Weighted Combination
↳ Multiply weights and bias with K
↳ Output: “signed” distance to the decision boundary
...
X'1: (2)*13+0+(1)*12+(-1)*15+(1)*19+(-1)*27+(2) = 17
X'2: (2)*2+0+(1)*3+(-1)*4+(1)*8+(-1)*8+(2) = 5
...
[6] Classify
↳ Take the sign
...
X'1: 1 > 0 → Positive +
X'2: 5 > 0 → Positive +
...
~ 𝗥𝗕𝗙 𝗦𝗩𝗠 ~
Given
ai: Learned coefficients
b: Learned bias
🟩 Kernel Matrix (K) [7]-[15]
𝘛𝘦𝘴𝘵 𝘝𝘦𝘤𝘵𝘰𝘳 (𝘟’1) 🟨
L2 Distance 🟪 [7]-[9]
[7] Squared Difference
...
i=1: (1-2)^2=1, (2-4)^2=4, (1-3)^2=4
...
[8] Sum
[9] Square Root
[10] Negative Scaling
↳ Multiply by -1: Note that L2 is a distance metric. The negation converts distance to similarity.
↳ Multiply by gamma γ: The purpose is to control how much influence each training example has. A small gamma means each training example pulls the decision boundary more lightly, resulting in smoother decision boundaries.
↳ The result is “negative scaled L2”
[11] Exponentiate
↳ Raise e to the power of the “negative scaled L2”
↳ Use the provided table to look up the value of e^
↳ Output: The 1st column of K
𝘛𝘦𝘴𝘵 𝘝𝘦𝘤𝘵𝘰𝘳 2 (𝘟’2) 🟨
L2 Distance 🟪 [12]-[14]
[12] Squared Difference
[13] Sum
[14] Square Root
[15] Negative Scaling
[16] Exponentiate
↳Output: The 2nd column of K
🟧 Decision Boundary [17]-[19]
[17] Unsigned Coefficients → Signed Weights
[18] Weighted Combination
...
X'1: (20)*0.7+(-10)*0.8+(10)*0.9+(-10)*0.7+0+(-10)*0.9+(-1) = -2
X'2: (20)*0.9+(-10)*0.7+(10)*0.8+(-10)*0.8+0+(-10)*0.9+(-1) = 1
...
[19] Classify
...
X'1: -2 < 0 → -
X'2: 1 > 0 → +
...
↳Output: The 2nd column of K
🟧 Decision Boundary [17]-[19]
[17] Unsigned Coefficients → Signed Weights
[18] Weighted Combination
...
X'1: (20)*0.7+(-10)*0.8+(10)*0.9+(-10)*0.7+0+(-10)*0.9+(-1) = -2
X'2: (20)*0.9+(-10)*0.7+(10)*0.8+(-10)*0.8+0+(-10)*0.9+(-1) = 1
...
[19] Classify
...
X'1: -2 < 0 → -
X'2: 1 > 0 → +
...
전은솜 / Eunsom Jeon retweeted
4. Activation - AI by Hand✍️Workbook Series
I share original hand calculation exercises like this, with 36K followers on LinkedIn. I just started sharing on X.
If you find this workbook helpful,
[Follow] me for more!
전은솜 / Eunsom Jeon retweeted
[LoRA] by Hand ✍️
How does LoRA reduce the number of trainable parameters?
전은솜 / Eunsom Jeon retweeted
CS undergraduate Aishani Pathak and CS master's student Rahul Khurana collaborated with Geometric Media Lab postdoc Eunsom Jeon and Pavan Turaga on new robust techniques for machine perception, resulting in a paper to be presented at the GRaM workshop gram-workshop.github.io/inde…
















