Tuesday, August 25, 2026

Game Time

Here's a quick "what was it about (to the extent that I remember)" post about two books read recently. The first is Marked by time: How social change has transformed crime and the trajectories of young Americans, by Robert J. Sampson. Using a longitudinal data set following different cohorts in the Illinois area, Sampson (and team) try to show that "Where you were born may not be as important as when you were born" in terms of life outcomes. The argument is not that traditional social / economic / personal variables (self-discipline, family composition, etc.) do not matter, but rather that groups of individuals with the same profile on the traditional variables may still experience radically different outcomes (such as jail time) based on larger social factors that operate on a temporal scale. Thus, the author argues, we need to take those temporal factors into account when trying to understand things like propensity for criminal activity. In the author's words:

 "By analyzing the life course in this [temporal] way, we can see that supposedly stable individual traits like self-control are more context-dependent than commonly believed. Socioeconomic disadvantage, central to sociological theories of crime, prove even more historically contingent. Individual differences and social inequality interact with historical timing. The magnitude of social change is striking: Disadvantaged individuals with low self-control from recent cohorts show outcomes similar to advantaged, high self-control individuals born just a decade earlier. This finding challenges our assumptions about inequality and crime prediction, forcing us to rethink how social inequality itself evolves..." (p. 110)

 The book certainly raises and interesting idea, and provides lots of data in support of the author's general thesis. Because the data were collected over many years via a number of different grants, the data set variables are not always the same for each cohort, with some data collection efforts much more comprehensive in terms of what was collected than others. This naturally requires the use of some proxies to try to answer all of the questions they pose. There are times when the way that participants are grouped to get the sample sizes need for adequate power could be questioned, but such is the nature of this kind of research. 

 A second book is The score: How to stop playing somebody else's game by C. Thi Ngyuen. The author, a philosophy professor at the University of Utah, is a self-described "philosopher of games" and looks to understand the similarities and differences between goals and rules in a game and goals and rules in life. To this end, he introduces several interesting ideas. One is distinction between striving play (where we value the process or struggle) and achievement play (where we value the outcome) and how this can fluctuate. Metrics play a role in this, as what started out as an enjoyment of the process (e.g., trying to get better at tennis) can turn into a focus on metrics (ranking at the local tennis club) which turns the orientation to achievement play. 

Ngyuen also introduces what he calls the Four Horsemen of Bureaucracy, which are perversions of ideas that are beneficial in games: 

  1.   Scale: In order to be applicable and comprehensible across large groups of people, metrics tend to become devoid of local nuance. 
  2. Mechanical rules: The idea that rules should be rigid and followed to maintain consistency, at the expense of discretion
  3. Replaceable Parts (fungibility): All inputs are interchangeable, including people (this works alongside #1 and #2)
  4. Centralized Control: Top-down coordination at the expense of local autonomy

 There is also the notion of "value capture" -- when you internalize a metric to the point that it becomes your core value rather than the value that it was intended to express. An example of this would be things like the US college rankings, which prioritize things that some would consider antithetical to the true purpose of education.  

 

 

   

Wednesday, April 29, 2026

Read 'Em and Sleep

 Here are some books I've read in the past few months. As always, I tend to read at night when I am not my most lucid, and my memory of their contents may be suspect. This post is mainly to remind myself of what I *think* they were about. The references are not in any particular style.

 

Galston, William A. (2025). Anger, fear, and domination: Dark passions and the power of political speech. New Haven: Yale.

 This relatively short book looks at the unfortunately powerful impact of negative emotions on persuasion, particularly in the political realm. Even if one wants to believe that people are inherently good, this is a reminder that negative emotions are particularly powerful and it would be naive to deny that power ("Progress is possible, but so is regression"). The argument is not that there can be no appeal to reason or the better angels of our nature, but rather that we must be realistic about what we are up against. 

 

 Durand-Wood, Michel. (2025). You'll pay for this! Great Plains Press.

Another small book, this time dealing with the challenges of maintaining quality of life as cities change over time. My main takeaway (though I may be conflating this with another similar book I read on the topic) is that there is an inherent disconnect with both trying to have affordable housing while also treating home ownership as an investment vehicle and not just shelter. Another idea is that we tend to doom ourselves from the start by prioritizing new development ("greenfield" projects, such as creating a new neighborhood in what was once an empty tract of land) over reusing/remaking existing areas. The problem with greenfield is that, once the initial influx of money is gone, there is usually no way to support all of the new infrastructure that was created to serve the new area (additional sewage, power lines, etc.). This leads to the gradual decay of neighborhoods that "used to be nice." 

 

Shermer, Michael. (2026). Truth: What it is, how to find it, and why it still matters. Johns Hopkins.

The author of this book is (was?) the editor-in-chief of "Skeptic" magazine. The first part of the book looks at the idea of truth in an historical context, describing how it has been though of over the years. One of the main ideas is that "extraordinary claims require extraordinary evidence," contra the current "I'm just asking questions...." style of  today's conspiracy bloggers. He then works his way through various topics, such as UFOs and religion (and the associated "moral truths), and spends the last third of the book investigating consciousness and the existence of God (in the "prime mover" sense). The book was enjoyable to read, though I'm not sure there were any particular "aha" moments while reading it.   

Friday, December 5, 2025

Collective Brains and Innovators

 I just attended a very interesting Cognitive Science Colloquium presentation by Joseph Henrich of Harvard University entitled "Collective brains and origins of innovation." I thought I'd jot down a few musings while they were still (relatively) fresh in my mind.

 My understanding of the basic argument is that we (humans) learn from all that is around us (in terms of neighborhoods, collaborators, etc), and that innovation is the outcome of the, often serendipitous, exchange of information that allows ideas to grow. For this reason, being enmeshed in a larger context (such as living in a big city) or a more diverse team allows for more innovative thinking. Henrich uses information on patents granted as a proxy for innovation to bolster some of these claims, using big data techniques to combine things such as census data, surnames (who is related to whom and/or from the same ethnic group), etc. That said, he also referenced the experimental research literature, ethnographic studies, and even the cross-species studies ("What do three-year-old humans and chimps have in common? What are the differences?") as part of his narrative. He is in the process of writing a twelve-chapter book, which will be out sometime next year and would be worth a read.

I'm not familiar with much or any of the literature that he is drawing on, so I had to take a lot of his argument at face value. He did have an amusing intro piece where he showed a list of 10-12 innovations (city centers, division of labor, weedkillers, etc.), presumably to set the stage for human intelligence, only to reveal that he was talking about ants. And this also illustrates his main point -- if we wanted to study those innovations in the ant world, we would not be looking at the behavior of individual ants, but rather at the behavior of the colony. That is kind of what he has in mind with the term "collective brain" -- the larger distributed cognition of the species is what drives innovation, not the heroic efforts of single brains in unique people. We have the advantage of all of the technical/cultural innovations that have come before us -- we don't need to reinvent springs or levers or government with every generation. 

The Q&A portion covered a wide range of topics, also revealing that he had done some fieldwork near Machu Picchu (his PhD is in anthropology, though he also has a BS in aerospace engineering, apparently.) And although I had not heard of him specifically, he was one of the folks involved in creating (or popularizing -- not quite sure) the "WEIRD" acronym (Western, Educated, Industrialized, Rich and Democratic) that suggests a potential generalization flaw in most psychological research, as it has traditionally been conducted primarily in those populations. 

His talk made me think a lot about the book "Connected" which was all about the power of social networks in the sense that you are being influenced indirectly by things that you may not realize (e.g., a friend of a friend, with no connection to you, has an impact on your friend, which has an impact on you). Henrich mentioned a more "cultural evolution" type example where people in hot climates tend to eat spicy meat, without necessarily recognizing that the particular spices they use are good at holding some microbes at bay that would otherwise cause sickness. 

At times I felt that there might be a bit of a "just so" storytelling given the disparate pieces of information that he is pulling together, but he was able to respond to several questions in that vein with additional potential sources of evidence. It was an enjoyable talk and I'll probably look out for his new book (or perhaps read one of his other ones).  

 

Wednesday, November 26, 2025

Generative AI Brain Dump

 I've been trying to clarify my thinking around how I feel about GenAI (generative AI, specifically tools like ChatGPT in my case) and teaching and learning in higher ed (and in general), but haven't made much progress. So this won't be so much as a blog post as a brain dump of various things sloshing around in my head. 

 Do I think using GenAI is just like using a calculator? No. Calculators take away the drudgery of doing calculations yourself. You need to provide the raw materials as input (i.e., the numbers that you want to do the calculation on), which means that you have to have a reason for inputting those numbers. In other words, you are in control of the thought process and are just pulling in additional help for some of the grunt work. For the simpler calculations, you could have, in theory, worked out the answer yourself.  

It is still important for people to understand what the basic mathematical operations are even if they can use a calculator. Part of understanding the basics is to try to do it yourself, so it makes sense to still have basic math instruction in schools. 

Do I think using GenAI is just like using a stats program (SPSS, etc.) to analyze data? Not really, but this is a little more of a gray area than the first one. I don't think I could compute PCA by hand (and I certainly wouldn't want to). Some would also argue that there is a degree of "mindlessness" that creeps in when students learn which buttons to push and which numbers to report without really understanding what is going on "under the hood." 

