<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kyle Roth</title><link>https://kylrth.com/</link><description>Recent content on Kyle Roth</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 30 Sep 2026 19:26:51 -0400</lastBuildDate><atom:link href="https://kylrth.com/index.xml" rel="self" type="application/rss+xml"/><item><title>AI research is dead, long live AI</title><link>https://kylrth.com/post/ai-research-is-dead/</link><pubDate>Wed, 30 Sep 2026 10:41:41 -0400</pubDate><guid>https://kylrth.com/post/ai-research-is-dead/</guid><description>&lt;p&gt;&lt;em&gt;inspired by Mike Cook&amp;rsquo;s 2026-09-22 article &lt;a href="https://www.possibilityspace.org/blog/posts/i-love-ai/"&gt;&amp;ldquo;Why I love AI&amp;rdquo;&lt;/a&gt; (&lt;a href="https://dl.kylrth.com/web/why_i_love_ai.mhtml"&gt;MHTML archive&lt;/a&gt;)&lt;/em&gt;&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;&lt;a href="https://en.wikipedia.org/wiki/MHTML"&gt;MHTML&lt;/a&gt; is a web archiving file format that combines an HTML page and its associated resources into a single file.&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;&#10;&lt;p&gt;This may be showing my youth, but I am surprised to learn that route optimization algorithms were once considered a part of AI research; I&amp;rsquo;ve always seen it treated as a highly distinct field, sometimes even outside the realm of informatics/CS.&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt; My department is named &lt;em&gt;Département d&amp;rsquo;informatique et de recherche opérationelle&lt;/em&gt;, or &amp;ldquo;department of informatics and operations research&amp;rdquo;, where &amp;ldquo;operations research&amp;rdquo; is about such optimization algorithms.&lt;/small&gt;&lt;/span&gt; If in a different life I&amp;rsquo;d had the time to become invested in AI research for 20 years before things became the way they are in 2026, I could totally see myself feeling left behind like Cook feels. But critically, just as he was seeing his field left behind, I was seeing my field of interest, natural language processing, becoming &lt;em&gt;subsumed&lt;/em&gt; by this latest instantiation of &amp;ldquo;AI research&amp;rdquo;.&lt;/p&gt;</description></item><item><title>Nonviolent communication: a language of life</title><link>https://kylrth.com/book/nonviolent-communication/</link><pubDate>Fri, 25 Oct 2024 15:39:56 -0400</pubDate><guid>https://kylrth.com/book/nonviolent-communication/</guid><description>&lt;h2 id="feelings-over-judgments"&gt;feelings over judgments &lt;a class="header-link" href="#feelings-over-judgments"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;To communicate nonviolently, we need to clearly communicate our feelings, rather than our judgments. Maturity means differentiating our feelings and experiences into as many parts and distinctions as a well-trained orchestral listener. &amp;ldquo;I feel that&amp;rdquo; or &amp;ldquo;I feel when&amp;rdquo; is expressing an opinion, rather than a feeling. Even &amp;ldquo;I feel inadequate&amp;rdquo; would be better expressed as &amp;ldquo;I feel disappointed with my performance&amp;hellip;&amp;rdquo; &amp;ldquo;I feel good about &amp;hellip;&amp;rdquo; is not specific enough.&lt;/p&gt;</description></item><item><title>Thinking in systems: a primer</title><link>https://kylrth.com/book/thinking-in-systems/</link><pubDate>Mon, 15 Jul 2024 11:17:09 -0400</pubDate><guid>https://kylrth.com/book/thinking-in-systems/</guid><description>&lt;p&gt;A system is something that is composed of parts that have interrelations between them.&lt;/p&gt;&#10;&lt;p&gt;Each system has purposes, and those purposes may have nothing to do with stated goals. For example, if a government says it wants to protect the environment but allocates few resources to that goal, its purpose is not to protect the environment, but something else. A university may have the purpose of teaching students, while the components of the university have different goals: the student is trying to get good grades, the professor is trying to produce good research, and the administrator is trying to balance the budget.&lt;/p&gt;</description></item><item><title>Bowling alone: the collapse and revival of American community</title><link>https://kylrth.com/book/bowling-alone/</link><pubDate>Mon, 15 Jul 2024 10:36:57 -0400</pubDate><guid>https://kylrth.com/book/bowling-alone/</guid><description>&lt;h2 id="the-trends"&gt;the trends &lt;a class="header-link" href="#the-trends"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;politics&lt;/strong&gt;: There is now more money in politics, and less individual involvement. There are more total associations, but they look more like the AARP and Greenpeace, instead of unions, churches, bridge clubs, rotary.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;religion&lt;/strong&gt;: Attendance has definitely gone down in the last 40 years, even if the number of people who profess stays nearly the same. (This has changed since the book was published on January 1, 2000.) The 60s and 70s saw people make their religion more private, more personal, making people less concerned with the communal support of a shared faith. Fundamentalist religion (including evangelical) results in more service and giving, but primarily within the church community. So as the mainline middle falls out, religion is becoming a less helpful societal lubricant overall, despite the fact that religiosity has generally meant more volunteerism and giving.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;workplace&lt;/strong&gt;: Unionization has declined, and people primarily see the union as a means for collective bargaining rather than a social movement. People are likely to have friends at work, but those friendships are not usually intimate and they don&amp;rsquo;t form the center of one&amp;rsquo;s social life. And now all jobs are more contingent; people are less likely to spend many years at a single job. Job precarity leads to anxiety, and less rootedness in one&amp;rsquo;s financial and community situation. People are less satisfied with their work time. At the end of the day, employers have control over work time and communications, especially with modern monitoring.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;personal social connections&lt;/strong&gt;: Informal social connection is just as important. Informality peaks in young and old adulthood, and formality in middle age. People thought urbanization would destroy social life, but instead of a city fostering a single social community, it fosters many smaller dispersed networks. You don&amp;rsquo;t know your neighbors though.&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;But is this due to the lack of third spaces at a scale that makes it easy to meet your neighbors? My high-rise complex in Montreal provides an area with tables and chairs, grills, basic outdoor exercise equipment, and water fountains that kids can splash in. But the complex is large enough that this feels like a public place, like a park. If there were common spaces on the scale of a single building or even a single floor, I would probably know my neighbors. I think a lot of this comes down to some missing priorities in 20th century urban design.&lt;/small&gt;&lt;/span&gt; But hanging out with friends has really dropped off for average Americans, as has going out to sit-down restaurants. People spend 2/3 as much time in informal social activities as we used to, even while people are having fewer kids and are more educated (which in the past have been associated with greater social capital). Watching sports, going to museums, observing is up, and playing sports, creating music, and doing is down.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;altruism/philanthropy&lt;/strong&gt;: Donating and volunteering are predicted by one&amp;rsquo;s social connectedness, rather than defining connectedness itself. Joiners of any organization give ten times more philanthropy. We&amp;rsquo;re making more now than our parents did, but giving has not kept up. Volunteering is reported more frequently, but community service is reported less, meaning the volunteer work we do is more one-on-one, probably partly because people are not doing it through church as often. Volunteering has been propped up by the Silent generation doing more in old age.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;trustworthiness&lt;/strong&gt;: When we trust each other we can get more done because transaction costs are lower. Thick trust is when you&amp;rsquo;re on a first name basis, thin trust is the kind of trust you have in the anonymous other. Cities are less trusting, but more free. Thin trust peaked in the early 60s and has declined since. People are becoming angrier drivers, and hitchhiking is gone. Spending on lawyers, police, security, etc. have gone up. The increase in lawyers has mostly come from preventative efforts, where we &amp;ldquo;get it in writing&amp;rdquo; to establish a cool trust dependent on contracts.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;grassroots movements&lt;/strong&gt;: Political activism has turned from the &amp;ldquo;ground-based&amp;rdquo; Civil Rights Movement to &amp;ldquo;air-based&amp;rdquo; Greenpeace et al., due to the destruction of social capital. Meanwhile, evangelical, right-leaning political movements have managed to remain based in social capital and become a big political force. Evangelicals are 3-4 times more politically active than average.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;telecommunications&lt;/strong&gt;: People call a lot and keep up with distant friends by voice instead of by writing now. The social impact of the telephone was hard to judge, but was probably mostly positive for families and personal relationships, but reduced the creation of new friendships and the existence of personal relationships in public space. I&amp;rsquo;d be interested to see what he would report in 2023 about the internet. His ideas about it at time of writing were actually pretty reasonable. &amp;ldquo;Most online groups have the structure of either an anarchy, if unmoderated, or a dictatorship, if moderated.&amp;rdquo; (I wonder if we could design an algorithm to allow participants to represent the natural discomfort/dislike people feel with someone and then act accordingly.) Internet communication removes a lot of information necessary for social capital formation. In-person dialog allows speakers to constantly mediate their statements as they get facial feedback from listeners. This section was quite prescient:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;Experiments that compare face-to-face and computer-mediated communication confirm that the richer the medium of communication the more sociable, personal, trusting, and friendly the encounter.&lt;/p&gt;&#10;&lt;p&gt;Computer-mediated communication is, to be sure, more egalitarian, frank, and task-oriented than face-to-face communication. Participants in computer-based groups often come up with a wider range of alternatives. However, because of the paucity of social cues and social communication, participants in computer-based groups find it harder to reach consensus and feel less solidarity with one another. They develop a sense of &amp;ldquo;depersonalization&amp;rdquo;, and are less satisfied with the groups accomplishments. Computer-based groups are quicker to reach an intellectual understanding of their shared problems—probably because they are less distracted by extraneous social communication—but they are much worse at generating the trust and reciprocity necessary to implement that understanding.&lt;/p&gt;&#10;&lt;p&gt;Cheating and reneging are more common in computer-mediated communication, where misrepresentation and misunderstanding are easier. Participants in computer-based settings are less inhibited by social niceties and quicker to resort to extreme language and invective. &amp;ldquo;Flaming&amp;rdquo; is the commonly-used term among cybernauts; the compelling image of communication is hand-to-hand combat with flamethrowers. Computer-mediated communication is good for sharing information, gathering opinions, and debating alternatives, but building trust and goodwill is not easy in cyberspace. John Seely Brown and Paul Duguid point out that &amp;ldquo;interactions over the Net, financial or social, will be as secure not as its digital encryption, which is a relatively cheap fix, but as the infrastructure—social as well as technical—encompassing that interaction.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;For these reasons, Nohria and Eccles suggest, widespread use of computer-mediated communication will actually require &lt;em&gt;more frequent&lt;/em&gt; face-to-face encounters: &amp;ldquo;an extensive, deep, robust social infrastructure of relationships must exist so that those using the electronic media will truly understand what others are communicating to them.&amp;rdquo; (pp. 176-177)&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;He wondered whether the internet would become the next telephone, or the next TV. Very interesting, because it&amp;rsquo;s kind of been both, although I would say it definitely has fallen more on the side of TV even though it connects people somewhat intimately across long distances, and allowed important modern communities to flourish in a way they couldn&amp;rsquo;t have before.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>The whole-brain child: revolutionary strategies to nurture your child's developing mind</title><link>https://kylrth.com/book/whole-brain-child/</link><pubDate>Mon, 15 Jul 2024 10:21:23 -0400</pubDate><guid>https://kylrth.com/book/whole-brain-child/</guid><description>&lt;p&gt;&lt;em&gt;The &amp;ldquo;refrigerator sheet&amp;rdquo; found &lt;a href="https://drdansiegel.com/whole-brain-child-handouts/"&gt;here&lt;/a&gt; has a nice summary of the 12 strategies presented in this book.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;This was a great book full of really insightful strategies to approaching mental integration. My only complaint is that they claim the strategies are neuroscientific, when in fact what they&amp;rsquo;re doing is using brain metaphors to teach real concepts. The left- and right-brain metaphor is &lt;a href="https://en.wikipedia.org/wiki/Lateralization_of_brain_function#Society_and_culture"&gt;taken too far&lt;/a&gt; in popular culture, and I think this book over-emphasizes the importance of these metaphors in order to argue for the parenting strategies here. I was especially bothered by how they used the concept of &lt;a href="https://en.wikipedia.org/wiki/Mirror_neuron"&gt;mirror neurons&lt;/a&gt; to argue for the sociality of the brain, as if that alone were a sufficient argument that we should teach kids to think about other people. The recommended strategies for teaching kids to see others are &amp;ldquo;enjoy each other&amp;rdquo; and &amp;ldquo;connect through conflict&amp;rdquo; which, while probably useful, do not depend on mirror neurons in any particular way.&lt;/p&gt;</description></item><item><title>Speaking as from the Dust: ideologies of AI and digital resurrection in Mormon culture</title><link>https://kylrth.com/paper/speaking-as-from-the-dust/</link><pubDate>Wed, 08 May 2024 15:03:18 -0400</pubDate><guid>https://kylrth.com/paper/speaking-as-from-the-dust/</guid><description>&lt;p&gt;I wrote this paper with Stephen Betts, a friend of mine doing Mormon Studies at the University of Virginia. (Click the title to download the preprint.) Our interest in the topic was initially piqued when we stumbled across the &lt;a href="https://wilfordwoodruffpapers.org/wilford-woodruff-ai-learning-experience"&gt;Wilford Woodruff AI Learning Experience&lt;/a&gt;, and this paper explores the unique intersection of Mormonism, transhumanism, and machine learning that makes such a thing possible.&lt;/p&gt;&#10;&lt;p&gt;We&amp;rsquo;re currently looking for a venue to publish this work. &lt;strong&gt;Any feedback on the preprint is appreciated!&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Better, Nicer, Clearer, Fairer: a critical assessment of the movement for ethical artificial intelligence and machine learning</title><link>https://kylrth.com/paper/better-nicer-cleaner-fairer/</link><pubDate>Tue, 24 Oct 2023 12:53:31 -0400</pubDate><guid>https://kylrth.com/paper/better-nicer-cleaner-fairer/</guid><description>&lt;p&gt;&lt;em&gt;I will present this paper in the FATE (fairness, accountability, transparency, ethics) reading group tomorrow (2023-10-25). You can view the slides I&amp;rsquo;ll use &lt;a href="https://docs.google.com/presentation/d/1Bl4Bfh-ryFfmsEVrmdnYBe69hKjZP4mYZppvZHU5-yM/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;There are unresolved tensions in the algorithmic ethics world. Here are two examples:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Is inclusion always good?&#10;&lt;ul&gt;&#10;&lt;li&gt;Gebru: &amp;ldquo;you can&amp;rsquo;t have ethical A.I. that&amp;rsquo;s not inclusive&amp;hellip; [a]nd whoever is creating the technology is setting the standards&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;Nelson: &amp;ldquo;&amp;hellip; I struggle to understand why we want to make black communities more cognizant in facial recognition systems that are disproportionately used for surveillance.&amp;rdquo;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;academic activism&#10;&lt;ul&gt;&#10;&lt;li&gt;O&amp;rsquo;Neil: why is there a lack of academic efforts to inform policymakers and regulators?&lt;/li&gt;&#10;&lt;li&gt;PERVADE: Academics have been doing this work for a while but it is underfunded, marginalized, and at odds with a US political apparatus generally favorable towards Silicon Valley.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Ethics manifestos or value statements mask these tensions behind a business ethics lens.&lt;/p&gt;</description></item><item><title>The right side of history: how reason and moral purpose made the West great</title><link>https://kylrth.com/book/right-side-of-history/</link><pubDate>Thu, 12 Oct 2023 13:36:03 -0400</pubDate><guid>https://kylrth.com/book/right-side-of-history/</guid><description>&lt;p&gt;&lt;em&gt;The main text below is my summary of the points in the book, and I&amp;rsquo;ve put my commentary in sidenotes. If you want a Marxist, postmodern response to these ideas from the devil himself, check out&lt;/em&gt; &lt;a href="https://www.youtube.com/watch?v=SEMB1Ky2n1E"&gt;Jordan Peterson &amp;amp; the meaning of life&lt;/a&gt; &lt;em&gt;by Philosophy Tube.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Reason and moral purpose come from Athens and Jerusalem, and without those things the West would not be where it is today. Socialism means taking handouts from the nanny state, and while our society continues to function with capitalism bearing the weight of socialist programs, it&amp;rsquo;s in the process of crumbling. People on the left like to blame institutions and systems for current woes, when in reality this is the freest, most egalitarian society that has ever existed. That&amp;rsquo;s why we see the conflict over political divides strengthening in America. The West is losing its attachment to reason and moral purpose, instead shifting to intersectionality, hedonism, and scientific materialism. Happiness is built on a sense of moral purpose, and is achieved by maximizing individuals&amp;rsquo; ability to &lt;em&gt;pursue&lt;/em&gt; that happiness. Scientific materialism and atheism are problematic because they take away that moral purpose.&lt;/p&gt;</description></item><item><title>Killing sacred cows: overcoming the financial myths that are destroying your prosperity</title><link>https://kylrth.com/book/killing-sacred-cows/</link><pubDate>Thu, 12 Oct 2023 13:06:34 -0400</pubDate><guid>https://kylrth.com/book/killing-sacred-cows/</guid><description>&lt;p&gt;&lt;em&gt;This book made me cringe pretty often. I&amp;rsquo;ll leave exclamation points (!) on particularly cringe-worthy ideas, just so you can &lt;a href="https://twitter.com/metalgearobama/status/1344102150259974150?lang=en"&gt;see how based I am&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;This book functions on the idea that if we accept a new set of words: poverty mindset, abundance mindset, etc, we&amp;rsquo;ll become wealthy.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Zero-sum mindset&lt;/strong&gt;: any critique of &amp;ldquo;success&amp;rdquo;, including environmental devastation&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Scarcity/poverty mindset&lt;/strong&gt;: saving your way to wealth, judging or being jealous of those who have things, being too safe or too risky with your money, avoiding the risk of seeking your dreams, any ideas that make you make bad decisions&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;If more people live with an abundance mindset, we will all experience less hardship.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Raising an emotionally intelligent child: the heart of parenting</title><link>https://kylrth.com/book/raising-emotionally-intelligent-child/</link><pubDate>Thu, 12 Oct 2023 12:57:20 -0400</pubDate><guid>https://kylrth.com/book/raising-emotionally-intelligent-child/</guid><description>&lt;p&gt;Really fantastic book. Here is a quote that was extremely key for me:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;Understand your base of power as a parent. By base of power, I mean the element in the parent-child relationship that makes it possible for parents to set limits on children&amp;rsquo;s misbehavior, something all kids want and need. For some parents, the base of power is threats, humiliation, or spanking. Others, who are overly permissive, may feel they have no base of power at all. For emotion coaching parents, the base of power is the emotional bond between parent and child. When you are emotionally connected to your child, limit-setting comes out of your genuine reactions to your child&amp;rsquo;s misbehavior. Your child responds to your anger, disappointment, and worries, so you don&amp;rsquo;t have to resort to negative consequences such as spanking and time-outs to amplify your feelings. The respect and affection you and your child have for each other become your primary vehicle for limit-setting.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Why we sleep: unlocking the power of sleep and dreams</title><link>https://kylrth.com/book/why-we-sleep/</link><pubDate>Wed, 11 Oct 2023 22:00:32 -0400</pubDate><guid>https://kylrth.com/book/why-we-sleep/</guid><description>&lt;p&gt;&lt;em&gt;There is &lt;a href="https://guzey.com/books/why-we-sleep/"&gt;controversy&lt;/a&gt; around some of the claims made in this book, so I don&amp;rsquo;t take any single point of evidence extremely seriously. But the person who critiqued the book also has some weird ideas about sleep,&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;For instance, he believes that we evolved in a sleep-deprived environment so sleep deprivation must be healthier for us.&lt;/small&gt;&lt;/span&gt; so in the end I think I probably side with the sleep scientist for most issues except when he seems extreme. Isn&amp;rsquo;t epistemology fun?&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Team Human interview with Dennis Yi Tenen</title><link>https://kylrth.com/post/team-human-tenen/</link><pubDate>Mon, 09 Oct 2023 10:34:12 -0400</pubDate><guid>https://kylrth.com/post/team-human-tenen/</guid><description>&lt;p&gt;&lt;em&gt;You can view this episode &lt;a href="https://www.teamhuman.fm/episodes/265-dennis-yi-tenen"&gt;here&lt;/a&gt;, and you can download a transcript I made with whisper-medium &lt;a href="https://dl.kylrth.com/web/transcript_teamhuman_tenen.txt"&gt;here&lt;/a&gt;. Please let me know if there are errors in the transcript.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="writing-technology"&gt;writing technology &lt;a class="header-link" href="#writing-technology"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;DYT&lt;/strong&gt;: You know, it took humans like centuries to perfect the technology of a dictionary and it took hundreds, thousands of people, probably like millions of hours to actually get to the point where you can easily look up a word.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>InstructEval: systematic evaluation of instruction selection methods</title><link>https://kylrth.com/paper/instructeval/</link><pubDate>Mon, 25 Sep 2023 11:38:24 -0400</pubDate><guid>https://kylrth.com/paper/instructeval/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper I presented about in Bang Liu&amp;rsquo;s research group meeting on 2023-09-25. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/1Qo_KPNnkj2jQzYDKG1wSEisHAr18Fs_eHq5Iuzj0MNs/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>thoughts on technology ownership</title><link>https://kylrth.com/post/tech-ownership/</link><pubDate>Thu, 07 Sep 2023 12:11:06 -0400</pubDate><guid>https://kylrth.com/post/tech-ownership/</guid><description>&lt;p&gt;Having heard about the &lt;a href="https://foundation.mozilla.org/en/privacynotincluded/articles/its-official-cars-are-the-worst-product-category-we-have-ever-reviewed-for-privacy/"&gt;terrible privacy policies of car manufacturers&lt;/a&gt; and &lt;a href="https://www.theverge.com/2023/3/3/23624328/ford-self-repossessing-car-patent-connected-car-nightmare"&gt;Ford&amp;rsquo;s new patent to automate vehicle repossession&lt;/a&gt;, I was finally able to formulate some thoughts I&amp;rsquo;ve had brewing for a while about ownership in this world of ubiquitous computing.&lt;/p&gt;&#10;&lt;p&gt;Before the industrial revolution, humans could essentially understand what a thing did by looking at it, and ownership was about possession of the object. Now we don&amp;rsquo;t understand our tools, and so possession does not imply control.&lt;/p&gt;</description></item><item><title>"Low-resource" text classification: a parameter-free classification method with compressors</title><link>https://kylrth.com/paper/gzip-text-classification/</link><pubDate>Mon, 24 Jul 2023 11:35:13 -0400</pubDate><guid>https://kylrth.com/paper/gzip-text-classification/</guid><description>&lt;p&gt;&lt;em&gt;I presented this paper in Bang Liu&amp;rsquo;s research group meeting on 2023-07-24. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/1w4n4UCWegJlDTCjKqWyTHOb3QHpnz1G2kTV6j_MODqY/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;It seems like the authors made a mistake that inflated the scores for the multilingual experiments, &lt;a href="https://kenschutte.com/gzip-knn-paper/"&gt;according to Ken Schutte&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>the NYT AI explainer misses the point</title><link>https://kylrth.com/post/nyt-ai-explainer/</link><pubDate>Mon, 17 Apr 2023 10:07:35 -0400</pubDate><guid>https://kylrth.com/post/nyt-ai-explainer/</guid><description>&lt;p&gt;In late March 2023, the NYT released a series of explainer articles about AI. The &lt;a href="https://www.nytimes.com/article/ai-artificial-intelligence-chatbot.html"&gt;first article in the series&lt;/a&gt;&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;You can also &lt;a href="https://web.archive.org/web/20230415130643/https://www.nytimes.com/article/ai-artificial-intelligence-chatbot.html"&gt;read it on Archive.org&lt;/a&gt; if you don&amp;rsquo;t have a subscription.&lt;/small&gt;&lt;/span&gt; characterizes the recent history of AI as a progression of new technological ideas appearing over time. Of course that&amp;rsquo;s partially true, but it gets the order wrong and misses important non-technical events that are key to understanding our current position.&lt;/p&gt;</description></item><item><title>the inherent subjectivity of reality</title><link>https://kylrth.com/post/edward-frenkel/</link><pubDate>Fri, 14 Apr 2023 14:45:44 -0400</pubDate><guid>https://kylrth.com/post/edward-frenkel/</guid><description>&lt;p&gt;&lt;em&gt;These are some thoughts I&amp;rsquo;ve had while listening to a Lex Fridman &lt;a href="https://lexfridman.com/edward-frenkel/"&gt;interview&lt;/a&gt; with Edward Frenkel, a mathematician at UC Berkeley working on mathematical quantum physics.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;In the information age, we like to see everything as computation. But what do we mean when we say that something is computation? We mean that a physical system with predictable interactions has a meaningful result. If we somehow learned that the universe was computational in nature, the only thing that adds is that the universe&amp;rsquo;s state is meaningful somehow.&lt;/p&gt;</description></item><item><title>Winners take all: the elite charade of changing the world</title><link>https://kylrth.com/book/winners-take-all/</link><pubDate>Mon, 20 Mar 2023 14:48:27 -0400</pubDate><guid>https://kylrth.com/book/winners-take-all/</guid><description>&lt;p&gt;This book was a good one for quotable critique of modern capitalism. Here are some good ones:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;These elites believe and promote the idea that social change should be pursued principally through the free market and voluntary action, not public life and the law and the reform of the systems that people share in common; that it should be supervised by the winners of capitalism and their allies, and not be antagonistic to their needs; and that the biggest beneficiaries of the status quo should play a leading role in the status quo’s reform.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>for a socially beneficial and responsible development of AI</title><link>https://kylrth.com/post/bengio-crawford/</link><pubDate>Mon, 20 Mar 2023 14:04:51 -0400</pubDate><guid>https://kylrth.com/post/bengio-crawford/</guid><description>&lt;p&gt;&lt;em&gt;These are my notes from a conversation between &lt;a href="https://en.wikipedia.org/wiki/Yoshua_Bengio"&gt;Yoshua Bengio&lt;/a&gt; and &lt;a href="https://en.wikipedia.org/wiki/Kate_Crawford"&gt;Kate Crawford&lt;/a&gt; held at &lt;a href="https://mila.quebec/"&gt;Mila&lt;/a&gt; on 2023-03-20, announcing the release of a new book created as a joint report between Mila and &lt;a href="https://en.wikipedia.org/wiki/UNESCO"&gt;UNESCO&lt;/a&gt; called&lt;/em&gt; Missing links in AI governance &lt;em&gt;(&lt;a href="https://unesdoc.unesco.org/ark:/48223/pf0000384787"&gt;link&lt;/a&gt;). There were news articles in French (&lt;a href="https://www.ledevoir.com/societe/785960/intelligence-artificielle-l-onu-et-le-mila-inquiets-des-derapages-potentiels-d-ia-comme-chatgpt"&gt;Le Devoir&lt;/a&gt;), but not as many in English unfortunately (&lt;a href="https://www.datanami.com/this-just-in/mila-and-unesco-join-forces-to-emphasize-urgent-need-for-better-ai-governance/"&gt;Datanami&lt;/a&gt;).&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Bengio&lt;/strong&gt;: What motivates you to do what you do? This topic has turned from an academic move to a societal one really quickly, and it&amp;rsquo;s scary. We need to figure out what to do.&lt;/p&gt;</description></item><item><title>Think again: the power of knowing what you don't know</title><link>https://kylrth.com/book/think-again/</link><pubDate>Wed, 08 Mar 2023 15:08:24 -0500</pubDate><guid>https://kylrth.com/book/think-again/</guid><description>&lt;p&gt;The book is divided into 3 parts, covering the value of rethinking, how to help others rethink, and how to help communities rethink.&lt;/p&gt;&#10;&lt;h2 id="the-value-of-rethinking"&gt;the value of rethinking &lt;a class="header-link" href="#the-value-of-rethinking"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Who you are should be a question of what you value, not what you believe.&lt;/p&gt;&#10;&lt;p&gt;When people change their answers on a test, they&amp;rsquo;re far more likely to change to the right answer than a wrong answer. Rethinking is effective!&lt;/p&gt;&#10;&lt;h2 id="helping-others-rethink"&gt;helping others rethink &lt;a class="header-link" href="#helping-others-rethink"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Good families allow for healthy conflict, rather than avoiding it. Orville and Wilbur Wright fought a lot but it wasn&amp;rsquo;t relational conflict, it was task conflict. Having a good relationship with colleagues is important because it&amp;rsquo;s what keeps task conflict from bleeding into relational conflict. You need a network of people who will disagree with you. Silence disrespects the value of your views, and our ability to have civil disagreement.&lt;/p&gt;</description></item><item><title>the AI art debate</title><link>https://kylrth.com/post/ai-art/</link><pubDate>Wed, 08 Mar 2023 12:09:25 -0500</pubDate><guid>https://kylrth.com/post/ai-art/</guid><description>&lt;p&gt;On 2022-11-03 a &lt;a href="https://githubcopilotlitigation.com/"&gt;class action lawsuit&lt;/a&gt; was announced against GitHub Copilot on the basis of copyright infringement, and now (2023-01-13) there&amp;rsquo;s &lt;a href="https://web.archive.org/web/20230114170709/https://stablediffusionlitigation.com/"&gt;one&lt;/a&gt; for stable diffusion (against StabilityAI and friends). Browsing through r/StableDiffusion, I&amp;rsquo;m seeing lots of posts like &lt;a href="https://www.reddit.com/r/StableDiffusion/comments/10e13r3/the_lawyers_suing_stable_diffusion_when_you_tell/"&gt;this&lt;/a&gt; making the very memeable point that 5 billion images can&amp;rsquo;t be stored in a 4 GB model. &lt;a href="https://www.reddit.com/r/StableDiffusion/comments/10e13r3/the_lawyers_suing_stable_diffusion_when_you_tell/j4oeny6/?context=3"&gt;From the original poster&lt;/a&gt;:&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;The thumbnail for this post was generated with stable diffusion. See the alt text for details. Yes, I&amp;rsquo;m not great at this.&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Army of none: autonomous weapons and the future of war</title><link>https://kylrth.com/book/army-of-none/</link><pubDate>Tue, 14 Feb 2023 13:33:19 -0500</pubDate><guid>https://kylrth.com/book/army-of-none/</guid><description>&lt;p&gt;The examples in this book make it clear that there is no easy line we can draw between autonomous and non-autonomous weapons (and by extension, autonomous AI agents). There is a smooth gradient of autonomy, which makes the question of allowing autonomous weapons much more nuanced. It&amp;rsquo;s probably the case that higher-level alignment becomes important proportionally to the level of autonomy and intelligence.&lt;/p&gt;&#10;&lt;p&gt;He analyzes the Patriot fratricides,&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;In a military context, the word &lt;em&gt;fratricide&lt;/em&gt; means the killing of someone on the same side of a conflict.&lt;/small&gt;&lt;/span&gt; and ends up blaming the individuals involved for automation bias. I would say that these humans in the system were set up to fail by the training and the functioning of the system. They&amp;rsquo;re expected to decide whether the computer is right, with only seconds to decide. He acknowledges this later when he talks about Aegis.&lt;/p&gt;</description></item><item><title>Conscious: a brief guide to the fundamental mystery of the mind</title><link>https://kylrth.com/book/conscious/</link><pubDate>Mon, 13 Feb 2023 16:57:49 -0500</pubDate><guid>https://kylrth.com/book/conscious/</guid><description>&lt;p&gt;The first thing you should know is that this book is only 2 hours long in audio form. That&amp;rsquo;s short! She managed to get into the difficult details while keeping the jargon accessible. (It helps that we literally know nothing about consciousness.)&lt;/p&gt;&#10;&lt;p&gt;This book argued alternately for neuroscientific, illusionist, and panpsychist theories of consciousness. It explains the hard problem of consciousness, and then later &lt;em&gt;really&lt;/em&gt; explains why it&amp;rsquo;s so hard. As a science-oriented person, t&amp;rsquo;s so easy to forget why it&amp;rsquo;s hard and start to explain things purely physically. When I do that, I end up thinking there&amp;rsquo;s got to be a neuroscience explanation. When I pay attention once again to my own experience, I lean towards some kind of panpsychism. The author really lays bare her own thoughts, and carefully spends time walking us through simple thought experiments to fight off the assumptions that we bring to the word &amp;ldquo;consciousness&amp;rdquo;.&lt;/p&gt;</description></item><item><title>Artificial intelligence, values, and alignment</title><link>https://kylrth.com/paper/ai-values-alignment/</link><pubDate>Fri, 10 Feb 2023 08:09:15 -0500</pubDate><guid>https://kylrth.com/paper/ai-values-alignment/</guid><description>&lt;p&gt;&lt;em&gt;I presented this paper in Bang Liu&amp;rsquo;s research group meeting in two installments on 2023-02-20 and 2023-02-27, and also in Irina Rish&amp;rsquo;s scaling and alignment course (&lt;a href="https://sites.google.com/view/towards-agi-course/course-description"&gt;IFT6760A&lt;/a&gt;) on 2023-03-07. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/1I4VPhMF32CDB3W3vWQl3TTy1GR5jxqSAAfSgjuk8enI/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;The thumbnail for this post was generated with stable diffusion! See the alt text for details.&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;Behind each vision for ethically-aligned AI sits a deeper question. How are we to decide which principles or objectives to encode in AI—and who has the right to make these decisions—given that we live in a pluralistic world that is full of competing conceptions of value? Is there a way to think about AI value alignment that avoids a situation in which some people simply impose their views on others?&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Unsolved problems in ML safety</title><link>https://kylrth.com/paper/unsolved-problems-ml-safety/</link><pubDate>Mon, 06 Feb 2023 11:39:33 -0500</pubDate><guid>https://kylrth.com/paper/unsolved-problems-ml-safety/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper we presented about in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/towards-agi-course"&gt;IFT6760A&lt;/a&gt;) in winter 2023. You can view the slides we used &lt;a href="https://docs.google.com/presentation/d/11VtXg-sfLkjtIQWXEEEm875esK-8QrNFr09woMYzrV8/edit?usp=sharing"&gt;here&lt;/a&gt;, and the recording &lt;a href="https://sites.google.com/view/towards-agi-course/schedule#h.lmlkbq72t3iz"&gt;here&lt;/a&gt; (or my backup &lt;a href="https://dl.kylrth.com/web/2023-02-02-ml-safety.mp4"&gt;here&lt;/a&gt;).&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Being mortal: medicine and what matters in the end</title><link>https://kylrth.com/book/being-mortal/</link><pubDate>Wed, 01 Feb 2023 09:04:11 -0500</pubDate><guid>https://kylrth.com/book/being-mortal/</guid><description>&lt;p&gt;Read this book before you turn 60. In fact, read it before you&amp;rsquo;re 40. Read it before your parents are 60. Read it if you have parents! Read it if you&amp;rsquo;re a person who is likely to die sometime in the future.&lt;/p&gt;&#10;&lt;p&gt;This book gave me tools for the hard decisions that exist for people in the last decade(s) of their lives. Before reaching this stage of life ourselves, we don&amp;rsquo;t think about it much because we&amp;rsquo;ve tended to separate the aged from our communities. We&amp;rsquo;ve lost a cultural understanding of what a good death looks like. This book brings that knowledge back to a world with modern medicine.&lt;/p&gt;</description></item><item><title>The big three in economics: Adam Smith, Karl Marx, and John Maynard Keynes</title><link>https://kylrth.com/book/big-three-economics/</link><pubDate>Tue, 24 Jan 2023 13:28:01 -0500</pubDate><guid>https://kylrth.com/book/big-three-economics/</guid><description>&lt;p&gt;This book was published in 2007, before the Great Recession. It definitely reads that way. Very capitalist, very Christian, very neo-liberal.&lt;/p&gt;&#10;&lt;p&gt;I enjoyed learning more about Adam Smith. I feel like Skousen does a good job painting the importance of his ideas as an invention that drove the Industrial Revolution.&lt;/p&gt;&#10;&lt;p&gt;According to Skousen, Marx is the devil incarnate, and his ideas are a dangerous disease infecting the minds of intellectuals and workers. Skousen takes a strange interest in painting Marx and Keynes as deranged, sexual deviants, etc. (&amp;ldquo;The Truth about Keynes&amp;rsquo; Homosexuality&amp;rdquo; is a section in this book.)&lt;/p&gt;</description></item><item><title>The drunkard's walk: how randomness rules our lives</title><link>https://kylrth.com/book/drunkards-walk/</link><pubDate>Tue, 24 Jan 2023 13:23:22 -0500</pubDate><guid>https://kylrth.com/book/drunkards-walk/</guid><description>&lt;p&gt;This is a good intro for non-statisticians to avoid some common pitfalls and misconceptions that the public often has. It&amp;rsquo;ll help you understand what it means when something is statistically significant, why sometimes studies contradict each other, and how to avoid believing in patterns that don&amp;rsquo;t exist. You&amp;rsquo;ll understand the following biases and fallacies:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;confirmation bias&lt;/li&gt;&#10;&lt;li&gt;gambler&amp;rsquo;s fallacy&lt;/li&gt;&#10;&lt;li&gt;hot hand fallacy&lt;/li&gt;&#10;&lt;li&gt;&amp;ldquo;hindsight is 20/20&amp;rdquo;: the illusion of hindsight for explaining historical performance/events&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;One mistake I want to point out:&lt;/p&gt;</description></item><item><title>facts I've observed about how my brain stores knowledge</title><link>https://kylrth.com/post/brain-knowledge/</link><pubDate>Thu, 19 Jan 2023 09:47:24 -0500</pubDate><guid>https://kylrth.com/post/brain-knowledge/</guid><description>&lt;p&gt;I&amp;rsquo;m writing these things down over time because I&amp;rsquo;d like to figure out how to make artificial neural networks better at storing and retrieving knowledge, and the human brain is pretty good at that.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;When knowledge is new, it sometimes only comes back to me when I&amp;rsquo;m in the right context. For example, right now I can only think vaguely of how to adjust a chain derailleur on a bike, but I know that if I walked up to my bike and looked closely at the derailleur some more knowledge would appear. And we all have the familiar experience of being able to predict whether we&amp;rsquo;d recognize the name of a person or a song once it&amp;rsquo;s been said to us, but we can&amp;rsquo;t think of what it is until then.&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>The birth order book: why you are the way you are</title><link>https://kylrth.com/book/birth-order/</link><pubDate>Thu, 01 Dec 2022 09:48:05 -0500</pubDate><guid>https://kylrth.com/book/birth-order/</guid><description>&lt;p&gt;This book really gave me the chance to think about what being the firstborn did to my personality and my life outlook. I think it&amp;rsquo;s pretty clear I fit the mold of a perfectionist firstborn, thanks to having usually met the high expectations of my parents growing up. It&amp;rsquo;s been especially valuable to think about how that will affect my own parenting, especially toward my first child. I think one of the most useful things about the book is that it prepares a parent to try to mediate some of the negative consequences of birth order. Here are the main tasks for a parent for each category:&lt;/p&gt;</description></item><item><title>thoughts on Effective Altruism</title><link>https://kylrth.com/post/effective-altruism/</link><pubDate>Thu, 17 Nov 2022 15:53:44 -0500</pubDate><guid>https://kylrth.com/post/effective-altruism/</guid><description>&lt;p&gt;Thanks to the crash of FTX and Scott Aaronson&amp;rsquo;s subsequent &lt;a href="https://scottaaronson.blog/?p=6797"&gt;post&lt;/a&gt; about SBF, I read a &lt;a href="https://www.newyorker.com/magazine/2022/08/15/the-reluctant-prophet-of-effective-altruism"&gt;very interesting deep-dive&lt;/a&gt; into Effective Altruism by &lt;em&gt;the New Yorker&lt;/em&gt;. I&amp;rsquo;m seeing a lot of important characters show up that I&amp;rsquo;ve seen before: Eliezer Yudkowsky, earn-to-donate, 80,000 hours, etc. It&amp;rsquo;s really fascinating to see this all coming together in one narrative so I can understand a little better the inspiration for these ideas and the way that the movement has interacted with the world up till now. Here are my notes and critiques of the ethical ideas presented in the article.&lt;/p&gt;</description></item><item><title>AlphaTensor: discovering faster matrix multiplication algorithms with reinforcement learning</title><link>https://kylrth.com/paper/alphatensor/</link><pubDate>Fri, 21 Oct 2022 14:18:00 -0400</pubDate><guid>https://kylrth.com/paper/alphatensor/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper I presented about in Bang Liu&amp;rsquo;s research group meeting on 2022-10-21. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/1iei7rogURT0GFU_jPIktMat-Cusb0KJciW-WLRANfzc/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Whisper: robust speech recognition via large-scale weak supervision</title><link>https://kylrth.com/paper/whisper/</link><pubDate>Fri, 30 Sep 2022 09:46:29 -0400</pubDate><guid>https://kylrth.com/paper/whisper/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper I presented about in Bang Liu&amp;rsquo;s research group meeting on 2022-09-30. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/1bGjzq0f2KEh49F9eyaNYz_VNlEQVJW0HKR61d48Y9fs/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Selective annotation makes language models better few-shot learners</title><link>https://kylrth.com/paper/selective-annotation/</link><pubDate>Tue, 13 Sep 2022 11:26:21 -0400</pubDate><guid>https://kylrth.com/paper/selective-annotation/</guid><description>&lt;p&gt;Selective annotation chooses a pool of samples to annotate from a large set of unlabeled data. The main result of the paper is that when this is combined with item-specific prompt retrieval the performance drastically improves (&amp;gt;10% relative gain and lower performance variance). Interestingly, selective annotation does &lt;em&gt;not&lt;/em&gt; help for finetuning, or when the prompts are randomly selected. They call their selective annotation method &amp;ldquo;vote-&lt;code&gt;\(k\)&lt;/code&gt;&amp;rdquo;.&lt;/p&gt;&#10;&lt;h2 id="selective-annotation-method"&gt;selective annotation method &lt;a class="header-link" href="#selective-annotation-method"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Vote-&lt;code&gt;\(k\)&lt;/code&gt; essentially creates a network of similar&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;according to Sentence-BERT&lt;/small&gt;&lt;/span&gt; unlabeled instances, and then selects from them with a network importance score that is discounted to promote diversity&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;The discounting is performed by iteratively adding to the selection set, each time penalizing new nodes for being close to nodes that are already in the selection set.&lt;/small&gt;&lt;/span&gt;.&lt;/p&gt;</description></item><item><title>Trivial or impossible—dichotomous data difficulty masks model differences (on ImageNet and beyond)</title><link>https://kylrth.com/paper/dichotomous-data-difficulty/</link><pubDate>Mon, 15 Aug 2022 14:21:56 -0400</pubDate><guid>https://kylrth.com/paper/dichotomous-data-difficulty/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;We observe that 48.2% [of] images [in ImageNet] are learned by all models regardless of their inductive bias; 14.3% [of] images are consistently misclassified by all models; only roughly a third (37.5%) of images are responsible for the differences between two models&amp;rsquo; decisions. We call this phenomenon dichotomous data difficulty (DDD).&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The authors varied hyperparameters, optimizers, architectures, supervision modes, and sampling methods, finding that models only varied in performance on about a third of the images in the dataset. And this isn&amp;rsquo;t specific to ImageNet; they found similar results for CIFAR-100 and a synthetic Gaussian dataset. They use this measure to divide the dataset into &amp;ldquo;trivials&amp;rdquo;, &amp;ldquo;impossibles&amp;rdquo;, and &amp;ldquo;in-betweens&amp;rdquo;.&lt;/p&gt;</description></item><item><title>Beyond neural scaling laws: beating power law scaling via data pruning</title><link>https://kylrth.com/paper/beyond_nsl/</link><pubDate>Thu, 11 Aug 2022 14:09:08 -0400</pubDate><guid>https://kylrth.com/paper/beyond_nsl/</guid><description>&lt;p&gt;In this paper they show that we can achieve exponential performance scaling over dataset size, when the samples added are pruned to be only the best examples. This beats power law scaling in a big way. There is still no free lunch, in some sense, because in most cases it will become progressively harder to add new useful samples as the dataset gets bigger. But this is a big deal for computation, because it means that the number of samples in the dataset is not nearly as important as the coverage and quality that the dataset provides.&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;This also means that scaling laws for &lt;em&gt;compute&lt;/em&gt; (usually expressed as a function of dataset and model size) are dataset-specific and not generalizable, because of how much sample quality affects data scaling.&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>LocoProp: enhancing backprop via local loss optimization</title><link>https://kylrth.com/paper/locoprop/</link><pubDate>Fri, 05 Aug 2022 09:52:06 -0400</pubDate><guid>https://kylrth.com/paper/locoprop/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper I presented about in Bang Liu&amp;rsquo;s research group meeting on 2022-08-05. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/10f-vVG9yLaHHfZmGvKb2roaTkOVE6flbHv1yE5pkxX4/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>the effects of scale on worst-group performance</title><link>https://kylrth.com/post/worst-group-scale/</link><pubDate>Mon, 18 Jul 2022 15:31:12 -0400</pubDate><guid>https://kylrth.com/post/worst-group-scale/</guid><description>&lt;p&gt;I think it&amp;rsquo;s valuable to be working in the open whenever possible, so I&amp;rsquo;m going to keep my research notes here. These notes will hopefully be full of good (and bad) ideas, so if someone borrows a good idea and publishes on it, that&amp;rsquo;s great!&lt;/p&gt;&#10;&lt;p&gt;This post contains my research notes as I try to understand how model scaling affects worst-group performance. This started as a group project in the neural scaling laws course at Mila in winter 2022. We presented about an existing &lt;a href="https://kylrth.com/paper/effect-of-model-size-on-worst-group-generalization/"&gt;paper&lt;/a&gt; and presented our preliminary results &lt;a href="https://sites.google.com/view/nsl-course/schedule#h.o7ntdr3dzoiv"&gt;in class&lt;/a&gt;. The repository for this project is &lt;a href="https://github.com/kylrth/worst_group_scale/"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Continual-T0: progressively instructing 50+ tasks to language models without forgetting</title><link>https://kylrth.com/paper/continual-t0/</link><pubDate>Thu, 02 Jun 2022 15:28:55 -0400</pubDate><guid>https://kylrth.com/paper/continual-t0/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper I presented about in Bang Liu&amp;rsquo;s research group meeting on 2022-06-06. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/1-L5TnQvh-4WQHRSlIU-gcCyzudFxzZC0ur7vtLS28gs/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Continual-T0 (CT0) extends &lt;a href="https://kylrth.com/paper/t0/"&gt;T0&lt;/a&gt; by progressively training it on 8 unseen language generation tasks, while retaining a replay buffer of 1% of the original training data to preserve performance. The result is a model that maintains nearly all of its performance on previous tasks while learning the new tasks. In addition, CT0 maintains the original T0&amp;rsquo;s performance on unseen tasks (which is a big deal because those tasks could not appear in the replay buffer) and it extends the compositionality of T0 to even more unseen tasks.&lt;/p&gt;</description></item><item><title>learning French</title><link>https://kylrth.com/post/learning-french/</link><pubDate>Wed, 01 Jun 2022 12:19:08 -0400</pubDate><guid>https://kylrth.com/post/learning-french/</guid><description>&lt;p&gt;Here I&amp;rsquo;m going to document my efforts to learn French. I speak Spanish pretty well, which together with English gives me a strong base for comprehension.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2021-08-01&lt;/strong&gt;: I started using Duolingo every day, and got into the XP challenges to the point where I was getting like hundreds of points most days. I&amp;rsquo;ve currently (2022-06-01) got 15821 XP and 103 lesson crowns in the French course, and most of that came from Fall 2021. That really gave me a good sense for basic grammar and function words.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2021-08-18&lt;/strong&gt;: I &lt;a href="https://kylrth.com/post/qu%C3%A9bec/"&gt;moved to Québec&lt;/a&gt; and started experiencing the French language multiple times a week.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2021-09-01&lt;/strong&gt;: The fall semester started at UdeM, so the number of emails (in French) from the university increased dramatically.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2021-10-06&lt;/strong&gt;: I was assigned a speaking partner by the &lt;a href="http://www.ahc.umontreal.ca/ActivitesJumelage/interlinguistique.htm"&gt;programme de jumelage interlinguistique&lt;/a&gt;, and we started meeting weekly to practice speaking (her English and me French). This was the first time I was actually producing output, which was scary but fun.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-01-15&lt;/strong&gt;: I stopped using Duolingo as often because it feels repetitive and this semester I&amp;rsquo;m planning to write an app to study vocab more directly.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-02-01&lt;/strong&gt;: My French speaking partner finished her program and moved back to France, so we stopped meeting (although we do plan to continue calling once she&amp;rsquo;s done traveling).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-04-27&lt;/strong&gt;: I finished the alpha version of the &lt;a href="https://kylrth.com/post/wordburner/"&gt;WordBurner app&lt;/a&gt; and gave it to friends and family to test. I used it myself for about a week, and it felt like a very time-efficient way to increase vocabulary especially at the beginning. It&amp;rsquo;s rough around the edges in terms of the example sentences and the card recurrence was off, so I stopped using it after the semester project was over.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-05-03&lt;/strong&gt;: I started attending a weekly &lt;a href="https://www.amilia.com/store/fr/celo/shop/activities/3823518"&gt;French conversation workshop&lt;/a&gt; at the local community center.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-05-29&lt;/strong&gt;: We listened to the first episode of the Duolingo French podcast, and really enjoyed it. We understood like probably 40% of what the French speaker was saying, thanks to the context provided by the English-speaking host. This seems like a great way to get interesting input at a level we can understand.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-05-31&lt;/strong&gt;: The session for the French conversation workshop ended. I&amp;rsquo;d like to continue when it picks up again in the fall.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-07-18&lt;/strong&gt;: I started a government-sponsored French course. It&amp;rsquo;s 3 hours of class time per day, 4 days per week. So far it&amp;rsquo;s been very useful for me! I think what I most need to provide for myself outside of class is vocabulary memorization and more time listening and speaking. I need to get back in the habit of using my flashcard app. Even though it&amp;rsquo;s still rough around the edges, it will help my vocabulary keep up with and go beyond the class. I would feel more like doing that if I spent one work day fixing the issues I had with it during the trial run in April. I should do a 5 minute sprint where I write down exactly what I want to change about the app before I am willing to start using it.&lt;/p&gt;&#10;&lt;p&gt;As far as comprehension and production goes, I&amp;rsquo;m planning on speaking more on the phone with my speaking partner from last year. I should also start consuming more content in French, like news and things like that. Maybe change some of my devices to French?&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2022-07-23&lt;/strong&gt;: I changed my phone&amp;rsquo;s language to French, and that&amp;rsquo;s actually been really good. I&amp;rsquo;m noticing more French language YouTube videos popping up, and some videos that are in English now come with French titles? Not sure how that works. Anyway, I&amp;rsquo;m finding on the whole that the combination of the class and the phone are making me think about French a whole lot more throughout the day.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2023-02-06&lt;/strong&gt;: I haven&amp;rsquo;t done much studying of French, but I feel like my conversation ability has continued to slowly improve. I&amp;rsquo;m missing a lot of useful vocab because of this, so I often find myself stopping to come up with a way to say what I want with the words I know.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;2023-10-12&lt;/strong&gt;: Since stopping the French courses, I&amp;rsquo;ve been doing two group conversation workshops per week. I feel my speaking ability has improved despite not putting any other effort in, which is nice. For the fall session I decided to trade one of those workshops for a one-on-one weekly session at the same community center. I&amp;rsquo;ve done that for three weeks now and I find it immensely helpful. I actually had my first job interview entirely in French last week, which I was super proud of!&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Multitask prompted training enables zero-shot task generalization (T0)</title><link>https://kylrth.com/paper/t0/</link><pubDate>Fri, 27 May 2022 17:05:02 -0400</pubDate><guid>https://kylrth.com/paper/t0/</guid><description>&lt;p&gt;T0 builds on T5 by fine-tuning on more natural prompts and testing the model&amp;rsquo;s generalization to held-out tasks.&lt;/p&gt;&#10;&lt;p&gt;Compare the training format diagrams for T5 (top) and T0 (bottom):&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="t5.png" alt="Multitask prompted training enables zero-shot task generalization (T0) t5.png" class="img-zoomable"&gt;&#10;&#10;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#10;&lt;img src="prompt_format.png" alt="Multitask prompted training enables zero-shot task generalization (T0) prompt_format.png" class="img-zoomable"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;Intuitively, the T0 prompts are more likely to be similar to implicit/explicit prompting that&amp;rsquo;s present in the pretraining data. The authors created several prompts for each dataset.&lt;/p&gt;</description></item><item><title>WordBurner beta</title><link>https://kylrth.com/post/wordburner/</link><pubDate>Mon, 18 Apr 2022 23:08:52 -0400</pubDate><guid>https://kylrth.com/post/wordburner/</guid><description>&lt;p&gt;&lt;strong&gt;Update 2022-04-27&lt;/strong&gt;: The beta is over, but the apk is still installable with the instructions below and any feedback sent from inside the app will be received by me. I&amp;rsquo;m going to be working on this more over the summer, and eventually publishing it on the app store. :)&lt;/p&gt;&#10;&lt;p&gt;Ever since learning Spanish, it has been a dream of mine to create a vocabulary study app that meets my needs. Duolingo won&amp;rsquo;t cover advanced vocabulary, Anki requires manually-generated decks, and other apps have expensive subscription plans.&lt;/p&gt;</description></item><item><title>PaLM</title><link>https://kylrth.com/paper/palm/</link><pubDate>Mon, 11 Apr 2022 12:17:25 -0400</pubDate><guid>https://kylrth.com/paper/palm/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper I presented about in Bang Liu&amp;rsquo;s research group meeting on 2022-04-11. You can view the slides I used &lt;a href="https://docs.google.com/presentation/d/19TWSV9rACztA2Umw6VU2Bo61EwWycjyx-AoNlFdsk64/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>QA-GNN: reasoning with language models and knowledge graphs for question answering</title><link>https://kylrth.com/paper/qa-gnn/</link><pubDate>Tue, 05 Apr 2022 22:54:43 -0400</pubDate><guid>https://kylrth.com/paper/qa-gnn/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Bang Liu&amp;rsquo;s &lt;a href="https://www-labs.iro.umontreal.ca/~liubang/IFT%206289%20-%20Winter%202022.htm"&gt;IFT6289&lt;/a&gt; course in winter 2022. The structure of the post follows the structure of the assignment: summarization followed by my own comments.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;The authors create a novel system for combining an LM and a knowledge graph by performing reasoning over a joint graph produced by the LM and the KG, thus solving the problem of irrelevant entities appearing in the knowledge graph and unifying the representations across the LM and KG.&lt;/p&gt;</description></item><item><title>ethics drift within bubbles</title><link>https://kylrth.com/post/ethics-drift/</link><pubDate>Fri, 01 Apr 2022 08:35:54 -0400</pubDate><guid>https://kylrth.com/post/ethics-drift/</guid><description>&lt;p&gt;Here are some snippets from a Lex Fridman &lt;a href="https://web.archive.org/web/20221222002108/https://lexfridman.com/john-abramson/"&gt;interview&lt;/a&gt; with John Abramson, outspoken critic of Big Pharma.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Lex&lt;/strong&gt;: Are people corrupt? Are people malevolent? Are people ignorant that work at the low level and at the high level, at Pfizer for example? How is this possible? I believe that most people are good, and I actually believe if you join Big Pharma your life trajectory often involves dreaming, wanting, and enjoying helping people. And then we look at the outcomes that you&amp;rsquo;re describing and that&amp;rsquo;s why the narrative takes hold that Pfizer CEO Albert Bourla is malevolent. The sense is that these companies are evil. So if the different parts are people that are good and they want to do good, how are we getting these outcomes?&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>notes about neuroscience</title><link>https://kylrth.com/post/neuroscience/</link><pubDate>Thu, 31 Mar 2022 10:02:44 -0400</pubDate><guid>https://kylrth.com/post/neuroscience/</guid><description>&lt;p&gt;How much of brain structure is coded for in the genome? For example, the hippocampus is generally thought to be responsible for consolidating long-term memories. Is the specialization of this region an epigenetic phenomenon due to optimization in the environment, or is it coded more directly? Will we eventually see these structures emerge in artificial networks with sufficient scale and good optimization, or will we need to code it more directly?&lt;/p&gt;</description></item><item><title>Experienced well-being rises with income, even above $75,000 per year</title><link>https://kylrth.com/paper/experienced-well-being/</link><pubDate>Wed, 30 Mar 2022 13:34:53 -0400</pubDate><guid>https://kylrth.com/paper/experienced-well-being/</guid><description>&lt;p&gt;&lt;strong&gt;Turns out that money does buy happiness.&lt;/strong&gt; You may have heard that people&amp;rsquo;s average happiness stops improving once you make more than $75,000/year? Researchers did a better survey with more data and found that that was not the case.&lt;/p&gt;&#10;&lt;p&gt;The researchers cited 5 methodological improvements over the old research that suggested that it didn&amp;rsquo;t matter after $75,000:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;They measured people&amp;rsquo;s happiness in real time, instead of having people try to remember past happiness levels.&lt;/li&gt;&#10;&lt;li&gt;They measured on a continuous scale instead of discrete. (The survey had a slider between &amp;ldquo;very bad&amp;rdquo; and &amp;ldquo;very good&amp;rdquo;, instead of discrete options to choose from.)&lt;/li&gt;&#10;&lt;li&gt;They measured on &amp;ldquo;dozens of separate occasions per person&amp;rdquo; using an app, instead of just a single questionnaire.&lt;/li&gt;&#10;&lt;li&gt;They used a comparable scale for experienced well-being (people’s evaluations of their lives) and evaluative well-being (how people feel during the day-to-day moments of their lives).&lt;/li&gt;&#10;&lt;li&gt;They included a large number of high-earning participants and measured higher incomes in more granular increments.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The data were collected from 33,391 employed adults (ages 18-65) in the United States. There were a total of 1,725,994 reports collected, so that&amp;rsquo;s ~52 reports per person.&lt;/p&gt;</description></item><item><title>Neural message passing for quantum chemistry</title><link>https://kylrth.com/paper/neural-message-passing/</link><pubDate>Fri, 25 Mar 2022 14:46:11 -0400</pubDate><guid>https://kylrth.com/paper/neural-message-passing/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Bang Liu&amp;rsquo;s &lt;a href="https://www-labs.iro.umontreal.ca/~liubang/IFT%206289%20-%20Winter%202022.htm"&gt;IFT6289&lt;/a&gt; course in winter 2022. The structure of the post follows the structure of the assignment: summarization followed by my own comments.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;To summarize, the authors create a unifying framework for describing message-passing neural networks, which they apply to the problem of predicting the structural properties of chemical compounds in the QM9 dataset.&lt;/p&gt;&#10;&lt;h2 id="paper-summarization"&gt;paper summarization &lt;a class="header-link" href="#paper-summarization"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The authors first demonstrate that many of the recent works applying neural nets to this problem can fit into a message-passing neural network (MPNN) framework. Under the MPNN framework, at each time step &lt;code&gt;\(t\)&lt;/code&gt; a message is computed for each vertex by summing the output of a learned function &lt;code&gt;\(M_t\)&lt;/code&gt; over the vertex and all edges and vertices connected to it. Then the next state for each vertex is a learned function &lt;code&gt;\(U_t\)&lt;/code&gt; of the previous state and the message. Finally, the &amp;ldquo;readout&amp;rdquo; function &lt;code&gt;\(R\)&lt;/code&gt; is applied to all the vertices to compute the result.&lt;/p&gt;</description></item><item><title>keep your tasks in the heap</title><link>https://kylrth.com/post/tasks-stack-heap/</link><pubDate>Tue, 22 Mar 2022 11:23:20 -0400</pubDate><guid>https://kylrth.com/post/tasks-stack-heap/</guid><description>&lt;p&gt;Often when someone (usually a professor) is sharing their screen I see that their browser has so many tabs open that the descriptions are lost:&lt;/p&gt;&#10;&lt;img src="tabs.png" alt="keep your tasks in the heap tabs.png" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;That was my best impersonation as a Firefox user. Chrome will let you go a lot further (like ~113 tabs) before starting to provide a dropdown to show you the list of open tabs:&lt;/p&gt;&#10;&lt;img src="chrome_tabs.png" alt="keep your tasks in the heap chrome_tabs.png" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;Besides the obvious fact that this makes it hard to find a tab you&amp;rsquo;re looking for, you also waste computer memory and add to your cognitive load while you&amp;rsquo;re working.&lt;/p&gt;</description></item><item><title>The effect of model size on worst-group generalization</title><link>https://kylrth.com/paper/effect-of-model-size-on-worst-group-generalization/</link><pubDate>Thu, 17 Mar 2022 14:34:33 -0400</pubDate><guid>https://kylrth.com/paper/effect-of-model-size-on-worst-group-generalization/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper we presented about in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/nsl-course"&gt;IFT6167&lt;/a&gt;) in winter 2022. You can view the slides we used &lt;a href="https://docs.google.com/presentation/d/1Fxs60aXvANsBj_k-m1h_KtjDfUrqPKY8f1UIh3j4XY0/edit?usp=sharing"&gt;here&lt;/a&gt;, and the recording &lt;a href="https://sites.google.com/view/nsl-course/schedule#h.h6n8wkndidtb"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>quotes from a Lex Fridman interview with Philip Goff</title><link>https://kylrth.com/post/philip-goff/</link><pubDate>Wed, 09 Mar 2022 09:39:16 -0500</pubDate><guid>https://kylrth.com/post/philip-goff/</guid><description>&lt;p&gt;Here are some snippets from a Lex Fridman &lt;a href="https://web.archive.org/web/20221222002116/https://lexfridman.com/philip-goff/"&gt;interview&lt;/a&gt; with Philip Goff, a panpsychist.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;The Enlightenment ideal is to follow the evidence and the arguments where they lead, but it&amp;rsquo;s very hard for human beings to do that. I think we get stuck in some conception of how we think science ought to look. People talk about religion as a crutch, but I think a certain kind of scientism, a certain conception of how science is supposed to be, gets into people&amp;rsquo;s identity and their sense of themselves and their security.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>hosting a Tor onion service</title><link>https://kylrth.com/post/tor-onion-service/</link><pubDate>Thu, 24 Feb 2022 18:28:49 -0500</pubDate><guid>https://kylrth.com/post/tor-onion-service/</guid><description>&lt;p&gt;&lt;a href="https://community.torproject.org/onion-services/overview/"&gt;Tor onions&lt;/a&gt; are a way to host secure services that protect the anonymity of you &lt;em&gt;and&lt;/em&gt; your clients. It also removes load from Tor exit nodes. If you open this page in the Tor browser it will redirect you to the following address:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-txt" data-lang="txt"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;http://kylrthjj7mpvktolz7u6fnudt3hpdvjw4hzquanjpepgsf5vcq5divad.onion/post/tor-onion-service/&#10;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;which can only be opened from inside the Tor network.&lt;/p&gt;&#10;&lt;h2 id="getting-started"&gt;getting started &lt;a class="header-link" href="#getting-started"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;To host an onion service, we&amp;rsquo;ll have a Docker container running Tor that decodes requests and forwards them to another container hosting the service. I&amp;rsquo;ve got a GitHub repo that will help you build the Tor image and shows you an example &lt;code&gt;docker-compose.yml&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Scaling laws for the few-shot adaptation of pre-trained image classifiers</title><link>https://kylrth.com/paper/scaling-laws-few-shot-image-classifiers/</link><pubDate>Tue, 22 Feb 2022 13:19:12 -0500</pubDate><guid>https://kylrth.com/paper/scaling-laws-few-shot-image-classifiers/</guid><description>&lt;p&gt;The unsurprising result here is that few-shot performance scales predictably with pre-training dataset size under traditional fine-tuning, matching network, and prototypical network approaches.&lt;/p&gt;&#10;&lt;p&gt;The interesting result is that the exponents of these three approaches were substantially different (see Table 1 in the paper), which says to me that the few-shot inference approach matters a lot.&lt;/p&gt;&#10;&lt;p&gt;The surprising result was that while more training on the &amp;ldquo;non-natural&amp;rdquo; &lt;a href="https://github.com/brendenlake/omniglot"&gt;Omniglot&lt;/a&gt; dataset did not improve few-shot accuracy on other datasets, training on &amp;ldquo;natural&amp;rdquo; datasets &lt;em&gt;did&lt;/em&gt; improve accuracy on few-shot Omniglot.&lt;/p&gt;</description></item><item><title>Learning explanations that are hard to vary</title><link>https://kylrth.com/paper/learning-explanations-hard-to-vary/</link><pubDate>Tue, 22 Feb 2022 12:29:17 -0500</pubDate><guid>https://kylrth.com/paper/learning-explanations-hard-to-vary/</guid><description>&lt;p&gt;The big idea here is to use the geometric mean instead of the arithmetic mean across samples in the batch when computing the gradient for SGD. This overcomes the situation where averaging produces optima that are not actually optimal for any individual samples, as demonstrated in their toy example below:&lt;/p&gt;&#10;&lt;img src="example.png" alt="Learning explanations that are hard to vary example.png" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;In practice, the method the authors test is not exactly the geometric mean for numerical and performance reasons, but effectively accomplishes the same thing by avoiding optima that are &amp;ldquo;inconsistent&amp;rdquo; (meaning that gradients from relatively few samples actually point in that direction).&lt;/p&gt;</description></item><item><title>In search of robust measures of generalization</title><link>https://kylrth.com/paper/robust-measures-of-generalization/</link><pubDate>Mon, 21 Feb 2022 15:33:22 -0500</pubDate><guid>https://kylrth.com/paper/robust-measures-of-generalization/</guid><description>&lt;p&gt;These authors define &lt;em&gt;robust error&lt;/em&gt; as the least upper bound on the expected loss over a family of environmental settings (including dataset, model architecture, learning algorithm, etc.):&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;\[\sup_{e\in\mathcal F}\mathbb E_{\omega\in P^e}\left[\ell(\phi,\omega)\right]\]&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;The fact that this is an &lt;strong&gt;upper bound&lt;/strong&gt; and not an average is very important and is what makes this work unique from previous work in this direction. Indeed, what we should be concerned about is not how poorly a model performs on the &lt;em&gt;average&lt;/em&gt; sample but on the &lt;em&gt;worst-case&lt;/em&gt; sample.&lt;/p&gt;</description></item><item><title>It's not just size that matters: small language models are also few-shot learners</title><link>https://kylrth.com/paper/not-just-size-that-matters/</link><pubDate>Fri, 18 Feb 2022 13:13:54 -0500</pubDate><guid>https://kylrth.com/paper/not-just-size-that-matters/</guid><description>&lt;p&gt;&lt;em&gt;We presented this paper as a mini-lecture in Bang Liu&amp;rsquo;s &lt;a href="https://www-labs.iro.umontreal.ca/~liubang/IFT%206289%20-%20Winter%202022.htm"&gt;IFT6289&lt;/a&gt; course in winter 2022. You can view the slides we used &lt;a href="https://docs.google.com/presentation/d/1XPRSLC24AQK0MeZY5zww4gZ0t0B_gqDl8eztKZpt_v8/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Educated</title><link>https://kylrth.com/book/educated/</link><pubDate>Thu, 17 Feb 2022 09:51:11 -0500</pubDate><guid>https://kylrth.com/book/educated/</guid><description>&lt;h2 id="thinking-for-yourself"&gt;thinking for yourself &lt;a class="header-link" href="#thinking-for-yourself"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;I recognized myself a little in this book, not in the events, severity, or locations but in the path to being &amp;ldquo;educated&amp;rdquo; in the sense that Westover intends. I&amp;rsquo;ll try to convey what that sense is with some quotes from the book.&lt;/p&gt;&#10;&lt;p&gt;The first moment is after she takes a class on American history at BYU. She returns home and gets her face dirty while working, and her brother calls her a N&amp;mdash;r, a joke he had made many times before.&lt;/p&gt;</description></item><item><title>Scaling laws for transfer</title><link>https://kylrth.com/paper/scaling-laws-for-transfer/</link><pubDate>Wed, 16 Feb 2022 14:12:26 -0500</pubDate><guid>https://kylrth.com/paper/scaling-laws-for-transfer/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/nsl-course"&gt;IFT6167&lt;/a&gt;) in winter 2022. The post contains no summarization, only questions and thoughts.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Sometimes these scaling laws can feel like pseudoscience because they&amp;rsquo;re a post hoc attempt to place a trend line on data. How can we be confident that the trends we observe actually reflect the scaling laws that we&amp;rsquo;re after? In the limitations section they mention that they didn&amp;rsquo;t tune hyperparameters for fine-tuning or for the code data distribution. How can we know that a confounding hyperparameter is not responsible for the trend we see? I wonder if we aren&amp;rsquo;t really being statistically rigorous until we can predict generalization error on an unseen &lt;em&gt;training setup&lt;/em&gt;, rather than just an unseen model size/dataset size.&lt;/p&gt;</description></item><item><title>Deep learning scaling is predictable, empirically</title><link>https://kylrth.com/paper/scaling-predictable-empirically/</link><pubDate>Mon, 14 Feb 2022 10:38:11 -0500</pubDate><guid>https://kylrth.com/paper/scaling-predictable-empirically/</guid><description>&lt;p&gt;&lt;em&gt;This was a paper we presented about in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/nsl-course"&gt;IFT6167&lt;/a&gt;) in winter 2022. You can view the slides we used &lt;a href="https://docs.google.com/presentation/d/1e0SXonZiW6o8VyqXTnjyYlMs97YCcntBznaoiBwlWFE/edit?usp=sharing"&gt;here&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;It&amp;rsquo;s important to note that in the results for NMT (Figure 1) we would expect the lines in the graph on the left to curve as the capacity of the individual models is exhausted. That&amp;rsquo;s why the authors fit the curves with an extra constant added. Meanwhile, the results in the graph on the right are curved because as the data size grows, the optimal model size also grows and it becomes increasingly difficult to find the right hyperparameters to train the model down to the optimal generalization error. (See the last paragraph in Section 4.1.)&lt;/p&gt;</description></item><item><title>Masked autoencoders are scalable vision learners</title><link>https://kylrth.com/paper/masked-autoencoders-are-scalable-vision-learners/</link><pubDate>Fri, 11 Feb 2022 14:18:30 -0500</pubDate><guid>https://kylrth.com/paper/masked-autoencoders-are-scalable-vision-learners/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/nsl-course"&gt;IFT6167&lt;/a&gt;) in winter 2022. The post contains no summarization, only questions and thoughts.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;In this paper they mention that the mask vector is learned, and it sounds like the positional embeddings are also learned. I remember in &lt;a href="https://kylrth.com/paper/attention-all-you-need/"&gt;&lt;em&gt;Attention is all you need&lt;/em&gt;&lt;/a&gt; they found that cosine positional embeddings worked better than learned ones, especially for sequences of longer length. But now it seems like most papers are doing learned embeddings. If anyone knows why, send me an email.&lt;/p&gt;</description></item><item><title>Data scaling laws in NMT: the effect of noise and architecture</title><link>https://kylrth.com/paper/data-scaling-laws-nmt/</link><pubDate>Wed, 09 Feb 2022 20:47:59 -0500</pubDate><guid>https://kylrth.com/paper/data-scaling-laws-nmt/</guid><description>&lt;p&gt;This paper is all about trying a bunch of different changes to the training setup to see what affects the power law exponent &lt;strong&gt;over dataset size&lt;/strong&gt;. Here are some of the answers:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;encoder-decoder size asymmetry&lt;/strong&gt;: exponent not affected, but effective model capacity affected&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;architecture (LSTM vs. Transformer)&lt;/strong&gt;: exponent not affected, but effective model capacity affected&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;dataset quality (filtered vs. not)&lt;/strong&gt;: exponent and effective model capacity not effected, losses on smaller datasets affected&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;dataset source (ParaCrawl vs. in-house dataset)&lt;/strong&gt;: exponent not affected&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;adding independent noise&lt;/strong&gt;: exponent not affected, but effective model capacity affected&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Here are some other things to test that I thought of while I read this:&lt;/p&gt;</description></item><item><title>Parallel training of deep networks with local updates</title><link>https://kylrth.com/paper/parallel-training-with-local-updates/</link><pubDate>Wed, 09 Feb 2022 10:50:21 -0500</pubDate><guid>https://kylrth.com/paper/parallel-training-with-local-updates/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/nsl-course"&gt;IFT6167&lt;/a&gt;) in winter 2022. The post contains no summarization, only questions and thoughts.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Once I learned how the loss functions worked for each chunk, my first question was whether the earlier chunks were going to be able to learn the low-level features that later chunks would need. Figure 7 seems to show that they do, although their quality apparently decreases with increasingly local updates.&lt;/p&gt;</description></item><item><title>A sensitivity analysis of (and practitioners’ guide to) convolutional neural networks for sentence classification</title><link>https://kylrth.com/paper/cnn-sentence/</link><pubDate>Wed, 02 Feb 2022 15:35:00 -0500</pubDate><guid>https://kylrth.com/paper/cnn-sentence/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Bang Liu&amp;rsquo;s &lt;a href="https://www-labs.iro.umontreal.ca/~liubang/IFT%206289%20-%20Winter%202022.htm"&gt;IFT6289&lt;/a&gt; course in winter 2022. The structure of the post follows the structure of the assignment: summarization followed by my own comments.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="paper-summarization"&gt;paper summarization &lt;a class="header-link" href="#paper-summarization"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Word embeddings have gotten so good that state-of-the-art sentence classification can often be achieved with just a one-layer convolutional network on top of those embeddings. This paper dials in on the specifics of training that convolutional layer for this downstream sentence classification task.&lt;/p&gt;</description></item><item><title>Learning transferable visual models from natural language supervision (CLIP)</title><link>https://kylrth.com/paper/clip/</link><pubDate>Wed, 02 Feb 2022 12:35:03 -0500</pubDate><guid>https://kylrth.com/paper/clip/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Irina Rish&amp;rsquo;s neural scaling laws course (&lt;a href="https://sites.google.com/view/nsl-course"&gt;IFT6167&lt;/a&gt;) in winter 2022. The post contains no summarization, only questions and thoughts.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;This concept of wide vs. narrow supervision (rather than binary &amp;ldquo;supervised&amp;rdquo; and &amp;ldquo;unsupervised&amp;rdquo;) is an interesting and flexible way to think about the way these training schemes leverage data.&lt;/p&gt;&#10;&lt;p&gt;The zero-shot CLIP matches the performance of 4-shot CLIP, which is a surprising result. What do the authors mean when they make this guess about zero-shot&amp;rsquo;s advantage:&lt;/p&gt;</description></item><item><title>Distributed representations of words and phrases and their compositionality</title><link>https://kylrth.com/paper/distributed-representations/</link><pubDate>Tue, 01 Feb 2022 16:09:19 -0500</pubDate><guid>https://kylrth.com/paper/distributed-representations/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Bang Liu&amp;rsquo;s &lt;a href="https://www-labs.iro.umontreal.ca/~liubang/IFT%206289%20-%20Winter%202022.htm"&gt;IFT6289&lt;/a&gt; course in winter 2022. The structure of the post follows the structure of the assignment: summarization followed by my own comments.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="paper-summarization"&gt;paper summarization &lt;a class="header-link" href="#paper-summarization"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This paper describes multiple improvements that are made to the original &lt;a href="https://arxiv.org/abs/1301.3781"&gt;Skip-gram&lt;/a&gt; model:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Decreasing the rate of exposure to common words improves the training speed and increases the model&amp;rsquo;s accuracy on infrequent words.&lt;/li&gt;&#10;&lt;li&gt;A new training target they call &amp;ldquo;negative sampling&amp;rdquo; improves the training speed and the model&amp;rsquo;s accuracy on frequent words.&lt;/li&gt;&#10;&lt;li&gt;Allowing the model to use phrase vectors improves the expressivity of the model.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h3 id="negative-sampling"&gt;negative sampling &lt;a class="header-link" href="#negative-sampling"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;The original Skip-gram model computed probabilities using a hierarchical softmax, which allowed the model to compute only &lt;code&gt;\(O(\log_2(|V|))\)&lt;/code&gt; probabilities when estimating the probability of a particular word, rather than &lt;code&gt;\(O(|V|)\)&lt;/code&gt;. Negative sampling, on the other hand, deals directly with the generated vector representations. The negative sampling loss function basically tries to maximize cosine similarity between the input representation of the input word with the output representation of the neighboring word, while decreasing cosine similarity between the input word and a few random vectors. They find that the required number of negative examples decreases as the dataset size increases.&lt;/p&gt;</description></item><item><title>meaning-making in the post-modern world</title><link>https://kylrth.com/post/meaning-making/</link><pubDate>Tue, 01 Feb 2022 14:35:37 -0500</pubDate><guid>https://kylrth.com/post/meaning-making/</guid><description>&lt;p&gt;Here are some snippets from a Lex Fridman &lt;a href="https://web.archive.org/web/20221227111818/https://lexfridman.com/peter-wang/"&gt;interview&lt;/a&gt; with Peter Wang, co-founder and CEO of Anaconda:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;For a lot of human history, there wasn&amp;rsquo;t so much a meaning crisis as just a food and not getting eaten by bears crisis. Once you get to a point where you can make food there was a not getting killed by other humans crisis. Sitting around wondering what it&amp;rsquo;s all about is a relatively recent luxury.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Deep learning</title><link>https://kylrth.com/paper/deep-learning/</link><pubDate>Thu, 20 Jan 2022 15:11:00 -0500</pubDate><guid>https://kylrth.com/paper/deep-learning/</guid><description>&lt;p&gt;&lt;em&gt;This post was created as an assignment in Bang Liu&amp;rsquo;s &lt;a href="https://www-labs.iro.umontreal.ca/~liubang/IFT%206289%20-%20Winter%202022.htm"&gt;IFT6289&lt;/a&gt; course in winter 2022. The structure of the post follows the structure of the assignment: summarization followed by my own comments.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="paper-summarization"&gt;paper summarization &lt;a class="header-link" href="#paper-summarization"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The authors use the example of distinguishing between a Samoyed and a white wolf to talk about the importance of learning to rely on very small variations while ignoring others. While shallow classifiers must rely on human-crafted features which are expensive to build and always imperfect, deep classifiers are expected to learn their own features by applying a &amp;ldquo;general-purpose learning procedure&amp;rdquo; to learn the features and the classification layer from the data simultaneously.&lt;/p&gt;</description></item><item><title>Cratylus</title><link>https://kylrth.com/book/cratylus/</link><pubDate>Sun, 16 Jan 2022 15:11:14 -0500</pubDate><guid>https://kylrth.com/book/cratylus/</guid><description>&lt;p&gt;In this dialog Hermogenes comes to Socrates to discuss Cratylus&amp;rsquo; view of the nature of names, whether they are true to the objects they represent or are just conventional. Hermogenes believes that names are purely conventional, while Cratylus believes the opposite. Socrates falls somewhere in the middle:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;I quite agree with you that words should as far as possible resemble things; but I fear that this dragging in of resemblance, as Hermogenes says, is a shabby thing, which has to be supplemented by the mechanical aid of convention with a view to correctness; for I believe that if we could always, or almost always, use likenesses, which are perfectly appropriate, this would be the most perfect state of language; as the opposite is the most imperfect.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Crito</title><link>https://kylrth.com/book/crito/</link><pubDate>Mon, 27 Dec 2021 14:05:02 -0700</pubDate><guid>https://kylrth.com/book/crito/</guid><description>&lt;p&gt;In this dialogue Crito comes to Socrates who is in prison waiting to be executed by the state. Crito has come to convince Socrates to come and escape with him. Crito&amp;rsquo;s escape plan will not cause great inconvenience for any of Socrates&amp;rsquo; friends, and he would be able to live well in Thessaly. Socrates ends up convincing Crito that it would be wrong for him to escape.&lt;/p&gt;&#10;&lt;h2 id="the-opinion-of-the-many"&gt;&amp;ldquo;the opinion of the many&amp;rdquo; &lt;a class="header-link" href="#the-opinion-of-the-many"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;CRITO: But you see, Socrates, that the opinion of the many must be regarded, for what is now happening shows that they can do the greatest evil to anyone who has lost their good opinion.&lt;/p&gt;&#10;&lt;p&gt;SOCRATES: I only wish it were so, Crito; and that the many could do the greatest evil; for then they would also be able to do the greatest good&amp;mdash;and what a fine thing this would be! But in reality they can do neither; for they cannot make a man either wise or foolish; and whatever they do is the result of chance.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Apology of Socrates</title><link>https://kylrth.com/book/apology/</link><pubDate>Sun, 26 Dec 2021 13:40:45 -0700</pubDate><guid>https://kylrth.com/book/apology/</guid><description>&lt;p&gt;I&amp;rsquo;m starting a course of foundational texts in philosophy with a friend of mine, and this is the first one we&amp;rsquo;ve read. Socrates is often considered a founder of Western philosophy, and it was easy for me to see in the text some common philosophical themes I&amp;rsquo;ve been exposed to growing up in the West.&lt;/p&gt;&#10;&lt;h2 id="the-fear-of-death-is-irrational"&gt;the fear of death is irrational &lt;a class="header-link" href="#the-fear-of-death-is-irrational"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Socrates argues that the fear of death is irrational from two perspectives: one, that what happens after death cannot be bad; and two, that a righteous person needs to be more concerned with whether he is doing right or wrong than whether death occurs or not. You can see the first one here:&lt;/p&gt;</description></item><item><title>avatarify</title><link>https://kylrth.com/post/avatarify/</link><pubDate>Wed, 24 Nov 2021 11:58:34 -0500</pubDate><guid>https://kylrth.com/post/avatarify/</guid><description>&lt;p&gt;&lt;a href="https://github.com/alievk/avatarify-python"&gt;Avatarify&lt;/a&gt; is a cool project that lets you create a relatively realistic avatar that you can use during video meetings. It works by creating a fake video input device and passing your video input through a neural network in PyTorch. My laptop doesn&amp;rsquo;t have a GPU, so I used the server/client setup.&lt;/p&gt;&#10;&lt;h2 id="setting-up-the-server"&gt;setting up the server &lt;a class="header-link" href="#setting-up-the-server"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Be sure you&amp;rsquo;ve installed the Nvidia Docker runtime so that the Docker container can use the GPU. You can see how I did that &lt;a href="https://kylrth.com/post/jupyter-lab/"&gt;here&lt;/a&gt;. Run the following on the server:&lt;/p&gt;</description></item><item><title>hosting my own web services</title><link>https://kylrth.com/post/self-hosting/</link><pubDate>Tue, 23 Nov 2021 07:57:00 -0500</pubDate><guid>https://kylrth.com/post/self-hosting/</guid><description>&lt;img src="spaceship.jpg" alt="hosting my own web services spaceship.jpg" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;I host several services on an Alienware gaming computer I keep at my apartment. (We call it the spaceship.) I originally got the computer so I could have a computer with a GPU for machine learning projects, but I&amp;rsquo;ve since started using this computer to host a bunch of different services. Here I&amp;rsquo;ve documented how I set up the server.&lt;/p&gt;&#10;&lt;h2 id="operating-system"&gt;operating system &lt;a class="header-link" href="#operating-system"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;To keep things simple I use Ubuntu 20.04 LTS. Here&amp;rsquo;s a speedy way I&amp;rsquo;ve found to write installer ISOs to USB drives for installation:&lt;/p&gt;</description></item><item><title>moving to Québec</title><link>https://kylrth.com/post/qu%C3%A9bec/</link><pubDate>Fri, 29 Oct 2021 11:55:00 -0400</pubDate><guid>https://kylrth.com/post/qu%C3%A9bec/</guid><description>&lt;p&gt;We just moved our family from Utah, USA, to Montréal, Québec, Canada. I entered Canada on August 18, 2021 &lt;a href="https://www.google.com/maps/dir/Salt+Lake+City,+UT/montreal/@42.7334015,-101.7162703,5z/data=!3m1!4b1!4m13!4m12!1m5!1m1!1s0x87523d9488d131ed:0x5b53b7a0484d31ca!2m2!1d-111.8910474!2d40.7607793!1m5!1m1!1s0x4cc91a541c64b70d:0x654e3138211fefef!2m2!1d-73.567256!2d45.5016889"&gt;by car&lt;/a&gt;, and my wife and daughter entered a few days later by air. The process actually began on April 27 when I got my acceptance letter to the Université de Montréal as a master&amp;rsquo;s student in the &lt;a href="https://diro.umontreal.ca/accueil/"&gt;Département d&amp;rsquo;informatique et de recherche opérationelle&lt;/a&gt;. After a few days of scrambling to find out if I would be able to study there without knowing French (turns out you can as a grad student at DIRO!), I started the process of applying to enter Canada and live in Québec as a student.&lt;/p&gt;</description></item><item><title>Jupyter Lab Hub in Docker with Nvidia GPU support</title><link>https://kylrth.com/post/jupyter-lab/</link><pubDate>Tue, 19 Oct 2021 20:28:25 -0400</pubDate><guid>https://kylrth.com/post/jupyter-lab/</guid><description>&lt;p&gt;This is how I set up my headless home server with a Jupyter Lab Docker container with an Nvidia GPU runtime. Login is handled by a GitHub OAuth application.&lt;/p&gt;&#10;&lt;h2 id="nvidia-drivers-and-the-container-runtime"&gt;Nvidia drivers and the container runtime &lt;a class="header-link" href="#nvidia-drivers-and-the-container-runtime"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;First, check &lt;a href="https://docs.nvidia.com/cuda/archive/11.4.2/cuda-toolkit-release-notes/index.html"&gt;here&lt;/a&gt; (replacing the CUDA version in the URL with your own) to see which Nvidia drivers you need for the CUDA toolkit version you want. I&amp;rsquo;m using CUDA 11.4.2, which means I need at least driver version 470.&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;You can use &lt;code&gt;sudo apt purge nvidia-*&lt;/code&gt; to cleanly remove older drivers (or broken installs) before installing the desired version.&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Minecraft in Docker</title><link>https://kylrth.com/post/minecraft/</link><pubDate>Mon, 02 Aug 2021 13:25:28 -0600</pubDate><guid>https://kylrth.com/post/minecraft/</guid><description>&lt;p&gt;This guide shows how to host multiple Minecraft servers on a single machine with docker-compose.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mkdir minecraft_server&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd minecraft_server&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mkdir data/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;wget /post/minecraft/docker-compose.yml&#10; &lt;span style="color:#ae81ff"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -O docker-compose.yml&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This docker-compose setup uses itzg&amp;rsquo;s Docker image, which you see further documentation for &lt;a href="https://github.com/itzg/docker-minecraft-server"&gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;If you&amp;rsquo;re moving from a vanilla Minecraft world, do the following to get the different world directories in the right position:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cp -r &lt;span style="color:#e6db74"&gt;${&lt;/span&gt;OLD&lt;span style="color:#e6db74"&gt;}&lt;/span&gt;/world data/server/world&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mkdir data/server/world_&lt;span style="color:#f92672"&gt;{&lt;/span&gt;nether,the_end&lt;span style="color:#f92672"&gt;}&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mv data/server/world/DIM-1 data/server/world_nether/DIM-1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mv data/server/world/DIM1 data/server/world_the_end/DIM1&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here&amp;rsquo;s the map from vanilla Minecraft directories to Spigot directories (which is what itzg&amp;rsquo;s container uses):&lt;/p&gt;</description></item><item><title>Matrix setup with Synapse, Postgres, Maubot, and matrix-registration</title><link>https://kylrth.com/post/matrix-setup/</link><pubDate>Mon, 02 Aug 2021 10:30:00 -0600</pubDate><guid>https://kylrth.com/post/matrix-setup/</guid><description>&lt;p&gt;This is how I set up my own &lt;a href="https://matrix.org"&gt;Matrix&lt;/a&gt; server with Docker.&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;These instructions were originally for ARM, back when I ran this server on a Raspberry Pi. Unfortunately, the Matrix community stopped releasing ARM images, so the latest version that will work on ARM without QEMU is v1.26.0, which is very old now. These instructions have been updated to use &lt;code&gt;amd64&lt;/code&gt; images, but I&amp;rsquo;ll preserve the references to ARM images as comments. If you&amp;rsquo;re going to work from a Pi, be sure to switch it to run in 64-bit mode for optimal performance: &lt;code&gt;echo 'arm_64bit=1' | sudo tee -a /boot/config.txt &amp;amp;&amp;amp; sudo systemctl reboot&lt;/code&gt;.&lt;/small&gt;&lt;/span&gt; There is an &lt;a href="https://github.com/spantaleev/matrix-docker-ansible-deploy"&gt;Ansible playbook&lt;/a&gt; that&amp;rsquo;s quite popular, but I host a lot of other services with Docker on the same server and I wanted to continue managing all of them together, just with &lt;code&gt;docker-compose&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>I really just want to edit and compile my LaTeX files in VS Code</title><link>https://kylrth.com/post/latex-vscode/</link><pubDate>Mon, 12 Jul 2021 21:43:47 -0600</pubDate><guid>https://kylrth.com/post/latex-vscode/</guid><description>&lt;p&gt;LaTeX has a ton of different flavors, releases, and installations: &lt;a href="https://en.wikipedia.org/wiki/MacTeX"&gt;MacTeX&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/MiKTeX"&gt;MiKTeX&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/TeXworks"&gt;TeXworks&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/XeTeX"&gt;XeTeX&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/PdfTeX"&gt;pdfTeX&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/LuaTeX"&gt;LuaTeX&lt;/a&gt;&amp;hellip; If you&amp;rsquo;re using Linux and just want to edit LaTeX files in Visual Studio Code and have them automatically rendered as PDFs, follow these instructions:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;On Arch-based distros, install the packages listed &lt;a href="https://wiki.archlinux.org/title/TeX_Live"&gt;here&lt;/a&gt;. On Debian-based systems, &lt;code&gt;sudo apt install texlive&lt;/code&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Install some Perl dependencies:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo cpan Log::Log4perl Log::LogDispatch Log::Dispatch::File YAML::Tiny File::HomeDir&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;If you want to use FontAwesome on Arch-based systems, install the &lt;code&gt;oft-font-awesome&lt;/code&gt; package and then do the following (&lt;a href="https://wiki.archlinux.org/title/TeX_Live#Making_fonts_available_to_Fontconfig"&gt;source&lt;/a&gt;):&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo ln -s /usr/share/fontconfig/conf.avail/09-texlive-fonts.conf /etc/fonts/conf.d/09-texlive-fonts.conf&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;fc-cache &lt;span style="color:#f92672"&gt;&amp;amp;&amp;amp;&lt;/span&gt; mkfontscale &lt;span style="color:#f92672"&gt;&amp;amp;&amp;amp;&lt;/span&gt; mkfontdir&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On Debian-based systems, install the font package with apt:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt install texlive-fonts-recommended texlive-fonts-extra&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Install the VS Code extension called &amp;ldquo;LaTeX Workshop&amp;rdquo;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;If you want to use the fontspec package and get an error saying that &amp;ldquo;the fontspec package requires either XeTeX or LuaTex&amp;rdquo;, add the magic command &lt;code&gt;% !TEX program = xelatex&lt;/code&gt; to the top of your .tex file.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;If your installation needed to add some paths to your PATH but VS Code isn&amp;rsquo;t seeing them, try opening VS Code from the shell (with &lt;code&gt;code path/to/workspace&lt;/code&gt;) so that it inherits &lt;code&gt;$PATH&lt;/code&gt; from the interactive shell. (There might be a way to change the bin path in the settings for LaTeX Workshop, but I haven&amp;rsquo;t needed to find that setting yet.)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;</description></item><item><title>The last speakers: the quest to save the world's most endangered languages</title><link>https://kylrth.com/book/last-speakers/</link><pubDate>Mon, 31 May 2021 08:29:00 -0600</pubDate><guid>https://kylrth.com/book/last-speakers/</guid><description>&lt;p&gt;This book argues that language loss is always bad, but that we can do something to save it. While the stories in the book leave me feeling like every language lost is a terrible cost, I think it&amp;rsquo;s inevitable as our species merges into a global society due to technology. I think we ought to prioritize the proper treatment and respect of marginalized and alternative cultures, including their languages and how these cultures want to maintain them. But there is a cost to stopping &lt;em&gt;all&lt;/em&gt; language loss that is just not worth it once a language has been documented for research purposes.&lt;/p&gt;</description></item><item><title>The seven principles for making marriage work: a practical guide from the country's foremost relationship expert</title><link>https://kylrth.com/book/seven-principles-for-marriage/</link><pubDate>Wed, 26 May 2021 06:52:44 -0600</pubDate><guid>https://kylrth.com/book/seven-principles-for-marriage/</guid><description>&lt;p&gt;Better communication doesn&amp;rsquo;t really solve marriage problems. It has a low success rate, and that makes sense because there are plenty of marriages that yell and dispute. Disputation is not a sign of an unhealthy marriage. You&amp;rsquo;d have to be really magnanimous to take criticism about you, even if presented as softly as possible.&lt;/p&gt;&#10;&lt;p&gt;Personality does not make a marriage incompatible. People can be friends but have very distinct personalities. Handle each other&amp;rsquo;s strange side with caring and respect, as you would a friend.&lt;/p&gt;</description></item><item><title>Harry Potter and the methods of rationality</title><link>https://kylrth.com/book/hpmor/</link><pubDate>Thu, 20 May 2021 07:25:00 -0600</pubDate><guid>https://kylrth.com/book/hpmor/</guid><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;Spoiler warning: no plot held back in this review.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="science-is-at-least-as-beautiful-as-magic"&gt;science is at least as beautiful as magic &lt;a class="header-link" href="#science-is-at-least-as-beautiful-as-magic"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;In chapter 7 Harry introduces Draco to the beauty of scientific advancement, and it actually moved me to tears. You should read the &lt;a href="https://www.hpmor.com/chapter/7"&gt;whole thing&lt;/a&gt;, but here are some of the best quotes:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&amp;ldquo;Anyway,&amp;rdquo; Harry said, &amp;ldquo;I&amp;rsquo;m saying that you don&amp;rsquo;t seem to have been paying much attention to what goes on in the Muggle world.&amp;rdquo; Probably because the whole wizarding world seemed to regard the rest of Earth as a slum, deserving around as much news coverage as the Financial Times awarded to the routine agonies of Burundi. &amp;ldquo;All right. Quick check. Have wizards ever been to the Moon? You know, that thing?&amp;rdquo; Harry pointed up to that huge and distant globe.&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;What? &amp;quot; Draco said. It was pretty clear the thought had never occured to the boy. &amp;ldquo;Go to the - it&amp;rsquo;s just a -&amp;rdquo; His finger pointed at the little pale thingy in the sky. &amp;ldquo;You can&amp;rsquo;t Apparate to somewhere you&amp;rsquo;ve never been and how would anyone get to the Moon in the first place?&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;Hold on,&amp;rdquo; Harry said to Draco, &amp;ldquo;I&amp;rsquo;d like to show you a book I brought with me, I think I remember what box it&amp;rsquo;s in.&amp;rdquo; And Harry stood up and kneeled down and yanked out the stairs to the cavern level of his trunk, then tore down the stairs and heaved a box off another box, coming perilously close to treating his books with disrespect, and snatched off the box cover and quickly but carefully pried out a stack of books -&lt;/p&gt;&#10;&lt;p&gt;&amp;hellip; And Harry raced back up the stairs and shoved the staircase back into the trunk with his heel, and, panting, turned the pages of the book until he found the picture he wanted to show to Draco.&lt;/p&gt;&#10;&lt;p&gt;The one with the white, dry, cratered land, and the suited people, and the blue-white globe hanging over it all.&lt;/p&gt;&#10;&lt;p&gt;That picture.&lt;/p&gt;&#10;&lt;p&gt;The picture, if only one picture in all the world were to survive.&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;That,&amp;rdquo; Harry said, his voice trembling because he couldn&amp;rsquo;t quite keep the pride out, &amp;ldquo;is what the Earth looks like from the Moon.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;Draco slowly leaned over. There was a strange expression on his young face. &amp;ldquo;If that&amp;rsquo;s a real picture, why isn&amp;rsquo;t it moving?&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;Moving? Oh. &amp;ldquo;Muggles can do moving pictures but they need a bigger box to show it, they can&amp;rsquo;t fit them onto single book pages yet.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;Draco&amp;rsquo;s finger moved to one of the suits. &amp;ldquo;What are those?&amp;rdquo; His voice starting to waver.&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;Those are human beings. They are wearing suits that cover their whole bodies to give them air, because there is no air on the Moon.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;That&amp;rsquo;s impossible,&amp;rdquo; Draco whispered. There was terror in his eyes, and utter confusion. &amp;ldquo;No Muggle could ever do that. How&amp;hellip;&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;Harry took back the book, flipped the pages until he found what he saw. &amp;ldquo;This is a rocket going up. The fire pushes it higher and higher, until it gets to the Moon.&amp;rdquo; Flipped pages again. &amp;ldquo;This is a rocket on the ground. That tiny speck next to it is a person.&amp;rdquo; Draco gasped. &amp;ldquo;Going to the Moon cost the equivalent of&amp;hellip; probably around a thousand million Galleons.&amp;rdquo; Draco choked. &amp;ldquo;And it took the efforts of&amp;hellip; probably more people than live in all of magical Britain.&amp;rdquo; &lt;em&gt;And when they arrived, they left a plaque that said, &amp;lsquo;We came in peace, for all mankind.&amp;rsquo; Though you&amp;rsquo;re not yet ready to hear those words, Draco Malfoy&amp;hellip;&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;You&amp;rsquo;re telling the truth,&amp;rdquo; Draco said slowly. &amp;ldquo;You wouldn&amp;rsquo;t fake a whole book just for this - and I can hear it in your voice. But&amp;hellip; but&amp;hellip;&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;How, without wands or magic? It&amp;rsquo;s a long story, Draco. Science doesn&amp;rsquo;t work by waving wands and chanting spells, it works by knowing how the universe works on such a deep level that you know exactly what to do in order to make the universe do what you want. If magic is like casting Imperio on someone to make them do what you want, then science is like knowing them so well that you can convince them it was their own idea all along. It&amp;rsquo;s a lot more difficult than waving a wand, but it works when wands fail, just like if the Imperius failed you could still try persuading a person. And Science builds from generation to generation. You have to really know what you&amp;rsquo;re doing to do science - and when you really understand something, you can explain it to someone else. The greatest scientists of one century ago, the brightest names that are still spoken with reverence, their powers are as nothing to the greatest scientists of today. There is no equivalent in science of your lost arts that raised Hogwarts. In science our powers wax by the year. And we are beginning to understand and unravel the secrets of life and inheritance. We&amp;rsquo;ll be able to look at the very blood of which you spoke, and see what makes you a wizard, and in one or two more generations, we&amp;rsquo;ll be able to persuade that blood to make all your children powerful wizards too. So you see, your problem isn&amp;rsquo;t nearly as bad as it looks, because in a few more decades, science will be able to solve it for you.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;But&amp;hellip;&amp;rdquo; Draco said. His voice was trembling. &amp;ldquo;If Muggles have that kind of power&amp;hellip; then&amp;hellip; what are we? &amp;quot;&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;No, Draco, that&amp;rsquo;s not it, don&amp;rsquo;t you see? Science taps the power of human understanding to look at the world and figure out how it works. It can&amp;rsquo;t fail without humanity itself failing. Your magic could turn off, and you would hate that, but you would still be you. You would still be alive to regret it. But because science rests upon my human intelligence, it is the power that cannot be removed from me without removing me. Even if the laws of the universe change on me, so that all my knowledge is void, I&amp;rsquo;ll just figure out the new laws, as has been done before. It&amp;rsquo;s not a Muggle thing, it&amp;rsquo;s a human thing, it just refines and trains the power you use every time you look at something you don&amp;rsquo;t understand and ask &amp;lsquo;Why?&amp;rsquo;&amp;rdquo;&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Planted: belief and belonging in an age of doubt</title><link>https://kylrth.com/book/planted/</link><pubDate>Sun, 18 Apr 2021 10:21:00 -0600</pubDate><guid>https://kylrth.com/book/planted/</guid><description>&lt;p&gt;&lt;em&gt;(My own thoughts appear as sidenotes or in italics, to distinguish from the author&amp;rsquo;s thoughts.)&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Richard Bushman categorizes those who leave the church into two broad categories: those who feel &amp;ldquo;switched off&amp;rdquo;, and those who feel &amp;ldquo;squeezed out&amp;rdquo;. Mason summarizes the switched-off group as those who encounter troubling information about church history or doctrine, and as they discover more information they become jaded by it until they can no longer see the good the church does for them or for others. The squeezed-out group &amp;ldquo;fully embrace[s] the basic principles and ordinances of the gospel. But sometimes they feel alienated by things like the dominant political conservatism among the members &amp;hellip; or how the church ministers to our LGBT &amp;hellip; brothers and sisters,&amp;rdquo; (p. 3).&lt;/p&gt;</description></item><item><title>using GPG to prove you wrote your code</title><link>https://kylrth.com/post/gpg/</link><pubDate>Mon, 12 Apr 2021 07:13:54 -0600</pubDate><guid>https://kylrth.com/post/gpg/</guid><description>&lt;p&gt;GPG is cool. You can use GPG to send encrypted messages, sign files to prove you generated them, and sign git commits to prove you committed them. You can get my key &lt;a href="https://kylrth.com/gpg.pub"&gt;here&lt;/a&gt;. DigitalOcean has a &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-use-gpg-to-encrypt-and-sign-messages"&gt;neat guide&lt;/a&gt; to getting started with GPG. It explains asymmetric encryption, key generation and revocation, and key signing and maintenance.&lt;/p&gt;&#10;&lt;p&gt;Git commit authorship can be modified by anyone, as demonstrated by &lt;a href="https://github.com/jayphelps/git-blame-someone-else"&gt;this tool&lt;/a&gt;. But by uploading your GPG public key to GitHub, you allow anyone who trusts GitHub to be sure that commits marked &amp;ldquo;verified&amp;rdquo; were actually created by you.&lt;/p&gt;</description></item><item><title>favorite art</title><link>https://kylrth.com/post/art/</link><pubDate>Sat, 03 Apr 2021 22:16:52 -0600</pubDate><guid>https://kylrth.com/post/art/</guid><description>&lt;p&gt;Here&amp;rsquo;s some of my favorite art.&lt;/p&gt;&#10;&lt;h2 id="edvard-munch-the-scream-1893"&gt;Edvard Munch, &lt;em&gt;The Scream&lt;/em&gt;, 1893 &lt;a class="header-link" href="#edvard-munch-the-scream-1893"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;img src="scream.jpg" alt="favorite art scream.jpg" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;(&lt;a href="https://commons.wikimedia.org/wiki/File:Edvard_Munch,_1893,_The_Scream,_oil,_tempera_and_pastel_on_cardboard,_91_x_73_cm,_National_Gallery_of_Norway.jpg"&gt;source&lt;/a&gt;)&lt;/p&gt;&#10;&lt;h2 id="ben-shahn-all-that-is-beautiful-1966"&gt;Ben Shahn, &lt;em&gt;All That Is Beautiful&lt;/em&gt;, 1966 &lt;a class="header-link" href="#ben-shahn-all-that-is-beautiful-1966"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;img src="all_that_is_beautiful.jpg" alt="favorite art all_that_is_beautiful.jpg" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;(&lt;a href="https://americanart.si.edu/artwork/all-beautiful-22167"&gt;source&lt;/a&gt;)&lt;/p&gt;&#10;&lt;h2 id="peter-doig-architect-1991"&gt;Peter Doig, &lt;em&gt;Architect&amp;rsquo;s Home in the Ravine&lt;/em&gt;, 1991 &lt;a class="header-link" href="#peter-doig-architect-1991"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;img src="architect_home_in_the_ravine.jpg" alt="favorite art architect_home_in_the_ravine.jpg" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;(&lt;a href="https://www.wikiart.org/en/peter-doig/architect-s-home-in-the-ravine-1991"&gt;source&lt;/a&gt;)&lt;/p&gt;</description></item><item><title>The life-changing magic of tidying up: the Japanese art of decluttering and organizing</title><link>https://kylrth.com/book/life-changing-magic/</link><pubDate>Wed, 31 Mar 2021 21:21:04 -0700</pubDate><guid>https://kylrth.com/book/life-changing-magic/</guid><description>&lt;p&gt;This book was my first real exposure to minimalism, and it completely changed how I feel about the possession of objects. It was super fortunate that my wife and I listened to it together on a road trip, and became equally enthralled with the idea of dumping all of our excess clutter.&lt;/p&gt;&#10;&lt;h2 id="all-at-once"&gt;all at once &lt;a class="header-link" href="#all-at-once"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;We have excess clutter because of a fundamental problem with the way we deal with possessions. This is difficult to solve with simple tricks like better organization or getting rid of one thing every day. She argues that the best way to overcome the clutter is by doing a one-time hardcore purge of the entire house. She spends a long time detailing what she calls the KonMari Method (which you can read about on her &lt;a href="https://konmari.com/what-is-konmari-method/"&gt;website&lt;/a&gt;). For us, doing this initial purge took us about two weeks. We spent several hours each evening, plus all day on both Saturdays. All told I think we got rid of like 15 garbage bags-worth of things from our two-bedroom apartment.&lt;/p&gt;</description></item><item><title>The smartest kids in the world</title><link>https://kylrth.com/book/smartest-kids/</link><pubDate>Tue, 30 Mar 2021 07:00:00 -0700</pubDate><guid>https://kylrth.com/book/smartest-kids/</guid><description>&lt;p&gt;The PISA test tests common senses reasoning. The countries that did best on the test were a surprise to everyone. Finland, South Korea, and Poland were all standouts in their own ways, and Ripley compares the policies and learning environments in these countries with those of the US to determine why the US is falling behind, especially in math and science.&lt;/p&gt;&#10;&lt;p&gt;We talk a lot about parent involvement in the US, but the US actually has above average parental involvement. It turns out it&amp;rsquo;s not very correlated with success. Parent involvement is most useful when it&amp;rsquo;s reading to your child every day or asking them deep questions about school and about their opinions of broader issues. In the US we have lots of superintendents over small school districts, so there&amp;rsquo;s a lot of overhead without much benefit. We&amp;rsquo;re also afraid of standardization, so each school district has to sort of reinvent the wheel when it comes to curricula and standards. Common Core is an attempt by state education departments to agree to standards together so that textbooks and schools can target their products and training toward a common, well-defined set of goals.&lt;/p&gt;</description></item><item><title>The infinite Atonement</title><link>https://kylrth.com/book/infinite-atonement/</link><pubDate>Tue, 30 Mar 2021 06:30:00 -0700</pubDate><guid>https://kylrth.com/book/infinite-atonement/</guid><description>&lt;p&gt;&lt;em&gt;These notes are made while reading this with a Mormon theological background, so I skip noting some of the basic Mormon doctrines about the Atonement that he teaches.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;The Atonement is the central doctrine of Christianity. All scripture should be at least partially focused on it, and we&amp;rsquo;re invited to &amp;ldquo;speak of the atonement of Christ, and attain to a perfect knowledge of him&amp;rdquo; (Jacob 4:12).&lt;/p&gt;&#10;&lt;h2 id="what-is-the-significance-of-the-atonement"&gt;What is the significance of the Atonement? &lt;a class="header-link" href="#what-is-the-significance-of-the-atonement"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here are some of the ways that we come to understand the Atonement:&lt;/p&gt;</description></item><item><title>How not to diet: the groundbreaking science of healthy, permanent weight loss</title><link>https://kylrth.com/book/how-not-to-diet/</link><pubDate>Wed, 03 Mar 2021 07:00:37 -0700</pubDate><guid>https://kylrth.com/book/how-not-to-diet/</guid><description>&lt;p&gt;&lt;em&gt;I read this book with Irresistible and the Social Dilemma on my mind, so I have a lot of notes here about addiction and big business.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Just like everything else, capitalism has screwed over our diets by giving companies the incentive to put shareholders above customers. Food companies employ lobbyists to keep subsidies on sugar/corn syrup/meat, and keep a stranglehold on public organizations. They buy billions of dollars of ads to communicate the message that it&amp;rsquo;s laziness that has caused the obesity epidemic and to push their products that appeal to the unconscious desires of our brains to produce artificial hunger.&lt;/p&gt;</description></item><item><title>The gene: an intimate history</title><link>https://kylrth.com/book/the-gene/</link><pubDate>Fri, 22 Jan 2021 06:14:58 -0700</pubDate><guid>https://kylrth.com/book/the-gene/</guid><description>&lt;p&gt;&lt;em&gt;These are notes I made after finishing the book, so they&amp;rsquo;ll be more heavily weighted toward concepts discussed near the end. The first half of the book was primarily dedicated to a history of genetic research, which I think helped the reader understand the issues discussed in the latter half.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="playing-god"&gt;playing God &lt;a class="header-link" href="#playing-god"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;It seems like our identity derives from a complicated combination of genes and chance environmental effects. Part of our strength as a species has been our natural variation, and to begin editing the genome is to assume that we can do it better than evolution has done up until this point. To choose to remove variations is to decide that normal is best. (Some of our most beautiful productions have been created by people who under our normal social environment would be considered mentally ill.) To remove variation or introduce variation thus has a literally existential effect on our identity. What does it mean for a process to understand its own instructions?&lt;/p&gt;</description></item><item><title>Faith is not blind</title><link>https://kylrth.com/book/faith-is-not-blind/</link><pubDate>Mon, 18 Jan 2021 08:11:23 -0700</pubDate><guid>https://kylrth.com/book/faith-is-not-blind/</guid><description>&lt;p&gt;Elder Hafen struggled as a missionary with the concept of knowing versus believing: he felt he believed it was true, but not that he knew it. On the mission he felt pressure to bear testimony with the word &amp;ldquo;know&amp;rdquo;, but he chafed at that. In this book, Elder Hafen hopes to discuss the complex boundaries between believing and knowing, Richard Bushman, a prominent LDS historian, found himself in a similar situation. He felt that he didn&amp;rsquo;t have the right words to express his belief in the nuanced way that he needed, even though looking back he thinks he &lt;em&gt;did&lt;/em&gt; believe. This makes me look forward to reading Bushman&amp;rsquo;s &amp;ldquo;Rough Stone Rolling&amp;rdquo;, to try to understand his language of faith.&lt;/p&gt;</description></item><item><title>Cross-lingual alignment of contextual word embeddings, with applications to zero-shot dependency parsing</title><link>https://kylrth.com/paper/cross-lingual-alignment-contextual/</link><pubDate>Fri, 11 Dec 2020 06:30:43 -0700</pubDate><guid>https://kylrth.com/paper/cross-lingual-alignment-contextual/</guid><description>&lt;p&gt;Recent contextual word embeddings (e.g. &lt;a href="https://kylrth.com/paper/deep-contextualized-word-representations/"&gt;ELMo&lt;/a&gt;) have shown to be much better than &amp;ldquo;static&amp;rdquo; embeddings (where there&amp;rsquo;s a one-to-one mapping from token to representation). This paper is exciting because they were able to create a multi-lingual embedding space that used &lt;em&gt;contextual&lt;/em&gt; word embeddings.&lt;/p&gt;&#10;&lt;p&gt;Each token will have a &amp;ldquo;point cloud&amp;rdquo; of embedding values, one point for each context containing the token. They define the &lt;em&gt;embedding anchor&lt;/em&gt; as the average of all those points for a particular token. Here&amp;rsquo;s a figure from the paper that displays a two-dimensional PCA of the contextual representations for four Spanish words, along with their anchors:&lt;/p&gt;</description></item><item><title>Inductive biases for deep learning of higher-level cognition</title><link>https://kylrth.com/paper/inductive-biases-higher-cognition/</link><pubDate>Tue, 08 Dec 2020 06:40:48 -0700</pubDate><guid>https://kylrth.com/paper/inductive-biases-higher-cognition/</guid><description>&lt;p&gt;&lt;em&gt;This is a long paper, so a lot of my writing here is an attempt to condense the discussion. I&amp;rsquo;ve taken the liberty to pull exact phrases and structure from the paper without explicitly using quotes.&lt;/em&gt;&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;Our main hypothesis is that deep learning succeeded in part because of a set of inductive biases, but that additional ones should be added in order to go from good in-distribution generalization in highly supervised learning tasks (or where strong and dense rewards are available), such as object recognition in images, to strong out-of-distribution generalization and transfer learning to new tasks with low sample complexity.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>SpanBERT: improving pre-training by representing and predicting spans</title><link>https://kylrth.com/paper/spanbert/</link><pubDate>Sat, 05 Dec 2020 16:08:03 -0700</pubDate><guid>https://kylrth.com/paper/spanbert/</guid><description>&lt;p&gt;&lt;a href="https://kylrth.com/paper/bert/"&gt;BERT&lt;/a&gt; optimizes the Masked Language Model (MLM) objective by masking word pieces &lt;em&gt;uniformly at random&lt;/em&gt; in its training data and attempting to predict the masked values. With SpanBERT, spans of tokens are masked and the model is expected to predict the text in the spans from the representations of the words on the boundary. Span lengths follow a geometric distribution, and span start points are uniformly random.&lt;/p&gt;&#10;&lt;p&gt;To predict each individual masked token, a two-layer feedforward network was provided with the boundary token representations plus the position embedding of the target token, and the output vector representation was used to predict the masked token and compute cross-entropy loss exactly as in standard MLM.&lt;/p&gt;</description></item><item><title>Tools and weapons: the promise and peril of the digital age</title><link>https://kylrth.com/book/tools-and-weapons/</link><pubDate>Thu, 03 Dec 2020 20:58:02 -0700</pubDate><guid>https://kylrth.com/book/tools-and-weapons/</guid><description>&lt;p&gt;&lt;em&gt;I started taking notes later in the book. There were lots of good insights in the first half. Sorry!&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="broadband-access"&gt;broadband access &lt;a class="header-link" href="#broadband-access"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Getting the internet to rural communities is a big deal for the rural economy. Just like electricity, it&amp;rsquo;s something that needs government support because there isn&amp;rsquo;t the economic incentive for ISPs to reach some of these locations.&lt;/p&gt;&#10;&lt;h2 id="ethical-ai"&gt;ethical AI &lt;a class="header-link" href="#ethical-ai"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The focus on AI now is not just a fad, but a convergence of several trends that have made AI the next logical step: the increased computational resources, flexible access to compute through the cloud, etc.&lt;/p&gt;</description></item><item><title>Deep contextualized word representations</title><link>https://kylrth.com/paper/deep-contextualized-word-representations/</link><pubDate>Thu, 03 Dec 2020 12:01:43 -0700</pubDate><guid>https://kylrth.com/paper/deep-contextualized-word-representations/</guid><description>&lt;p&gt;&lt;em&gt;This is the original paper introducing Embeddings from Language Models (ELMo).&lt;/em&gt;&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;Unlike most widely used word embeddings, ELMo word representations are functions of the entire input sentence.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;That&amp;rsquo;s what makes ELMo great: they&amp;rsquo;re &lt;em&gt;contextualized&lt;/em&gt; word representations, meaning that they can express multiple possible senses of the same word.&lt;/p&gt;&#10;&lt;p&gt;Specifically, ELMo representations are a learned linear combination of all layers of an LSTM encoding. The LSTM undergoes general semi-supervised pretraining, but the linear combination is learned &lt;em&gt;specific to the task&lt;/em&gt;. It&amp;rsquo;s been shown that initial layers in LSTM encoders are more representative of syntax, while later layers tend to represent semantics, so this linear combination is a key advantage that allows ELMo to improve accuracy on tasks ranging from POS tagging to question answering.&lt;/p&gt;</description></item><item><title>Removing a keyword from git history</title><link>https://kylrth.com/post/removing-keyword-from-git-history/</link><pubDate>Wed, 02 Dec 2020 11:34:25 -0700</pubDate><guid>https://kylrth.com/post/removing-keyword-from-git-history/</guid><description>&lt;p&gt;I recently had to remove a keyword from the git history of a project I was working on. This meant not just &lt;a href="https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/removing-sensitive-data-from-a-repository#using-filter-branch"&gt;removing a file&lt;/a&gt; but modifying commits where the keyword was added, commits where the keyword was removed, and even commits with the keyword in the commit message. I eventually came to the right solution through a mix of blog posts and the documentation for &lt;a href="https://git-scm.com/docs/git-rebase/"&gt;&lt;code&gt;git rebase&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;For this example, assume the keyword is &amp;ldquo;matrix&amp;rdquo;. The example output shown is from the git repo for this website.&lt;/p&gt;</description></item><item><title>Blink: the power of thinking without thinking</title><link>https://kylrth.com/book/blink/</link><pubDate>Tue, 17 Nov 2020 20:44:48 -0700</pubDate><guid>https://kylrth.com/book/blink/</guid><description>&lt;p&gt;Our subconscious not only manages bodily systems but also performs processing of features in our experience that our conscious does not have time to process. This has been proven in lots of experiments where people have been given subconscious cues to help them solve problems, but the people are unaware of this and make up answers when asked to explain how they came to conclusions. It&amp;rsquo;s important to trust these judgments that seem to come out of nowhere, but if we try to explain them we&amp;rsquo;ll start trying to provide rational answers, which can be totally false or misleading. (Think about when one of the jurors in the OJ Simpson trial said that race had absolutely nothing to do with their judgment.)&lt;/p&gt;</description></item><item><title>A short history of nearly everything</title><link>https://kylrth.com/book/short-history-nearly-everything/</link><pubDate>Wed, 07 Oct 2020 11:19:03 -0600</pubDate><guid>https://kylrth.com/book/short-history-nearly-everything/</guid><description>&lt;p&gt;We are &lt;em&gt;extremely&lt;/em&gt; lucky to be here, and even more lucky to be able to appreciate it. Let&amp;rsquo;s not waste it.&lt;/p&gt;</description></item><item><title>Overcoming catastrophic forgetting in neural networks</title><link>https://kylrth.com/paper/overcoming-catastrophic-forgetting/</link><pubDate>Thu, 01 Oct 2020 10:47:28 -0600</pubDate><guid>https://kylrth.com/paper/overcoming-catastrophic-forgetting/</guid><description>&lt;p&gt;In the paper they use Bayes&amp;rsquo; rule to show that the contribution of the first of two tasks is contained in the posterior distribution of model parameters over the first dataset. This is important because it means we can estimate that posterior to try to get a sense for which model parameters were most important for that first task.&lt;/p&gt;&#10;&lt;p&gt;In this paper, they perform that estimation using a multivariate Gaussian distribution. The means are the values of the model parameters after training on the first dataset, and the precision (inverse of variance) is the values of the diagonals along the Fisher information matrix.&lt;/p&gt;</description></item><item><title>Learning neural causal models from unknown interventions</title><link>https://kylrth.com/paper/neural-causal-models/</link><pubDate>Tue, 22 Sep 2020 10:39:54 -0600</pubDate><guid>https://kylrth.com/paper/neural-causal-models/</guid><description>&lt;p&gt;&lt;em&gt;This is a follow-on to &lt;a href="https://kylrth.com/paper/meta-transfer-objective-for-causal-mechanisms/"&gt;A meta-transfer objective for learning to disentangle causal mechanisms&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Here we describe an algorithm for predicting the causal graph structure of a set of visible random variables, each possibly causally dependent on any of the other variables.&lt;/p&gt;&#10;&lt;h2 id="the-algorithm"&gt;the algorithm &lt;a class="header-link" href="#the-algorithm"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;There are two sets of parameters, the &lt;em&gt;structural parameters&lt;/em&gt; and the &lt;em&gt;functional parameters&lt;/em&gt;. The structural parameters compose a matrix where &lt;code&gt;\(\sigma(\gamma_{ij})\)&lt;/code&gt; represents the belief that variable &lt;code&gt;\(X_j\)&lt;/code&gt; is a direct cause of &lt;code&gt;\(X_i\)&lt;/code&gt;. The functional parameters are the parameters of the neural networks that model the conditional probability distribution of each random variable given its parent set.&lt;/p&gt;</description></item><item><title>A meta-transfer objective for learning to disentangle causal mechanisms</title><link>https://kylrth.com/paper/meta-transfer-objective-for-causal-mechanisms/</link><pubDate>Mon, 21 Sep 2020 08:46:30 -0600</pubDate><guid>https://kylrth.com/paper/meta-transfer-objective-for-causal-mechanisms/</guid><description>&lt;p&gt;Theoretically, models should be able to predict on out-of-distribution data if their understanding of causal relationships is correct. The toy problem they use in this paper is that of predicting temperature from altitude. If a model is trained on data from Switzerland, the model should ideally be able to correctly predict on data from the Netherlands, even though it hasn&amp;rsquo;t seen elevations that low before.&lt;/p&gt;&#10;&lt;p&gt;The main contribution of this paper is that they&amp;rsquo;ve found that models tend to transfer &lt;em&gt;faster&lt;/em&gt; to a new distribution when they learn the correct causal relationships, and when those relationships are &lt;em&gt;sparsely represented&lt;/em&gt;, meaning they are represented by relatively few nodes in the network. This allowed them to create a meta-learning objective that trains the model to represent the correct causal dependencies, allowing for improved generalization.&lt;/p&gt;</description></item><item><title>Deep learning generalizes because the parameter-function map is biased towards simple functions</title><link>https://kylrth.com/paper/parameter-function-map-biased-to-simple/</link><pubDate>Tue, 08 Sep 2020 07:29:09 -0600</pubDate><guid>https://kylrth.com/paper/parameter-function-map-biased-to-simple/</guid><description>&lt;p&gt;The theoretical value in talking about the parameter-function map is that this map lets us talk about sets of parameters that produce the same function. In this paper they used some recently proven stuff from algorithmic information theory (AIT) to show that for neural networks the parameter-function map is biased toward functions with low Komolgorov complexity, meaning that simple functions are more likely to appear given random choice of parameters. Since real world problems are also biased toward simple functions, this could explain the generalization/memorization results found by &lt;a href="https://kylrth.com/paper/understanding-requires-rethinking-generalization/"&gt;Zhang &lt;em&gt;et al&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>The moment of lift: how empowering women changes the world</title><link>https://kylrth.com/book/moment-of-lift/</link><pubDate>Tue, 01 Sep 2020 05:25:38 -0600</pubDate><guid>https://kylrth.com/book/moment-of-lift/</guid><description>&lt;p&gt;This book is about empowering women by giving them the freedom to make their own choices and speak for themselves. She said some important things about stigma in society. She talked specifically about the stigma of not talking about birth control, but she made general statements too. It&amp;rsquo;s each person&amp;rsquo;s responsibility to work against stigma and stop the human tendency to cast out others. I need to spend more time thinking about my own stigmas and biases, so that I can help those who are marginalized.&lt;/p&gt;</description></item><item><title>A closer look at memorization in deep networks</title><link>https://kylrth.com/paper/closer-look-at-memorization/</link><pubDate>Mon, 31 Aug 2020 11:52:35 -0600</pubDate><guid>https://kylrth.com/paper/closer-look-at-memorization/</guid><description>&lt;p&gt;This paper builds on what we learned in &lt;a href="https://kylrth.com/paper/understanding-requires-rethinking-generalization/"&gt;&amp;ldquo;Understanding deep learning requires rethinking generalization&amp;rdquo;&lt;/a&gt;. In that paper they showed that DNNs are able to fit pure noise in the same amount of time as it can fit real data, which means that our optimization algorithm (SGD, Adam, etc.) is not what&amp;rsquo;s keeping DNNs from overfitting.&lt;/p&gt;&#10;&lt;h2 id="experiments-for-detecting-easyhard-samples"&gt;experiments for detecting easy/hard samples &lt;a class="header-link" href="#experiments-for-detecting-easyhard-samples"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;It looks like there are qualitative differences between a DNN that has memorized some data and a DNN that has seen real data. In experiments they found that real datasets contain &amp;ldquo;easy examples&amp;rdquo; that are more quickly learned than the hard examples. This is not the case for random data.&lt;/p&gt;</description></item><item><title>Naked economics: undressing the dismal science</title><link>https://kylrth.com/book/naked-economics/</link><pubDate>Sun, 30 Aug 2020 06:46:49 -0600</pubDate><guid>https://kylrth.com/book/naked-economics/</guid><description>&lt;ul&gt;&#10;&lt;li&gt;An important question is how much we need to fight income inequality. Is it fair to have 35% growth in the upper class and 3% growth in the lower class? Where is a good balance?&lt;/li&gt;&#10;&lt;li&gt;We have grown a lot richer since the Industrial Revolution, because we&amp;rsquo;ve become more productive.&lt;/li&gt;&#10;&lt;li&gt;Wealth is not a zero-sum game. Globalization is good because it allows us to buy cheaper, better products.&#10;We can offset short-run job loss by paying or giving human capital to those who lose their jobs to globalization&lt;/li&gt;&#10;&lt;li&gt;Policies often don&amp;rsquo;t do what we intend them to do, because they change people&amp;rsquo;s decisions for the involved choice. Often, the best way to do policy is to incentivize the appropriate decision.&#10;E.g. Tax the purchase of inefficient cars on a scale, so car makers want to produce cheaper efficient cars to compete.&#10;Do that instead of simply banning cars with 18 mpg or less.&lt;/li&gt;&#10;&lt;li&gt;The Fed&amp;rsquo;s job is to control the availability of credit through setting their interest rates, so banks who borrow from them can adjust their interest rates accordingly. It&amp;rsquo;s really hard with so many factors, but Bernanke et. al. did an outstanding job.&lt;/li&gt;&#10;&lt;li&gt;Things that help an economy or nation develop:&#10;effective government institutionsproperty rightsno excessive regulationhuman capitalgeography (countries between the tropics have more diseases and less productive crops)openness to traderesponsible fiscal and monetary policy(natural resources don&amp;rsquo;t matter)democracypeaceinclusion of women in economic production&lt;/li&gt;&#10;&lt;li&gt;We can help underdeveloped countries, but the question of how is complicated.&#10;Certainly, we should open our borders to their products.Jeffrey Sachs &amp;ndash; all these countries need is capital, so developed countries should invest in them (e.g. through comprehensively fighting AIDS)William Easterly &amp;ndash; We can&amp;rsquo;t measure effectiveness based on inputs. That&amp;rsquo;s like rating Hollywood movies by budget size. &amp;ldquo;Instead we should do small, context-sensitive projects with measurable benefits.&amp;ldquo;But most of the developing world&amp;rsquo;s problems come from bad government policy.&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>The faith of a scientist</title><link>https://kylrth.com/book/faith-of-a-scientist/</link><pubDate>Sun, 30 Aug 2020 06:46:49 -0600</pubDate><guid>https://kylrth.com/book/faith-of-a-scientist/</guid><description>&lt;p&gt;Scientific thinking and religion go hand in hand, and help refine and give purpose to each other.&lt;/p&gt;&#10;&lt;p&gt;Descartes&amp;rsquo; approach wasn&amp;rsquo;t as good as Newton&amp;rsquo;s. Descartes relied on the soundness of his own reasoning.&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;The erroneous conception that revelation ended with the apostles promotes the misconception among sectarian religions that the Gospel is complete and that with a liberal admixture of human wisdom, all will be crystal clear.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;God places messages in everything. We study the scriptures, but we also study each scientific field looking for the truth He offers us there.&lt;/p&gt;</description></item><item><title>Weapons of math destruction: how big data increases inequality and threatens democracy</title><link>https://kylrth.com/book/weapons-of-math-destruction/</link><pubDate>Sun, 30 Aug 2020 06:46:49 -0600</pubDate><guid>https://kylrth.com/book/weapons-of-math-destruction/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;In fact, I saw all kinds of parallels between finance and Big Data. Both industries gobble up the same pool of talent, much of it from elite universities like MIT, Princeton, or Stanford. These new hires are ravenous for success and have been focused on external metrics&amp;ndash;like SAT scores and college admissions&amp;ndash;their entire lives. Whether in finance or tech, the message they&amp;rsquo;ve received is that they will be rich, that they will run the world. Their productivity indicates that they&amp;rsquo;re on the right track, and it translates into dollars. This leads to the fallacious conclusion that whatever they&amp;rsquo;re doing to bring in more money is good. It &amp;ldquo;adds value.&amp;rdquo; Otherwise, why would the market reward it?&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>A disciplined approach to neural network hyperparameters: part 1</title><link>https://kylrth.com/paper/disciplined-approach-to-hyperparameters/</link><pubDate>Fri, 28 Aug 2020 14:16:29 -0600</pubDate><guid>https://kylrth.com/paper/disciplined-approach-to-hyperparameters/</guid><description>&lt;p&gt;The goal of hyperparameter tuning is to reach the point where test loss is horizontal on the graph over model complexity.&lt;/p&gt;&#10;&lt;p&gt;Underfitting can be observed with a small learning rate, simple architecture, or complex data distribution. You can observe underfitting decrease by seeing more drastic results at the outset, followed by a more horizontal line further into training. You can use the LR range test to find a good learning rate range, and then use a cyclical learning rate to move up and down within that range.&lt;/p&gt;</description></item><item><title>Forward and reverse gradient-based hyperparameter optimization</title><link>https://kylrth.com/paper/gradient-based-hyperparameter-optimization/</link><pubDate>Fri, 28 Aug 2020 14:16:29 -0600</pubDate><guid>https://kylrth.com/paper/gradient-based-hyperparameter-optimization/</guid><description>&lt;p&gt;In the area of hyperparameter optimization (HO), the goal is to optimize a &lt;em&gt;response function&lt;/em&gt; of the hyperparameters. The response function is usually the average loss on a validation set. Gradient-based HO refers to iteratively finding the optimal hyperparameters using gradient updates, just as we do with neural network training itself. The gradient of the response function with respect to the hyperparameters is called the &lt;em&gt;hypergradient&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;One of the great things about this work is that their framework allows for all kinds of hyperparameters. The response function can be based on evaluation over the training set, the validation set, or both. The hyperparameters can be part of the loss function, part of regularization, or part of the model architecture.&lt;/p&gt;</description></item><item><title>Understanding deep learning requires rethinking generalization</title><link>https://kylrth.com/paper/understanding-requires-rethinking-generalization/</link><pubDate>Wed, 26 Aug 2020 08:42:58 -0600</pubDate><guid>https://kylrth.com/paper/understanding-requires-rethinking-generalization/</guid><description>&lt;p&gt;It turns out that neural networks can reach training loss of 0 even on randomly labeled data, even when the data itself is random. It was previously thought that some implicit bias in the model architecture prevented (or &lt;em&gt;regularized the model away from&lt;/em&gt;) overfitting to specific training examples, but that&amp;rsquo;s obviously not true. They showed this empirically as just described, and also theoretically constructed a two-layer ReLU network with &lt;code&gt;\(p=2n+d\)&lt;/code&gt; parameters to express &lt;em&gt;any labeling&lt;/em&gt; of any sample of size &lt;code&gt;\(n\)&lt;/code&gt; in &lt;code&gt;\(d\)&lt;/code&gt; dimensions. The proof was actually relatively easy to follow.&lt;/p&gt;</description></item><item><title>Why does unsupervised pre-training help deep learning?</title><link>https://kylrth.com/paper/why-unsupervised-helps/</link><pubDate>Mon, 24 Aug 2020 11:40:00 -0600</pubDate><guid>https://kylrth.com/paper/why-unsupervised-helps/</guid><description>&lt;p&gt;They&amp;rsquo;re pretty sure that it performs regularization by starting off the supervised training in a good spot, instead of by somehow improving the optimization path.&lt;/p&gt;</description></item><item><title>Essentialism</title><link>https://kylrth.com/book/essentialism/</link><pubDate>Sun, 23 Aug 2020 07:47:12 -0600</pubDate><guid>https://kylrth.com/book/essentialism/</guid><description>&lt;p&gt;The main character of the first story slowly changed his attitude toward demands on his resources.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&amp;ldquo;Can I actually fulfill this request, given the time and resources I have?&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;&amp;ldquo;Is this the very most important thing I should be doing with my time and resources right now?&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;&amp;ldquo;Just because I was invited didn&amp;rsquo;t seem a good enough reason to attend.&amp;rdquo;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;It&amp;rsquo;s important to pursue &amp;ldquo;less but better&amp;rdquo; in a disciplined way. Simply doing fewer things is not meaningful. Most things in the world are trivial noise, and my job is to sift through noise and find things that are truly valuable. This involves active consideration of responsibilities and trade-offs involved in making a choice. I think I often try to &amp;ldquo;force execution at the last moment&amp;rdquo;, which is a mark of a non-essentialist.&lt;/p&gt;</description></item><item><title>The consciousness prior</title><link>https://kylrth.com/paper/consciousness-prior/</link><pubDate>Fri, 14 Aug 2020 09:05:56 -0700</pubDate><guid>https://kylrth.com/paper/consciousness-prior/</guid><description>&lt;p&gt;System 1 cognitive abilities are about low-level perception and intuitive knowledge. System 2 cognitive abilities can be described verbally, and include things like reasoning, planning, and imagination. In cognitive neuroscience, the &amp;ldquo;Global Workspace Theory&amp;rdquo; says that at each moment specific pieces of information become a part of working memory and become globally available to other unconscious computational processes. Relative to the unconscious state, the conscious state is low-dimensional, focusing on a few things. The paper proposes we use an attention mechanism (in the sense of the Bahdanau 2015 paper) to produce the conscious state, and then a VAE or conditional GAN to produce the output from the conscious state.&lt;/p&gt;</description></item><item><title>Troubling trends in machine learning scholarship</title><link>https://kylrth.com/paper/troubling-trends-in-ml/</link><pubDate>Thu, 13 Aug 2020 10:36:05 -0700</pubDate><guid>https://kylrth.com/paper/troubling-trends-in-ml/</guid><description>&lt;p&gt;The authors discuss four trends in AI research that have negative consequences for the community.&lt;/p&gt;&#10;&lt;h2 id="problems"&gt;problems &lt;a class="header-link" href="#problems"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;h3 id="explanation-vs-speculation"&gt;explanation vs. speculation &lt;a class="header-link" href="#explanation-vs-speculation"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;It&amp;rsquo;s important to allow researchers to include speculation, because speculation is what allows ideas to form. But the paper has to carefully couch speculation inside a &amp;ldquo;Motivations&amp;rdquo; section or other verbage to ensure the reader understands its place.&lt;/p&gt;&#10;&lt;p&gt;It&amp;rsquo;s extremely important to define concepts before using them. Terms like &lt;em&gt;internal covariate shift&lt;/em&gt; or &lt;em&gt;coverage&lt;/em&gt; sound like definitions without actually being such.&lt;/p&gt;</description></item><item><title>Attention is all you need</title><link>https://kylrth.com/paper/attention-all-you-need/</link><pubDate>Wed, 05 Aug 2020 12:37:42 -0700</pubDate><guid>https://kylrth.com/paper/attention-all-you-need/</guid><description>&lt;p&gt;&lt;em&gt;I also referred to &lt;a href="https://github.com/lilianweng/transformer-tensorflow"&gt;this implementation&lt;/a&gt; to understand some of the details.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;This is the paper describing the Transformer, a sequence-to-sequence model based entirely on attention. I think it&amp;rsquo;s best described with pictures.&lt;/p&gt;&#10;&lt;h2 id="model-overview"&gt;model overview &lt;a class="header-link" href="#model-overview"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;img src="transformer.png" alt="Attention is all you need transformer.png" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;From this picture, I think the following things need explaining:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;embeddings&lt;/strong&gt; these are learned embeddings that convert the input and output tokens to vectors of the model dimension. In this paper, they actually used the same weight matrix for input embedding, output embedding, and the final linear layer before the final softmax.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;positional encoding&lt;/strong&gt;: since there&amp;rsquo;s no concept of a hidden state or convolution that encodes the order of the inputs, we have to add some information about the position of the tokens. They used a sinusoidal positional encoding that was a function of the position and the dimension. The wavelength for each dimension forms a geometric progression from &lt;code&gt;\(2\pi\)&lt;/code&gt; to 10000 times that.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;the outputs are &amp;ldquo;shifted right&amp;rdquo;&lt;/strong&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;multi-head attention&lt;/strong&gt;: see below for a description of multi-head attention. In the encoder-decoder attention layers, &lt;code&gt;\(Q\)&lt;/code&gt; comes from the previous masked attention layer and &lt;code&gt;\(K\)&lt;/code&gt; and &lt;code&gt;\(V\)&lt;/code&gt; come from the output of the encoder. Everywhere else uses self-attention, meaning that &lt;code&gt;\(Q\)&lt;/code&gt;, &lt;code&gt;\(K\)&lt;/code&gt;, and &lt;code&gt;\(V\)&lt;/code&gt; are all the same.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;&lt;em&gt;masked&lt;/em&gt; multi-head attention&lt;/strong&gt;: in the self-attention layers in the decoder, we can&amp;rsquo;t allow positions to attend to positions ahead of themselves, so we set all right-connecting values in the input of the softmax (right after scaling; see the image below) to negative infinity.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;feed-forward blocks&lt;/strong&gt; these are two linear transformation with ReLU in between. The transformations are the same across each position, but they are different transformations from layer to layer, as you might expect.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;add &amp;amp; norm&lt;/strong&gt;: these are residual connections followed by layer normalization.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h3 id="multi-head-attention"&gt;multi-head attention &lt;a class="header-link" href="#multi-head-attention"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;&#10;&lt;img src="multi-head-attention.png" alt="Attention is all you need multi-head-attention.png" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;The &amp;ldquo;Mask (opt.)&amp;rdquo; can be ignored because that&amp;rsquo;s for masked attention, described above.&lt;/p&gt;</description></item><item><title>BERT: pre-training of deep bidirectional transformers for language understanding</title><link>https://kylrth.com/paper/bert/</link><pubDate>Tue, 04 Aug 2020 08:57:44 -0700</pubDate><guid>https://kylrth.com/paper/bert/</guid><description>&lt;p&gt;The B is for bidirectional, and that&amp;rsquo;s a big deal. It makes it possible to do well on sentence-level (NLI, question answering) and token-level tasks (NER, POS tagging). In a unidirectional model, the word &amp;ldquo;bank&amp;rdquo; in a sentence like &amp;ldquo;I made a bank deposit.&amp;rdquo; has only &amp;ldquo;I made a&amp;rdquo; as its context, keeping useful information from the model.&lt;/p&gt;&#10;&lt;p&gt;Another cool thing is masked language model training (MLM). They train the model by blanking certain words in the sentence and asking the model to guess the missing word.&lt;/p&gt;</description></item><item><title>Compositional generalization by factorizing alignment and translation</title><link>https://kylrth.com/paper/factorizing-alignment-and-translation/</link><pubDate>Mon, 27 Jul 2020 09:11:16 -0700</pubDate><guid>https://kylrth.com/paper/factorizing-alignment-and-translation/</guid><description>&lt;p&gt;They had a biRNN with attention for alignment encoding, and then a single linear function of each one-hot encoded word for encoding that single word. Their reasoning was that by separating the alignment from the meaning of individual words the model could more easily generalize to unseen words.&lt;/p&gt;</description></item><item><title>Semi-supervised training for automatic speech recognition</title><link>https://kylrth.com/paper/semi-supervised-for-asr/</link><pubDate>Tue, 14 Jul 2020 08:06:00 -0600</pubDate><guid>https://kylrth.com/paper/semi-supervised-for-asr/</guid><description>&lt;p&gt;&lt;em&gt;This was Manohar&amp;rsquo;s PhD dissertation at JHU.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Chapter 2 provides a relatively clear overview of how chain and non-chain models work in Kaldi.&lt;/p&gt;&#10;&lt;p&gt;In chapter 3 he tried using negative conditional entropy as the loss function for the unsupervised data, and it helped a bit.&lt;/p&gt;&#10;&lt;p&gt;In chapter 4 Manohar uses [CTC loss]/paper/ctc/.&lt;/p&gt;&#10;&lt;p&gt;In chapter 5, he discusses ways to do semi-supervised model training. It&amp;rsquo;s nice when you have parallel data in different domains, because then you can do a student-teacher model. When there&amp;rsquo;s no parallel data, the best you can do is decode the unsupervised data with the seed model and use that to train the LF-MMI model (see section 5.2.1).&lt;/p&gt;</description></item><item><title>Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks</title><link>https://kylrth.com/paper/ctc/</link><pubDate>Fri, 10 Jul 2020 09:14:59 -0600</pubDate><guid>https://kylrth.com/paper/ctc/</guid><description>&lt;p&gt;RNNs generally require pre-segmented training data, but this avoids that need.&lt;/p&gt;&#10;&lt;p&gt;Basically, you have the RNN output probabilities for each label (or a blank) for every frame, and then you find the most likely path across that lattice of probabilities.&lt;/p&gt;&#10;&lt;p&gt;The section explaining the loss function was kind of complicated. They used their forward-backward algorithm (sort of like Viterbi) to get the probability of all paths corresponding to the output that go through each symbol at each time, and then they differentiated that to get the derivatives with respect to the outputs. Then it was backpropagation as normal from that point.&lt;/p&gt;</description></item><item><title>Google's neural machine translation system: bridging the gap between human and machine translation</title><link>https://kylrth.com/paper/google-nmt-2016/</link><pubDate>Tue, 30 Jun 2020 08:22:30 -0600</pubDate><guid>https://kylrth.com/paper/google-nmt-2016/</guid><description>&lt;p&gt;&lt;em&gt;This model was superseded by &lt;a href="https://kylrth.com/paper/google-zero-shot/"&gt;this one&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;They did some careful things with residual connections to make sure it was very parallelizable. They put each LSTM layer on a separate GPU. They quantized the models such that they could train using full floating-point computations with a couple restrictions and then convert the models to quantized versions.&lt;/p&gt;</description></item><item><title>Google's multilingual neural machine translation system</title><link>https://kylrth.com/paper/google-zero-shot/</link><pubDate>Fri, 26 Jun 2020 08:02:12 -0600</pubDate><guid>https://kylrth.com/paper/google-zero-shot/</guid><description>&lt;p&gt;They use the word-piece model from &lt;a href="https://kylrth.com/paper/word-piece-model/"&gt;&amp;ldquo;Japanese and Korean Voice Search&amp;rdquo;&lt;/a&gt;, with 32,000 word pieces. (This is a lot less than the 200,000 used in that paper.) They state in the paper that the shared word-piece model is very similar to Byte-Pair-Encoding, which was used for NMT in &lt;a href="https://www.aclweb.org/anthology/P16-1162.pdf"&gt;this paper&lt;/a&gt; by researchers at U of Edinburgh.&lt;/p&gt;&#10;&lt;p&gt;The model and training process are exactly as in &lt;a href="https://kylrth.com/paper/google-nmt-2016/"&gt;Google&amp;rsquo;s earlier paper&lt;/a&gt;. It takes &lt;em&gt;3 weeks&lt;/em&gt; on &lt;em&gt;100 GPUs&lt;/em&gt; to train, even after increasing batch size and learning rate.&lt;/p&gt;</description></item><item><title>Japanese and Korean voice search</title><link>https://kylrth.com/paper/word-piece-model/</link><pubDate>Wed, 24 Jun 2020 14:44:02 -0600</pubDate><guid>https://kylrth.com/paper/word-piece-model/</guid><description>&lt;p&gt;&lt;em&gt;This was mentioned in the paper on &lt;a href="https://kylrth.com/paper/google-zero-shot/"&gt;Google&amp;rsquo;s Multilingual Neural Machine Translation System&lt;/a&gt;. It&amp;rsquo;s regarded as the original paper to use the word-piece model, which is the focus of my notes here.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="the-wordpiecemodel"&gt;the WordPieceModel &lt;a class="header-link" href="#the-wordpiecemodel"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s the WordPieceModel algorithm:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-txt" data-lang="txt"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;func WordPieceModel(D, chars, n, threshold) -&amp;gt; inventory:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; # D: training data&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; # n: user-specified number of word units (often 200k)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; # chars: unicode characters used in the language (e.g. Kanji, Hiragana, Katakana, ASCII for Japanese)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; # threshold: stopping criterion for likelihood increase&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; # inventory: the set of word units created by the model&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; inventory := chars&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; likelihood := +INF&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; while len(inventory) &amp;lt; n &amp;amp;&amp;amp; likelihood &amp;gt;= threshold:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; lm := LM(inventory, D)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; inventory += argmax_{combined word unit}(lm.likelihood_{inventory + combined word unit}(D))&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; likelihood = lm.likelihood_{inventory}(D)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; return inventory&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The algorithm can be optimized by&lt;/p&gt;</description></item><item><title>Towards a multi-view language representation</title><link>https://kylrth.com/paper/multi-view-language-representation/</link><pubDate>Tue, 23 Jun 2020 08:40:04 -0600</pubDate><guid>https://kylrth.com/paper/multi-view-language-representation/</guid><description>&lt;p&gt;They used a technique called CCA to combine hand-made features with NN representations. It didn&amp;rsquo;t do great on typological feature prediction, but it did do well with predicting a phylogenetic tree for Indo-European languages.&lt;/p&gt;</description></item><item><title>Universal phone recognition with a multilingual allophone system</title><link>https://kylrth.com/paper/universal-phone-recognition/</link><pubDate>Tue, 23 Jun 2020 08:33:48 -0600</pubDate><guid>https://kylrth.com/paper/universal-phone-recognition/</guid><description>&lt;p&gt;These guys made sure to model allophones. They had an encoder that produced a universal phone set, and then language-specific decoders. This meant they could use data from various languages to train the system. The decoder has an &lt;em&gt;allophone layer&lt;/em&gt;, followed by other dense trainable layers. The allophone layer is a single trainable dense layer, but was initialized by a bunch of linguists who sat down and described the phone sets belonging to each phoneme in each language present in the training set. They added an L2 penalty to divergence from the original linguist-created matrix.&lt;/p&gt;</description></item><item><title>using Matrix</title><link>https://kylrth.com/post/matrix-registration/</link><pubDate>Sun, 02 Feb 2020 12:34:56 -0700</pubDate><guid>https://kylrth.com/post/matrix-registration/</guid><description>&lt;p&gt;Matrix is a &lt;em&gt;federated&lt;/em&gt;, open source chat system. Federation means that people can message each other across different servers, like in the image below. In that way, it works sort of like email: even though you may use &lt;code&gt;you@gmail.com&lt;/code&gt; and I might use &lt;code&gt;me@kylrth.com&lt;/code&gt;, we can still write each other emails.&lt;/p&gt;&#10;&lt;img src="federation.png" alt="using Matrix federation.png" class="img-zoomable"&gt;&#10;&#10;&lt;p&gt;In our case, I host the server at matrix.kylrth.com, and you and I can connect to it with various &lt;a href="https://matrix.org/ecosystem/clients/"&gt;clients&lt;/a&gt;. We can write each other messages, but we can also communicate with people on other Matrix servers.&lt;span class="sidenote-number"&gt;&lt;small class="sidenote"&gt;There are a ton of cool features to Matrix, such as &lt;a href="https://matrix.org/bridges/"&gt;bridging&lt;/a&gt;, voice and video calls, and encryption. You can read a more extensive beginner&amp;rsquo;s guide to Matrix &lt;a href="https://joinmatrix.org/"&gt;here&lt;/a&gt;. Also check out the Matrix &lt;a href="https://matrix.org"&gt;website&lt;/a&gt;.&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Increase in learning: spiritual patterns for obtaining your own answers</title><link>https://kylrth.com/book/increase-in-learning/</link><pubDate>Wed, 20 Nov 2019 10:14:43 -0700</pubDate><guid>https://kylrth.com/book/increase-in-learning/</guid><description>&lt;h2 id="chapter-1"&gt;Chapter 1 &lt;a class="header-link" href="#chapter-1"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;We are give the opportunity to have the Spirit as a &lt;em&gt;constant&lt;/em&gt; companion! To take advantage, we need to sincerely desire it, invite it through action, and be worthy of it through obedience.&lt;/p&gt;&#10;&lt;h2 id="chapter-2"&gt;Chapter 2 &lt;a class="header-link" href="#chapter-2"&gt;&lt;svg class="c-links__icon"&gt;&lt;title&gt;permalink&lt;/title&gt;&lt;use xlink:href="#icon-permalink"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Knowledge&lt;/strong&gt; is the accumulation of facts.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Understanding&lt;/strong&gt; comes when we apply our hearts to knowledge, which lets the Holy Ghost testify to us of the truthfulness of it. Understanding comes by revelation.&lt;/p&gt;</description></item></channel></rss>