š a linked post to
tonsky.me »
—
originally shared here on
Itās not just about download sizes. I welcome high-speed internet as much as the next guy. But code ā JavaScript ā is something that your browser has to parse, keep in memory, execute. Itās not free. And these people talk about performance and battery life...
Call me old-fashioned, but I firmly believe content should outweigh code size. If you are writing a blog post for 10K characters, you donāt need 1000Ć more JavaScript to render it.
Iāll be honest: Iām a bad modern front end dev.
I only have a limited amount of experience with frameworks like Vue and React.
But this blog post gets to the reason why: massive JavaScript framework bloat is often not necessary.
As you can see in this post, many of these incredibly basic sites that display text (like Medium and Substack) still require 4mb of JS code! Thatās insane!
Itās like the old axiom goes: use the right tool for the job.
And maybe think twice before slapping a thousand marketing pixels on your landing page. š
š a linked post to
community.aws »
—
originally shared here on
LLMs treat words as referents, while humans understand words as referential. When a machine āthinksā of an apple (such as it does), it literally thinks of the word apple, and all of its verbal associations. When humans consider an apple, we may think of apples in literature, paintings, or movies (donāt trust the witch, Snow White!) ā but we also recall sense-memories, emotional associations, tastes and opinions, and plenty of experiences with actual apples.
So when we write about apples, of course humans will produce different content than an LLM.
Another way of thinking about this problem is as one of translation: while humans largely derive language from the reality we inhabit (when we discover a new plant or animal, for instance, we first name it), LLMs derive their reality from our language. Just as a translation of a translation begins to lose meaning in literature, or a recording of a recording begins to lose fidelity, LLMsā summaries of a reality theyāve never perceived will likely never truly resonate with anyone whoās experienced that reality.
And so we return to the idea of hallucination: content generated by LLMs that is inaccurate or even nonsensical. The idea that such errors are somehow lapses in performance is on a superficial level true. But it gestures toward a larger truth we must understand if we are to understand the large language model itself ā that until we solve its perception problem, everything it produces is hallucinatory, an expression of a reality it cannot itself apprehend.
This is a helpful way to frame some of the fears Iām feeling around AI.
By the way, this came from a new newsletter called VectorVerse that my pal Jenna Pederson launched recently with David Priest. You should give it a read and consider subscribing if youāre into these sorts of AI topics!
Beat anxiety with the most addictive experience on Earth
š a linked post to
youtube.com »
—
originally shared here on
Really straight forward advice here:
Write down ten things that youāre grateful for, and write each one three times. (This points out to the brain things that have already happened that are good, which lets us take in less negative stuff)
Practice mindfulness for 11 minutes a day. (This is proven to calm down your nervous system and make you less emotionally reactive)
Exercise 20-40 minutes until the voice in your head gets quiet and your lungs open up. (This releases nitric oxide and also resets the nervous system)
I think I can incorporate the gratefulness piece into my journaling habit Iāve developed.
I have never been able to get a mindfulness practice to stick, but hey, maybe thatās something I can try to start tomorrow.
Exercise has been, admittedly, hit or miss these past several months. I do enjoy Apple Fitness workouts, but I miss the runnerās high I used to get with running. I need another goal-based exercise activity to keep myself on track.
But I digress: all of these serve as catalysts to get you into a state of flow, which, as mentioned in this video, is one of the greatest experiences you can ever feel.
But now Gemini 1.5 can hold something like 750,000 words in memory, with near-perfect recall. I fed it all my published academic work prior to 2022 ā over 1,000 pages of PDFs spread across 20 papers and books ā and Gemini was able to summarize the themes in my work and quote accurately from among the papers. There were no major hallucinations, only minor errors where it attributed a correct quote to the wrong PDF file, or mixed up the order of two phrases in a document.
Iām contemplating what topic I want to pitch for the upcoming Applied AI Conference this spring, and I think I want to pitch āHow to Cope with AI.ā
Case in point: this pull quote from Ethan Mollickās excellent newsletter.
Every organization Iāve worked with in the past decade is going to be significantly impacted, if not rendered outright obsolete, by both increasing context windows and speedier large language models which, when combined, just flat out can do your value proposition but better.
According to the just-published 2020 U.S. Census data, Monowi now had 2 residents, doubling its population.
This came as a surprise to Elsie, who told a local newspaper, āThen someoneās been hiding from me, and thereās nowhere to live but my house.ā
It turns out that nobody new had actually moved to Monowi without Elsie realizing. And the census bureau didnāt make a mistake. They intentionally changed the census data, adding one resident.
Today, I learned about the concept of differential privacy.
Addressing technical debt is rarely about making time for large fixes. Itās about setting strong examples for improving code in our daily work. Itās about celebrating the ability to refactor code to make it easier to work with.
I really like the approach the author takes in categorizing the various types of technical debt one might come across when building software.
The part that I found most enlightening was about yearly debt:
Yearly Debt is the kind where after lots of conversations, someone concludes a rewrite is the only solution. Sometimes a rewrite may be the only solution. Sometimes you may have a Ship of Theseus problem on your hands where you need to slowly and methodically replace parts until the system is the same but different.
Sometimes, though, this isnāt really debt. Itās possible that your dilemma is the result of growth or changing markets. In that respect, calling it debt does a disservice to our success, and distracts from solving the problem of growth.
Brilliant. The ādebtā metaphor is apt because not all debt is created equally.
If your town grows into a city, you eventually need to take out debt to build out new infrastructure. You might need to add a few lanes to the main bridge that passes through town. You might need to add more parks or theatres or schools to attract more people.
This incurs debt, for sure, but the payoff comes down the road when you now have an attractive city with amenities that help keep the city vibrant and growing.
The same applies to building software. Sometimes, the algorithm that got you here wonāt work for the new customer you want to attract. Sometimes, the frameworks you used to build your mobile app are no longer able to support the hot new feature you want to add.
When framed like that, you no longer call these projects ādebtā⦠you call them investments.
Investments are different from the sort of debt you incur from re-landscaping your back yard for the third time in four years.
š a linked post to
youtube.com »
—
originally shared here on
This album essentially served as the soundtrack of the early days of the Jed Mahonis Group.
Whenever we needed a day to be heads down, this album would be turned on repeat.
Whenever there was a late night push and we needed the extra motivation to get through it, this album was on repeat.
I came across this video describing the inner turmoil that Daft Punk was feeling while making this album, and I couldnāt help but feel the similarities to my present day situation.
I have long considered this album to be in my top 5 favorites of all time, but this YouTube video made me understand and appreciate it a whole lot more. I should see if there are similar videos for my other favorite albums.
File this video under āreasons I love the internet.ā
Representation Engineering Mistral-7B an Acid Trip
š a linked post to
vgel.me »
—
originally shared here on
In October 2023, a group of authors from the Center for AI Safety, among others, published Representation Engineering: A Top-Down Approach to AI Transparency. That paper looks at a few methods of doing what they call "Representation Engineering": calculating a "control vector" that can be read from or added to model activations during inference to interpret or control the model's behavior, without prompt engineering or finetuning.
Being Responsible AI Safety and INterpretability researchers (RAISINs), they mostly focused on things like "reading off whether a model is power-seeking" and "adding a happiness vector can make the model act so giddy that it forgets pipe bombs are bad."
But there was a lot they didn't look into outside of the safety stuff. How do control vectors compare to plain old prompt engineering? What happens if you make a control vector for "high on acid"? Or "lazy" and "hardworking? Or "extremely self-aware"? And has the author of this blog post published a PyPI package so you can very easily make your own control vectors in less than sixty seconds? (Yes, I did!)
Itās been a few posts since I got nerdy, but this was a fascinating read and I couldnāt help but share it here (hat tip to the excellent Simon Willison for the initial share!)
The article explores how to improve the way we format data before it gets fed into a model, which then leads to better performance of the models.
You can use this technique to build a more resiliant model that is less prone to jailbreaking and produces more reliable output from a prompt.
We come into this world craving the presence of others. But a few modern trendsāa sprawling built environment, the decline of church, social mobility that moves people away from friends and familyāspread us out as adults in a way that invites disconnection. Meanwhile, as an evolutionary hangover from a more dangerous world, we are exquisitely engineered to pay attention to spectacle and catastrophe. But screens have replaced a chunk of our physical-world experience with a digital simulacrum that has enough spectacle and catastrophe to capture hours of our greedy attention. These devices so absorb us that itās very difficult to engage with them and be present with other people.
The sum result of these trends is that we are both pushed and pulled toward a level of aloneness for which we are dysevolved and emotionally unprepared. Sartre said hell is other people. Perhaps. But the alternative is worse.
Paul, Micah, Nick, and I get together every Monday night and make music. Itās often the highlight of my week.
We get dinner beforehand and talk about the day to day goings on of our lives. Then, we retreat to Paulās multi-million dollar recording studio 1 and just noodle around.
We donāt have a set agenda, no prescribed musical style. One of us just starts playing something, and the rest of us join in.
No matter how depressed, anxious, or frustrated I feel walking into Paulās house, I never leave with those feelings. Getting to spend time with three smart, talented, and caring dudes always leaves me with a filled bucket.2
Find an activity that brings you joy and go do it with other people. And if you donāt know where to find those people, just ask someone. Thatās what Paul did, and thanks to him, Iāve now got two new friends and a weekly outlet for building my guitar skills and expressing some creativity.3
It may look like a laundry room to you, but between the gear, the artwork, the lighting, and Micah or myself inevitably smacking our guitars on the overhead duct work, itās just as inspirational as any ārealā recording studio has felt to me. ↩
You know what drains my bucket? Non-stop Zoom meetings. Reddit during an election year. Hell, Reddit in general. YouTubeās algorithm surfacing any sort of hot take on a modern news event. Just, kinda, being on the open internet in general. ↩
I should write a longer post about this, but it is terrifying to play an instrument within a band. I often find myself just sticking to the chords because I donāt wanna screw up everyone else. But the more I watch better guitar players like Paul and Nick and Micah do their thing, the more confident I get and the more I find myself actually practicing on my own. One of these days, maybe Iāll get enough courage to try shredding in front of others. ↩