This leads to the question of how much understanding is needed to use a tool, and the relationship between how the tool works and what the tool does. An automobile is a tool to get you from point A to point B. You have to know how to use the tool (i.e., how to drive) to make use of the tool, but how much do you need to know about the internal combustion engine (or the electric engine)? You need to know about filling the tank (charging the battery), but for anything over that, there are professionals who can help fix the tool if something goes wrong. And, of course, the mechanics who work on cars don't necessarily need to know how to design a car per se, though they will probably have some better intuitions than a layperson. 

Do I think that using GenAI is cheating? Well, this is a loaded question. Yes and no. I think this partially depends on what the expectation is. Riding the subway for a few stops in a city is depriving you of the exercise that you would have gotten had you walked, but it is not cheating unless you were a participant in that city's marathon where the expectation is that you are completing the course unaided. 

So part of the answer depends on what the impact of the discovery of GenAI use in a particular situation would be and whether or not you vouch for the product that you are putting forward. Deloitte was famously embarrassed by providing an GenAI written report to the Australian government. Had the report not been riddled with hallucinations, there would likely still have been the expectation that you were paying for the service of seasoned human researchers and not merely prompt engineers. Will this change when GenAI becomes even more common? 

I recall reading somewhere that GenAI use in STEM for writing up results is looked on much more favorably than in the humanities because the discovery of a new algorithm or methodology is the goal, not the research paper itself. Time "wasted" on writing up what you've already done could be better spent on making new discoveries. 

That sentiment is not shared widely in the humanities, from what I can tell. 

Do I think GenAI is a fad? Yes and no. The hype around AI will wane over time, but the technology is here to stay. Blockchain and crypto are still around even though the hype has died down from those early days about how they "will change everything." 

Hype or not, GenAI certainly does seem to be quite disruptive, and that is a bigger problem. Unlike the Covid19 disruption, the effects of which are still being felt, GenAI is ongoing. There is no telling how problematic this could become given some of the negative trajectories. It is true that there have been disruptive technologies before, but it seems that the rate of adoption was slower. The "brain rot" that started with social media could be hypercharged with GenAI. 

Is GenAI like Covid19? Perhaps "yes." What I mean by this is not the impact per se, but the fact that it doesn't matter whether I am a "fan" of GenAI or a critic, it is here doing what it does irrespective of my wishes. And, like Covid19, we are not prepared at the societal level for the disruption that it has and will cause.  

But there were some upsides to the pandemic (at least for some portions of the population). Although it has been reversing recently, the focus on work/life balance became clearer, and the ability to work from home at least occasionally became a reality for many. We realized that maybe we didn't need all of the meetings that we had, and that we could also work asynchronously and still collaborate. 

This was more of a stream of consciousness brain dump than a blog post. I don't think that I am any clearer in my thinking. So much is context dependent that it is hard to generalize. 

I don't like (and don't use) Gen AI for writing.  The only exception is when I need to create some kind of "boilerplate" language in which case I might ask ChatGPT for a suggestion. That usually gives me enough of an idea to get over my temporary block. I don't think I have ever copy/pasted something from ChatGPT directly into another document (unless I was intentionally creating a "this is what ChatGPT said" kind of document). 

I am much more likely to use ChatGPT for coding, but even that depends. Many times I will have it generate code, then ask it about the security implications of using that code (if there are any). If I don't feel comfortable that I know what the code is doing, I'll hold off going any further. 

 

Wednesday, June 25, 2025

Aye-Yai-AI

 I've been interacting with large language models (LLMs) for about a year now, and over that time they have become both more useful and more frustrating. Many of the complaints about the early versions of ChatGPT (extreme hallucinations, stilted prose) don't hold water in the way they used to. The most recent version of ChatGPT (4.5) does a fairly impressive job of pulling in information from online sources if required to improve responses. From that point of view, output is much more usable than previously. 

The other day I gave the preview version of Google's Gemini "Deep Research" a prompt to create a report on the "state-of-the-field" in terms of the use of AI for educational assessment, particularly in the context of second and foreign language testing. After about five minutes, it had dutifully produced a multi-page document that included, as requested, sections on automatic item generation, speech recognition, automated scoring, and the like, complete with a section on ethical concerns and implications. Although it didn't add citations to the report itself, it did list all of the references which were consulted in creating the final product (and, if you dig into the details, a second list of references that were "read" but not used in the final draft). With a simple push of another button -- and a five minute wait -- it even produced a short "podcast" of highlights from the report, presented by virtual hosts, complete with pauses and overlapping voices. 

From a technical standpoint, this is impressive to the point of being magical. So why do I feel so uneasy about the process and the output?

My first thought was that perhaps the results weren't very accurate, though that didn't seem to be the case. Although there are still stories of AI famously creating summer reading lists that include fictitious books, most of the information appeared to be plausible. 

That said, there was certainly a degree of "superficiality" about the report -- although it was based on sources, it was more "magazine article" than "academic" in how it read. But "superficial" doesn't quite capture the issue (and review articles, almost by definition, have to stay at the 30,000 foot view if they cover a range of topics). 

I still don't have a good word for my uneasiness, but I think it has to do with the fact that even though AI can scan more articles in minutes than I can hope to read in my lifetime, it has no sense of "the field" in the way that an academic would. The word "validity" doesn't conjure up Messick's work or other seminal figures in the ongoing debate. AI is not a discerning reader -- you are just as likely to have a reference from a blog post or third-tier (even predatory) journal as from Language Testing (and perhaps even more so, since the good journals tend to be behind paywalls). 

