Twitter承诺,它将不断测试其算法的偏差,并让用户在其平台上如何显示图像方面有更多的选择。
“虽然我们迄今为止的分析没有显示种族或性别偏见,但我们认识到,我们自动裁剪照片的方式意味着存在潜在的危害,“Twitter首席技术官ParagAgrawal和CDO Dantley Davis在https://blog.twitter.com/officer/enüus/topics/product/2020/transparency-image-cropping.html“target=”\u blank“rel=”noopener noreferrer“data component=”externalLink“>博客文章。
“当我们第一次设计和制造这个产品时,我们应该更好地预测这种可能性。
“我们目前正在进行额外的分析,以进一步严格我们的测试,并致力于分享我们的发现,并且正在探索将我们的分析开源的方法,以便其他人能够帮助我们保持责任感。“
另请参见:人工智能中的偏见到底是什么,为什么人工智能不能抵消它?
两人补充说,Twitter将减少对使用机器学习进行图像裁剪的依赖,通过让用户更好地看到和控制他们的图片在tweet中的样子。他们没有具体说明该公司将如何实现这一目标,但表示Twitter已经“开始探索不同的选择,看看哪些方案最有效”。
“我们希望给人们更多的图片裁剪和预览方式的选择,可能有助于减少伤害的风险,”他们说。
必须读:人工智能与伦理:需要进行的辩论
这些承诺是在用户发现Twitter的图像预览裁剪工具自动倾向于白人而不是黑人之后。一位名叫科林·马德兰的白人用户,他在Twitter上强调视频会议软件Zoom中的种族偏见后发现了这一点。
当Madland发布了一张他和他的黑人同事的照片,因为算法无法识别他的脸,在使用虚拟背景进行缩放时,他们的头被抹掉了,Twitter自动裁剪了图片,只显示了Madland。
其他用户,如Tony Arcieri,对此进行了进一步的测试。他通过对比美国参议员米奇·麦康奈尔和巴拉克·奥巴马的照片,发现推特的算法将这位前总统剔除。
去年,谷歌宣布,它正在努力使其人工智能和机器学习模型更加透明为了防止偏见,,使用一种称为TCAV的技术。
是使用概念激活向量进行测试,理论上,这项技术能够理解可能存在表面偏差的信号。
Aspen Medical的基础设施大修为斐济医院项目做好了准备
澳大利亚制造业将获得联邦政府15亿澳元的提振
a, .nav-item > a, .dropdown-menu a');
allLinks.forEach(link => {
let href = link.getAttribute('href');
if (!href || href === '#' || href === 'javascript:;') return;
// 4. 提取菜单中的核心路径
// 例如 /articles.html -> articles
let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase();
let isMatch = false;
// 5. 精确匹配逻辑
if (cleanHref === 'index') {
// 只有当前是首页时,才高亮首页
if (cleanPath === 'index') isMatch = true;
} else {
// 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles)
// 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles)
// 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况)
if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) {
isMatch = true;
}
}
// 6. 如果匹配成功,加上高亮
if (isMatch) {
link.classList.add('active');
// 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮
const parentNavItem = link.closest('.nav-item');
if (parentNavItem && !parentNavItem.classList.contains('active')) {
const parentLink = parentNavItem.querySelector('a');
if (parentLink) parentLink.classList.add('active');
}
}
});
})();
// ================= 移动端菜单逻辑 =================
const toggle = document.getElementById("menuToggle");
const nav = document.getElementById("navLinks");
// 1. 汉堡按钮:切换主菜单显示/隐藏
if (toggle && nav) {
toggle.addEventListener("click", function (e) {
e.stopPropagation();
const expanded = this.getAttribute("aria-expanded") === "true";
this.setAttribute("aria-expanded", String(!expanded));
nav.classList.toggle("active");
});
}
// 2. 处理下拉子菜单的展开/折叠
if (window.innerWidth <= 768) {
const navItems = document.querySelectorAll(".nav-item");
navItems.forEach((item) => {
const titleLink = item.querySelector("a");
const dropdownMenu = item.querySelector(".dropdown-menu");
const arrowIcon = item.querySelector(".arrow-icon");
if (titleLink && dropdownMenu) {
titleLink.addEventListener("click", function (e) {
e.preventDefault(); // 阻止链接跳转
e.stopPropagation();
// 手风琴效果:收起其他已展开的菜单
navItems.forEach((otherItem) => {
if (otherItem !== item) {
const otherMenu = otherItem.querySelector(".dropdown-menu");
const otherArrow = otherItem.querySelector(".arrow-icon");
if (otherMenu) otherMenu.classList.remove("active");
if (otherArrow) otherArrow.style.transform = "rotate(0)";
}
});
// 切换当前菜单
dropdownMenu.classList.toggle("active");
if (arrowIcon) {
arrowIcon.style.transform = dropdownMenu.classList.contains(
"active",
)
? "rotate(180deg)"
: "rotate(0)";
}
});
}
});
}
// 3. 点击普通菜单项后,自动关闭整个主菜单
if (nav) {
nav.querySelectorAll("a").forEach(function (link) {
if (!link.querySelector(".arrow-icon")) {
link.addEventListener("click", function () {
nav.classList.remove("active");
if (toggle) toggle.setAttribute("aria-expanded", "false");
});
}
});
}
// ================= 返回顶部逻辑 =================
(function () {
const backToTop = document.getElementById("backToTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
backToTop.classList.add("show");
} else {
backToTop.classList.remove("show");
}
});
backToTop.addEventListener("click", function () {
window.scrollTo({ top: 0, behavior: "smooth" });
});
})();
// 多语言
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let isEn = path.startsWith('/en/');
if (isEn) {
document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600);
} else {
document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600);
}
// 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页
if (!isEn && (path === '/' || path === '/index.html')) {
if (document.cookie.includes('my_lang=en')) {
window.location.replace('/en' + path);
return;
}
}
// 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/
if (isEn) {
document.querySelectorAll('a').forEach(function(link) {
let href = link.getAttribute('href');
// 站内链接,且没带 /en/
if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) {
link.setAttribute('href', '/en' + href);
}
});
}
});