At the end of the day, whether academic fields are able to survive the AI onslaught is yet to be seen. (There is a wonderfully titled article from the Mayo Clinic called "The Debris Field of Scientific Publications Authored by Artificial Intelligence" that I haven't yet been able to access to read.) If articles are increasingly generated by unthinking AI rather than thinking humans, we run the risk of polluting the intellectual waters from which we need to drink.       

Friday, June 6, 2025

Is Knowledge Work All In Your Head?

 This is a bit of an addendum to my post the other day about working from home. The definition of what counts as "work" is not as clear cut as one might think, particularly when you are working with ideas rather than widgets. 

When I was in college, I had a job in the cafeteria washing pots and pans. It was pretty obvious what the content of the work was (all the dirty pots and pans at the wash station need to be cleaned) and it was easy to see progress being made (the stack of unwashed pots and pans getting smaller and smaller). There was a standardized "three sink" process for how things should be cleaned,  from removing large food debris and scraping in sink one, to soaking and cleaning in sink two, to soaking and sterilizing in sink three. Every team used the same process. Of course, throughout the meal service more dirty pots and pans would be added to the stack, but after working a few shifts, it was relatively easy to internalize the ebbs and flows of when the dirty pots and pans would arrive and to pick a work tempo that was sufficient to avoid terrible backlogs. 

With knowledge work, such as coding or report writing or analyzing data, it is less obvious what the content of the work is. Sure, there are obvious work products, such as working code, a completed report, an insightful analysis, etc., but the process to get to the completed product may not always follow the same, predictable steps. (One could argue that at the 30,000 ft view there is a process, in the "plan the work, work the plan" kind of way, but there is still a huge range of variation in the actual steps.) The exact contours of the finished product often evolve as the work is undertaken, as knowledge work is inherently iterative in nature. 

 The iterative nature of the work also leads to another challenge -- dead ends. Time spent not getting pots and pans clean in a cafeteria could be seen as "shirking" one's responsibilities. But what about spending time working on potential solutions that don't pan out? Or doing some reading about a statistical technique to analyze the data that you ultimately decide is probably not appropriate? Is that working or is that shirking responsibility? What if it takes you in inordinate amount of time to realize that the reason your code wasn't working wasn't due to a faulty logical flow in the function you were looking at, but rather a mislabeled variable in an upstream function? Does that mean your misguided troubleshooting efforts should not be counted as work?

 And, to bring it back to the WFH / RTO debate, if you are pondering why your code may not be working while staring at the ceiling in the office with your butt planted firmly in the seat, does that count as "work" whereas pondering why your code isn't working while taking your dog out for a quick walk so it can relieve itself does not? (And does gossip around the proverbial water cooler at work count as long as you are in the office, or should you be taking personal time to do that?)

Of course, as with all things, the ultimate answer will be "it depends" and is highly dependent on context. We all have more and less productive days. Sometimes our first attempt leads to a reasonable solution, other times it takes a bit of trial and error. We may occasionally go down rabbit holes trying to research or code something only to come up empty handed. If we are generally productive at a reasonable timescale (weeks, months), variation is par for the course in knowledge work. But if we are just generally unproductive, then it may be time to take a closer look at where we might have room for improvement (maybe we are too easily distracted when we WFH) and/or where there may be systemic aspects of the work which need to be addressed (to quote John Seddon, "If you want someone to do a good job, give them a good job to do").   

Thursday, June 5, 2025

Does Work from Home Work?

 I've been thinking a lot lately about the whole "return to office" (RTO) and "work from home" (WFH) tension. I don't have any deep insights, and certainly won't be presenting any research findings one way or the other, but there do seem to be a couple of themes that I inevitably end up with when thinking about this issue. 

Being physically in the office does not necessarily mean that you are working better or more efficiently (or even working at all). Unless you have a job that entails some kind of extensive physical interaction with objects that are only present in the office environment, the mere fact that you are in Place A (office) rather than Place B (home) is basically irrelevant. This is particularly true for "knowledge work" that takes place mainly in your head or on a laptop (coding, writing, analyzing, planning, etc.). 

That said, there is nothing inherent in being at home that necessarily means that you are working better or more efficiently (or, indeed, even at all) compared to being in the office. Again, unless there is some kind of physical object that you only have access to at home that is vital for your job (and if that is the case, why haven't you been provided with it at the office?), there isn't really a difference between Place A and Place B.

 I can hear the comebacks on both sides. Fans of RTO will claim that there are very real benefits to working socially with other humans. Moving sticky notes around on virtual whiteboards with a mouse is not the same as discussing things in person in a conference room, manipulating real sticky notes that can be easily rearranged or discarded. The subtleties of body language and looking people in the eye to see if they are really convinced that your timeline is reasonable are difficult to discern over Zoom. The ability to drop by someone's desk to get some quick help with something blocking your progress is more efficient than playing email tag.  And, of course, there is the social cohesion and espirit de corps that happens when people work together on a common goal. 

On the other hand, fans of WFH will claim that the theoretical benefits that RTO proponents espouse are rarely encountered in the daily reality of working in an office setting. Working alone in a cubicle with headphones on doesn't feel socially cohesive, and face-to-face meetings and random interruptions take precious time away from working on assigned tasks. The daily commute (particularly if it is long) is a huge time and energy suck right at the beginning of the workday, leading to an office full of tired and irritated employees. What's the point of coming to the office to sit in front of a computer screen all day when that could have been done with less hassle by just sitting in front of the computer at home?

 On some level, both of these positions are conflating aspects of the work (how you interact with teammates, what is the responsibility of a team member to others on the team) with location. This reminds me of the argument between face-to-face courses and remote courses -- a good face-to-face course will be better than a bad online course (and vice-versa) all things being equal. But things are never completely equal, so there is also the complicating aspect of the proclivities of the learner that needs to be taken into consideration. A learner that is not terribly self-directed may flourish in the face-to-face course because of the structured social element, particularly if the online course is asynchronous, for example. The same is likely true of WFH versus RTO.

If there are benefits to RTO and benefits to WFH, it seems that some combination would be warranted. And perhaps this gets to an idea that transcends both -- flexibility. Because of the Covid lockdowns, many people realized that seemingly small affordances of being at home, such as the ability to quickly start a load of laundry before hopping on to the next Zoom meeting, had positive impacts on work/life balance. As the lockdowns went away, people liked the little "life hacks" that they had discovered while WFH. 

But we should probably recognize that just as with online courses, maybe not everyone has the correct mental mindset to work effectively from home and/or maybe some teams ("courses"?) are not conducive to a primarily WFH arrangement. If your "life hack" during the lockdown was to get a second job while pretending to be working on your first job, or to travel the country while claiming you were in your home office, that's a problem.

At the end of the day, it comes down to mindset and balance. If RTO means that you are expected to have your "butt in a seat" from X o'clock am to Y o'clock pm all day everyday no exceptions, that ignores the improvements in work/life balance that many found as a result of lockdowns and seems like a step backwards for a humanistic workplace. This is especially true if you are the person primarily responsible for dealing with kids or household chores where the ability to do a task that only takes a few minutes in the middle of the workday (turn on the dishwasher, take the chicken out of the freezer to thaw, etc.) can make a huge difference.  On the other hand, if your mindset when working from home is all about the "life hacks" ("I'll do the laundry, clean the kitchen, meet so-and-so for lunch, and tell my boss that I'm still not done with the report and need a few more days"), then there is an obvious problem. Yes it is true that there are many "distractions" in the office (loud conversations, random interruptions, etc.) but don't pretend that your home office is distraction-free even if you are the only person home.

Wednesday, November 20, 2024

Reading is Fundamental But Not Always Fun

From time to time, I have found that it is useful to document some of the books that I have read. I almost always read non-fiction -- not because I dislike fiction, but because I guess that is what I am used to after so many years in academic settings. 


The Worlds I See: Curiosity, Exploration, and Discovery at the Dawn of AI by Dr. Fei-Fei Li. Dr. Li is famous for creating ImageNet, a huge collection of labeled pictures that, when combined with neural networks, jump-started much of the recent revolution in machine vision. The book is well-written, and reads a bit like a "rags to riches" (originally in academic, but now in real terms due to Dr. Li's successful AI startup) story, including anecdotes such as needing to share her dorm room with her parents. There is also some reflection on being a female scientist in a male-dominated field.

 To Rise Above Principle: The Memoirs of an Unreconstructed Dean by Josef Martin and Henry Bauer.  This was quite a fun read -- essentially a series of stories and interesting vignettes. It did become clear halfway through that, both due to the book being many years ago and the author(s) being a little more "conservative" in some of their thoughts, that not every story would be taken in the "hey, a funny thing happened to me yesterday" vein that it was intended by more "enlightened" readers. 

Hype: Inside the Fyre Festival and the Golden Age of Grift by Gabrielle Bluestone. If you have every seen the Netflix documentary "Fyre: The Greatest Festival that Never Happened," this is a more in-depth look at how everything is becoming "fake it till you make it" proposition. People will pay crazy amounts of money to shady people (or organizations) with the hope that just maybe, they too will be able to live the lifestyle (at least temporarily) of the influencers and stars that they see on social media. An interesting read.

Optimal Illusions : The False Promise of Optimization by Coco Krumme. I remember this being an interesting book, but don't quite remember all of the details. It was kind of a memoir / roadtrip / essay rolled into one. 

Everest, Inc. : The Renegades and Rogues Who Built an Industry at the Top of the World by Will Cockrell. If you have more than a passing interesting in Mount Everest, this book will likely be of interest. (I had watched a few seasons of a Netflix(?) show about folks trying to make the climb.) The books talks about the changes, both good and bad, that tourism has brought to the region, as well as about the guides and expedition companies that have been big players along the way. Many of the tours are now led by local rather than western guides, for example. 


The Undertow : Scenes From a Slow Civil War by Jeff Sharlet. This book was a series of vignettes about different places and people, primarily in "Trump country" (for lack of a better word). It was quite a fascinating read, equal parts enlightening and frightening. From anecdotes about people who decode every tweet that President Trump makes (because nothing is random -- the misspellings and inconsistent use of capitalization are intentional, with meanings only known to those who understand the great existential battle taking place) to families who have firearms "at the ready" for what's to come, it makes for very unsettling reading.

 Future of Denial : The Ideologies of Climate Change by Tad DeLay. If you were feeling a little despondent about our seeming inability to deal appropriately with climate change, reading this book will not make you feel any better. Taking a very clear-eyed approach, the author spells out what the energy consumption of the world is versus what steps have been (or could be) taken to meet that demand while also looking at the "climate budget" of how much more pollution we can spew before things really get ugly. The take home message is that things are going to get really ugly, even if we make some "better late than never" changes in the immediate future. A very sobering look at what's to come, and the final chapters which talk about the likelihood of the routine clashes between heavily militarized guards and climate refugees at the border reads like something out of a dystopian novel. The author's point is that (unfortunately) it is easier for us to envision the end of the human race than the end of the capitalist system which is pushing us to extinction.



Friday, November 1, 2024

Consensus isn't Science

 I recently played around a bit with a new LLM-powered app called Consensus. The goal of the app is to provide functionality akin to Google Scholar + ChatGPT, such that you are not merely searching for references, but also building up an understanding of the main points of those references, like a mini literature review based on your query. If you ask a "yes / no" question (e.g., "Is it bad to exercise immediately after eating?"), you will not only receive a list of references, but also a "Consensus Meter" that attempts to quantify the sentiments from those references (with a "Possibly" sentiment thrown in). In other words, at a glance you could see how the majority of the references might lean in answering the question. 

After trying a few general queries to get used to the interface, I decided to try a more provocative question to see what the "consensus" would be and what kind of results would be returned. At the risk of readers misinterpreting these musings as representing a particular stance on the issue, here is what I noticed.

The prompt I used was: "Is there general consensus that biological sex (not gender expression) is essentially binary in humans?" I phrased it that way because I wanted to have a response that would give me a "Consensus Meter."

The results pulled back nine papers, five of which were used to provide the "consensus" (which was Yes: 20%, No: 80%, with 0% for Possibly). I was a little surprised at the result, as I had assumed that specifying that I was not interested in "gender expression" in the prompt would break the opposite of what it did. (AFAIK, medical researchers don't break down research findings into multiple biological sex categories beyond the binary unless that is the particular focus of the study, but that's just an assumption as I don't read a lot of medical literature.)

I decided to look more closely at the results. I was a little disappointed to find that half of the nine references returned had under five citations (and two had zero citations). Of course, the more recent the research, the fewer the citations (even for very high quality research), so even that metric can be misleading. Two of those low citation references were used in the "Consensus Meter." 

I don't know enough about the medical journal landscape to know which journals are more "reputable," though the app did mark some journals as "Rigorous Journal" when I asked for additional results. (It is interesting that the rigorous journal papers were not in the first batch of results which informed the "Consensus Meter" -- once created, the meter doesn't change when clicking on "additional results.") It did appear that there was a mix of types of journals: Anatomical Sciences Education, American Psychologist, Policy Insights from the Behavioral and Brain Sciences, etc., which may have biased the results towards a more applied answer than a strictly biological/medical one. Or maybe those results really are representative of the current consensus.

I tried the query again, rephrased as "Is there general consensus in the medical (not psychological) community that biological sex (not gender expression) is essentially binary in humans?," but that gave me (as far as I could tell -- the results are not saved in the free version) essentially the same list of references and summary as the previous query (but, interestingly enough, didn't include a "Consensus Meter" this time). There is probably some amount of caching of similar queries to save on costs for the app provider.

I tried another query more in line with an area of research that I am somewhat familiar with, second language acquisition. This time, the prompt I used was: "Does being raised in a bilingual household have cognitive advantages?" There was a period of time a decade or two ago in which there was lots of popular press about "the bilingual advantage," though more recent research has been mixed. 

This time, the "Consensus Meter" was evenly split (Yes: 42%, No: 42%, Possibly: 17%). I'm not completely up-to-date myself, but this matches my sense of where things are. As before, I did notice that one of the results had no citations (though it was a recent paper, so it could be for that reason). I recognized some of the names and articles that were returned, but was surprised to see that Ellen Bialystok's work (the name I most associate with this kind of research) didn't appear until I hit the "more results" button.

I can see how this app could be useful. There is a pro feature (which I didn't try as it is extremely limited in the free version) that allows you to get more information on a particular study. For some studies, you can query the study directly (which I assume is a kind of Retrieval Augmented Generation (RAG) process for those studies that have full text), and for others you can at least get more information about sample size, methodology, etc. You can also keep asking for additional results beyond the ten (or so) that are pulled up with your first query. (To be fair, many journals now have a "you may also be interested in ...." type recommendations as well if you have access to the journal online through a university library or similar.)

I can also see how this app could be misleading. In some sense, this is not the fault of the app, but how "big data" can distort as well as inform. To give a trivial example, that the Earth is round (or, at least, an oblate spheroid) and not flat would not be a contentious statement in scientific circles. In fact, it is so well-known that it is not even a topic of study at this point. However, if one were to use the number of Youtube videos as a metric of consensus, it is likely that one might get the false impression that the "flat Earth" hypothesis is an active area of research for astronomers.

But what about a less trivial example? If there are perverse incentives to publish at all costs to be able to have any chance of obtaining an academic career, keep your grant, etc., and this rat race results in an increasing reliance on falsified data and/or AI generated papers, this could lead to a degradation in the quality of thought that is produced, which will feedback into the "scientific consensus" when seen through tools such as this app. There were more than 10,000 research articles retracted in 2023. Are those papers still retrieved in "big data" searches?

Author (and Harvard M.D.) Michael Crichton had this to say about consensus (the concept, not the app):

Let's be clear: the work of science has nothing whatever to do with consensus. Consensus is the business of politics. Science, on the contrary, requires only one investigator who happens to be right, which means that he or she has results that are verifiable by reference to the real world. In science consensus is irrelevant. What is relevant is reproducible results.

But even that sentiment, with which I am sympathetic, is oversimplified. The question of what constitutes knowledge is a thorny one, and there is not a simple straight line between the results of any one experiment and "the truth," particularly when we are looking at processes that are more social than physical. Reproducible results don't necessarily validate your theory per se,  i.e., your model could be "wrong" but still useful. Philosopher of science Larry Laudan has argued that it is not irrational to believe in theory A (the established theory, which tends to solve more problems) while still keeping an eye on theory B (an incommensurate theory, which can't solve as many problems yet, but might be more internally consistent, etc.).  

As I often tell my students, the answer to almost any interesting question seems to be "it depends" -- but "it depends" is not the same thing as "anything goes," and therein lies the challenge. The Consensus app may be a useful addition to the researcher's toolbox, but it shouldn't be the only one. 

Friday, September 20, 2024

Crime and Punishment for Plagiarism

Some recent high-profile stories about various university professors and leaders being accused committing acts of plagiarism have got me thinking recently. Although many of these accusations are driven by political "gotcha" campaigns rather than any actual interest in encouraging higher standards for professional conduct across the board, that fact doesn't offset the need to consider whether or not an "academic crime" was committed.

In fact, the phrase "academic crime" has been rolling around in my head. Having served on a jury, I am acutely aware that crime is a rather nebulous word and needs to be carefully defined in order to assess guilt or innocence. The same outcome is not always evidence of the same crime (e.g., manslaughter is a different crime from murder, though both result in the death of a human being), and the accusation of a particular crime must be proven beyond a reasonable doubt before a person can be labelled "guilty." As a society, we have identified different categories of bad behavior, some of which rise to the level of being criminal behavior. But even within the ranks of criminal behavior, the appropriate punishment is based on the severity of the offense and the presence or absence of mitigating factors, not just the finding of guilt. And, finally, many lesser crimes have a statute of limitations, because we recognize that momentary lapses in judgment or behavior are not necessarily indicative of a continuing threat to society at large.

I think we need to adopt this kind of thinking for accusations of plagiarism. In other words, perhaps we should differentiate "misdemeanor" from "felony" plagiarism, and minor infractions from decades prior should be subject to a "statute of limitations" in terms of punishment. If someone's "paraphrase" of another author's work is a little too close to the original text, even though it is clear to the reader that it is the other author's ideas that are being discussed, that is plagiarism. But I see that as being rather far down the scale in terms of the severity of the offense. And if the plagiarism in question was committed in a paper written 20 years ago,  by a now tenured professor who has been a "member in good standing" of the academic community in the intervening years, is seeking punishment (over and above an acknowledgment of sloppiness) really worth anybody's time? 

On the other hand, if someone knowingly and deliberately presents another's work as their own, with an attempt to conceal the fact that they are not the originator of the idea being discussed, then that is a different story. Plagiarism of that sort, which has the added element of "criminal intent" rather than mere sloppiness, should be dealt with more harshly as it potentially speaks to an attitude which is antithetical to the ideals of the academic enterprise. As such, the statute of limitations for such behavior may need to involve a longer time frame than for more minor infractions. 

 Of course, there are other dimensions as well. Stealing a pencil is not as egregious a crime as stealing a car (though both are stealing), because the value of the pencil is less than that of a car. Analogously, plagiarizing "boilerplate" language that describes commonly known procedures or practices seems to be less severe (though it would still be a "crime") than plagiarizing core intellectual insights or arguments. Readers of the plagiarized "boilerplate" paper are unlikely to attribute any special intellectual merit to the plagiarizing author for that section, as they would have prior familiarity with those procedures and practices. The value of the plagiarized section in terms of increased academic status or likelihood of publication due to that section is relatively low. 

On the other hand, an author who plagiarizes the intellectually novel or particularly eloquent sections of someone else's work, especially if they do so in such a way as to lead the reader to believe that the ideas are the author's own intellectual contribution, is likely to be rewarded in terms of increased chances of publication or greater academic acclaim (assuming they are not caught) than they would otherwise be. Thus, the value of this kind of plagiarism is relatively high.    

Although this is just a rough sketch, I do think that there would be value in fleshing out some kind of  "criminal codes" for plagiarism (if they do not already exist). This wouldn't be a perfect solution (what legal system is?), but perhaps it would help us better navigate what are sure to be choppy waters ahead now that higher education is becoming increasingly politicized.


Tuesday, April 30, 2024

Making (Up) Connections

 I came across an interesting post the other day by one of the folks who is helping to train AI models at OpenAI (the people behind ChatGPT). The core idea is that any model trained for a sufficient amount of time will eventually converge to more or less the same point, reflecting the data that they were trained on. Or, as the author puts it:

"[M]odel behavior is not determined by architecture, hyperparameters, or optimizer choices. It’s determined by your dataset, nothing else. Everything else is a means to an end in efficiently delivery compute to approximating that dataset."

 I know that it is a fallacy to equate what computer models do with what real human brains do, and an even bigger fallacy to try to extrapolate from how and what ChatGPT learns about language to how and what a human learns about language. That said, reading that blog post made me think of the argument that Daniel Dor, a linguist with an interest in evolution of language, made in his book The Instruction of Imagination about human language.  

Dor's argument is much more nuanced than I'm going to make it sound, but the general takeaway that I got from reading was that we should think of language as "a tool" which is "out there" in the social network among humans, not something that resides in individual brains. (This is not to say that individual cognition is unimportant or anything like that.) Language is a tool for influencing the imagination (thoughts, ideas, etc.) of other humans (hence the book's title), and "learning a language" is essentially learning to use that tool effectively. 

Like the internet, language is a living thing, with some aspects changing relatively slowly over time (as they have proven useful to effectively using the tool, e.g., http protocols) while others change much more frequently (e.g., website content), language also has slow-changing bits (e.g., core grammatical structures) and fast-changing bits (e.g., words). (That's my mental model, anyway.)  Folks who spend time in the same "internet communities" will likely approximate, to different degrees, aspects of the materials that they are interacting with.

At any rate, that is where my mind went when reading the quote. I should really re-visit Dor's book at some point and give it a more careful read, as I am sure that, like ChatGPT, I am hallucinating the contents as much as remembering them. 

Friday, April 19, 2024

More Than the Sum of the Parts

 I had a chat with a student the other day about how to reconcile emerging understanding of the cognitive processes involved in reading with the assessment of reading in educational and other contexts. Thanks to relatively recent technological interventions such as eye-tracking machines and not-so-recent theoretical concepts such as working memory, the research literature is replete with examples of how slight changes to the context (e.g., different font size) can alter processing and how there are complex interactions between the context and the cognitive profiles of the learner (e.g., vocabulary size, purpose for reading, working memory size). The student was pondering whether we need to "control for" these various individual and contextual differences in our educational assessments. 

The answer is not straight-forward. Much of the challenge is definitional -- what do we mean by "assess," by "reading," by "control for," etc.? These words are doing a lot of work and need to be unpacked. 

Even at a relatively simplistic level, our terms are shorthand for a whole slew of different things. When we talk about a "reading test," in a language proficiency context, we usually aren't really talking about how the person reads (i.e., what particular cognitive processes are involved) but rather about that person's comprehension of what they have read. This is why there is no push (as far as I know) for incorporating eye-tracking into the Defense Language Proficiency Test (DLPT), for example. 

But even comprehension is slippery. Outside of the educational testing world, we virtually never show that we have comprehended something we have read by answering multiple choice questions about it. Rather, we take direct action to accomplish an immediate task (such as reading the instructions on a machine and then using the machine), we deploy nuggets of information that we have learned through reading in conversations with others, etc. 

I've been thinking about an analogy with basketball (or any sport, really) that is usually employed when talking about individual differences. (This isn't an original thought.) People have a range of physical attributes (tidal volume of the lungs, vertical leap, height, arm strength, etc.), cognitive attributes (perception, attention, decision-making, reaction time), and background knowledge (understanding of basic positions, familiarity with other team's playbook, knowledge of rules) that we can measure more-or-less in isolation. But being a good basketball player is none of these things; it is an amalgam of all of these things. Good players are those who are able to use their particular collection of abilities in the most effective way to maximize their team's chances of winning the game. 

SLA researchers are like sports researchers -- they are always looking for ways of improving their measurements of the various capabilities that undergird performance. To do so, they try to isolate the specific variables that they are interested in and try to make the case for how that particular variable might help explain variations in performance that we see on the court. The sophistication and precision of the research methods increases over time. 

Language testers, on the other hand, are more like coaches. They need to determine who to start, who to bench, who to cut, etc. They operate at a more global level of "better" versus "worse" players for a given situation. They are aware that the individual difference variables are implicated in the performance of the players, but their primary concern is a player's functional performance ("proficiency") on the court.

 

Monday, December 11, 2023

What I've Been Reading

It's been over six months since my last post, so it seems like a good time to try to push something out. I usually read for ten minutes or so in bed before going to sleep. Although it does take a while to get through longer books this way (I'm almost always reading non-fiction), over the course of a year I do manage to finish a few. That said, I'm usually nodding off as I'm doing this, so I don't have the best retention of the material. To that end, I thought it might be good for my future self to jot down what I've read recently and what the general gist was. (No guarantees on the accuracy of these recollections.)


The Death of an American Jewish Community: A Tragedy of Good Intentions, Hillel Levine and Lawrence Harmon

The World of Patience Gromes: Making and Unmaking a Black Community, Scott C. Davis

Though these two books deal with different geographical locations, they both discuss (among other things) the impact of urban renewal programs in the communities that they were supposed to help. One thing that stands out in both accounts is that, at the end of the day, lots of factors (internal and external) and personalities are involved in any kind of social / political process. Good intentions do not always lead to good outcomes, and what constitutes an acceptable rate of change is very dependent on personal experience and expectations. 

The Dawn of a Mindful Universe, Marcelo Gleiser

I don't remember much about this book, truth be told. One of the themes was that the universe has evolved to create beings like us who are now able to contemplate their own place in it. At the same time, for the average person, the sense of wonder, as well as the understanding that we are not apart from nature but rather a part of nature, has been lost. We need to get back to seeing the Earth that sustains us as a "sacred" entity if we want to remain in the picture. 

Mistakes Were Made (But Not by Me), Carol Tavris and Elliot Aronson

This book talked mainly about how hypocritical humans tend to be. We do everything in our power to maintain the fiction that we are as moral, kind, altruistic, reason-driven, etc. as we see ourselves to be. This can lead to problematic outcomes, such as prosecutors refusing to believe that the new discovered DNA evidence is actually proof of the defendant's innocence -- how could a prosecutor who prides themselves on being truth-seeking and moral, have made such an egregious mistake as helping to send an innocent person to jail?

Revolutionary Mathematics: Artificial Intelligence, Statistics, and the Logic of Capitalism, Justin Joque

This book likely deserves a more detailed reading in a less sleepy state than I gave it. The author is essentially making a Marxist critique of the commodification of knowledge in the service of capital that is possible given the explosion of machine learning and big data. For example, Uber is a transportation company that owns no cars, extracting value from the labor of the driver and the data collected from the passenger. 

Tuesday, May 9, 2023

Of X-Rays and Learning Analytics

 Unless you have been asleep for the past several years, you will have no doubt heard of the machine learning and artificial intelligence revolution. Even before ChatGPT made headlines as having the fastest growing user-base in history, most large organizations were already looking to leverage machine learning and AI models in their business to take advantage of the ever expanding amount of data collected by digital systems -- "Data is the new oil" as they say.

The advances in AI and machine learning in recent years have indeed been quite astounding. With a large enough data set and sufficient computing power, tasks once thought to be the exclusive domain of human experts are now being performed by digital systems with accuracy that matches or even exceeds human benchmarks. Machine learning expert Andrew Ng predicted in 2017 that if you are an expert radiologist (someone who scans X-Ray images for evidence of disease), you are more in danger of being replaced by an artificial system than by your best lab assistant, a sentiment that has been widely echoed in various media outlets ever since. 

Given this state of affairs, it seems obvious that institutions of higher education, if they want to survive in the AI-dominated world of the future, need to embrace the digital revolution, and that educational leaders who continue to cling to outdated modes of interaction will see their institutions falter and perish in the not too distant future. By taking full advantage of the copious amounts of data collected by educational technology systems and judiciously applying machine learning algorithms, educators will be better able to serve students where they are, improve outcomes and retention, and identify potential student mental health issues in a timely fashion leading to more effective intervention. 

Not so fast. While it is true that there is a lot of room for innovative thinking in higher education, one needs to proceed with caution. In a more recent interview in 2021, Andrew Ng admitted that the early exuberance over AI's capabilities was slightly overstated. The issue is not that the models were not good -- the AI models as created did indeed outperform the human baseline  -- but rather that they were not generalizable. Move the trained model to a different hospital, which uses a slightly different X-Ray machine with slightly different resolution, and you are back to square one. (The expert human, of course, has no problem reading X-Rays from different machines.) To be effective, models need to be able to differentiate the signal from the noise. To do this, there needs to be consistency in the signal.

Now think about the incredibly wide range of interactions captured as data in educational technology systems. Think about all of the different ways that instructors can run their courses, that students can interact with the materials, that classroom and interpersonal dynamics can impact communication styles. Even the "signals" that we have in the data are contested ("Grades don't tell you about effort or learning," "Attendance does not mean engagement," etc.). Is it really reasonable to think that algorithms will be able to solve the educational challenges that educational professionals have not been able to solve themselves? 

 

Saturday, October 22, 2022

This Is How I Would Say It

 This is a follow-up to a previous post, where I mused about what counts as "good" and "bad" writing. I thought it might be interesting to try to document some of the things that I find myself explicitly thinking about when trying to write something important enough to warrant more care than just catching typos. I'm sure that such checks are common to a lot of people who write often. 

Keep structures parallel

 Although I don't always catch them initially, I check to make sure that I am using structures that are parallel when creating lists. In other words, instead of this:

Many things can influence your teaching style, such as what you are teaching, the time of day, and are you familiar with the student population.

do something like this:

Many things can influence your teaching style, such as the focus of the lesson, the time of day, and your familiarity with the student population.

 Keeping things parallel helps avoid grammatical weirdness and makes the writing flow a little better.

Avoid ambiguous pronouns

This is still a work in progress for me. Pronouns are incredibly useful in keeping sentences from getting overly clunky by repeating a huge noun phrase over and over:

(Clunky) Students who have learning styles that differ from your teaching style may have trouble keeping up with the class because students who have learning styles that differ from your teaching style will require extra cognitive effort to be successful.  

(Better) Students who have learning styles that differ from your teaching style may have trouble keeping up with the class because they require extra cognitive effort to be successful.* 

 But there are times when they can become ambiguous or even confusing. [Note that the previous sentence could have been, perhaps more clearly, written as: But there are times when pronouns can become ambiguous or even confusing.] Adding additional words to a sentence or moving sentences around during the editing process can sometimes cause the referential integrity to "break" or to be less clear than it was when the text was first written. 

Vary sentence length

Although it is common for academic writing to be quite verbose, slogging through pages and pages of a never ending river of paragraph-long sentences can be exhausting. The text needs to breathe. This doesn't mean that long sentences are bad and should be avoided at all costs. Rather, there should be a variety of sentence lengths scattered throughout the manuscript. Resist the need to "embellish" short sentences with additional words just because they don't seem "long enough" for "academic" writing. Clarity of thought, not density of text, is the goal. 

 Don't reference the entire field (unless warranted)

 This may be something that was more common when I was in graduate school than now, but it is a bit of a pet peeve (perhaps because I can't do it the way others can). It is great to have an encyclopedic command of the literature, but stringing several lines worth of references to every single statement usually just makes the text harder to read. I'm talking about things like this:

Students who have learning styles (Academic, 2007; Bigwig, 2011a; Bigwig, 2011b; Bigwig, 2015a; Bigwig, 2015b; Bigwig, 2015c, Bigwig & Student, 2016; Bigwig & Colleague, 2017;  Bigwig & Mentor, 1983; Colleague, 2020; Colleague, 2022; Mentor, 1962; Obligatory, 1977; Student, 2018; Zeitgeist, 2022; also see Kirkum, 2009) that differ from your teaching style (Celebrity, 2005; Heavyweight, 2009a; Heavyweight, 2009b; Hotshot, 2017; Hotshot & Celebrity, 2019; Somebody, 2013; Somebodyelse, 1992; Kirkum, 2008) may have trouble keeping up with class (Notable, 2003; Notable & Somebody, 2004; Notable & Student, 2005) because they require extra cognitive effort (Hotshot, 1999; Personage, 2000; VIP, 2013; Kirkum, 2009) to be successful.  

 Of course, there may be a legitimate need to refer specifically to many individual studies, such as to counter the argument that there has been little research into idea X, for example. But if you are just trying to prove that you have done the reading, it is probably better to do that in the strength of your argument rather than the size of your bibliography. I prefer to just list an example or two if I want give a nod to a general area of the literature ("...... learning styles (e.g., Academic, 2007; Bigwig, 2011)...."). 

Don't try to cram everything in

This is another tough one. When we were high school students, it seemed like we were always trying figure out how to make our term papers "long enough" to meet whatever requirements the teacher had set. Page limits were like unachievable goals that you would give anything to reach. ("How could anyone ever right ten whole pages about <insert topic here>?")  

Once you are reporting on your own work, however, it is a completely different story. ("How could anyone ask me to boil down my masterwork to a mere ten pages?") This is particularly true if you are trying to create a paper out of a longer manuscript such as a dissertation. Of course, it is possible to publish things piecemeal, but those pieces need to be able to stand on their own. 

One of the best pieces of advice I heard is to keep the literature review extremely short. Your job is to put the study in context, not to recapitulate the history of the field. Get right into the meat of what you did, pulling relevant literature into the methods and results sections as needed. That may not be the appropriate approach for a dissertation itself, but for a journal article or chapter, your reader will likely thank you.

 

 

*The concept of learning style as it is usually discussed does not have much support in the research literature.

Friday, October 21, 2022

I Wouldn't Say It Like That

 I saw a presentation by Chelsea Troy the other day on the topic of technical debt in software development teams. One of the points she made is that technical debt is not really about "bad" code, but more about the maintainability of the code. Poorly written code is hard to maintain, which is why it can be problematic. But in trying to identify poorly written code that will cause problems, people sometimes conflate the robustness of the code itself with the particular coding style of the developer (i.e., the "that's not how I would have written it" argument).

 That presentation, and the fact that I've been looking at a lot of drafts of academic papers recently, got me thinking about academic writing. How much of our impression of the writing of others is colored by the difference between what they wrote versus our internal "how I would have phrased it" sense of style? I tend to err on the side of accepting what was written if it isn't "wrong" in a technical/grammatical sense or "unclear" (unless I'm a co-author, in which case I might suggest an alternative phrasing), even though there may be many places where I felt I could have written it "better." But where's the line between our idiosyncratic preference for blue when the writer has given us red, versus legitimate feedback on a passage that virtually any other academic would have also found wanting?

I don't have an answer (though Steven Pinker's wonderful book The Sense of Style might). I know that I overuse parenthetical statements in my own writing and have been accused of being too "informal" by some reviewers. I happen to think that too much writing is overly formal when it doesn't need to be. Writing needs to be clear. Sometimes that means being very short and to the point. Other times it may require an extended description with carefully chosen words that precisely delineate the nuanced argument that you are undertaking. (See what I did there?)

I'm not a fan of trying to "academify" writing just for the sake of it. That said, one expects a certain style when reading an academic paper versus a novel or a news story. Although I would be OK with it, I can imagine that some would consider the following sentence too informal for an academic paper (though perhaps not for an academic presentation):

There are as many teaching styles as there are teachers.

One could rewrite the same sentiment in a slightly more "elevated" style:

There are as many styles of teaching as there are practitioners of the craft.

Whether the second sentence is an improvement over the first likely depends on your tolerance for informality in academic writing, as I can imagine many feeling that the first is too pedestrian to be called "well-written." But is it "bad writing" such that it needs to be "fixed"? I'm not sure.

How about an extreme version:

The variance in the distribution of operationalizations of instructional approaches is isomorphic to the variance in the distribution of instructional practitioners.    

 Unless the author is literally comparing statistical distributions of teaching styles and teachers, I would argue that this version is further from "good writing" than the first. It is needlessly opaque. In other words, I wouldn't say it like that.


Sunday, March 6, 2022

Pubsub Crawl

Today was another foray into Google Cloud Functions. This time, my goal was to begin to string things together using Google Pub/Sub. This type of approach forms the backbone of modern "serverless" workflows. 

My final use case requires hitting an API (with the appropriate credentials), retrieving a list of file URLs, and downloading those files to a cloud storage location. Because my brain is not as agile as it was when I was younger and I can't hold too many things in mind at once, I like to break things down into smaller chunks to help with troubleshooting. (This is probably a good practice regardless of age.) Previously, I had been interacting with things via gcloud commands in the CLI, but I broke down and decided to use the console for this bit.

My first hurdle was hitting an API with credentials. When experimenting with cloud functions before, I was always using the –allow-unauthenticated flag, which is really not good practice. I spent a bit of time trying to figure out the most secure way to do things, but ended up going down lots of rabbit holes in the Google's IAM documentation. At the end of the day, it seemed like creating a service account and requiring authentication seemed like the safest bet.
 
By default, Google Cloud Functions use the App Engine default service account, which has an "Editor" role in the project. This is considered a "primitive" role (along with "Owner" and "Viewer") and is not as secure as using more granular permissions. Because I knew that I would need to invoke the function, send pub/sub messages, and access an API key stored in the Google Secrets Manager, I created a new service account with just those permissions. This account will be linked to the Cloud Function.
 
Previously, I had been using the fake data API at http//:jsonplaceholder.typicode.com for practice. That's a great resource, but doesn't require authentication. For that, I turned to https://www.alphavantage.co/, a site that allows you to create an access token for their stock tracker. One can receive stock information by hitting an http endpoint with a stock symbol and the access token. 
 
I created key/value pair in the Google Secret Manager to hold the token, and then spent a while trying to get everything to work, following some of the sample scripts in the Google documentation (https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets). My first bare-bones function literally just tried to return the secret value. Once I could grab the apikey value from a function, I rewrote the function to iterate through a list of stock symbols and create URL strings that incorporate the stock symbol and apikey. 

The next step was to create a pubsub topic and subscriptions, which I did through the console interface. The idea is that the URLs I had just created could be sent as pubsub messages to other cloud functions that would do the actual downloading. Although creating the topic and subscriptions was relatively straight-forward, it took 15 versions of the cloud function script to finally get things working. At least half of the revisions were due to typos and/or forgetting to import a package, with the rest being logical errors or variable issues. 
 
So, now I had a cloud function that could retrieve a stored secret, create appropriately formatted URLs, and send them to a pubsub topic as individual messages. The next step is to create a cloud function that is triggered by those messages and downloads the files. 
 
But that's a task for another day.
 

Saturday, March 5, 2022

How to (Not) Function in the Cloud

I spent a bit of time today poking around with Google Cloud Functions. The idea is very similar to AWS Lambda -- both tools allow you to run small, single purpose Python (or other) scripts in a serverless environment, avoiding the overhead of spinning up a compute instance, installing the appropriate software, configuring access, etc. 

I first worked through the "Hello World" tutorial, which was essentially a function that would return "Hello <users name>!" or "Hello world!" message when the associated http endpoint was hit with or without a "name=<user name>" argument in the http request. That went fairly smoothly, though I try to force myself to type rather than copy/paste code when following tutorials, so there were a good deal of errors due to typos the first few tries.

But, like so many other things, there is usually a huge gap between the "Hello world" example and anything even somewhat approaching a real use case. This may be unavoidable given how many moving pieces there are in any "real" cloud deployment. 

Because my eventual use case was to hit an API and download some data, I decided to tweak the "Hello World" program bit by bit to get closer to that. Luckily, there is a wonderful "fake api" available at http://jsonplaceholder.typicode.com/ which is great for testing. 

It took a good hour of trial and error (and fixing more typos) to figure out which part of the sample "Hello World" code was just part of the sample script and which was needed as part of the Cloud Function deployment. (It turns out that there wasn't much "boilerplate" stuff needed.) It also took a while to realize that some Python packages that I needed weren't part of the standard library (and had to be specified in an associated requirements.txt file), while others were, and putting them in the requirements.txt file confused things. 

I was working from the command line to deploy the scripts, and making changes to them in a text editor. It takes about ~2 min to deploy the script after making changes, and there were many times when I forgot to save the most recent changes before redeploying, confusing myself in the process when things didn't work as anticipated. 

Luckily, I eventually realized that there is a good deal of logging that the service provides through the logs explorer (or through a gcloud command), which greatly improved my troubleshooting process. I think it took me 11 deployments to create a simple function that would hit the fake api and pull out the fake user names from the response json.  

Wednesday, March 2, 2022

Kindly Inquisitors

(Wrote many months ago, but just posting now.)

 I recently finished an interesting book by Jonathan Rauch called "Kindly Inquisitors: The New Attack on Free Speech". (Although the subtitle has the word "new" in it, the book was originally published in 1993, with a second edition in 2013.) The basic gist of the argument is that, in almost all cases, the best antidote for bad ideas is not censoring the ideas, but rather ensuring that free speech is protected so that good ideas come to the fore and eventually win out in the marketplace of ideas. 

Rauch identifies five possible decision-making principles and walks through the pros and cons of each:

  • The Fundamental Principle -- a person or group of people are in charge of determining what is true ("If the king decrees it, it is so")
  • The Simple Egalitarian Principle -- any sincerely held belief is true ("If that's what you believe, it is true for you")
  • The Radical Egalitarian Principle -- similar to the simple principle, but with special weighting for beliefs of marginalized group ("You must be right, because you're <name of marginalized group>")
  • The Humanitarian Principle -- any belief is OK as long as it doesn't cause harm to someone else
  • The Liberal Principle -- beliefs must be subject to public criticism to determine their truth

The bulk of the book is spent defending the final principle, the Liberal Principle, as the best option, even though this can mean that the process will be messy and feelings will get hurt along the way. Ideas that some (or many) would consider "hate speech" would be part of the mix at times. This is a necessary cost, according to Rauch, to avoid the problems inherent with adopting any of the other principles. 


Monday, December 20, 2021

Predict and Control versus Inspect and Adapt

 I came across an interesting idea the other day in the context of data governance (or, rather, governance in general at a tech-heavy company). The argument is that traditional management tends to adopt a "predict and control" mindset, which will only work well in situations in which the leaders really do know best and the workers are not used to (or capable of) any kind of autonomy. Such an approach might be appropriate for people working on a construction site, where there is a clear plan that should result in success if followed, assuming it was created by competent engineers. (Even in this scenario, there may still be some amount of local "troubleshooting" that requires the ingenuity of those closest to the work to handle.)

 For knowledge work, the situation is different, especially in a quickly changing landscape. Although there is obviously repetition at some level, knowledge work tends to be much less predictable than e.g., building widgets from known materials using a well-tested methodology. For this reason, a better approach is "inspect and adapt" -- make whatever course corrections are warranted given what you observe in the current situation. It is rarely possible to mindlessly repeat what was done before and expect a positive result.

The problem arises when there is a push to impose a predict and control structure on a group of workers who are expecting more of an inspect and adapt approach. Workers want to solve the problem, but they know that they will not be able to give specific details about exactly how that will be accomplished. Managers, on the other hand, want "certainty" and create more and more cumbersome processes to ensure that everything is "on track." This leads to frustration on both sides.